From 6d9e7fcba2331cd385a3bcd62647db12f6a2d65a Mon Sep 17 00:00:00 2001 From: Sachin Govind Date: Mon, 23 Nov 2026 18:14:31 +0530 Subject: [PATCH] instana client upgrade --- .gitignore | 2 +- .gitlab-ci.yml | 6 +- .openapi-generator/FILES | 8 - .openapi-generator/VERSION | 2 +- .travis.yml | 4 +- README.md | 7 +- docs/AdaptiveBaseline.md | 5 + docs/AdaptiveThresholdRule.md | 5 + docs/ApplicationAlertConfigurationApi.md | 4 +- docs/ApplicationSettingsApi.md | 1 + docs/GetInfrastructureGroupsQuery.md | 1 + docs/InfrastructureGroup.md | 1 + docs/LLMEgressGateway.md | 2 +- docs/LLMEvaluationApi.md | 1 + docs/MobileAppConfigurationApi.md | 4 +- docs/PoliciesApi.md | 166 ++++ docs/Policy.md | 1 + docs/TestResultDetailData.md | 4 +- docs/WebsiteConfigurationApi.md | 4 +- instana_client/__init__.py | 680 +------------- instana_client/api/__init__.py | 84 +- instana_client/api/action_catalog_api.py | 5 +- instana_client/api/action_history_api.py | 5 +- instana_client/api/ai_management_api.py | 5 +- instana_client/api/apdex_report_api.py | 5 +- instana_client/api/apdex_settings_api.py | 5 +- instana_client/api/api_token_api.py | 5 +- .../application_alert_configuration_api.py | 5 +- instana_client/api/application_analyze_api.py | 5 +- instana_client/api/application_catalog_api.py | 5 +- instana_client/api/application_metrics_api.py | 5 +- .../api/application_resources_api.py | 5 +- .../api/application_settings_api.py | 8 +- .../api/application_topology_api.py | 5 +- instana_client/api/audit_log_api.py | 5 +- instana_client/api/authentication_api.py | 5 +- instana_client/api/business_monitoring_api.py | 5 +- instana_client/api/custom_dashboards_api.py | 5 +- instana_client/api/custom_entities_api.py | 5 +- instana_client/api/default_api.py | 5 +- instana_client/api/end_user_monitoring_api.py | 5 +- instana_client/api/event_settings_api.py | 5 +- instana_client/api/events_api.py | 5 +- ...bal_application_alert_configuration_api.py | 5 +- instana_client/api/groups_api.py | 5 +- instana_client/api/health_api.py | 5 +- instana_client/api/host_agent_api.py | 5 +- .../infrastructure_alert_configuration_api.py | 5 +- .../api/infrastructure_analyze_api.py | 5 +- .../api/infrastructure_catalog_api.py | 5 +- .../api/infrastructure_metrics_api.py | 5 +- .../api/infrastructure_resources_api.py | 5 +- .../api/infrastructure_topology_api.py | 5 +- instana_client/api/ip_filtering_api.py | 5 +- instana_client/api/llm_evaluation_api.py | 8 +- .../api/llm_price_configuration_api.py | 5 +- .../api/log_alert_configuration_api.py | 5 +- instana_client/api/logging_analyze_api.py | 5 +- .../api/maintenance_configuration_api.py | 5 +- instana_client/api/mobile_app_analyze_api.py | 5 +- instana_client/api/mobile_app_catalog_api.py | 5 +- .../api/mobile_app_configuration_api.py | 11 +- instana_client/api/mobile_app_metrics_api.py | 5 +- .../api/mobile_app_session_replay_api.py | 5 +- instana_client/api/policies_api.py | 545 ++++++++++- instana_client/api/releases_api.py | 5 +- instana_client/api/roles_api.py | 5 +- .../service_levels_alert_configuration_api.py | 5 +- ...service_levels_objective_slo_report_api.py | 5 +- instana_client/api/session_settings_api.py | 5 +- instana_client/api/sli_report_api.py | 5 +- instana_client/api/sli_settings_api.py | 5 +- .../api/slo_catalog_for_mobile_app_api.py | 5 +- instana_client/api/slo_configurations_api.py | 5 +- .../api/slo_correction_configurations_api.py | 5 +- .../api/slo_correction_windows_api.py | 5 +- .../api/synthetic_alert_configuration_api.py | 5 +- instana_client/api/synthetic_calls_api.py | 5 +- instana_client/api/synthetic_catalog_api.py | 5 +- instana_client/api/synthetic_metrics_api.py | 5 +- instana_client/api/synthetic_settings_api.py | 5 +- .../synthetic_test_playback_results_api.py | 5 +- instana_client/api/teams_api.py | 5 +- instana_client/api/usage_api.py | 5 +- instana_client/api/user_api.py | 5 +- instana_client/api/website_analyze_api.py | 5 +- instana_client/api/website_catalog_api.py | 5 +- .../api/website_configuration_api.py | 11 +- instana_client/api/website_metrics_api.py | 5 +- instana_client/api_client.py | 60 +- instana_client/configuration.py | 72 +- instana_client/exceptions.py | 14 +- instana_client/models/__init__.py | 596 +----------- instana_client/models/abstract_integration.py | 9 +- instana_client/models/abstract_rule.py | 9 +- instana_client/models/access_rule.py | 9 +- instana_client/models/action.py | 9 +- instana_client/models/action_beacon.py | 37 +- instana_client/models/action_configuration.py | 9 +- instana_client/models/action_instance.py | 9 +- .../models/action_instance_metadata_entry.py | 9 +- .../models/action_instance_parameter.py | 9 +- .../models/action_instance_request.py | 9 +- .../action_instance_request_parameters.py | 9 +- instana_client/models/action_match.py | 9 +- instana_client/models/action_search_space.py | 9 +- instana_client/models/adaptive_baseline.py | 47 +- .../models/adaptive_threshold_rule.py | 47 +- instana_client/models/adjusted_timeframe.py | 9 +- .../advanced_custom_blueprint_indicator.py | 9 +- instana_client/models/advanced_filter.py | 9 +- .../models/agent_configuration_update.py | 9 +- instana_client/models/agent_mode_update.py | 12 +- .../models/alerting_configuration.py | 9 +- ...lerting_configuration_with_last_updated.py | 9 +- instana_client/models/alerting_time_window.py | 9 +- instana_client/models/apdex_alert_rule.py | 9 +- .../models/apdex_config_with_rbac_tag.py | 9 +- instana_client/models/apdex_configuration.py | 9 +- .../models/apdex_configuration_input.py | 9 +- instana_client/models/apdex_entity.py | 9 +- instana_client/models/apdex_level.py | 17 +- instana_client/models/apdex_report.py | 9 +- instana_client/models/api_create_group.py | 9 +- instana_client/models/api_create_role.py | 9 +- instana_client/models/api_group.py | 9 +- .../api_group_to_team_role_migration.py | 9 +- instana_client/models/api_log_item.py | 9 +- instana_client/models/api_log_tag.py | 9 +- instana_client/models/api_member.py | 9 +- instana_client/models/api_permission_set.py | 9 +- .../api_restricted_application_filter.py | 9 +- instana_client/models/api_role.py | 9 +- instana_client/models/api_tag.py | 9 +- instana_client/models/api_team.py | 9 +- instana_client/models/api_team_info.py | 9 +- instana_client/models/api_team_member.py | 9 +- instana_client/models/api_team_role.py | 9 +- instana_client/models/api_team_scope.py | 9 +- instana_client/models/api_token.py | 9 +- .../models/app_data_metric_configuration.py | 9 +- instana_client/models/application.py | 9 +- .../models/application_alert_config.py | 9 +- .../application_alert_config_with_metadata.py | 9 +- .../models/application_alert_rule.py | 9 +- .../models/application_apdex_entity.py | 9 +- ...ation_batch_business_criticality_update.py | 9 +- instana_client/models/application_config.py | 9 +- .../models/application_event_result.py | 9 +- instana_client/models/application_item.py | 9 +- .../models/application_metric_result.py | 9 +- instana_client/models/application_node.py | 9 +- instana_client/models/application_result.py | 9 +- instana_client/models/application_scope.py | 9 +- .../models/application_scope_with_metadata.py | 9 +- .../models/application_sli_entity.py | 9 +- .../models/application_slo_entity.py | 9 +- .../models/application_time_threshold.py | 9 +- .../models/audit_log_ui_response.py | 9 +- instana_client/models/author.py | 9 +- .../availability_blueprint_indicator.py | 9 +- .../models/availability_sli_entity.py | 9 +- instana_client/models/available_metrics.py | 9 +- instana_client/models/available_plugins.py | 9 +- .../models/backend_trace_reference.py | 9 +- .../bidirectional_ms_teams_app_integration.py | 9 +- .../bidirectional_slack_app_integration.py | 9 +- instana_client/models/binary_operator_dto.py | 9 +- .../models/browser_script_configuration.py | 9 +- .../browser_script_configuration_update.py | 9 +- .../models/built_in_event_specification.py | 9 +- ...n_event_specification_with_last_updated.py | 9 +- .../models/bulk_alert_config_request.py | 9 +- instana_client/models/business_activity.py | 23 +- .../models/business_perspective_config.py | 9 +- instana_client/models/call_groups_item.py | 9 +- instana_client/models/call_groups_result.py | 9 +- instana_client/models/call_relation.py | 9 +- instana_client/models/calls_event_result.py | 9 +- instana_client/models/change_summary.py | 9 +- .../models/cloudfoundry_physical_context.py | 9 +- instana_client/models/condition.py | 9 +- instana_client/models/config_version.py | 9 +- instana_client/models/correction.py | 9 +- .../models/correction_configuration.py | 9 +- .../models/correction_scheduling.py | 9 +- instana_client/models/correction_window.py | 9 +- .../models/crash_mobile_app_alert_rule.py | 9 +- .../models/create_evaluation_request.py | 9 +- .../models/create_evaluation_response.py | 9 +- .../models/create_website_request_inner.py | 9 +- ...cursor_paginated_business_activity_item.py | 9 +- instana_client/models/cursor_pagination.py | 9 +- ...ion_with_ui_cursor_infra_explore_cursor.py | 9 +- .../models/custom_blueprint_indicator.py | 9 +- instana_client/models/custom_dashboard.py | 9 +- .../models/custom_dashboard_preview.py | 9 +- ...ashboard_with_user_specific_information.py | 9 +- instana_client/models/custom_dependency.py | 9 +- .../models/custom_email_subject_prefix.py | 17 +- instana_client/models/custom_entity_model.py | 9 +- .../models/custom_entity_with_metadata.py | 9 +- .../custom_event_mobile_app_alert_rule.py | 9 +- .../models/custom_event_specification.py | 9 +- ...m_event_specification_with_last_updated.py | 9 +- .../models/custom_event_website_alert_rule.py | 9 +- instana_client/models/custom_metric.py | 9 +- .../custom_metric_application_alert_rule.py | 9 +- .../models/custom_payload_configuration.py | 9 +- instana_client/models/custom_payload_field.py | 9 +- .../custom_payload_with_last_updated.py | 9 +- .../models/custom_payload_with_version.py | 9 +- instana_client/models/custom_tag.py | 9 +- instana_client/models/customer_email.py | 9 +- instana_client/models/dashboard_api_token.py | 9 +- instana_client/models/database_integration.py | 9 +- .../models/deprecated_tag_filter.py | 9 +- instana_client/models/dns_configuration.py | 9 +- .../models/dns_configuration_update.py | 9 +- .../models/dns_filter_query_time.py | 9 +- .../models/dns_filter_target_value.py | 9 +- instana_client/models/duration.py | 9 +- instana_client/models/dynamic_field.py | 9 +- instana_client/models/dynamic_field_value.py | 9 +- instana_client/models/dynamic_parameter.py | 9 +- instana_client/models/dynamic_tag.py | 9 +- instana_client/models/edit_user.py | 9 +- instana_client/models/email_integration.py | 9 +- instana_client/models/empty_configuration.py | 9 +- instana_client/models/endpoint.py | 9 +- instana_client/models/endpoint_config.py | 9 +- .../models/endpoint_event_result.py | 9 +- instana_client/models/endpoint_item.py | 9 +- .../models/endpoint_metric_result.py | 9 +- instana_client/models/endpoint_node.py | 9 +- instana_client/models/endpoint_result.py | 9 +- instana_client/models/endpoint_simple.py | 9 +- instana_client/models/entity_count_rule.py | 9 +- .../models/entity_count_verification_rule.py | 9 +- instana_client/models/entity_health_info.py | 9 +- instana_client/models/entity_id.py | 9 +- instana_client/models/entity_metric.py | 9 +- instana_client/models/entity_metric_scope.py | 9 +- .../models/entity_verification_rule.py | 9 +- .../models/error_budget_alert_rule.py | 9 +- .../models/errors_application_alert_rule.py | 9 +- .../models/evaluation_detail_response.py | 9 +- instana_client/models/evaluation_list_item.py | 9 +- .../models/evaluation_list_response.py | 9 +- instana_client/models/evaluator.py | 9 +- instana_client/models/event.py | 9 +- .../models/event_filtering_configuration.py | 9 +- instana_client/models/event_result.py | 9 +- .../models/event_specification_info.py | 9 +- instana_client/models/extended_service.py | 9 +- .../models/failure_synthetic_alert_rule.py | 9 +- instana_client/models/filter_interface.py | 9 +- .../fixed_http_path_segment_matching_rule.py | 9 +- instana_client/models/fixed_time_window.py | 9 +- .../models/gateway_status_response.py | 9 +- .../models/generic_infra_alert_rule.py | 9 +- .../models/geo_location_configuration.py | 9 +- instana_client/models/geo_mapping_rule.py | 9 +- instana_client/models/geo_subdivision.py | 9 +- .../models/get_action_beacons_result.py | 13 +- instana_client/models/get_activities.py | 9 +- .../models/get_application_metrics.py | 9 +- instana_client/models/get_applications.py | 9 +- .../models/get_available_metrics_query.py | 9 +- .../models/get_available_plugins_query.py | 9 +- instana_client/models/get_call_groups.py | 9 +- instana_client/models/get_combined_metrics.py | 15 +- .../models/get_dynamic_parameter_values.py | 9 +- instana_client/models/get_endpoints.py | 9 +- .../models/get_infrastructure_groups_query.py | 15 +- .../models/get_infrastructure_query.py | 9 +- instana_client/models/get_metrics_result.py | 9 +- .../models/get_mobile_app_beacon_groups.py | 9 +- .../models/get_mobile_app_beacons.py | 9 +- .../models/get_mobile_app_metrics.py | 9 +- .../models/get_mobile_app_metrics_v2.py | 9 +- .../models/get_payload_keys_result.py | 9 +- instana_client/models/get_services.py | 9 +- .../get_session_replay_metadata_result.py | 13 +- instana_client/models/get_snapshots_query.py | 9 +- instana_client/models/get_test_result.py | 9 +- .../models/get_test_result_analytic.py | 9 +- instana_client/models/get_test_result_base.py | 9 +- instana_client/models/get_test_result_list.py | 9 +- .../models/get_test_summary_result.py | 9 +- .../models/get_trace_download_result_item.py | 9 +- instana_client/models/get_trace_groups.py | 9 +- instana_client/models/get_traces.py | 9 +- .../models/get_website_beacon_groups.py | 9 +- instana_client/models/get_website_beacons.py | 9 +- instana_client/models/get_website_metrics.py | 9 +- .../models/get_website_metrics_v2.py | 9 +- .../models/git_hub_configuration.py | 9 +- ..._application_alert_config_with_metadata.py | 9 +- .../global_applications_alert_config.py | 9 +- .../models/google_chat_integration.py | 9 +- instana_client/models/graph_edge.py | 9 +- instana_client/models/graph_node.py | 9 +- instana_client/models/group.py | 9 +- instana_client/models/group_by_tag.py | 9 +- instana_client/models/health_state.py | 9 +- instana_client/models/historic_baseline.py | 9 +- .../models/host_availability_rule.py | 9 +- .../models/http_action_configuration.py | 9 +- .../http_action_configuration_update.py | 9 +- instana_client/models/http_endpoint_config.py | 9 +- instana_client/models/http_endpoint_rule.py | 9 +- .../models/http_path_segment_matching_rule.py | 9 +- .../models/http_script_configuration.py | 9 +- .../http_script_configuration_update.py | 9 +- instana_client/models/hyper_param.py | 9 +- instana_client/models/icmp_configuration.py | 9 +- .../models/icmp_configuration_update.py | 9 +- instana_client/models/icmp_validation.py | 9 +- .../models/identity_provider_patch.py | 9 +- instana_client/models/idp_status_update.py | 9 +- instana_client/models/impacted_beacon_info.py | 9 +- instana_client/models/infra_alert_config.py | 9 +- .../infra_alert_config_with_metadata.py | 9 +- instana_client/models/infra_alert_rule.py | 9 +- instana_client/models/infra_event_result.py | 9 +- instana_client/models/infra_slo_entity.py | 9 +- instana_client/models/infra_time_threshold.py | 9 +- .../models/infrastructure_entities_result.py | 9 +- instana_client/models/infrastructure_group.py | 20 +- .../models/infrastructure_groups_result.py | 9 +- instana_client/models/infrastructure_item.py | 9 +- .../models/infrastructure_metric_result.py | 9 +- instana_client/models/instana_version_info.py | 9 +- instana_client/models/integration_overview.py | 9 +- instana_client/models/invitation.py | 9 +- instana_client/models/invitation_response.py | 9 +- instana_client/models/invitation_result.py | 9 +- instana_client/models/ip_filtering.py | 9 +- .../models/ip_filtering_rule_dto.py | 9 +- instana_client/models/ip_filtering_upsert.py | 9 +- .../models/ip_masking_configuration.py | 9 +- instana_client/models/js_stack_trace_line.py | 9 +- .../models/kubernetes_physical_context.py | 9 +- .../models/latency_blueprint_indicator.py | 9 +- instana_client/models/llm_egress_gateway.py | 9 +- .../models/llm_gateway_capability.py | 9 +- instana_client/models/llm_gateway_model.py | 9 +- instana_client/models/llm_gateway_service.py | 9 +- .../llm_gateway_test_connection_request.py | 9 +- instana_client/models/llm_model_price.py | 9 +- .../models/llm_model_price_metadata.py | 9 +- instana_client/models/location_status.py | 9 +- instana_client/models/log_alert_config.py | 9 +- .../models/log_alert_config_with_metadata.py | 9 +- instana_client/models/log_alert_rule.py | 9 +- instana_client/models/log_count_alert_rule.py | 9 +- instana_client/models/log_event_result.py | 9 +- instana_client/models/log_time_threshold.py | 9 +- instana_client/models/log_volume_group.py | 9 +- .../models/log_volume_usage_item.py | 9 +- .../models/log_volume_usage_result.py | 9 +- instana_client/models/logging_perspective.py | 9 +- instana_client/models/logs_api_response.py | 9 +- .../models/logs_application_alert_rule.py | 9 +- instana_client/models/logs_query.py | 9 +- instana_client/models/maintenance_config.py | 9 +- .../models/maintenance_config_scheduling.py | 9 +- .../models/maintenance_config_v2.py | 9 +- ...nce_config_v2_with_state_and_occurrence.py | 9 +- .../maintenance_config_with_last_updated.py | 9 +- instana_client/models/maintenance_window.py | 9 +- .../manual_alerting_channel_configuration.py | 9 +- instana_client/models/manual_close_info.py | 9 +- .../models/manual_service_config.py | 9 +- instana_client/models/mapping.py | 9 +- instana_client/models/mapping_overview.py | 9 +- ...tch_all_http_path_segment_matching_rule.py | 9 +- instana_client/models/match_expression_dto.py | 9 +- instana_client/models/meta_data.py | 9 +- instana_client/models/metric_api_result.py | 9 +- instana_client/models/metric_config.py | 9 +- instana_client/models/metric_configuration.py | 9 +- instana_client/models/metric_description.py | 9 +- instana_client/models/metric_field.py | 9 +- instana_client/models/metric_field_value.py | 9 +- instana_client/models/metric_instance.py | 9 +- instana_client/models/metric_item.py | 9 +- instana_client/models/metric_metadata.py | 9 +- instana_client/models/metric_pattern.py | 9 +- instana_client/models/metrics_result.py | 9 +- instana_client/models/metrics_result_item.py | 9 +- .../models/metrics_test_result_item.py | 9 +- instana_client/models/mobile_app.py | 9 +- .../models/mobile_app_alert_config.py | 9 +- .../mobile_app_alert_config_with_rbac_tag.py | 9 +- .../models/mobile_app_alert_rule.py | 9 +- .../models/mobile_app_beacon_groups_item.py | 9 +- .../models/mobile_app_beacon_groups_result.py | 9 +- .../models/mobile_app_beacon_result.py | 9 +- .../models/mobile_app_beacon_tag_group.py | 9 +- .../models/mobile_app_beacons_item.py | 9 +- .../models/mobile_app_event_result.py | 9 +- .../models/mobile_app_metric_result.py | 9 +- .../models/mobile_app_monitoring_beacon.py | 9 +- ...obile_app_monitoring_metric_description.py | 9 +- ...le_app_monitoring_metrics_configuration.py | 9 +- .../models/mobile_app_time_threshold.py | 9 +- instana_client/models/mobile_slo_entity.py | 9 +- instana_client/models/model_field.py | 9 +- .../models/monitored_entities_stats.py | 9 +- instana_client/models/monitoring_state.py | 9 +- .../models/multiple_scripts_configuration.py | 9 +- .../models/new_application_config.py | 9 +- .../models/new_business_perspective_config.py | 9 +- .../models/new_manual_service_config.py | 9 +- instana_client/models/notification.py | 9 +- instana_client/models/ns1_integration.py | 9 +- instana_client/models/o_auth_config.py | 9 +- instana_client/models/o_auth_integration.py | 9 +- instana_client/models/o_auth_token.py | 9 +- instana_client/models/occurrence.py | 9 +- .../models/office365_integration.py | 9 +- .../models/one_time_maintenance_window.py | 9 +- instana_client/models/opsgenie_integration.py | 9 +- instana_client/models/order.py | 9 +- .../models/pagerduty_integration.py | 9 +- instana_client/models/paginated_result.py | 9 +- instana_client/models/pagination.py | 9 +- instana_client/models/parameter.py | 9 +- instana_client/models/parameter_value.py | 9 +- ...rameter_http_path_segment_matching_rule.py | 9 +- instana_client/models/physical_context.py | 9 +- instana_client/models/plugin_result.py | 9 +- instana_client/models/policy.py | 15 +- instana_client/models/policy_runnable.py | 9 +- instana_client/models/policy_scheduling.py | 9 +- ...st_mobile_app_source_map_config_request.py | 9 +- .../models/post_snapshots_result.py | 9 +- instana_client/models/prefix_object.py | 15 +- instana_client/models/problem.py | 9 +- .../models/prometheus_webhook_integration.py | 9 +- instana_client/models/rbac_restrictions.py | 9 +- .../models/recurrent_maintenance_window.py | 9 +- instana_client/models/release.py | 9 +- instana_client/models/release_scope.py | 9 +- .../models/release_with_metadata.py | 9 +- instana_client/models/retention_period.py | 9 +- .../models/role_mapping_overview.py | 9 +- instana_client/models/rolling_time_window.py | 9 +- instana_client/models/rule_input.py | 9 +- ...e_with_threshold_application_alert_rule.py | 9 +- .../rule_with_threshold_infra_alert_rule.py | 9 +- .../rule_with_threshold_log_alert_rule.py | 9 +- ...le_with_threshold_mobile_app_alert_rule.py | 9 +- .../rule_with_threshold_website_alert_rule.py | 9 +- instana_client/models/run_configuration.py | 9 +- .../models/run_evaluation_response.py | 9 +- .../models/salesforce_integration.py | 9 +- instana_client/models/sampling_metadata.py | 9 +- .../models/saturation_blueprint_indicator.py | 9 +- instana_client/models/scope_binding.py | 9 +- instana_client/models/search_field_result.py | 11 +- instana_client/models/service.py | 9 +- instana_client/models/service_config.py | 9 +- instana_client/models/service_event_result.py | 9 +- instana_client/models/service_item.py | 9 +- .../models/service_level_indicator.py | 9 +- .../service_level_objective_alert_rule.py | 9 +- .../models/service_levels_alert_config.py | 9 +- ...rvice_levels_alert_config_with_rbac_tag.py | 9 +- .../models/service_levels_alert_rule.py | 9 +- .../models/service_levels_burn_rate_config.py | 9 +- .../service_levels_burn_rate_time_windows.py | 9 +- .../service_levels_static_threshold_config.py | 9 +- .../models/service_levels_time_threshold.py | 9 +- ...vice_levelse_alert_config_with_metadata.py | 9 +- instana_client/models/service_map.py | 9 +- .../models/service_map_connection.py | 9 +- .../models/service_matching_rule.py | 9 +- .../models/service_metric_result.py | 9 +- instana_client/models/service_node.py | 9 +- .../service_now_enhanced_integration.py | 9 +- .../models/service_now_integration.py | 9 +- instana_client/models/service_result.py | 9 +- instana_client/models/service_scope.py | 9 +- .../models/service_scope_with_metadata.py | 9 +- instana_client/models/service_scoped_to.py | 9 +- .../models/service_scoped_to_with_metadata.py | 9 +- instana_client/models/service_simple.py | 9 +- .../models/session_replay_metadata.py | 23 +- .../models/session_replay_timestamps.py | 13 +- instana_client/models/session_settings.py | 9 +- .../models/simple_metric_configuration.py | 9 +- instana_client/models/slack_integration.py | 9 +- instana_client/models/sli_configuration.py | 9 +- .../sli_configuration_with_last_updated.py | 9 +- instana_client/models/sli_entity.py | 9 +- instana_client/models/sli_report.py | 9 +- .../models/slo_config_with_rbac_tag.py | 9 +- instana_client/models/slo_entity.py | 9 +- instana_client/models/slo_health_snapshot.py | 9 +- .../models/slo_health_snapshot_item.py | 9 +- instana_client/models/slo_report.py | 9 +- .../models/slowness_application_alert_rule.py | 9 +- .../models/slowness_mobile_app_alert_rule.py | 9 +- .../models/slowness_website_alert_rule.py | 9 +- instana_client/models/snapshot_item.py | 11 +- instana_client/models/snapshot_preview.py | 9 +- instana_client/models/snapshot_result.py | 9 +- instana_client/models/software_user.py | 9 +- instana_client/models/software_version.py | 9 +- instana_client/models/source_map_file_blob.py | 9 +- instana_client/models/source_map_file_meta.py | 9 +- .../models/source_map_upload_config.py | 9 +- .../models/source_map_upload_configs.py | 9 +- instana_client/models/span_excerpt.py | 9 +- instana_client/models/span_relation.py | 9 +- .../specific_js_errors_website_alert_rule.py | 9 +- instana_client/models/splunk_integration.py | 9 +- .../models/ssl_certificate_configuration.py | 9 +- .../ssl_certificate_configuration_update.py | 9 +- .../models/ssl_certificate_validation.py | 9 +- instana_client/models/stack_trace_item.py | 9 +- instana_client/models/stack_trace_line.py | 9 +- .../models/static_baseline_threshold_rule.py | 9 +- instana_client/models/static_string_field.py | 9 +- instana_client/models/static_threshold.py | 9 +- .../models/static_threshold_rule.py | 9 +- .../status_code_application_alert_rule.py | 9 +- .../status_code_mobile_app_alert_rule.py | 9 +- .../models/status_code_website_alert_rule.py | 9 +- .../models/synthetic_alert_config.py | 9 +- .../synthetic_alert_config_with_metadata.py | 9 +- .../synthetic_alert_config_with_rbac_tag.py | 9 +- instana_client/models/synthetic_alert_rule.py | 9 +- .../models/synthetic_bulk_response.py | 9 +- .../models/synthetic_call_config.py | 9 +- instana_client/models/synthetic_call_rule.py | 9 +- .../synthetic_call_with_defaults_config.py | 9 +- .../models/synthetic_configuration.py | 9 +- .../models/synthetic_configuration_update.py | 9 +- instana_client/models/synthetic_credential.py | 11 +- instana_client/models/synthetic_datacenter.py | 9 +- .../synthetic_datacenter_configuration.py | 9 +- instana_client/models/synthetic_geo_point.py | 9 +- instana_client/models/synthetic_location.py | 9 +- .../synthetic_location_configuration.py | 9 +- .../models/synthetic_metric_configuration.py | 9 +- .../models/synthetic_metric_tag_group.py | 9 +- .../models/synthetic_playback_capabilities.py | 13 +- ...rget_value_list_dns_filter_target_value.py | 9 +- ...st_icmp_validation_list_icmp_validation.py | 9 +- ...st_network_profile_list_network_profile.py | 9 +- ...idation_list_ssl_certificate_validation.py | 9 +- ...resource_update_list_string_list_string.py | 9 +- ...ce_update_map_string_string_list_string.py | 9 +- instana_client/models/synthetic_slo_entity.py | 9 +- instana_client/models/synthetic_test.py | 9 +- instana_client/models/synthetic_test_cicd.py | 9 +- .../synthetic_test_cicd_customization.py | 9 +- .../models/synthetic_test_cicd_item.py | 9 +- .../models/synthetic_test_cicd_response.py | 9 +- .../models/synthetic_test_deep_update.py | 9 +- .../models/synthetic_test_shallow_update.py | 9 +- .../models/synthetic_test_update.py | 9 +- .../models/synthetic_time_threshold.py | 9 +- .../models/synthetic_type_configuration.py | 9 +- .../synthetic_type_configuration_update.py | 9 +- .../models/synthetics_event_result.py | 9 +- instana_client/models/system_rule.py | 9 +- instana_client/models/system_rule_label.py | 9 +- instana_client/models/tag.py | 13 +- instana_client/models/tag_catalog.py | 9 +- .../models/tag_filter_expression.py | 9 +- .../models/tag_filter_expression_element.py | 9 +- instana_client/models/tag_matcher_dto.py | 9 +- instana_client/models/tag_tree_level.py | 9 +- instana_client/models/tag_tree_node.py | 9 +- instana_client/models/tag_tree_tag.py | 9 +- .../models/test_common_properties.py | 9 +- .../models/test_connection_response.py | 15 +- instana_client/models/test_last_error.py | 9 +- instana_client/models/test_result.py | 9 +- .../models/test_result_common_properties.py | 9 +- .../models/test_result_detail_data.py | 9 +- instana_client/models/test_result_item.py | 9 +- .../models/test_result_list_item.py | 9 +- .../models/test_result_list_result.py | 9 +- instana_client/models/test_result_metadata.py | 9 +- .../models/test_result_subtransaction.py | 9 +- instana_client/models/threshold.py | 9 +- .../models/threshold_config_rule.py | 9 +- instana_client/models/threshold_rule.py | 9 +- .../throughput_application_alert_rule.py | 9 +- .../throughput_mobile_app_alert_rule.py | 9 +- .../models/throughput_website_alert_rule.py | 9 +- instana_client/models/time_config.py | 9 +- instana_client/models/time_frame.py | 9 +- instana_client/models/time_window.py | 9 +- instana_client/models/topology.py | 9 +- instana_client/models/trace.py | 9 +- .../trace_activity_tree_node_details.py | 9 +- .../models/trace_download_result.py | 9 +- instana_client/models/trace_groups_item.py | 9 +- instana_client/models/trace_groups_result.py | 9 +- ...trace_impact_application_time_threshold.py | 9 +- instana_client/models/trace_item.py | 9 +- instana_client/models/trace_result.py | 9 +- .../models/trace_sampling_config.py | 9 +- .../models/traffic_blueprint_indicator.py | 9 +- instana_client/models/trigger.py | 9 +- instana_client/models/type_configuration.py | 9 +- instana_client/models/unified_beacon.py | 11 +- ...pported_http_path_segment_matching_rule.py | 9 +- .../models/update_evaluation_request.py | 9 +- .../updated_business_perspective_config.py | 9 +- instana_client/models/usage_result.py | 9 +- instana_client/models/usage_result_items.py | 9 +- instana_client/models/user_basic_result.py | 9 +- .../user_impact_mobile_app_time_threshold.py | 9 +- .../user_impact_website_time_threshold.py | 9 +- instana_client/models/user_result.py | 9 +- instana_client/models/users_result.py | 9 +- .../validated_alerting_channel_input_info.py | 9 +- .../validated_alerting_configuration.py | 9 +- ...nce_config_v2_with_state_and_occurrence.py | 9 +- ...alidated_maintenance_config_with_status.py | 9 +- .../models/victor_ops_integration.py | 9 +- ...ns_in_period_application_time_threshold.py | 9 +- ...ons_in_period_mobile_app_time_threshold.py | 9 +- ...ations_in_period_website_time_threshold.py | 9 +- ..._in_sequence_application_time_threshold.py | 9 +- ...ations_in_sequence_infra_time_threshold.py | 9 +- ...olations_in_sequence_log_time_threshold.py | 9 +- ...s_in_sequence_mobile_app_time_threshold.py | 9 +- ...ns_in_sequence_synthetic_time_threshold.py | 9 +- ...ions_in_sequence_website_time_threshold.py | 9 +- .../watson_ai_ops_webhook_integration.py | 9 +- .../models/webex_teams_webhook_integration.py | 9 +- instana_client/models/webhook_integration.py | 9 +- .../models/webpage_action_configuration.py | 9 +- .../webpage_action_configuration_update.py | 9 +- .../models/webpage_script_configuration.py | 9 +- .../webpage_script_configuration_update.py | 9 +- instana_client/models/website.py | 9 +- instana_client/models/website_alert_config.py | 9 +- .../website_alert_config_with_metadata.py | 9 +- .../website_alert_config_with_rbac_tag.py | 9 +- instana_client/models/website_alert_rule.py | 9 +- instana_client/models/website_apdex_entity.py | 9 +- .../models/website_beacon_groups_item.py | 9 +- .../models/website_beacon_groups_result.py | 9 +- .../models/website_beacon_result.py | 9 +- .../models/website_beacon_tag_group.py | 9 +- instana_client/models/website_beacons_item.py | 9 +- .../models/website_event_based_sli_entity.py | 9 +- instana_client/models/website_event_result.py | 9 +- .../models/website_metric_result.py | 9 +- .../models/website_monitoring_beacon.py | 9 +- .../website_monitoring_metric_description.py | 9 +- ...ebsite_monitoring_metrics_configuration.py | 9 +- instana_client/models/website_slo_entity.py | 9 +- .../models/website_time_based_sli_entity.py | 9 +- .../models/website_time_threshold.py | 9 +- instana_client/models/widget.py | 9 +- instana_client/models/with_meta_data.py | 9 +- instana_client/models/with_resolved_name.py | 9 +- .../models/z_chat_ops_integration.py | 9 +- instana_client/rest.py | 11 +- openapi-generator-config.json | 2 +- openapi.yaml | 861 ++++++++++++++++-- pyproject.toml | 2 +- requirements.txt | 3 +- sanity_test.sh | 4 + setup.py | 13 +- 676 files changed, 4832 insertions(+), 4100 deletions(-) diff --git a/.gitignore b/.gitignore index 43995bd4..65b06b95 100644 --- a/.gitignore +++ b/.gitignore @@ -62,5 +62,5 @@ docs/_build/ # PyBuilder target/ -#Ipython Notebook +# Ipython Notebook .ipynb_checkpoints diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 672534dd..15c0253d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=instana_client -pytest-3.9: - extends: .pytest - image: python:3.9-alpine pytest-3.10: extends: .pytest image: python:3.10-alpine @@ -29,3 +26,6 @@ pytest-3.12: pytest-3.13: extends: .pytest image: python:3.13-alpine +pytest-3.14: + extends: .pytest + image: python:3.14-alpine diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 180d7b4d..d8f21fa3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1306,12 +1306,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_api_group_to_team_role_migration.py -test/test_application_batch_business_criticality_update.py -test/test_calls_event_result.py -test/test_logging_perspective.py -test/test_mapping.py -test/test_mapping_overview.py -test/test_slo_health_snapshot.py -test/test_slo_health_snapshot_item.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 368fd8fd..14d6b5dc 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.15.0 +7.23.0 diff --git a/.travis.yml b/.travis.yml index cd6cdd4d..6db03b5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.9" - "3.10" - "3.11" - "3.12" - "3.13" + - "3.14" # uncomment the following if needed - #- "3.13-dev" # 3.13 development branch + #- "3.14-dev" # 3.14 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/README.md b/README.md index 07bdde48..2fd9e18c 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,14 @@ Documentation for INSTANA REST API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.328.1128 +- API version: 1.329.1386 +- Generator version: 7.23.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [http://instana.com](http://instana.com) ## Requirements. -Python 3.9+ +Python 3.10+ ## Installation & Usage ### pip install @@ -465,6 +466,8 @@ Class | Method | HTTP request | Description *PoliciesApi* | [**add_policies**](docs/PoliciesApi.md#add_policies) | **POST** /api/automation/policies/bulk | Create automation policies. *PoliciesApi* | [**add_policy**](docs/PoliciesApi.md#add_policy) | **POST** /api/automation/policies | Create an automation policy. *PoliciesApi* | [**delete_policy**](docs/PoliciesApi.md#delete_policy) | **DELETE** /api/automation/policies/{id} | Deletes an automation policy by identifier. +*PoliciesApi* | [**disable_policy**](docs/PoliciesApi.md#disable_policy) | **PUT** /api/automation/policies/{id}/disable | Disables an automation policy by identifier. +*PoliciesApi* | [**enable_policy**](docs/PoliciesApi.md#enable_policy) | **PUT** /api/automation/policies/{id}/enable | Enables an automation policy by identifier. *PoliciesApi* | [**get_policies**](docs/PoliciesApi.md#get_policies) | **GET** /api/automation/policies | Get all automation policies. *PoliciesApi* | [**get_policy_by_id**](docs/PoliciesApi.md#get_policy_by_id) | **GET** /api/automation/policies/{id} | Get an automation policy by ID. *PoliciesApi* | [**update_policy**](docs/PoliciesApi.md#update_policy) | **PUT** /api/automation/policies/{id} | Updates an automation policy by identifier. diff --git a/docs/AdaptiveBaseline.md b/docs/AdaptiveBaseline.md index 00655c60..2988ecdd 100644 --- a/docs/AdaptiveBaseline.md +++ b/docs/AdaptiveBaseline.md @@ -5,7 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**adaptability** | **float** | | [optional] **deviation_factor** | **float** | | [optional] +**minimum_absolute_delta** | **float** | | [optional] +**seasonality** | **str** | | [optional] +**sensitivity_mode** | **str** | | [optional] +**sensitivity_value** | **float** | | [optional] ## Example diff --git a/docs/AdaptiveThresholdRule.md b/docs/AdaptiveThresholdRule.md index 29f40bb6..e298ada0 100644 --- a/docs/AdaptiveThresholdRule.md +++ b/docs/AdaptiveThresholdRule.md @@ -5,7 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**adaptability** | **float** | | [optional] **deviation_factor** | **float** | | [optional] +**minimum_absolute_delta** | **float** | | [optional] +**seasonality** | **str** | | [optional] +**sensitivity_mode** | **str** | | [optional] +**sensitivity_value** | **float** | | [optional] ## Example diff --git a/docs/ApplicationAlertConfigurationApi.md b/docs/ApplicationAlertConfigurationApi.md index e4633552..935ae4ea 100644 --- a/docs/ApplicationAlertConfigurationApi.md +++ b/docs/ApplicationAlertConfigurationApi.md @@ -296,7 +296,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) - application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"historicBaseline","operator":">=","seasonality":"DAILY","baseline":[[0,1,3],[600000,1,3]],"deviationFactor":3,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig | + application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"adaptiveBaseline","operator":">=","sensitivityMode":"STANDARD_DEVIATIONS","sensitivityValue":3.0,"minimumAbsoluteDelta":0.0,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig | try: # Create Smart Alert Config @@ -954,7 +954,7 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) id = 'DKp0JArJRAiQIav9CoKSWQ' # str | ID of a specific Smart Alert Configuration to update. - application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"historicBaseline","operator":">=","seasonality":"DAILY","baseline":[[0,1,3],[600000,1,3]],"deviationFactor":3,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig | + application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"adaptiveBaseline","operator":">=","sensitivityMode":"STANDARD_DEVIATIONS","sensitivityValue":3.0,"minimumAbsoluteDelta":0.0,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig | try: # Update Smart Alert Config diff --git a/docs/ApplicationSettingsApi.md b/docs/ApplicationSettingsApi.md index 224373bf..04e96bb2 100644 --- a/docs/ApplicationSettingsApi.md +++ b/docs/ApplicationSettingsApi.md @@ -620,6 +620,7 @@ void (empty response body) **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | **403** | Insufficient permissions or limited in access. | - | +**412** | Pre-Condition Failed — the targeted AP is a ContributionFilter AP managed by a group or team and cannot be deleted directly. | - | [[Back to top]](#) [[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/GetInfrastructureGroupsQuery.md b/docs/GetInfrastructureGroupsQuery.md index e9c977ac..b7ddb8db 100644 --- a/docs/GetInfrastructureGroupsQuery.md +++ b/docs/GetInfrastructureGroupsQuery.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group_by** | **List[str]** | Entity grouping tag. Use the Instana Analyze Infrastructure dashboard to determine the entity grouping tag name. | +**include_member_ids** | **bool** | Includes the IDs of each group’s member entities in the response | [optional] **metrics** | [**List[SimpleMetricConfiguration]**](SimpleMetricConfiguration.md) | | [optional] **missing_placeholder** | **str** | Placeholder value for missing tag values | [optional] **order** | [**Order**](Order.md) | | [optional] diff --git a/docs/InfrastructureGroup.md b/docs/InfrastructureGroup.md index 6b0626aa..e26b3f91 100644 --- a/docs/InfrastructureGroup.md +++ b/docs/InfrastructureGroup.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **adjusted_granularities** | **Dict[str, int]** | map of metric keys to their adjusted granularity (in milliseconds) | [optional] **count** | **int** | number of entities in this group | [optional] +**member_ids** | **List[str]** | Snapshot IDs of entities in this group | [optional] **metrics** | **Dict[str, List[List[float]]]** | map of metric keys to array of timestamp,value pairs | [optional] **poll_rate** | **int** | max poll rate across this group | [optional] **sampling_metadata** | [**SamplingMetadata**](SamplingMetadata.md) | | [optional] diff --git a/docs/LLMEgressGateway.md b/docs/LLMEgressGateway.md index f5360f53..e5247487 100644 --- a/docs/LLMEgressGateway.md +++ b/docs/LLMEgressGateway.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **created_at** | **str** | | [optional] **description** | **str** | | [optional] **enabled** | **bool** | | [optional] -**id** | **str** | | +**id** | **UUID** | | **instana_agents** | **object** | | [optional] **metadata** | **object** | | [optional] **model** | [**LLMGatewayModel**](LLMGatewayModel.md) | | diff --git a/docs/LLMEvaluationApi.md b/docs/LLMEvaluationApi.md index 4d12fbf7..29965469 100644 --- a/docs/LLMEvaluationApi.md +++ b/docs/LLMEvaluationApi.md @@ -1022,6 +1022,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request - Name is blank, reserved, already in use, or a built-in evaluator is being renamed | - | [[Back to top]](#) [[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/MobileAppConfigurationApi.md b/docs/MobileAppConfigurationApi.md index a0cabb84..e9af178e 100644 --- a/docs/MobileAppConfigurationApi.md +++ b/docs/MobileAppConfigurationApi.md @@ -1727,7 +1727,7 @@ with instana_client.ApiClient(configuration) as api_client: file_format = 'file_format_example' # str | File format. Example tgz file_id = 'file_id_example' # str | Identifier of your app. For example, com.instana.ios.InstanaExampleApp file_type = 'file_type_example' # str | dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file - source_map = None # bytearray | Path to your local symbol file + source_map = None # bytes | Path to your local symbol file try: # Upload sourcemap file for mobile app @@ -1751,7 +1751,7 @@ Name | Type | Description | Notes **file_format** | **str**| File format. Example tgz | **file_id** | **str**| Identifier of your app. For example, com.instana.ios.InstanaExampleApp | **file_type** | **str**| dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file | - **source_map** | **bytearray**| Path to your local symbol file | + **source_map** | **bytes**| Path to your local symbol file | ### Return type diff --git a/docs/PoliciesApi.md b/docs/PoliciesApi.md index a2a0320f..2c18feaa 100644 --- a/docs/PoliciesApi.md +++ b/docs/PoliciesApi.md @@ -7,6 +7,8 @@ Method | HTTP request | Description [**add_policies**](PoliciesApi.md#add_policies) | **POST** /api/automation/policies/bulk | Create automation policies. [**add_policy**](PoliciesApi.md#add_policy) | **POST** /api/automation/policies | Create an automation policy. [**delete_policy**](PoliciesApi.md#delete_policy) | **DELETE** /api/automation/policies/{id} | Deletes an automation policy by identifier. +[**disable_policy**](PoliciesApi.md#disable_policy) | **PUT** /api/automation/policies/{id}/disable | Disables an automation policy by identifier. +[**enable_policy**](PoliciesApi.md#enable_policy) | **PUT** /api/automation/policies/{id}/enable | Enables an automation policy by identifier. [**get_policies**](PoliciesApi.md#get_policies) | **GET** /api/automation/policies | Get all automation policies. [**get_policy_by_id**](PoliciesApi.md#get_policy_by_id) | **GET** /api/automation/policies/{id} | Get an automation policy by ID. [**update_policy**](PoliciesApi.md#update_policy) | **PUT** /api/automation/policies/{id} | Updates an automation policy by identifier. @@ -256,6 +258,170 @@ 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) +# **disable_policy** +> Policy disable_policy(id) + +Disables an automation policy by identifier. + +Disables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.policy import Policy +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.PoliciesApi(api_client) + id = 'a14700b0-401b-47eb-a751-deda0035fde3' # str | Automation policy ID to disable + + try: + # Disables an automation policy by identifier. + api_response = api_instance.disable_policy(id) + print("The response of PoliciesApi->disable_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PoliciesApi->disable_policy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Automation policy ID to disable | + +### Return type + +[**Policy**](Policy.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Automation policy successfully disabled. | - | +**403** | Insufficient permissions. | - | +**404** | Automation policy not found. | - | +**500** | 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) + +# **enable_policy** +> Policy enable_policy(id) + +Enables an automation policy by identifier. + +Enables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.policy import Policy +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.PoliciesApi(api_client) + id = 'a14700b0-401b-47eb-a751-deda0035fde3' # str | Automation policy ID to enable + + try: + # Enables an automation policy by identifier. + api_response = api_instance.enable_policy(id) + print("The response of PoliciesApi->enable_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PoliciesApi->enable_policy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Automation policy ID to enable | + +### Return type + +[**Policy**](Policy.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Automation policy successfully enabled. | - | +**403** | Insufficient permissions. | - | +**404** | Automation policy not found. | - | +**500** | 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_policies** > List[Policy] get_policies(trigger_type=trigger_type, trigger_id=trigger_id, execution_type=execution_type, action_id=action_id) diff --git a/docs/Policy.md b/docs/Policy.md index 2076d0b2..135b2c39 100644 --- a/docs/Policy.md +++ b/docs/Policy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | Policy description. | [optional] +**enabled** | **bool** | Flag to enable or disable the policy. Enabled by default. | [optional] [default to True] **id** | **str** | Policy identifier. | [readonly] **name** | **str** | Policy name. | **tags** | **List[str]** | A list of policy tags. | [optional] diff --git a/docs/TestResultDetailData.md b/docs/TestResultDetailData.md index ab032e02..7994fcf6 100644 --- a/docs/TestResultDetailData.md +++ b/docs/TestResultDetailData.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **har** | **Dict[str, object]** | | [optional] -**image_files** | **Dict[str, bytearray]** | | [optional] +**image_files** | **Dict[str, bytes]** | | [optional] **log_files** | **Dict[str, str]** | | [optional] **logs** | **str** | | [optional] **subtransaction_avg_metrics** | **Dict[str, object]** | | [optional] **subtransactions** | [**List[TestResultSubtransaction]**](TestResultSubtransaction.md) | | [optional] **test_id** | **str** | | [optional] **test_result_id** | **str** | | [optional] -**videos** | **bytearray** | | [optional] +**videos** | **bytes** | | [optional] ## Example diff --git a/docs/WebsiteConfigurationApi.md b/docs/WebsiteConfigurationApi.md index b23e58ec..57881d76 100644 --- a/docs/WebsiteConfigurationApi.md +++ b/docs/WebsiteConfigurationApi.md @@ -1429,7 +1429,7 @@ with instana_client.ApiClient(configuration) as api_client: api_instance = instana_client.WebsiteConfigurationApi(api_client) website_id = 'UhzF-fWORlyVLHDlvutYYQ' # str | Website ID source_map_config_id = '97e0ad312110d3ad' # str | Source Map Config ID - source_map = None # bytearray | Local Source Map file path + source_map = None # bytes | Local Source Map file path url = 'url_example' # str | URL of the website file_format = 'file_format_example' # str | (optional) @@ -1451,7 +1451,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **website_id** | **str**| Website ID | **source_map_config_id** | **str**| Source Map Config ID | - **source_map** | **bytearray**| Local Source Map file path | + **source_map** | **bytes**| Local Source Map file path | **url** | **str**| URL of the website | **file_format** | **str**| | [optional] diff --git a/instana_client/__init__.py b/instana_client/__init__.py index 913e16d4..0d67e4ef 100644 --- a/instana_client/__init__.py +++ b/instana_client/__init__.py @@ -7,7 +7,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.1.4" +__version__ = "1.1.5" # Define package exports __all__ = [ @@ -675,676 +675,7 @@ "ZChatOpsIntegration", ] -if __import__("typing").TYPE_CHECKING: - # import apis into sdk package - from instana_client.api.ai_management_api import AIManagementApi as AIManagementApi - from instana_client.api.api_token_api import APITokenApi as APITokenApi - from instana_client.api.action_catalog_api import ActionCatalogApi as ActionCatalogApi - from instana_client.api.action_history_api import ActionHistoryApi as ActionHistoryApi - from instana_client.api.apdex_report_api import ApdexReportApi as ApdexReportApi - from instana_client.api.apdex_settings_api import ApdexSettingsApi as ApdexSettingsApi - from instana_client.api.application_alert_configuration_api import ApplicationAlertConfigurationApi as ApplicationAlertConfigurationApi - from instana_client.api.application_analyze_api import ApplicationAnalyzeApi as ApplicationAnalyzeApi - from instana_client.api.application_catalog_api import ApplicationCatalogApi as ApplicationCatalogApi - from instana_client.api.application_metrics_api import ApplicationMetricsApi as ApplicationMetricsApi - from instana_client.api.application_resources_api import ApplicationResourcesApi as ApplicationResourcesApi - from instana_client.api.application_settings_api import ApplicationSettingsApi as ApplicationSettingsApi - from instana_client.api.application_topology_api import ApplicationTopologyApi as ApplicationTopologyApi - from instana_client.api.audit_log_api import AuditLogApi as AuditLogApi - from instana_client.api.authentication_api import AuthenticationApi as AuthenticationApi - from instana_client.api.business_monitoring_api import BusinessMonitoringApi as BusinessMonitoringApi - from instana_client.api.custom_dashboards_api import CustomDashboardsApi as CustomDashboardsApi - from instana_client.api.custom_entities_api import CustomEntitiesApi as CustomEntitiesApi - from instana_client.api.end_user_monitoring_api import EndUserMonitoringApi as EndUserMonitoringApi - from instana_client.api.event_settings_api import EventSettingsApi as EventSettingsApi - from instana_client.api.events_api import EventsApi as EventsApi - from instana_client.api.global_application_alert_configuration_api import GlobalApplicationAlertConfigurationApi as GlobalApplicationAlertConfigurationApi - from instana_client.api.groups_api import GroupsApi as GroupsApi - from instana_client.api.health_api import HealthApi as HealthApi - from instana_client.api.host_agent_api import HostAgentApi as HostAgentApi - from instana_client.api.ip_filtering_api import IPFilteringApi as IPFilteringApi - from instana_client.api.infrastructure_alert_configuration_api import InfrastructureAlertConfigurationApi as InfrastructureAlertConfigurationApi - from instana_client.api.infrastructure_analyze_api import InfrastructureAnalyzeApi as InfrastructureAnalyzeApi - from instana_client.api.infrastructure_catalog_api import InfrastructureCatalogApi as InfrastructureCatalogApi - from instana_client.api.infrastructure_metrics_api import InfrastructureMetricsApi as InfrastructureMetricsApi - from instana_client.api.infrastructure_resources_api import InfrastructureResourcesApi as InfrastructureResourcesApi - from instana_client.api.infrastructure_topology_api import InfrastructureTopologyApi as InfrastructureTopologyApi - from instana_client.api.llm_evaluation_api import LLMEvaluationApi as LLMEvaluationApi - from instana_client.api.llm_price_configuration_api import LLMPriceConfigurationApi as LLMPriceConfigurationApi - from instana_client.api.log_alert_configuration_api import LogAlertConfigurationApi as LogAlertConfigurationApi - from instana_client.api.logging_analyze_api import LoggingAnalyzeApi as LoggingAnalyzeApi - from instana_client.api.maintenance_configuration_api import MaintenanceConfigurationApi as MaintenanceConfigurationApi - from instana_client.api.mobile_app_analyze_api import MobileAppAnalyzeApi as MobileAppAnalyzeApi - from instana_client.api.mobile_app_catalog_api import MobileAppCatalogApi as MobileAppCatalogApi - from instana_client.api.mobile_app_configuration_api import MobileAppConfigurationApi as MobileAppConfigurationApi - from instana_client.api.mobile_app_metrics_api import MobileAppMetricsApi as MobileAppMetricsApi - from instana_client.api.mobile_app_session_replay_api import MobileAppSessionReplayApi as MobileAppSessionReplayApi - from instana_client.api.policies_api import PoliciesApi as PoliciesApi - from instana_client.api.releases_api import ReleasesApi as ReleasesApi - from instana_client.api.roles_api import RolesApi as RolesApi - from instana_client.api.sli_report_api import SLIReportApi as SLIReportApi - from instana_client.api.sli_settings_api import SLISettingsApi as SLISettingsApi - from instana_client.api.slo_catalog_for_mobile_app_api import SLOCatalogForMobileAppApi as SLOCatalogForMobileAppApi - from instana_client.api.slo_configurations_api import SLOConfigurationsApi as SLOConfigurationsApi - from instana_client.api.slo_correction_configurations_api import SLOCorrectionConfigurationsApi as SLOCorrectionConfigurationsApi - from instana_client.api.slo_correction_windows_api import SLOCorrectionWindowsApi as SLOCorrectionWindowsApi - from instana_client.api.service_levels_alert_configuration_api import ServiceLevelsAlertConfigurationApi as ServiceLevelsAlertConfigurationApi - from instana_client.api.service_levels_objective_slo_report_api import ServiceLevelsObjectiveSLOReportApi as ServiceLevelsObjectiveSLOReportApi - from instana_client.api.session_settings_api import SessionSettingsApi as SessionSettingsApi - from instana_client.api.synthetic_alert_configuration_api import SyntheticAlertConfigurationApi as SyntheticAlertConfigurationApi - from instana_client.api.synthetic_calls_api import SyntheticCallsApi as SyntheticCallsApi - from instana_client.api.synthetic_catalog_api import SyntheticCatalogApi as SyntheticCatalogApi - from instana_client.api.synthetic_metrics_api import SyntheticMetricsApi as SyntheticMetricsApi - from instana_client.api.synthetic_settings_api import SyntheticSettingsApi as SyntheticSettingsApi - from instana_client.api.synthetic_test_playback_results_api import SyntheticTestPlaybackResultsApi as SyntheticTestPlaybackResultsApi - from instana_client.api.teams_api import TeamsApi as TeamsApi - from instana_client.api.usage_api import UsageApi as UsageApi - from instana_client.api.user_api import UserApi as UserApi - from instana_client.api.website_analyze_api import WebsiteAnalyzeApi as WebsiteAnalyzeApi - from instana_client.api.website_catalog_api import WebsiteCatalogApi as WebsiteCatalogApi - from instana_client.api.website_configuration_api import WebsiteConfigurationApi as WebsiteConfigurationApi - from instana_client.api.website_metrics_api import WebsiteMetricsApi as WebsiteMetricsApi - from instana_client.api.default_api import DefaultApi as DefaultApi - - # import ApiClient - from instana_client.api_response import ApiResponse as ApiResponse - from instana_client.api_client import ApiClient as ApiClient - from instana_client.configuration import Configuration as Configuration - from instana_client.exceptions import OpenApiException as OpenApiException - from instana_client.exceptions import ApiTypeError as ApiTypeError - from instana_client.exceptions import ApiValueError as ApiValueError - from instana_client.exceptions import ApiKeyError as ApiKeyError - from instana_client.exceptions import ApiAttributeError as ApiAttributeError - from instana_client.exceptions import ApiException as ApiException - - # import models into sdk package - from instana_client.models.abstract_integration import AbstractIntegration as AbstractIntegration - from instana_client.models.abstract_rule import AbstractRule as AbstractRule - from instana_client.models.access_rule import AccessRule as AccessRule - from instana_client.models.action import Action as Action - from instana_client.models.action_beacon import ActionBeacon as ActionBeacon - from instana_client.models.action_configuration import ActionConfiguration as ActionConfiguration - from instana_client.models.action_instance import ActionInstance as ActionInstance - from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry as ActionInstanceMetadataEntry - from instana_client.models.action_instance_parameter import ActionInstanceParameter as ActionInstanceParameter - from instana_client.models.action_instance_request import ActionInstanceRequest as ActionInstanceRequest - from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters as ActionInstanceRequestParameters - from instana_client.models.action_match import ActionMatch as ActionMatch - from instana_client.models.action_search_space import ActionSearchSpace as ActionSearchSpace - from instana_client.models.adaptive_baseline import AdaptiveBaseline as AdaptiveBaseline - from instana_client.models.adaptive_threshold_rule import AdaptiveThresholdRule as AdaptiveThresholdRule - from instana_client.models.adjusted_timeframe import AdjustedTimeframe as AdjustedTimeframe - from instana_client.models.advanced_custom_blueprint_indicator import AdvancedCustomBlueprintIndicator as AdvancedCustomBlueprintIndicator - from instana_client.models.advanced_filter import AdvancedFilter as AdvancedFilter - from instana_client.models.agent_configuration_update import AgentConfigurationUpdate as AgentConfigurationUpdate - from instana_client.models.agent_mode_update import AgentModeUpdate as AgentModeUpdate - from instana_client.models.alerting_configuration import AlertingConfiguration as AlertingConfiguration - from instana_client.models.alerting_configuration_with_last_updated import AlertingConfigurationWithLastUpdated as AlertingConfigurationWithLastUpdated - from instana_client.models.alerting_time_window import AlertingTimeWindow as AlertingTimeWindow - from instana_client.models.apdex_alert_rule import ApdexAlertRule as ApdexAlertRule - from instana_client.models.apdex_config_with_rbac_tag import ApdexConfigWithRBACTag as ApdexConfigWithRBACTag - from instana_client.models.apdex_configuration import ApdexConfiguration as ApdexConfiguration - from instana_client.models.apdex_configuration_input import ApdexConfigurationInput as ApdexConfigurationInput - from instana_client.models.apdex_entity import ApdexEntity as ApdexEntity - from instana_client.models.apdex_level import ApdexLevel as ApdexLevel - from instana_client.models.apdex_report import ApdexReport as ApdexReport - from instana_client.models.api_create_group import ApiCreateGroup as ApiCreateGroup - from instana_client.models.api_create_role import ApiCreateRole as ApiCreateRole - from instana_client.models.api_group import ApiGroup as ApiGroup - from instana_client.models.api_group_to_team_role_migration import ApiGroupToTeamRoleMigration as ApiGroupToTeamRoleMigration - from instana_client.models.api_log_item import ApiLogItem as ApiLogItem - from instana_client.models.api_log_tag import ApiLogTag as ApiLogTag - from instana_client.models.api_member import ApiMember as ApiMember - from instana_client.models.api_permission_set import ApiPermissionSet as ApiPermissionSet - from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter as ApiRestrictedApplicationFilter - from instana_client.models.api_role import ApiRole as ApiRole - from instana_client.models.api_tag import ApiTag as ApiTag - from instana_client.models.api_team import ApiTeam as ApiTeam - from instana_client.models.api_team_info import ApiTeamInfo as ApiTeamInfo - from instana_client.models.api_team_member import ApiTeamMember as ApiTeamMember - from instana_client.models.api_team_role import ApiTeamRole as ApiTeamRole - from instana_client.models.api_team_scope import ApiTeamScope as ApiTeamScope - from instana_client.models.api_token import ApiToken as ApiToken - from instana_client.models.app_data_metric_configuration import AppDataMetricConfiguration as AppDataMetricConfiguration - from instana_client.models.application import Application as Application - from instana_client.models.application_alert_config import ApplicationAlertConfig as ApplicationAlertConfig - from instana_client.models.application_alert_config_with_metadata import ApplicationAlertConfigWithMetadata as ApplicationAlertConfigWithMetadata - from instana_client.models.application_alert_rule import ApplicationAlertRule as ApplicationAlertRule - from instana_client.models.application_apdex_entity import ApplicationApdexEntity as ApplicationApdexEntity - from instana_client.models.application_batch_business_criticality_update import ApplicationBatchBusinessCriticalityUpdate as ApplicationBatchBusinessCriticalityUpdate - from instana_client.models.application_config import ApplicationConfig as ApplicationConfig - from instana_client.models.application_event_result import ApplicationEventResult as ApplicationEventResult - from instana_client.models.application_item import ApplicationItem as ApplicationItem - from instana_client.models.application_metric_result import ApplicationMetricResult as ApplicationMetricResult - from instana_client.models.application_node import ApplicationNode as ApplicationNode - from instana_client.models.application_result import ApplicationResult as ApplicationResult - from instana_client.models.application_scope import ApplicationScope as ApplicationScope - from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata as ApplicationScopeWithMetadata - from instana_client.models.application_sli_entity import ApplicationSliEntity as ApplicationSliEntity - from instana_client.models.application_slo_entity import ApplicationSloEntity as ApplicationSloEntity - from instana_client.models.application_time_threshold import ApplicationTimeThreshold as ApplicationTimeThreshold - from instana_client.models.audit_log_ui_response import AuditLogUiResponse as AuditLogUiResponse - from instana_client.models.author import Author as Author - from instana_client.models.availability_blueprint_indicator import AvailabilityBlueprintIndicator as AvailabilityBlueprintIndicator - from instana_client.models.availability_sli_entity import AvailabilitySliEntity as AvailabilitySliEntity - from instana_client.models.available_metrics import AvailableMetrics as AvailableMetrics - from instana_client.models.available_plugins import AvailablePlugins as AvailablePlugins - from instana_client.models.backend_trace_reference import BackendTraceReference as BackendTraceReference - from instana_client.models.bidirectional_ms_teams_app_integration import BidirectionalMsTeamsAppIntegration as BidirectionalMsTeamsAppIntegration - from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration as BidirectionalSlackAppIntegration - from instana_client.models.binary_operator_dto import BinaryOperatorDTO as BinaryOperatorDTO - from instana_client.models.browser_script_configuration import BrowserScriptConfiguration as BrowserScriptConfiguration - from instana_client.models.browser_script_configuration_update import BrowserScriptConfigurationUpdate as BrowserScriptConfigurationUpdate - from instana_client.models.built_in_event_specification import BuiltInEventSpecification as BuiltInEventSpecification - from instana_client.models.built_in_event_specification_with_last_updated import BuiltInEventSpecificationWithLastUpdated as BuiltInEventSpecificationWithLastUpdated - from instana_client.models.bulk_alert_config_request import BulkAlertConfigRequest as BulkAlertConfigRequest - from instana_client.models.business_activity import BusinessActivity as BusinessActivity - from instana_client.models.business_perspective_config import BusinessPerspectiveConfig as BusinessPerspectiveConfig - from instana_client.models.call_groups_item import CallGroupsItem as CallGroupsItem - from instana_client.models.call_groups_result import CallGroupsResult as CallGroupsResult - from instana_client.models.call_relation import CallRelation as CallRelation - from instana_client.models.calls_event_result import CallsEventResult as CallsEventResult - from instana_client.models.change_summary import ChangeSummary as ChangeSummary - from instana_client.models.cloudfoundry_physical_context import CloudfoundryPhysicalContext as CloudfoundryPhysicalContext - from instana_client.models.condition import Condition as Condition - from instana_client.models.config_version import ConfigVersion as ConfigVersion - from instana_client.models.correction import Correction as Correction - from instana_client.models.correction_configuration import CorrectionConfiguration as CorrectionConfiguration - from instana_client.models.correction_scheduling import CorrectionScheduling as CorrectionScheduling - from instana_client.models.correction_window import CorrectionWindow as CorrectionWindow - from instana_client.models.crash_mobile_app_alert_rule import CrashMobileAppAlertRule as CrashMobileAppAlertRule - from instana_client.models.create_evaluation_request import CreateEvaluationRequest as CreateEvaluationRequest - from instana_client.models.create_evaluation_response import CreateEvaluationResponse as CreateEvaluationResponse - from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner as CreateWebsiteRequestInner - from instana_client.models.cursor_paginated_business_activity_item import CursorPaginatedBusinessActivityItem as CursorPaginatedBusinessActivityItem - from instana_client.models.cursor_pagination import CursorPagination as CursorPagination - from instana_client.models.cursor_pagination_with_ui_cursor_infra_explore_cursor import CursorPaginationWithUiCursorInfraExploreCursor as CursorPaginationWithUiCursorInfraExploreCursor - from instana_client.models.custom_blueprint_indicator import CustomBlueprintIndicator as CustomBlueprintIndicator - from instana_client.models.custom_dashboard import CustomDashboard as CustomDashboard - from instana_client.models.custom_dashboard_preview import CustomDashboardPreview as CustomDashboardPreview - from instana_client.models.custom_dashboard_with_user_specific_information import CustomDashboardWithUserSpecificInformation as CustomDashboardWithUserSpecificInformation - from instana_client.models.custom_dependency import CustomDependency as CustomDependency - from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix as CustomEmailSubjectPrefix - from instana_client.models.custom_entity_model import CustomEntityModel as CustomEntityModel - from instana_client.models.custom_entity_with_metadata import CustomEntityWithMetadata as CustomEntityWithMetadata - from instana_client.models.custom_event_mobile_app_alert_rule import CustomEventMobileAppAlertRule as CustomEventMobileAppAlertRule - from instana_client.models.custom_event_specification import CustomEventSpecification as CustomEventSpecification - from instana_client.models.custom_event_specification_with_last_updated import CustomEventSpecificationWithLastUpdated as CustomEventSpecificationWithLastUpdated - from instana_client.models.custom_event_website_alert_rule import CustomEventWebsiteAlertRule as CustomEventWebsiteAlertRule - from instana_client.models.custom_metric import CustomMetric as CustomMetric - from instana_client.models.custom_metric_application_alert_rule import CustomMetricApplicationAlertRule as CustomMetricApplicationAlertRule - from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration as CustomPayloadConfiguration - from instana_client.models.custom_payload_field import CustomPayloadField as CustomPayloadField - from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated as CustomPayloadWithLastUpdated - from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion as CustomPayloadWithVersion - from instana_client.models.custom_tag import CustomTag as CustomTag - from instana_client.models.customer_email import CustomerEmail as CustomerEmail - from instana_client.models.dns_configuration import DNSConfiguration as DNSConfiguration - from instana_client.models.dns_configuration_update import DNSConfigurationUpdate as DNSConfigurationUpdate - from instana_client.models.dns_filter_query_time import DNSFilterQueryTime as DNSFilterQueryTime - from instana_client.models.dns_filter_target_value import DNSFilterTargetValue as DNSFilterTargetValue - from instana_client.models.dashboard_api_token import DashboardApiToken as DashboardApiToken - from instana_client.models.database_integration import DatabaseIntegration as DatabaseIntegration - from instana_client.models.deprecated_tag_filter import DeprecatedTagFilter as DeprecatedTagFilter - from instana_client.models.duration import Duration as Duration - from instana_client.models.dynamic_field import DynamicField as DynamicField - from instana_client.models.dynamic_field_value import DynamicFieldValue as DynamicFieldValue - from instana_client.models.dynamic_parameter import DynamicParameter as DynamicParameter - from instana_client.models.dynamic_tag import DynamicTag as DynamicTag - from instana_client.models.edit_user import EditUser as EditUser - from instana_client.models.email_integration import EmailIntegration as EmailIntegration - from instana_client.models.empty_configuration import EmptyConfiguration as EmptyConfiguration - from instana_client.models.endpoint import Endpoint as Endpoint - from instana_client.models.endpoint_config import EndpointConfig as EndpointConfig - from instana_client.models.endpoint_event_result import EndpointEventResult as EndpointEventResult - from instana_client.models.endpoint_item import EndpointItem as EndpointItem - from instana_client.models.endpoint_metric_result import EndpointMetricResult as EndpointMetricResult - from instana_client.models.endpoint_node import EndpointNode as EndpointNode - from instana_client.models.endpoint_result import EndpointResult as EndpointResult - from instana_client.models.endpoint_simple import EndpointSimple as EndpointSimple - from instana_client.models.entity_count_rule import EntityCountRule as EntityCountRule - from instana_client.models.entity_count_verification_rule import EntityCountVerificationRule as EntityCountVerificationRule - from instana_client.models.entity_health_info import EntityHealthInfo as EntityHealthInfo - from instana_client.models.entity_id import EntityId as EntityId - from instana_client.models.entity_metric import EntityMetric as EntityMetric - from instana_client.models.entity_metric_scope import EntityMetricScope as EntityMetricScope - from instana_client.models.entity_verification_rule import EntityVerificationRule as EntityVerificationRule - from instana_client.models.error_budget_alert_rule import ErrorBudgetAlertRule as ErrorBudgetAlertRule - from instana_client.models.errors_application_alert_rule import ErrorsApplicationAlertRule as ErrorsApplicationAlertRule - from instana_client.models.evaluation_detail_response import EvaluationDetailResponse as EvaluationDetailResponse - from instana_client.models.evaluation_list_item import EvaluationListItem as EvaluationListItem - from instana_client.models.evaluation_list_response import EvaluationListResponse as EvaluationListResponse - from instana_client.models.evaluator import Evaluator as Evaluator - from instana_client.models.event import Event as Event - from instana_client.models.event_filtering_configuration import EventFilteringConfiguration as EventFilteringConfiguration - from instana_client.models.event_result import EventResult as EventResult - from instana_client.models.event_specification_info import EventSpecificationInfo as EventSpecificationInfo - from instana_client.models.extended_service import ExtendedService as ExtendedService - from instana_client.models.failure_synthetic_alert_rule import FailureSyntheticAlertRule as FailureSyntheticAlertRule - from instana_client.models.filter_interface import FilterInterface as FilterInterface - from instana_client.models.fixed_http_path_segment_matching_rule import FixedHttpPathSegmentMatchingRule as FixedHttpPathSegmentMatchingRule - from instana_client.models.fixed_time_window import FixedTimeWindow as FixedTimeWindow - from instana_client.models.gateway_status_response import GatewayStatusResponse as GatewayStatusResponse - from instana_client.models.generic_infra_alert_rule import GenericInfraAlertRule as GenericInfraAlertRule - from instana_client.models.geo_location_configuration import GeoLocationConfiguration as GeoLocationConfiguration - from instana_client.models.geo_mapping_rule import GeoMappingRule as GeoMappingRule - from instana_client.models.geo_subdivision import GeoSubdivision as GeoSubdivision - from instana_client.models.get_action_beacons_result import GetActionBeaconsResult as GetActionBeaconsResult - from instana_client.models.get_activities import GetActivities as GetActivities - from instana_client.models.get_application_metrics import GetApplicationMetrics as GetApplicationMetrics - from instana_client.models.get_applications import GetApplications as GetApplications - from instana_client.models.get_available_metrics_query import GetAvailableMetricsQuery as GetAvailableMetricsQuery - from instana_client.models.get_available_plugins_query import GetAvailablePluginsQuery as GetAvailablePluginsQuery - from instana_client.models.get_call_groups import GetCallGroups as GetCallGroups - from instana_client.models.get_combined_metrics import GetCombinedMetrics as GetCombinedMetrics - from instana_client.models.get_dynamic_parameter_values import GetDynamicParameterValues as GetDynamicParameterValues - from instana_client.models.get_endpoints import GetEndpoints as GetEndpoints - from instana_client.models.get_infrastructure_groups_query import GetInfrastructureGroupsQuery as GetInfrastructureGroupsQuery - from instana_client.models.get_infrastructure_query import GetInfrastructureQuery as GetInfrastructureQuery - from instana_client.models.get_metrics_result import GetMetricsResult as GetMetricsResult - from instana_client.models.get_mobile_app_beacon_groups import GetMobileAppBeaconGroups as GetMobileAppBeaconGroups - from instana_client.models.get_mobile_app_beacons import GetMobileAppBeacons as GetMobileAppBeacons - from instana_client.models.get_mobile_app_metrics import GetMobileAppMetrics as GetMobileAppMetrics - from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 as GetMobileAppMetricsV2 - from instana_client.models.get_payload_keys_result import GetPayloadKeysResult as GetPayloadKeysResult - from instana_client.models.get_services import GetServices as GetServices - from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult as GetSessionReplayMetadataResult - from instana_client.models.get_snapshots_query import GetSnapshotsQuery as GetSnapshotsQuery - from instana_client.models.get_test_result import GetTestResult as GetTestResult - from instana_client.models.get_test_result_analytic import GetTestResultAnalytic as GetTestResultAnalytic - from instana_client.models.get_test_result_base import GetTestResultBase as GetTestResultBase - from instana_client.models.get_test_result_list import GetTestResultList as GetTestResultList - from instana_client.models.get_test_summary_result import GetTestSummaryResult as GetTestSummaryResult - from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem as GetTraceDownloadResultItem - from instana_client.models.get_trace_groups import GetTraceGroups as GetTraceGroups - from instana_client.models.get_traces import GetTraces as GetTraces - from instana_client.models.get_website_beacon_groups import GetWebsiteBeaconGroups as GetWebsiteBeaconGroups - from instana_client.models.get_website_beacons import GetWebsiteBeacons as GetWebsiteBeacons - from instana_client.models.get_website_metrics import GetWebsiteMetrics as GetWebsiteMetrics - from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2 as GetWebsiteMetricsV2 - from instana_client.models.git_hub_configuration import GitHubConfiguration as GitHubConfiguration - from instana_client.models.global_application_alert_config_with_metadata import GlobalApplicationAlertConfigWithMetadata as GlobalApplicationAlertConfigWithMetadata - from instana_client.models.global_applications_alert_config import GlobalApplicationsAlertConfig as GlobalApplicationsAlertConfig - from instana_client.models.google_chat_integration import GoogleChatIntegration as GoogleChatIntegration - from instana_client.models.graph_edge import GraphEdge as GraphEdge - from instana_client.models.graph_node import GraphNode as GraphNode - from instana_client.models.group import Group as Group - from instana_client.models.group_by_tag import GroupByTag as GroupByTag - from instana_client.models.health_state import HealthState as HealthState - from instana_client.models.historic_baseline import HistoricBaseline as HistoricBaseline - from instana_client.models.host_availability_rule import HostAvailabilityRule as HostAvailabilityRule - from instana_client.models.http_action_configuration import HttpActionConfiguration as HttpActionConfiguration - from instana_client.models.http_action_configuration_update import HttpActionConfigurationUpdate as HttpActionConfigurationUpdate - from instana_client.models.http_endpoint_config import HttpEndpointConfig as HttpEndpointConfig - from instana_client.models.http_endpoint_rule import HttpEndpointRule as HttpEndpointRule - from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule as HttpPathSegmentMatchingRule - from instana_client.models.http_script_configuration import HttpScriptConfiguration as HttpScriptConfiguration - from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate as HttpScriptConfigurationUpdate - from instana_client.models.hyper_param import HyperParam as HyperParam - from instana_client.models.icmp_configuration import ICMPConfiguration as ICMPConfiguration - from instana_client.models.icmp_configuration_update import ICMPConfigurationUpdate as ICMPConfigurationUpdate - from instana_client.models.icmp_validation import ICMPValidation as ICMPValidation - from instana_client.models.ip_filtering import IPFiltering as IPFiltering - from instana_client.models.ip_filtering_rule_dto import IPFilteringRuleDto as IPFilteringRuleDto - from instana_client.models.ip_filtering_upsert import IPFilteringUpsert as IPFilteringUpsert - from instana_client.models.identity_provider_patch import IdentityProviderPatch as IdentityProviderPatch - from instana_client.models.idp_status_update import IdpStatusUpdate as IdpStatusUpdate - from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo as ImpactedBeaconInfo - from instana_client.models.infra_alert_config import InfraAlertConfig as InfraAlertConfig - from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata as InfraAlertConfigWithMetadata - from instana_client.models.infra_alert_rule import InfraAlertRule as InfraAlertRule - from instana_client.models.infra_event_result import InfraEventResult as InfraEventResult - from instana_client.models.infra_slo_entity import InfraSloEntity as InfraSloEntity - from instana_client.models.infra_time_threshold import InfraTimeThreshold as InfraTimeThreshold - from instana_client.models.infrastructure_entities_result import InfrastructureEntitiesResult as InfrastructureEntitiesResult - from instana_client.models.infrastructure_group import InfrastructureGroup as InfrastructureGroup - from instana_client.models.infrastructure_groups_result import InfrastructureGroupsResult as InfrastructureGroupsResult - from instana_client.models.infrastructure_item import InfrastructureItem as InfrastructureItem - from instana_client.models.infrastructure_metric_result import InfrastructureMetricResult as InfrastructureMetricResult - from instana_client.models.instana_version_info import InstanaVersionInfo as InstanaVersionInfo - from instana_client.models.integration_overview import IntegrationOverview as IntegrationOverview - from instana_client.models.invitation import Invitation as Invitation - from instana_client.models.invitation_response import InvitationResponse as InvitationResponse - from instana_client.models.invitation_result import InvitationResult as InvitationResult - from instana_client.models.ip_masking_configuration import IpMaskingConfiguration as IpMaskingConfiguration - from instana_client.models.js_stack_trace_line import JsStackTraceLine as JsStackTraceLine - from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext as KubernetesPhysicalContext - from instana_client.models.llm_egress_gateway import LLMEgressGateway as LLMEgressGateway - from instana_client.models.llm_gateway_capability import LLMGatewayCapability as LLMGatewayCapability - from instana_client.models.llm_gateway_model import LLMGatewayModel as LLMGatewayModel - from instana_client.models.llm_gateway_service import LLMGatewayService as LLMGatewayService - from instana_client.models.llm_gateway_test_connection_request import LLMGatewayTestConnectionRequest as LLMGatewayTestConnectionRequest - from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator as LatencyBlueprintIndicator - from instana_client.models.llm_model_price import LlmModelPrice as LlmModelPrice - from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata as LlmModelPriceMetadata - from instana_client.models.location_status import LocationStatus as LocationStatus - from instana_client.models.log_alert_config import LogAlertConfig as LogAlertConfig - from instana_client.models.log_alert_config_with_metadata import LogAlertConfigWithMetadata as LogAlertConfigWithMetadata - from instana_client.models.log_alert_rule import LogAlertRule as LogAlertRule - from instana_client.models.log_count_alert_rule import LogCountAlertRule as LogCountAlertRule - from instana_client.models.log_event_result import LogEventResult as LogEventResult - from instana_client.models.log_time_threshold import LogTimeThreshold as LogTimeThreshold - from instana_client.models.log_volume_group import LogVolumeGroup as LogVolumeGroup - from instana_client.models.log_volume_usage_item import LogVolumeUsageItem as LogVolumeUsageItem - from instana_client.models.log_volume_usage_result import LogVolumeUsageResult as LogVolumeUsageResult - from instana_client.models.logging_perspective import LoggingPerspective as LoggingPerspective - from instana_client.models.logs_api_response import LogsApiResponse as LogsApiResponse - from instana_client.models.logs_application_alert_rule import LogsApplicationAlertRule as LogsApplicationAlertRule - from instana_client.models.logs_query import LogsQuery as LogsQuery - from instana_client.models.maintenance_config import MaintenanceConfig as MaintenanceConfig - from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling as MaintenanceConfigScheduling - from instana_client.models.maintenance_config_v2 import MaintenanceConfigV2 as MaintenanceConfigV2 - from instana_client.models.maintenance_config_v2_with_state_and_occurrence import MaintenanceConfigV2WithStateAndOccurrence as MaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.maintenance_config_with_last_updated import MaintenanceConfigWithLastUpdated as MaintenanceConfigWithLastUpdated - from instana_client.models.maintenance_window import MaintenanceWindow as MaintenanceWindow - from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration as ManualAlertingChannelConfiguration - from instana_client.models.manual_close_info import ManualCloseInfo as ManualCloseInfo - from instana_client.models.manual_service_config import ManualServiceConfig as ManualServiceConfig - from instana_client.models.mapping import Mapping as Mapping - from instana_client.models.mapping_overview import MappingOverview as MappingOverview - from instana_client.models.match_all_http_path_segment_matching_rule import MatchAllHttpPathSegmentMatchingRule as MatchAllHttpPathSegmentMatchingRule - from instana_client.models.match_expression_dto import MatchExpressionDTO as MatchExpressionDTO - from instana_client.models.meta_data import MetaData as MetaData - from instana_client.models.metric_api_result import MetricAPIResult as MetricAPIResult - from instana_client.models.metric_config import MetricConfig as MetricConfig - from instana_client.models.metric_configuration import MetricConfiguration as MetricConfiguration - from instana_client.models.metric_description import MetricDescription as MetricDescription - from instana_client.models.metric_field import MetricField as MetricField - from instana_client.models.metric_field_value import MetricFieldValue as MetricFieldValue - from instana_client.models.metric_instance import MetricInstance as MetricInstance - from instana_client.models.metric_item import MetricItem as MetricItem - from instana_client.models.metric_metadata import MetricMetadata as MetricMetadata - from instana_client.models.metric_pattern import MetricPattern as MetricPattern - from instana_client.models.metrics_result import MetricsResult as MetricsResult - from instana_client.models.metrics_result_item import MetricsResultItem as MetricsResultItem - from instana_client.models.metrics_test_result_item import MetricsTestResultItem as MetricsTestResultItem - from instana_client.models.mobile_app import MobileApp as MobileApp - from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig as MobileAppAlertConfig - from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag as MobileAppAlertConfigWithRBACTag - from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule as MobileAppAlertRule - from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem as MobileAppBeaconGroupsItem - from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult as MobileAppBeaconGroupsResult - from instana_client.models.mobile_app_beacon_result import MobileAppBeaconResult as MobileAppBeaconResult - from instana_client.models.mobile_app_beacon_tag_group import MobileAppBeaconTagGroup as MobileAppBeaconTagGroup - from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem as MobileAppBeaconsItem - from instana_client.models.mobile_app_event_result import MobileAppEventResult as MobileAppEventResult - from instana_client.models.mobile_app_metric_result import MobileAppMetricResult as MobileAppMetricResult - from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon as MobileAppMonitoringBeacon - from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription as MobileAppMonitoringMetricDescription - from instana_client.models.mobile_app_monitoring_metrics_configuration import MobileAppMonitoringMetricsConfiguration as MobileAppMonitoringMetricsConfiguration - from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold as MobileAppTimeThreshold - from instana_client.models.mobile_slo_entity import MobileSloEntity as MobileSloEntity - from instana_client.models.model_field import ModelField as ModelField - from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats as MonitoredEntitiesStats - from instana_client.models.monitoring_state import MonitoringState as MonitoringState - from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration as MultipleScriptsConfiguration - from instana_client.models.ns1_integration import NS1Integration as NS1Integration - from instana_client.models.new_application_config import NewApplicationConfig as NewApplicationConfig - from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig as NewBusinessPerspectiveConfig - from instana_client.models.new_manual_service_config import NewManualServiceConfig as NewManualServiceConfig - from instana_client.models.notification import Notification as Notification - from instana_client.models.o_auth_config import OAuthConfig as OAuthConfig - from instana_client.models.o_auth_integration import OAuthIntegration as OAuthIntegration - from instana_client.models.o_auth_token import OAuthToken as OAuthToken - from instana_client.models.occurrence import Occurrence as Occurrence - from instana_client.models.office365_integration import Office365Integration as Office365Integration - from instana_client.models.one_time_maintenance_window import OneTimeMaintenanceWindow as OneTimeMaintenanceWindow - from instana_client.models.opsgenie_integration import OpsgenieIntegration as OpsgenieIntegration - from instana_client.models.order import Order as Order - from instana_client.models.pagerduty_integration import PagerdutyIntegration as PagerdutyIntegration - from instana_client.models.paginated_result import PaginatedResult as PaginatedResult - from instana_client.models.pagination import Pagination as Pagination - from instana_client.models.parameter import Parameter as Parameter - from instana_client.models.parameter_value import ParameterValue as ParameterValue - from instana_client.models.path_parameter_http_path_segment_matching_rule import PathParameterHttpPathSegmentMatchingRule as PathParameterHttpPathSegmentMatchingRule - from instana_client.models.physical_context import PhysicalContext as PhysicalContext - from instana_client.models.plugin_result import PluginResult as PluginResult - from instana_client.models.policy import Policy as Policy - from instana_client.models.policy_runnable import PolicyRunnable as PolicyRunnable - from instana_client.models.policy_scheduling import PolicyScheduling as PolicyScheduling - from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest as PostMobileAppSourceMapConfigRequest - from instana_client.models.post_snapshots_result import PostSnapshotsResult as PostSnapshotsResult - from instana_client.models.prefix_object import PrefixObject as PrefixObject - from instana_client.models.problem import Problem as Problem - from instana_client.models.prometheus_webhook_integration import PrometheusWebhookIntegration as PrometheusWebhookIntegration - from instana_client.models.rbac_restrictions import RbacRestrictions as RbacRestrictions - from instana_client.models.recurrent_maintenance_window import RecurrentMaintenanceWindow as RecurrentMaintenanceWindow - from instana_client.models.release import Release as Release - from instana_client.models.release_scope import ReleaseScope as ReleaseScope - from instana_client.models.release_with_metadata import ReleaseWithMetadata as ReleaseWithMetadata - from instana_client.models.retention_period import RetentionPeriod as RetentionPeriod - from instana_client.models.role_mapping_overview import RoleMappingOverview as RoleMappingOverview - from instana_client.models.rolling_time_window import RollingTimeWindow as RollingTimeWindow - from instana_client.models.rule_input import RuleInput as RuleInput - from instana_client.models.rule_with_threshold_application_alert_rule import RuleWithThresholdApplicationAlertRule as RuleWithThresholdApplicationAlertRule - from instana_client.models.rule_with_threshold_infra_alert_rule import RuleWithThresholdInfraAlertRule as RuleWithThresholdInfraAlertRule - from instana_client.models.rule_with_threshold_log_alert_rule import RuleWithThresholdLogAlertRule as RuleWithThresholdLogAlertRule - from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule as RuleWithThresholdMobileAppAlertRule - from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule as RuleWithThresholdWebsiteAlertRule - from instana_client.models.run_configuration import RunConfiguration as RunConfiguration - from instana_client.models.run_evaluation_response import RunEvaluationResponse as RunEvaluationResponse - from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag as SLOConfigWithRBACTag - from instana_client.models.ssl_certificate_configuration import SSLCertificateConfiguration as SSLCertificateConfiguration - from instana_client.models.ssl_certificate_configuration_update import SSLCertificateConfigurationUpdate as SSLCertificateConfigurationUpdate - from instana_client.models.ssl_certificate_validation import SSLCertificateValidation as SSLCertificateValidation - from instana_client.models.salesforce_integration import SalesforceIntegration as SalesforceIntegration - from instana_client.models.sampling_metadata import SamplingMetadata as SamplingMetadata - from instana_client.models.saturation_blueprint_indicator import SaturationBlueprintIndicator as SaturationBlueprintIndicator - from instana_client.models.scope_binding import ScopeBinding as ScopeBinding - from instana_client.models.search_field_result import SearchFieldResult as SearchFieldResult - from instana_client.models.service import Service as Service - from instana_client.models.service_config import ServiceConfig as ServiceConfig - from instana_client.models.service_event_result import ServiceEventResult as ServiceEventResult - from instana_client.models.service_item import ServiceItem as ServiceItem - from instana_client.models.service_level_indicator import ServiceLevelIndicator as ServiceLevelIndicator - from instana_client.models.service_level_objective_alert_rule import ServiceLevelObjectiveAlertRule as ServiceLevelObjectiveAlertRule - from instana_client.models.service_levels_alert_config import ServiceLevelsAlertConfig as ServiceLevelsAlertConfig - from instana_client.models.service_levels_alert_config_with_rbac_tag import ServiceLevelsAlertConfigWithRBACTag as ServiceLevelsAlertConfigWithRBACTag - from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule as ServiceLevelsAlertRule - from instana_client.models.service_levels_burn_rate_config import ServiceLevelsBurnRateConfig as ServiceLevelsBurnRateConfig - from instana_client.models.service_levels_burn_rate_time_windows import ServiceLevelsBurnRateTimeWindows as ServiceLevelsBurnRateTimeWindows - from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig as ServiceLevelsStaticThresholdConfig - from instana_client.models.service_levels_time_threshold import ServiceLevelsTimeThreshold as ServiceLevelsTimeThreshold - from instana_client.models.service_levelse_alert_config_with_metadata import ServiceLevelseAlertConfigWithMetadata as ServiceLevelseAlertConfigWithMetadata - from instana_client.models.service_map import ServiceMap as ServiceMap - from instana_client.models.service_map_connection import ServiceMapConnection as ServiceMapConnection - from instana_client.models.service_matching_rule import ServiceMatchingRule as ServiceMatchingRule - from instana_client.models.service_metric_result import ServiceMetricResult as ServiceMetricResult - from instana_client.models.service_node import ServiceNode as ServiceNode - from instana_client.models.service_now_enhanced_integration import ServiceNowEnhancedIntegration as ServiceNowEnhancedIntegration - from instana_client.models.service_now_integration import ServiceNowIntegration as ServiceNowIntegration - from instana_client.models.service_result import ServiceResult as ServiceResult - from instana_client.models.service_scope import ServiceScope as ServiceScope - from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata as ServiceScopeWithMetadata - from instana_client.models.service_scoped_to import ServiceScopedTo as ServiceScopedTo - from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata as ServiceScopedToWithMetadata - from instana_client.models.service_simple import ServiceSimple as ServiceSimple - from instana_client.models.session_replay_metadata import SessionReplayMetadata as SessionReplayMetadata - from instana_client.models.session_replay_timestamps import SessionReplayTimestamps as SessionReplayTimestamps - from instana_client.models.session_settings import SessionSettings as SessionSettings - from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration as SimpleMetricConfiguration - from instana_client.models.slack_integration import SlackIntegration as SlackIntegration - from instana_client.models.sli_configuration import SliConfiguration as SliConfiguration - from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated as SliConfigurationWithLastUpdated - from instana_client.models.sli_entity import SliEntity as SliEntity - from instana_client.models.sli_report import SliReport as SliReport - from instana_client.models.slo_entity import SloEntity as SloEntity - from instana_client.models.slo_health_snapshot import SloHealthSnapshot as SloHealthSnapshot - from instana_client.models.slo_health_snapshot_item import SloHealthSnapshotItem as SloHealthSnapshotItem - from instana_client.models.slo_report import SloReport as SloReport - from instana_client.models.slowness_application_alert_rule import SlownessApplicationAlertRule as SlownessApplicationAlertRule - from instana_client.models.slowness_mobile_app_alert_rule import SlownessMobileAppAlertRule as SlownessMobileAppAlertRule - from instana_client.models.slowness_website_alert_rule import SlownessWebsiteAlertRule as SlownessWebsiteAlertRule - from instana_client.models.snapshot_item import SnapshotItem as SnapshotItem - from instana_client.models.snapshot_preview import SnapshotPreview as SnapshotPreview - from instana_client.models.snapshot_result import SnapshotResult as SnapshotResult - from instana_client.models.software_user import SoftwareUser as SoftwareUser - from instana_client.models.software_version import SoftwareVersion as SoftwareVersion - from instana_client.models.source_map_file_blob import SourceMapFileBlob as SourceMapFileBlob - from instana_client.models.source_map_file_meta import SourceMapFileMeta as SourceMapFileMeta - from instana_client.models.source_map_upload_config import SourceMapUploadConfig as SourceMapUploadConfig - from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs as SourceMapUploadConfigs - from instana_client.models.span_excerpt import SpanExcerpt as SpanExcerpt - from instana_client.models.span_relation import SpanRelation as SpanRelation - from instana_client.models.specific_js_errors_website_alert_rule import SpecificJsErrorsWebsiteAlertRule as SpecificJsErrorsWebsiteAlertRule - from instana_client.models.splunk_integration import SplunkIntegration as SplunkIntegration - from instana_client.models.stack_trace_item import StackTraceItem as StackTraceItem - from instana_client.models.stack_trace_line import StackTraceLine as StackTraceLine - from instana_client.models.static_baseline_threshold_rule import StaticBaselineThresholdRule as StaticBaselineThresholdRule - from instana_client.models.static_string_field import StaticStringField as StaticStringField - from instana_client.models.static_threshold import StaticThreshold as StaticThreshold - from instana_client.models.static_threshold_rule import StaticThresholdRule as StaticThresholdRule - from instana_client.models.status_code_application_alert_rule import StatusCodeApplicationAlertRule as StatusCodeApplicationAlertRule - from instana_client.models.status_code_mobile_app_alert_rule import StatusCodeMobileAppAlertRule as StatusCodeMobileAppAlertRule - from instana_client.models.status_code_website_alert_rule import StatusCodeWebsiteAlertRule as StatusCodeWebsiteAlertRule - from instana_client.models.synthetic_alert_config import SyntheticAlertConfig as SyntheticAlertConfig - from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata as SyntheticAlertConfigWithMetadata - from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag as SyntheticAlertConfigWithRBACTag - from instana_client.models.synthetic_alert_rule import SyntheticAlertRule as SyntheticAlertRule - from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse as SyntheticBulkResponse - from instana_client.models.synthetic_call_config import SyntheticCallConfig as SyntheticCallConfig - from instana_client.models.synthetic_call_rule import SyntheticCallRule as SyntheticCallRule - from instana_client.models.synthetic_call_with_defaults_config import SyntheticCallWithDefaultsConfig as SyntheticCallWithDefaultsConfig - from instana_client.models.synthetic_configuration import SyntheticConfiguration as SyntheticConfiguration - from instana_client.models.synthetic_configuration_update import SyntheticConfigurationUpdate as SyntheticConfigurationUpdate - from instana_client.models.synthetic_credential import SyntheticCredential as SyntheticCredential - from instana_client.models.synthetic_datacenter import SyntheticDatacenter as SyntheticDatacenter - from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration as SyntheticDatacenterConfiguration - from instana_client.models.synthetic_geo_point import SyntheticGeoPoint as SyntheticGeoPoint - from instana_client.models.synthetic_location import SyntheticLocation as SyntheticLocation - from instana_client.models.synthetic_location_configuration import SyntheticLocationConfiguration as SyntheticLocationConfiguration - from instana_client.models.synthetic_metric_configuration import SyntheticMetricConfiguration as SyntheticMetricConfiguration - from instana_client.models.synthetic_metric_tag_group import SyntheticMetricTagGroup as SyntheticMetricTagGroup - from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities as SyntheticPlaybackCapabilities - from instana_client.models.synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value import SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue as SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue - from instana_client.models.synthetic_resource_update_list_icmp_validation_list_icmp_validation import SyntheticResourceUpdateListICMPValidationListICMPValidation as SyntheticResourceUpdateListICMPValidationListICMPValidation - from instana_client.models.synthetic_resource_update_list_network_profile_list_network_profile import SyntheticResourceUpdateListNetworkProfileListNetworkProfile as SyntheticResourceUpdateListNetworkProfileListNetworkProfile - from instana_client.models.synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation import SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation as SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation - from instana_client.models.synthetic_resource_update_list_string_list_string import SyntheticResourceUpdateListStringListString as SyntheticResourceUpdateListStringListString - from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString as SyntheticResourceUpdateMapStringStringListString - from instana_client.models.synthetic_slo_entity import SyntheticSloEntity as SyntheticSloEntity - from instana_client.models.synthetic_test import SyntheticTest as SyntheticTest - from instana_client.models.synthetic_test_cicd import SyntheticTestCICD as SyntheticTestCICD - from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization as SyntheticTestCICDCustomization - from instana_client.models.synthetic_test_cicd_item import SyntheticTestCICDItem as SyntheticTestCICDItem - from instana_client.models.synthetic_test_cicd_response import SyntheticTestCICDResponse as SyntheticTestCICDResponse - from instana_client.models.synthetic_test_deep_update import SyntheticTestDeepUpdate as SyntheticTestDeepUpdate - from instana_client.models.synthetic_test_shallow_update import SyntheticTestShallowUpdate as SyntheticTestShallowUpdate - from instana_client.models.synthetic_test_update import SyntheticTestUpdate as SyntheticTestUpdate - from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold as SyntheticTimeThreshold - from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration as SyntheticTypeConfiguration - from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate as SyntheticTypeConfigurationUpdate - from instana_client.models.synthetics_event_result import SyntheticsEventResult as SyntheticsEventResult - from instana_client.models.system_rule import SystemRule as SystemRule - from instana_client.models.system_rule_label import SystemRuleLabel as SystemRuleLabel - from instana_client.models.tag import Tag as Tag - from instana_client.models.tag_catalog import TagCatalog as TagCatalog - from instana_client.models.tag_filter import TagFilter as TagFilter - from instana_client.models.tag_filter_expression import TagFilterExpression as TagFilterExpression - from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement as TagFilterExpressionElement - from instana_client.models.tag_matcher_dto import TagMatcherDTO as TagMatcherDTO - from instana_client.models.tag_tree_level import TagTreeLevel as TagTreeLevel - from instana_client.models.tag_tree_node import TagTreeNode as TagTreeNode - from instana_client.models.tag_tree_tag import TagTreeTag as TagTreeTag - from instana_client.models.test_common_properties import TestCommonProperties as TestCommonProperties - from instana_client.models.test_connection_response import TestConnectionResponse as TestConnectionResponse - from instana_client.models.test_last_error import TestLastError as TestLastError - from instana_client.models.test_result import TestResult as TestResult - from instana_client.models.test_result_common_properties import TestResultCommonProperties as TestResultCommonProperties - from instana_client.models.test_result_detail_data import TestResultDetailData as TestResultDetailData - from instana_client.models.test_result_item import TestResultItem as TestResultItem - from instana_client.models.test_result_list_item import TestResultListItem as TestResultListItem - from instana_client.models.test_result_list_result import TestResultListResult as TestResultListResult - from instana_client.models.test_result_metadata import TestResultMetadata as TestResultMetadata - from instana_client.models.test_result_subtransaction import TestResultSubtransaction as TestResultSubtransaction - from instana_client.models.threshold import Threshold as Threshold - from instana_client.models.threshold_config_rule import ThresholdConfigRule as ThresholdConfigRule - from instana_client.models.threshold_rule import ThresholdRule as ThresholdRule - from instana_client.models.throughput_application_alert_rule import ThroughputApplicationAlertRule as ThroughputApplicationAlertRule - from instana_client.models.throughput_mobile_app_alert_rule import ThroughputMobileAppAlertRule as ThroughputMobileAppAlertRule - from instana_client.models.throughput_website_alert_rule import ThroughputWebsiteAlertRule as ThroughputWebsiteAlertRule - from instana_client.models.time_config import TimeConfig as TimeConfig - from instana_client.models.time_frame import TimeFrame as TimeFrame - from instana_client.models.time_window import TimeWindow as TimeWindow - from instana_client.models.topology import Topology as Topology - from instana_client.models.trace import Trace as Trace - from instana_client.models.trace_activity_tree_node_details import TraceActivityTreeNodeDetails as TraceActivityTreeNodeDetails - from instana_client.models.trace_download_result import TraceDownloadResult as TraceDownloadResult - from instana_client.models.trace_groups_item import TraceGroupsItem as TraceGroupsItem - from instana_client.models.trace_groups_result import TraceGroupsResult as TraceGroupsResult - from instana_client.models.trace_impact_application_time_threshold import TraceImpactApplicationTimeThreshold as TraceImpactApplicationTimeThreshold - from instana_client.models.trace_item import TraceItem as TraceItem - from instana_client.models.trace_result import TraceResult as TraceResult - from instana_client.models.trace_sampling_config import TraceSamplingConfig as TraceSamplingConfig - from instana_client.models.traffic_blueprint_indicator import TrafficBlueprintIndicator as TrafficBlueprintIndicator - from instana_client.models.trigger import Trigger as Trigger - from instana_client.models.type_configuration import TypeConfiguration as TypeConfiguration - from instana_client.models.unified_beacon import UnifiedBeacon as UnifiedBeacon - from instana_client.models.unsupported_http_path_segment_matching_rule import UnsupportedHttpPathSegmentMatchingRule as UnsupportedHttpPathSegmentMatchingRule - from instana_client.models.update_evaluation_request import UpdateEvaluationRequest as UpdateEvaluationRequest - from instana_client.models.updated_business_perspective_config import UpdatedBusinessPerspectiveConfig as UpdatedBusinessPerspectiveConfig - from instana_client.models.usage_result import UsageResult as UsageResult - from instana_client.models.usage_result_items import UsageResultItems as UsageResultItems - from instana_client.models.user_basic_result import UserBasicResult as UserBasicResult - from instana_client.models.user_impact_mobile_app_time_threshold import UserImpactMobileAppTimeThreshold as UserImpactMobileAppTimeThreshold - from instana_client.models.user_impact_website_time_threshold import UserImpactWebsiteTimeThreshold as UserImpactWebsiteTimeThreshold - from instana_client.models.user_result import UserResult as UserResult - from instana_client.models.users_result import UsersResult as UsersResult - from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo as ValidatedAlertingChannelInputInfo - from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration as ValidatedAlertingConfiguration - from instana_client.models.validated_maintenance_config_v2_with_state_and_occurrence import ValidatedMaintenanceConfigV2WithStateAndOccurrence as ValidatedMaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.validated_maintenance_config_with_status import ValidatedMaintenanceConfigWithStatus as ValidatedMaintenanceConfigWithStatus - from instana_client.models.victor_ops_integration import VictorOpsIntegration as VictorOpsIntegration - from instana_client.models.violations_in_period_application_time_threshold import ViolationsInPeriodApplicationTimeThreshold as ViolationsInPeriodApplicationTimeThreshold - from instana_client.models.violations_in_period_mobile_app_time_threshold import ViolationsInPeriodMobileAppTimeThreshold as ViolationsInPeriodMobileAppTimeThreshold - from instana_client.models.violations_in_period_website_time_threshold import ViolationsInPeriodWebsiteTimeThreshold as ViolationsInPeriodWebsiteTimeThreshold - from instana_client.models.violations_in_sequence_application_time_threshold import ViolationsInSequenceApplicationTimeThreshold as ViolationsInSequenceApplicationTimeThreshold - from instana_client.models.violations_in_sequence_infra_time_threshold import ViolationsInSequenceInfraTimeThreshold as ViolationsInSequenceInfraTimeThreshold - from instana_client.models.violations_in_sequence_log_time_threshold import ViolationsInSequenceLogTimeThreshold as ViolationsInSequenceLogTimeThreshold - from instana_client.models.violations_in_sequence_mobile_app_time_threshold import ViolationsInSequenceMobileAppTimeThreshold as ViolationsInSequenceMobileAppTimeThreshold - from instana_client.models.violations_in_sequence_synthetic_time_threshold import ViolationsInSequenceSyntheticTimeThreshold as ViolationsInSequenceSyntheticTimeThreshold - from instana_client.models.violations_in_sequence_website_time_threshold import ViolationsInSequenceWebsiteTimeThreshold as ViolationsInSequenceWebsiteTimeThreshold - from instana_client.models.watson_ai_ops_webhook_integration import WatsonAIOpsWebhookIntegration as WatsonAIOpsWebhookIntegration - from instana_client.models.webex_teams_webhook_integration import WebexTeamsWebhookIntegration as WebexTeamsWebhookIntegration - from instana_client.models.webhook_integration import WebhookIntegration as WebhookIntegration - from instana_client.models.webpage_action_configuration import WebpageActionConfiguration as WebpageActionConfiguration - from instana_client.models.webpage_action_configuration_update import WebpageActionConfigurationUpdate as WebpageActionConfigurationUpdate - from instana_client.models.webpage_script_configuration import WebpageScriptConfiguration as WebpageScriptConfiguration - from instana_client.models.webpage_script_configuration_update import WebpageScriptConfigurationUpdate as WebpageScriptConfigurationUpdate - from instana_client.models.website import Website as Website - from instana_client.models.website_alert_config import WebsiteAlertConfig as WebsiteAlertConfig - from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata as WebsiteAlertConfigWithMetadata - from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag as WebsiteAlertConfigWithRBACTag - from instana_client.models.website_alert_rule import WebsiteAlertRule as WebsiteAlertRule - from instana_client.models.website_apdex_entity import WebsiteApdexEntity as WebsiteApdexEntity - from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem as WebsiteBeaconGroupsItem - from instana_client.models.website_beacon_groups_result import WebsiteBeaconGroupsResult as WebsiteBeaconGroupsResult - from instana_client.models.website_beacon_result import WebsiteBeaconResult as WebsiteBeaconResult - from instana_client.models.website_beacon_tag_group import WebsiteBeaconTagGroup as WebsiteBeaconTagGroup - from instana_client.models.website_beacons_item import WebsiteBeaconsItem as WebsiteBeaconsItem - from instana_client.models.website_event_based_sli_entity import WebsiteEventBasedSliEntity as WebsiteEventBasedSliEntity - from instana_client.models.website_event_result import WebsiteEventResult as WebsiteEventResult - from instana_client.models.website_metric_result import WebsiteMetricResult as WebsiteMetricResult - from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon as WebsiteMonitoringBeacon - from instana_client.models.website_monitoring_metric_description import WebsiteMonitoringMetricDescription as WebsiteMonitoringMetricDescription - from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration as WebsiteMonitoringMetricsConfiguration - from instana_client.models.website_slo_entity import WebsiteSloEntity as WebsiteSloEntity - from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity as WebsiteTimeBasedSliEntity - from instana_client.models.website_time_threshold import WebsiteTimeThreshold as WebsiteTimeThreshold - from instana_client.models.widget import Widget as Widget - from instana_client.models.with_meta_data import WithMetaData as WithMetaData - from instana_client.models.with_resolved_name import WithResolvedName as WithResolvedName - from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration as ZChatOpsIntegration - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - ("__version__", __version__), - ("__all__", __all__), - """# import apis into sdk package +# import apis into sdk package from instana_client.api.ai_management_api import AIManagementApi as AIManagementApi from instana_client.api.api_token_api import APITokenApi as APITokenApi from instana_client.api.action_catalog_api import ActionCatalogApi as ActionCatalogApi @@ -2004,8 +1335,3 @@ from instana_client.models.with_resolved_name import WithResolvedName as WithResolvedName from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration as ZChatOpsIntegration -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/instana_client/api/__init__.py b/instana_client/api/__init__.py index 2a0e25bf..fc155f52 100644 --- a/instana_client/api/__init__.py +++ b/instana_client/api/__init__.py @@ -1,83 +1,6 @@ # flake8: noqa -if __import__("typing").TYPE_CHECKING: - # import apis into api package - from instana_client.api.ai_management_api import AIManagementApi - from instana_client.api.api_token_api import APITokenApi - from instana_client.api.action_catalog_api import ActionCatalogApi - from instana_client.api.action_history_api import ActionHistoryApi - from instana_client.api.apdex_report_api import ApdexReportApi - from instana_client.api.apdex_settings_api import ApdexSettingsApi - from instana_client.api.application_alert_configuration_api import ApplicationAlertConfigurationApi - from instana_client.api.application_analyze_api import ApplicationAnalyzeApi - from instana_client.api.application_catalog_api import ApplicationCatalogApi - from instana_client.api.application_metrics_api import ApplicationMetricsApi - from instana_client.api.application_resources_api import ApplicationResourcesApi - from instana_client.api.application_settings_api import ApplicationSettingsApi - from instana_client.api.application_topology_api import ApplicationTopologyApi - from instana_client.api.audit_log_api import AuditLogApi - from instana_client.api.authentication_api import AuthenticationApi - from instana_client.api.business_monitoring_api import BusinessMonitoringApi - from instana_client.api.custom_dashboards_api import CustomDashboardsApi - from instana_client.api.custom_entities_api import CustomEntitiesApi - from instana_client.api.end_user_monitoring_api import EndUserMonitoringApi - from instana_client.api.event_settings_api import EventSettingsApi - from instana_client.api.events_api import EventsApi - from instana_client.api.global_application_alert_configuration_api import GlobalApplicationAlertConfigurationApi - from instana_client.api.groups_api import GroupsApi - from instana_client.api.health_api import HealthApi - from instana_client.api.host_agent_api import HostAgentApi - from instana_client.api.ip_filtering_api import IPFilteringApi - from instana_client.api.infrastructure_alert_configuration_api import InfrastructureAlertConfigurationApi - from instana_client.api.infrastructure_analyze_api import InfrastructureAnalyzeApi - from instana_client.api.infrastructure_catalog_api import InfrastructureCatalogApi - from instana_client.api.infrastructure_metrics_api import InfrastructureMetricsApi - from instana_client.api.infrastructure_resources_api import InfrastructureResourcesApi - from instana_client.api.infrastructure_topology_api import InfrastructureTopologyApi - from instana_client.api.llm_evaluation_api import LLMEvaluationApi - from instana_client.api.llm_price_configuration_api import LLMPriceConfigurationApi - from instana_client.api.log_alert_configuration_api import LogAlertConfigurationApi - from instana_client.api.logging_analyze_api import LoggingAnalyzeApi - from instana_client.api.maintenance_configuration_api import MaintenanceConfigurationApi - from instana_client.api.mobile_app_analyze_api import MobileAppAnalyzeApi - from instana_client.api.mobile_app_catalog_api import MobileAppCatalogApi - from instana_client.api.mobile_app_configuration_api import MobileAppConfigurationApi - from instana_client.api.mobile_app_metrics_api import MobileAppMetricsApi - from instana_client.api.mobile_app_session_replay_api import MobileAppSessionReplayApi - from instana_client.api.policies_api import PoliciesApi - from instana_client.api.releases_api import ReleasesApi - from instana_client.api.roles_api import RolesApi - from instana_client.api.sli_report_api import SLIReportApi - from instana_client.api.sli_settings_api import SLISettingsApi - from instana_client.api.slo_catalog_for_mobile_app_api import SLOCatalogForMobileAppApi - from instana_client.api.slo_configurations_api import SLOConfigurationsApi - from instana_client.api.slo_correction_configurations_api import SLOCorrectionConfigurationsApi - from instana_client.api.slo_correction_windows_api import SLOCorrectionWindowsApi - from instana_client.api.service_levels_alert_configuration_api import ServiceLevelsAlertConfigurationApi - from instana_client.api.service_levels_objective_slo_report_api import ServiceLevelsObjectiveSLOReportApi - from instana_client.api.session_settings_api import SessionSettingsApi - from instana_client.api.synthetic_alert_configuration_api import SyntheticAlertConfigurationApi - from instana_client.api.synthetic_calls_api import SyntheticCallsApi - from instana_client.api.synthetic_catalog_api import SyntheticCatalogApi - from instana_client.api.synthetic_metrics_api import SyntheticMetricsApi - from instana_client.api.synthetic_settings_api import SyntheticSettingsApi - from instana_client.api.synthetic_test_playback_results_api import SyntheticTestPlaybackResultsApi - from instana_client.api.teams_api import TeamsApi - from instana_client.api.usage_api import UsageApi - from instana_client.api.user_api import UserApi - from instana_client.api.website_analyze_api import WebsiteAnalyzeApi - from instana_client.api.website_catalog_api import WebsiteCatalogApi - from instana_client.api.website_configuration_api import WebsiteConfigurationApi - from instana_client.api.website_metrics_api import WebsiteMetricsApi - from instana_client.api.default_api import DefaultApi - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import apis into api package +# import apis into api package from instana_client.api.ai_management_api import AIManagementApi from instana_client.api.api_token_api import APITokenApi from instana_client.api.action_catalog_api import ActionCatalogApi @@ -147,8 +70,3 @@ from instana_client.api.website_metrics_api import WebsiteMetricsApi from instana_client.api.default_api import DefaultApi -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/instana_client/api/action_catalog_api.py b/instana_client/api/action_catalog_api.py index f72ffe1f..ecbc5dac 100644 --- a/instana_client/api/action_catalog_api.py +++ b/instana_client/api/action_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/action_history_api.py b/instana_client/api/action_history_api.py index 2b8d951e..3bf4c1d2 100644 --- a/instana_client/api/action_history_api.py +++ b/instana_client/api/action_history_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/ai_management_api.py b/instana_client/api/ai_management_api.py index 97b5f24a..b20f7f3d 100644 --- a/instana_client/api/ai_management_api.py +++ b/instana_client/api/ai_management_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/apdex_report_api.py b/instana_client/api/apdex_report_api.py index 712dc954..d5b2a124 100644 --- a/instana_client/api/apdex_report_api.py +++ b/instana_client/api/apdex_report_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/apdex_settings_api.py b/instana_client/api/apdex_settings_api.py index 5f497af2..891cbba1 100644 --- a/instana_client/api/apdex_settings_api.py +++ b/instana_client/api/apdex_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/api_token_api.py b/instana_client/api/api_token_api.py index b799d4d6..7906c85b 100644 --- a/instana_client/api/api_token_api.py +++ b/instana_client/api/api_token_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_alert_configuration_api.py b/instana_client/api/application_alert_configuration_api.py index 415515c9..63591c3e 100644 --- a/instana_client/api/application_alert_configuration_api.py +++ b/instana_client/api/application_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_analyze_api.py b/instana_client/api/application_analyze_api.py index 38103089..d7f28b31 100644 --- a/instana_client/api/application_analyze_api.py +++ b/instana_client/api/application_analyze_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_catalog_api.py b/instana_client/api/application_catalog_api.py index e367d007..9c4af06e 100644 --- a/instana_client/api/application_catalog_api.py +++ b/instana_client/api/application_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_metrics_api.py b/instana_client/api/application_metrics_api.py index 05c57920..ed97dd91 100644 --- a/instana_client/api/application_metrics_api.py +++ b/instana_client/api/application_metrics_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_resources_api.py b/instana_client/api/application_resources_api.py index 6461863b..22b96d90 100644 --- a/instana_client/api/application_resources_api.py +++ b/instana_client/api/application_resources_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/application_settings_api.py b/instana_client/api/application_settings_api.py index 5a0ada59..ce09a09e 100644 --- a/instana_client/api/application_settings_api.py +++ b/instana_client/api/application_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -1755,6 +1754,7 @@ def delete_application_config( '204': None, '401': None, '403': None, + '412': None, } response_data = self.api_client.call_api( *_param, @@ -1824,6 +1824,7 @@ def delete_application_config_with_http_info( '204': None, '401': None, '403': None, + '412': None, } response_data = self.api_client.call_api( *_param, @@ -1893,6 +1894,7 @@ def delete_application_config_without_preload_content( '204': None, '401': None, '403': None, + '412': None, } response_data = self.api_client.call_api( *_param, diff --git a/instana_client/api/application_topology_api.py b/instana_client/api/application_topology_api.py index 0313f3fb..ae346309 100644 --- a/instana_client/api/application_topology_api.py +++ b/instana_client/api/application_topology_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/audit_log_api.py b/instana_client/api/audit_log_api.py index e1a3f2cd..baf2a601 100644 --- a/instana_client/api/audit_log_api.py +++ b/instana_client/api/audit_log_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/authentication_api.py b/instana_client/api/authentication_api.py index 97185b16..0d879b36 100644 --- a/instana_client/api/authentication_api.py +++ b/instana_client/api/authentication_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/business_monitoring_api.py b/instana_client/api/business_monitoring_api.py index 3630d3d0..fecf9366 100644 --- a/instana_client/api/business_monitoring_api.py +++ b/instana_client/api/business_monitoring_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/custom_dashboards_api.py b/instana_client/api/custom_dashboards_api.py index 603496b9..6ad620d1 100644 --- a/instana_client/api/custom_dashboards_api.py +++ b/instana_client/api/custom_dashboards_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/custom_entities_api.py b/instana_client/api/custom_entities_api.py index 11343409..2dc549bc 100644 --- a/instana_client/api/custom_entities_api.py +++ b/instana_client/api/custom_entities_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/default_api.py b/instana_client/api/default_api.py index 6df44ee2..6dab8055 100644 --- a/instana_client/api/default_api.py +++ b/instana_client/api/default_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/end_user_monitoring_api.py b/instana_client/api/end_user_monitoring_api.py index 3bbf9cda..abc583a0 100644 --- a/instana_client/api/end_user_monitoring_api.py +++ b/instana_client/api/end_user_monitoring_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/event_settings_api.py b/instana_client/api/event_settings_api.py index c879cfd3..da66c0f4 100644 --- a/instana_client/api/event_settings_api.py +++ b/instana_client/api/event_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/events_api.py b/instana_client/api/events_api.py index e83ad0b8..8538ab56 100644 --- a/instana_client/api/events_api.py +++ b/instana_client/api/events_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/global_application_alert_configuration_api.py b/instana_client/api/global_application_alert_configuration_api.py index b95795f0..f83851c3 100644 --- a/instana_client/api/global_application_alert_configuration_api.py +++ b/instana_client/api/global_application_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/groups_api.py b/instana_client/api/groups_api.py index 6ec141ff..d13b74ac 100644 --- a/instana_client/api/groups_api.py +++ b/instana_client/api/groups_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/health_api.py b/instana_client/api/health_api.py index d83451f5..07e22edd 100644 --- a/instana_client/api/health_api.py +++ b/instana_client/api/health_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/host_agent_api.py b/instana_client/api/host_agent_api.py index ae3a2c62..80dbb2c8 100644 --- a/instana_client/api/host_agent_api.py +++ b/instana_client/api/host_agent_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_alert_configuration_api.py b/instana_client/api/infrastructure_alert_configuration_api.py index 7521c260..d4fa6596 100644 --- a/instana_client/api/infrastructure_alert_configuration_api.py +++ b/instana_client/api/infrastructure_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_analyze_api.py b/instana_client/api/infrastructure_analyze_api.py index 33f2bcd8..c295c376 100644 --- a/instana_client/api/infrastructure_analyze_api.py +++ b/instana_client/api/infrastructure_analyze_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_catalog_api.py b/instana_client/api/infrastructure_catalog_api.py index 0d1ba4fe..163e1e99 100644 --- a/instana_client/api/infrastructure_catalog_api.py +++ b/instana_client/api/infrastructure_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_metrics_api.py b/instana_client/api/infrastructure_metrics_api.py index 4dde8116..a396f710 100644 --- a/instana_client/api/infrastructure_metrics_api.py +++ b/instana_client/api/infrastructure_metrics_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_resources_api.py b/instana_client/api/infrastructure_resources_api.py index cd284f8a..36dca10b 100644 --- a/instana_client/api/infrastructure_resources_api.py +++ b/instana_client/api/infrastructure_resources_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/infrastructure_topology_api.py b/instana_client/api/infrastructure_topology_api.py index eca5cdaf..c56cf9da 100644 --- a/instana_client/api/infrastructure_topology_api.py +++ b/instana_client/api/infrastructure_topology_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/ip_filtering_api.py b/instana_client/api/ip_filtering_api.py index 4c360c97..fb3f424e 100644 --- a/instana_client/api/ip_filtering_api.py +++ b/instana_client/api/ip_filtering_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/llm_evaluation_api.py b/instana_client/api/llm_evaluation_api.py index 4083c692..2ff54c66 100644 --- a/instana_client/api/llm_evaluation_api.py +++ b/instana_client/api/llm_evaluation_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -3249,6 +3248,7 @@ def upsert_evaluator( _response_types_map: Dict[str, Optional[str]] = { '200': "Evaluator", + '400': None, } response_data = self.api_client.call_api( *_param, @@ -3316,6 +3316,7 @@ def upsert_evaluator_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "Evaluator", + '400': None, } response_data = self.api_client.call_api( *_param, @@ -3383,6 +3384,7 @@ def upsert_evaluator_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "Evaluator", + '400': None, } response_data = self.api_client.call_api( *_param, diff --git a/instana_client/api/llm_price_configuration_api.py b/instana_client/api/llm_price_configuration_api.py index c6aa4766..cd9fdba9 100644 --- a/instana_client/api/llm_price_configuration_api.py +++ b/instana_client/api/llm_price_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/log_alert_configuration_api.py b/instana_client/api/log_alert_configuration_api.py index 4cb9fe05..27c910b3 100644 --- a/instana_client/api/log_alert_configuration_api.py +++ b/instana_client/api/log_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/logging_analyze_api.py b/instana_client/api/logging_analyze_api.py index 0f663b11..a21ecd4d 100644 --- a/instana_client/api/logging_analyze_api.py +++ b/instana_client/api/logging_analyze_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/maintenance_configuration_api.py b/instana_client/api/maintenance_configuration_api.py index 4eed72a2..0b2fea41 100644 --- a/instana_client/api/maintenance_configuration_api.py +++ b/instana_client/api/maintenance_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/mobile_app_analyze_api.py b/instana_client/api/mobile_app_analyze_api.py index cbd8237d..b9891d19 100644 --- a/instana_client/api/mobile_app_analyze_api.py +++ b/instana_client/api/mobile_app_analyze_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/mobile_app_catalog_api.py b/instana_client/api/mobile_app_catalog_api.py index 7dea571a..a2543aed 100644 --- a/instana_client/api/mobile_app_catalog_api.py +++ b/instana_client/api/mobile_app_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/mobile_app_configuration_api.py b/instana_client/api/mobile_app_configuration_api.py index 1c899c78..d9688bac 100644 --- a/instana_client/api/mobile_app_configuration_api.py +++ b/instana_client/api/mobile_app_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -5778,7 +5777,7 @@ def upload_mobile_app_source_map_file( :param file_type: dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file (required) :type file_type: str :param source_map: Path to your local symbol file (required) - :type source_map: bytearray + :type source_map: bytes :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5874,7 +5873,7 @@ def upload_mobile_app_source_map_file_with_http_info( :param file_type: dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file (required) :type file_type: str :param source_map: Path to your local symbol file (required) - :type source_map: bytearray + :type source_map: bytes :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5970,7 +5969,7 @@ def upload_mobile_app_source_map_file_without_preload_content( :param file_type: dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file (required) :type file_type: str :param source_map: Path to your local symbol file (required) - :type source_map: bytearray + :type source_map: bytes :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of diff --git a/instana_client/api/mobile_app_metrics_api.py b/instana_client/api/mobile_app_metrics_api.py index d1b2608c..42f2d783 100644 --- a/instana_client/api/mobile_app_metrics_api.py +++ b/instana_client/api/mobile_app_metrics_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/mobile_app_session_replay_api.py b/instana_client/api/mobile_app_session_replay_api.py index 325adbba..57f8b06b 100644 --- a/instana_client/api/mobile_app_session_replay_api.py +++ b/instana_client/api/mobile_app_session_replay_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/policies_api.py b/instana_client/api/policies_api.py index 933ad1b6..d938a3e0 100644 --- a/instana_client/api/policies_api.py +++ b/instana_client/api/policies_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -873,6 +872,546 @@ def _delete_policy_serialize( + @validate_call + def disable_policy( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to disable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Policy: + """Disables an automation policy by identifier. + + Disables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to disable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._disable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def disable_policy_with_http_info( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to disable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Policy]: + """Disables an automation policy by identifier. + + Disables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to disable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._disable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def disable_policy_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to disable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disables an automation policy by identifier. + + Disables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to disable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._disable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _disable_policy_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, List[str], List[bytes], List[Tuple[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] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/automation/policies/{id}/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def enable_policy( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to enable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Policy: + """Enables an automation policy by identifier. + + Enables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to enable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._enable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def enable_policy_with_http_info( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to enable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Policy]: + """Enables an automation policy by identifier. + + Enables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to enable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._enable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def enable_policy_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="Automation policy ID to enable")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enables an automation policy by identifier. + + Enables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings. + + :param id: Automation policy ID to enable (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._enable_policy_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': "Policy", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _enable_policy_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, List[str], List[bytes], List[Tuple[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] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/automation/policies/{id}/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_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_policies( self, diff --git a/instana_client/api/releases_api.py b/instana_client/api/releases_api.py index 515cc332..491381a4 100644 --- a/instana_client/api/releases_api.py +++ b/instana_client/api/releases_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/roles_api.py b/instana_client/api/roles_api.py index 92a8c7a9..f9c0c258 100644 --- a/instana_client/api/roles_api.py +++ b/instana_client/api/roles_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/service_levels_alert_configuration_api.py b/instana_client/api/service_levels_alert_configuration_api.py index 8d3eb4ea..dab2127b 100644 --- a/instana_client/api/service_levels_alert_configuration_api.py +++ b/instana_client/api/service_levels_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/service_levels_objective_slo_report_api.py b/instana_client/api/service_levels_objective_slo_report_api.py index 34ea180a..46724829 100644 --- a/instana_client/api/service_levels_objective_slo_report_api.py +++ b/instana_client/api/service_levels_objective_slo_report_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/session_settings_api.py b/instana_client/api/session_settings_api.py index aca3467c..d93e5c33 100644 --- a/instana_client/api/session_settings_api.py +++ b/instana_client/api/session_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/sli_report_api.py b/instana_client/api/sli_report_api.py index cea84b9b..1fd96023 100644 --- a/instana_client/api/sli_report_api.py +++ b/instana_client/api/sli_report_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/sli_settings_api.py b/instana_client/api/sli_settings_api.py index 1c3f8452..7d9de43d 100644 --- a/instana_client/api/sli_settings_api.py +++ b/instana_client/api/sli_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/slo_catalog_for_mobile_app_api.py b/instana_client/api/slo_catalog_for_mobile_app_api.py index d0cd76a9..6d65d7a5 100644 --- a/instana_client/api/slo_catalog_for_mobile_app_api.py +++ b/instana_client/api/slo_catalog_for_mobile_app_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/slo_configurations_api.py b/instana_client/api/slo_configurations_api.py index 754005b4..133984dc 100644 --- a/instana_client/api/slo_configurations_api.py +++ b/instana_client/api/slo_configurations_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/slo_correction_configurations_api.py b/instana_client/api/slo_correction_configurations_api.py index b5e9a174..792313f6 100644 --- a/instana_client/api/slo_correction_configurations_api.py +++ b/instana_client/api/slo_correction_configurations_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/slo_correction_windows_api.py b/instana_client/api/slo_correction_windows_api.py index b166a347..df2d4d49 100644 --- a/instana_client/api/slo_correction_windows_api.py +++ b/instana_client/api/slo_correction_windows_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_alert_configuration_api.py b/instana_client/api/synthetic_alert_configuration_api.py index 69fcb3e1..2a244b5b 100644 --- a/instana_client/api/synthetic_alert_configuration_api.py +++ b/instana_client/api/synthetic_alert_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_calls_api.py b/instana_client/api/synthetic_calls_api.py index 0c070e63..52e78b8b 100644 --- a/instana_client/api/synthetic_calls_api.py +++ b/instana_client/api/synthetic_calls_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_catalog_api.py b/instana_client/api/synthetic_catalog_api.py index c1884010..0fe82158 100644 --- a/instana_client/api/synthetic_catalog_api.py +++ b/instana_client/api/synthetic_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_metrics_api.py b/instana_client/api/synthetic_metrics_api.py index dbf54c5f..1b24200c 100644 --- a/instana_client/api/synthetic_metrics_api.py +++ b/instana_client/api/synthetic_metrics_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_settings_api.py b/instana_client/api/synthetic_settings_api.py index 223128b3..a880140e 100644 --- a/instana_client/api/synthetic_settings_api.py +++ b/instana_client/api/synthetic_settings_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/synthetic_test_playback_results_api.py b/instana_client/api/synthetic_test_playback_results_api.py index ff2effc0..5e194d57 100644 --- a/instana_client/api/synthetic_test_playback_results_api.py +++ b/instana_client/api/synthetic_test_playback_results_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/teams_api.py b/instana_client/api/teams_api.py index 080d52d4..0e0f83db 100644 --- a/instana_client/api/teams_api.py +++ b/instana_client/api/teams_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/usage_api.py b/instana_client/api/usage_api.py index f380e39d..6a3cbfa1 100644 --- a/instana_client/api/usage_api.py +++ b/instana_client/api/usage_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/user_api.py b/instana_client/api/user_api.py index 4bc999ba..54c6e6bf 100644 --- a/instana_client/api/user_api.py +++ b/instana_client/api/user_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/website_analyze_api.py b/instana_client/api/website_analyze_api.py index ee9b2687..1e608c77 100644 --- a/instana_client/api/website_analyze_api.py +++ b/instana_client/api/website_analyze_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/website_catalog_api.py b/instana_client/api/website_catalog_api.py index f21e5da6..33ae73b9 100644 --- a/instana_client/api/website_catalog_api.py +++ b/instana_client/api/website_catalog_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api/website_configuration_api.py b/instana_client/api/website_configuration_api.py index eb6d50f5..53f3da8d 100644 --- a/instana_client/api/website_configuration_api.py +++ b/instana_client/api/website_configuration_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -4908,7 +4907,7 @@ def upload_source_map_file( :param source_map_config_id: Source Map Config ID (required) :type source_map_config_id: str :param source_map: Local Source Map file path (required) - :type source_map: bytearray + :type source_map: bytes :param url: URL of the website (required) :type url: str :param file_format: @@ -4996,7 +4995,7 @@ def upload_source_map_file_with_http_info( :param source_map_config_id: Source Map Config ID (required) :type source_map_config_id: str :param source_map: Local Source Map file path (required) - :type source_map: bytearray + :type source_map: bytes :param url: URL of the website (required) :type url: str :param file_format: @@ -5084,7 +5083,7 @@ def upload_source_map_file_without_preload_content( :param source_map_config_id: Source Map Config ID (required) :type source_map_config_id: str :param source_map: Local Source Map file path (required) - :type source_map: bytearray + :type source_map: bytes :param url: URL of the website (required) :type url: str :param file_format: diff --git a/instana_client/api/website_metrics_api.py b/instana_client/api/website_metrics_api.py index 9e6477ad..adfe74ec 100644 --- a/instana_client/api/website_metrics_api.py +++ b/instana_client/api/website_metrics_api.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/instana_client/api_client.py b/instana_client/api_client.py index 7d9ddbc9..f0238b76 100644 --- a/instana_client/api_client.py +++ b/instana_client/api_client.py @@ -1,11 +1,9 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,6 +11,7 @@ """ # noqa: E501 + import datetime from dateutil.parser import parse from enum import Enum @@ -70,6 +69,7 @@ class ApiClient: 'date': datetime.date, 'datetime': datetime.datetime, 'decimal': decimal.Decimal, + 'UUID': uuid.UUID, 'object': object, } _pool = None @@ -307,13 +307,13 @@ def response_deserialize( response_text = None return_data = None try: - if response_type == "bytearray": + if response_type in ("bytearray", "bytes"): return_data = response_data.data elif response_type == "file": return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader('content-type') + content_type = response_data.headers.get('content-type') if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" @@ -330,7 +330,7 @@ def response_deserialize( return ApiResponse( status_code = response_data.status, data = return_data, - headers = response_data.getheaders(), + headers = response_data.headers, raw_data = response_data.data ) @@ -372,28 +372,24 @@ def sanitize_for_serialization(self, obj): return obj.isoformat() elif isinstance(obj, decimal.Decimal): return str(obj) - elif isinstance(obj, dict): - obj_dict = obj + return { + key: self.sanitize_for_serialization(val) + for key, val in obj.items() + } + + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() else: - # Convert model obj to dict except - # attributes `openapi_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): - obj_dict = obj.to_dict() - else: - obj_dict = obj.__dict__ + obj_dict = obj.__dict__ - if isinstance(obj_dict, list): - # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() - return self.sanitize_for_serialization(obj_dict) + return self.sanitize_for_serialization(obj_dict) - return { - key: self.sanitize_for_serialization(val) - for key, val in obj_dict.items() - } def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. @@ -461,14 +457,16 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) + elif klass is uuid.UUID: + return uuid.UUID(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -702,14 +700,16 @@ def __deserialize_file(self, response): os.close(fd) os.remove(path) - content_disposition = response.getheader("Content-Disposition") + content_disposition = response.headers.get("Content-Disposition") if content_disposition: m = re.search( r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition ) assert m is not None, "Unexpected 'content-disposition' header value" - filename = m.group(1) + filename = os.path.basename(m.group(1)) # Strip any directory traversal + if filename in ("", ".", ".."): # fall back to tmp filename + filename = os.path.basename(path) path = os.path.join(os.path.dirname(path), filename) with open(path, "wb") as f: diff --git a/instana_client/configuration.py b/instana_client/configuration.py index a6fb3fa3..663dba3b 100644 --- a/instana_client/configuration.py +++ b/instana_client/configuration.py @@ -1,11 +1,9 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -159,11 +157,25 @@ class Configuration: string values to replace variables in templated server configuration. The validation of enums is performed for variables with defined enum values before. + :param verify_ssl: bool - Set this to false to skip verifying SSL certificate + when calling API from https server. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. - :param retries: Number of retries for API requests. + :param retries: int | urllib3.util.retry.Retry - Retry configuration. :param ca_cert_data: verify the peer using concatenated CA certificate data in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. + :param assert_hostname: Set this to True/False to enable/disable SSL hostname verification. + :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server. + :param connection_pool_maxsize: Connection pool max size. None in the constructor is coerced to 100 for async and cpu_count * 5 for sync. + :param proxy: Proxy URL. + :param proxy_headers: Proxy headers. + :param safe_chars_for_path_param: Safe characters for path parameter encoding. + :param client_side_validation: Enable client-side validation. Default True. + :param socket_options: Options to pass down to the underlying urllib3 socket. + :param datetime_format: Datetime format string for serialization. + :param date_format: Date format string for serialization. :Example: @@ -203,8 +215,21 @@ def __init__( server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, - retries: Optional[int] = None, + retries: Optional[Union[int, urllib3.util.retry.Retry]] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, + verify_ssl: bool=True, + assert_hostname: Optional[bool]=None, + tls_server_name: Optional[str]=None, + connection_pool_maxsize: Optional[int]=None, + proxy: Optional[str]=None, + proxy_headers: Optional[Any]=None, + safe_chars_for_path_param: str='', + client_side_validation: bool=True, + socket_options: Optional[Any]=None, + datetime_format: str="%Y-%m-%dT%H:%M:%S.%f%z", + date_format: str="%Y-%m-%d", *, debug: Optional[bool] = None, ) -> None: @@ -274,7 +299,7 @@ def __init__( """Debug switch """ - self.verify_ssl = True + self.verify_ssl = verify_ssl """SSL/TLS verification Set this to false to skip verifying SSL certificate when calling API from https server. @@ -286,52 +311,49 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ - self.assert_hostname = None + self.assert_hostname = assert_hostname """Set this to True/False to enable/disable SSL hostname verification. """ - self.tls_server_name = None + self.tls_server_name = tls_server_name """SSL/TLS Server Name Indication (SNI) Set this to the SNI value expected by the server. """ - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + self.connection_pool_maxsize = connection_pool_maxsize if connection_pool_maxsize is not None else multiprocessing.cpu_count() * 5 """urllib3 connection pool's maximum number of connections saved - per pool. urllib3 uses 1 connection as default value, but this is - not the best value when you are making a lot of possibly parallel - requests to the same host, which is often the case here. - cpu_count * 5 is used as default value to increase performance. + per pool. None in the constructor is coerced to cpu_count * 5. """ - self.proxy: Optional[str] = None + self.proxy = proxy """Proxy URL """ - self.proxy_headers = None + self.proxy_headers = proxy_headers """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = safe_chars_for_path_param """Safe chars for path_param """ self.retries = retries - """Adding retries to override urllib3 default value 3 + """Retry configuration """ # Enable client side validation - self.client_side_validation = True + self.client_side_validation = client_side_validation - self.socket_options = None + self.socket_options = socket_options """Options to pass down to the underlying urllib3 socket """ - self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + self.datetime_format = datetime_format """datetime format """ - self.date_format = "%Y-%m-%d" + self.date_format = date_format """date format """ @@ -502,6 +524,7 @@ def get_basic_auth_token(self) -> Optional[str]: password = "" if self.password is not None: password = self.password + return urllib3.util.make_headers( basic_auth=username + ':' + password ).get('authorization') @@ -531,7 +554,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.328.1128\n"\ + "Version of the API: 1.329.1386\n"\ "SDK Package Version: 1.1.4".\ format(env=sys.platform, pyversion=sys.version) @@ -590,6 +613,7 @@ def get_host_from_settings( variable_name, variable['default_value']) if 'enum_values' in variable \ + and variable['enum_values'] \ and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " diff --git a/instana_client/exceptions.py b/instana_client/exceptions.py index b3458d32..934626f1 100644 --- a/instana_client/exceptions.py +++ b/instana_client/exceptions.py @@ -1,17 +1,16 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 + from typing import Any, Optional from typing_extensions import Self @@ -129,7 +128,7 @@ def __init__( self.body = http_resp.data.decode('utf-8') except Exception: pass - self.headers = http_resp.getheaders() + self.headers = http_resp.headers @classmethod def from_response( @@ -170,8 +169,11 @@ def __str__(self): error_message += "HTTP response headers: {0}\n".format( self.headers) - if self.data or self.body: - error_message += "HTTP response body: {0}\n".format(self.data or self.body) + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + if self.data: + error_message += "HTTP response data: {0}\n".format(self.data) return error_message diff --git a/instana_client/models/__init__.py b/instana_client/models/__init__.py index 6fcece5c..60bd102b 100644 --- a/instana_client/models/__init__.py +++ b/instana_client/models/__init__.py @@ -6,601 +6,14 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -if __import__("typing").TYPE_CHECKING: - # import models into model package - from instana_client.models.abstract_integration import AbstractIntegration - from instana_client.models.abstract_rule import AbstractRule - from instana_client.models.access_rule import AccessRule - from instana_client.models.action import Action - from instana_client.models.action_beacon import ActionBeacon - from instana_client.models.action_configuration import ActionConfiguration - from instana_client.models.action_instance import ActionInstance - from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry - from instana_client.models.action_instance_parameter import ActionInstanceParameter - from instana_client.models.action_instance_request import ActionInstanceRequest - from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters - from instana_client.models.action_match import ActionMatch - from instana_client.models.action_search_space import ActionSearchSpace - from instana_client.models.adaptive_baseline import AdaptiveBaseline - from instana_client.models.adaptive_threshold_rule import AdaptiveThresholdRule - from instana_client.models.adjusted_timeframe import AdjustedTimeframe - from instana_client.models.advanced_custom_blueprint_indicator import AdvancedCustomBlueprintIndicator - from instana_client.models.advanced_filter import AdvancedFilter - from instana_client.models.agent_configuration_update import AgentConfigurationUpdate - from instana_client.models.agent_mode_update import AgentModeUpdate - from instana_client.models.alerting_configuration import AlertingConfiguration - from instana_client.models.alerting_configuration_with_last_updated import AlertingConfigurationWithLastUpdated - from instana_client.models.alerting_time_window import AlertingTimeWindow - from instana_client.models.apdex_alert_rule import ApdexAlertRule - from instana_client.models.apdex_config_with_rbac_tag import ApdexConfigWithRBACTag - from instana_client.models.apdex_configuration import ApdexConfiguration - from instana_client.models.apdex_configuration_input import ApdexConfigurationInput - from instana_client.models.apdex_entity import ApdexEntity - from instana_client.models.apdex_level import ApdexLevel - from instana_client.models.apdex_report import ApdexReport - from instana_client.models.api_create_group import ApiCreateGroup - from instana_client.models.api_create_role import ApiCreateRole - from instana_client.models.api_group import ApiGroup - from instana_client.models.api_group_to_team_role_migration import ApiGroupToTeamRoleMigration - from instana_client.models.api_log_item import ApiLogItem - from instana_client.models.api_log_tag import ApiLogTag - from instana_client.models.api_member import ApiMember - from instana_client.models.api_permission_set import ApiPermissionSet - from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter - from instana_client.models.api_role import ApiRole - from instana_client.models.api_tag import ApiTag - from instana_client.models.api_team import ApiTeam - from instana_client.models.api_team_info import ApiTeamInfo - from instana_client.models.api_team_member import ApiTeamMember - from instana_client.models.api_team_role import ApiTeamRole - from instana_client.models.api_team_scope import ApiTeamScope - from instana_client.models.api_token import ApiToken - from instana_client.models.app_data_metric_configuration import AppDataMetricConfiguration - from instana_client.models.application import Application - from instana_client.models.application_alert_config import ApplicationAlertConfig - from instana_client.models.application_alert_config_with_metadata import ApplicationAlertConfigWithMetadata - from instana_client.models.application_alert_rule import ApplicationAlertRule - from instana_client.models.application_apdex_entity import ApplicationApdexEntity - from instana_client.models.application_batch_business_criticality_update import ApplicationBatchBusinessCriticalityUpdate - from instana_client.models.application_config import ApplicationConfig - from instana_client.models.application_event_result import ApplicationEventResult - from instana_client.models.application_item import ApplicationItem - from instana_client.models.application_metric_result import ApplicationMetricResult - from instana_client.models.application_node import ApplicationNode - from instana_client.models.application_result import ApplicationResult - from instana_client.models.application_scope import ApplicationScope - from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata - from instana_client.models.application_sli_entity import ApplicationSliEntity - from instana_client.models.application_slo_entity import ApplicationSloEntity - from instana_client.models.application_time_threshold import ApplicationTimeThreshold - from instana_client.models.audit_log_ui_response import AuditLogUiResponse - from instana_client.models.author import Author - from instana_client.models.availability_blueprint_indicator import AvailabilityBlueprintIndicator - from instana_client.models.availability_sli_entity import AvailabilitySliEntity - from instana_client.models.available_metrics import AvailableMetrics - from instana_client.models.available_plugins import AvailablePlugins - from instana_client.models.backend_trace_reference import BackendTraceReference - from instana_client.models.bidirectional_ms_teams_app_integration import BidirectionalMsTeamsAppIntegration - from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration - from instana_client.models.binary_operator_dto import BinaryOperatorDTO - from instana_client.models.browser_script_configuration import BrowserScriptConfiguration - from instana_client.models.browser_script_configuration_update import BrowserScriptConfigurationUpdate - from instana_client.models.built_in_event_specification import BuiltInEventSpecification - from instana_client.models.built_in_event_specification_with_last_updated import BuiltInEventSpecificationWithLastUpdated - from instana_client.models.bulk_alert_config_request import BulkAlertConfigRequest - from instana_client.models.business_activity import BusinessActivity - from instana_client.models.business_perspective_config import BusinessPerspectiveConfig - from instana_client.models.call_groups_item import CallGroupsItem - from instana_client.models.call_groups_result import CallGroupsResult - from instana_client.models.call_relation import CallRelation - from instana_client.models.calls_event_result import CallsEventResult - from instana_client.models.change_summary import ChangeSummary - from instana_client.models.cloudfoundry_physical_context import CloudfoundryPhysicalContext - from instana_client.models.condition import Condition - from instana_client.models.config_version import ConfigVersion - from instana_client.models.correction import Correction - from instana_client.models.correction_configuration import CorrectionConfiguration - from instana_client.models.correction_scheduling import CorrectionScheduling - from instana_client.models.correction_window import CorrectionWindow - from instana_client.models.crash_mobile_app_alert_rule import CrashMobileAppAlertRule - from instana_client.models.create_evaluation_request import CreateEvaluationRequest - from instana_client.models.create_evaluation_response import CreateEvaluationResponse - from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner - from instana_client.models.cursor_paginated_business_activity_item import CursorPaginatedBusinessActivityItem - from instana_client.models.cursor_pagination import CursorPagination - from instana_client.models.cursor_pagination_with_ui_cursor_infra_explore_cursor import CursorPaginationWithUiCursorInfraExploreCursor - from instana_client.models.custom_blueprint_indicator import CustomBlueprintIndicator - from instana_client.models.custom_dashboard import CustomDashboard - from instana_client.models.custom_dashboard_preview import CustomDashboardPreview - from instana_client.models.custom_dashboard_with_user_specific_information import CustomDashboardWithUserSpecificInformation - from instana_client.models.custom_dependency import CustomDependency - from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix - from instana_client.models.custom_entity_model import CustomEntityModel - from instana_client.models.custom_entity_with_metadata import CustomEntityWithMetadata - from instana_client.models.custom_event_mobile_app_alert_rule import CustomEventMobileAppAlertRule - from instana_client.models.custom_event_specification import CustomEventSpecification - from instana_client.models.custom_event_specification_with_last_updated import CustomEventSpecificationWithLastUpdated - from instana_client.models.custom_event_website_alert_rule import CustomEventWebsiteAlertRule - from instana_client.models.custom_metric import CustomMetric - from instana_client.models.custom_metric_application_alert_rule import CustomMetricApplicationAlertRule - from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration - from instana_client.models.custom_payload_field import CustomPayloadField - from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated - from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion - from instana_client.models.custom_tag import CustomTag - from instana_client.models.customer_email import CustomerEmail - from instana_client.models.dns_configuration import DNSConfiguration - from instana_client.models.dns_configuration_update import DNSConfigurationUpdate - from instana_client.models.dns_filter_query_time import DNSFilterQueryTime - from instana_client.models.dns_filter_target_value import DNSFilterTargetValue - from instana_client.models.dashboard_api_token import DashboardApiToken - from instana_client.models.database_integration import DatabaseIntegration - from instana_client.models.deprecated_tag_filter import DeprecatedTagFilter - from instana_client.models.duration import Duration - from instana_client.models.dynamic_field import DynamicField - from instana_client.models.dynamic_field_value import DynamicFieldValue - from instana_client.models.dynamic_parameter import DynamicParameter - from instana_client.models.dynamic_tag import DynamicTag - from instana_client.models.edit_user import EditUser - from instana_client.models.email_integration import EmailIntegration - from instana_client.models.empty_configuration import EmptyConfiguration - from instana_client.models.endpoint import Endpoint - from instana_client.models.endpoint_config import EndpointConfig - from instana_client.models.endpoint_event_result import EndpointEventResult - from instana_client.models.endpoint_item import EndpointItem - from instana_client.models.endpoint_metric_result import EndpointMetricResult - from instana_client.models.endpoint_node import EndpointNode - from instana_client.models.endpoint_result import EndpointResult - from instana_client.models.endpoint_simple import EndpointSimple - from instana_client.models.entity_count_rule import EntityCountRule - from instana_client.models.entity_count_verification_rule import EntityCountVerificationRule - from instana_client.models.entity_health_info import EntityHealthInfo - from instana_client.models.entity_id import EntityId - from instana_client.models.entity_metric import EntityMetric - from instana_client.models.entity_metric_scope import EntityMetricScope - from instana_client.models.entity_verification_rule import EntityVerificationRule - from instana_client.models.error_budget_alert_rule import ErrorBudgetAlertRule - from instana_client.models.errors_application_alert_rule import ErrorsApplicationAlertRule - from instana_client.models.evaluation_detail_response import EvaluationDetailResponse - from instana_client.models.evaluation_list_item import EvaluationListItem - from instana_client.models.evaluation_list_response import EvaluationListResponse - from instana_client.models.evaluator import Evaluator - from instana_client.models.event import Event - from instana_client.models.event_filtering_configuration import EventFilteringConfiguration - from instana_client.models.event_result import EventResult - from instana_client.models.event_specification_info import EventSpecificationInfo - from instana_client.models.extended_service import ExtendedService - from instana_client.models.failure_synthetic_alert_rule import FailureSyntheticAlertRule - from instana_client.models.filter_interface import FilterInterface - from instana_client.models.fixed_http_path_segment_matching_rule import FixedHttpPathSegmentMatchingRule - from instana_client.models.fixed_time_window import FixedTimeWindow - from instana_client.models.gateway_status_response import GatewayStatusResponse - from instana_client.models.generic_infra_alert_rule import GenericInfraAlertRule - from instana_client.models.geo_location_configuration import GeoLocationConfiguration - from instana_client.models.geo_mapping_rule import GeoMappingRule - from instana_client.models.geo_subdivision import GeoSubdivision - from instana_client.models.get_action_beacons_result import GetActionBeaconsResult - from instana_client.models.get_activities import GetActivities - from instana_client.models.get_application_metrics import GetApplicationMetrics - from instana_client.models.get_applications import GetApplications - from instana_client.models.get_available_metrics_query import GetAvailableMetricsQuery - from instana_client.models.get_available_plugins_query import GetAvailablePluginsQuery - from instana_client.models.get_call_groups import GetCallGroups - from instana_client.models.get_combined_metrics import GetCombinedMetrics - from instana_client.models.get_dynamic_parameter_values import GetDynamicParameterValues - from instana_client.models.get_endpoints import GetEndpoints - from instana_client.models.get_infrastructure_groups_query import GetInfrastructureGroupsQuery - from instana_client.models.get_infrastructure_query import GetInfrastructureQuery - from instana_client.models.get_metrics_result import GetMetricsResult - from instana_client.models.get_mobile_app_beacon_groups import GetMobileAppBeaconGroups - from instana_client.models.get_mobile_app_beacons import GetMobileAppBeacons - from instana_client.models.get_mobile_app_metrics import GetMobileAppMetrics - from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 - from instana_client.models.get_payload_keys_result import GetPayloadKeysResult - from instana_client.models.get_services import GetServices - from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult - from instana_client.models.get_snapshots_query import GetSnapshotsQuery - from instana_client.models.get_test_result import GetTestResult - from instana_client.models.get_test_result_analytic import GetTestResultAnalytic - from instana_client.models.get_test_result_base import GetTestResultBase - from instana_client.models.get_test_result_list import GetTestResultList - from instana_client.models.get_test_summary_result import GetTestSummaryResult - from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem - from instana_client.models.get_trace_groups import GetTraceGroups - from instana_client.models.get_traces import GetTraces - from instana_client.models.get_website_beacon_groups import GetWebsiteBeaconGroups - from instana_client.models.get_website_beacons import GetWebsiteBeacons - from instana_client.models.get_website_metrics import GetWebsiteMetrics - from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2 - from instana_client.models.git_hub_configuration import GitHubConfiguration - from instana_client.models.global_application_alert_config_with_metadata import GlobalApplicationAlertConfigWithMetadata - from instana_client.models.global_applications_alert_config import GlobalApplicationsAlertConfig - from instana_client.models.google_chat_integration import GoogleChatIntegration - from instana_client.models.graph_edge import GraphEdge - from instana_client.models.graph_node import GraphNode - from instana_client.models.group import Group - from instana_client.models.group_by_tag import GroupByTag - from instana_client.models.health_state import HealthState - from instana_client.models.historic_baseline import HistoricBaseline - from instana_client.models.host_availability_rule import HostAvailabilityRule - from instana_client.models.http_action_configuration import HttpActionConfiguration - from instana_client.models.http_action_configuration_update import HttpActionConfigurationUpdate - from instana_client.models.http_endpoint_config import HttpEndpointConfig - from instana_client.models.http_endpoint_rule import HttpEndpointRule - from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule - from instana_client.models.http_script_configuration import HttpScriptConfiguration - from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate - from instana_client.models.hyper_param import HyperParam - from instana_client.models.icmp_configuration import ICMPConfiguration - from instana_client.models.icmp_configuration_update import ICMPConfigurationUpdate - from instana_client.models.icmp_validation import ICMPValidation - from instana_client.models.ip_filtering import IPFiltering - from instana_client.models.ip_filtering_rule_dto import IPFilteringRuleDto - from instana_client.models.ip_filtering_upsert import IPFilteringUpsert - from instana_client.models.identity_provider_patch import IdentityProviderPatch - from instana_client.models.idp_status_update import IdpStatusUpdate - from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo - from instana_client.models.infra_alert_config import InfraAlertConfig - from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata - from instana_client.models.infra_alert_rule import InfraAlertRule - from instana_client.models.infra_event_result import InfraEventResult - from instana_client.models.infra_slo_entity import InfraSloEntity - from instana_client.models.infra_time_threshold import InfraTimeThreshold - from instana_client.models.infrastructure_entities_result import InfrastructureEntitiesResult - from instana_client.models.infrastructure_group import InfrastructureGroup - from instana_client.models.infrastructure_groups_result import InfrastructureGroupsResult - from instana_client.models.infrastructure_item import InfrastructureItem - from instana_client.models.infrastructure_metric_result import InfrastructureMetricResult - from instana_client.models.instana_version_info import InstanaVersionInfo - from instana_client.models.integration_overview import IntegrationOverview - from instana_client.models.invitation import Invitation - from instana_client.models.invitation_response import InvitationResponse - from instana_client.models.invitation_result import InvitationResult - from instana_client.models.ip_masking_configuration import IpMaskingConfiguration - from instana_client.models.js_stack_trace_line import JsStackTraceLine - from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext - from instana_client.models.llm_egress_gateway import LLMEgressGateway - from instana_client.models.llm_gateway_capability import LLMGatewayCapability - from instana_client.models.llm_gateway_model import LLMGatewayModel - from instana_client.models.llm_gateway_service import LLMGatewayService - from instana_client.models.llm_gateway_test_connection_request import LLMGatewayTestConnectionRequest - from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator - from instana_client.models.llm_model_price import LlmModelPrice - from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata - from instana_client.models.location_status import LocationStatus - from instana_client.models.log_alert_config import LogAlertConfig - from instana_client.models.log_alert_config_with_metadata import LogAlertConfigWithMetadata - from instana_client.models.log_alert_rule import LogAlertRule - from instana_client.models.log_count_alert_rule import LogCountAlertRule - from instana_client.models.log_event_result import LogEventResult - from instana_client.models.log_time_threshold import LogTimeThreshold - from instana_client.models.log_volume_group import LogVolumeGroup - from instana_client.models.log_volume_usage_item import LogVolumeUsageItem - from instana_client.models.log_volume_usage_result import LogVolumeUsageResult - from instana_client.models.logging_perspective import LoggingPerspective - from instana_client.models.logs_api_response import LogsApiResponse - from instana_client.models.logs_application_alert_rule import LogsApplicationAlertRule - from instana_client.models.logs_query import LogsQuery - from instana_client.models.maintenance_config import MaintenanceConfig - from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling - from instana_client.models.maintenance_config_v2 import MaintenanceConfigV2 - from instana_client.models.maintenance_config_v2_with_state_and_occurrence import MaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.maintenance_config_with_last_updated import MaintenanceConfigWithLastUpdated - from instana_client.models.maintenance_window import MaintenanceWindow - from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration - from instana_client.models.manual_close_info import ManualCloseInfo - from instana_client.models.manual_service_config import ManualServiceConfig - from instana_client.models.mapping import Mapping - from instana_client.models.mapping_overview import MappingOverview - from instana_client.models.match_all_http_path_segment_matching_rule import MatchAllHttpPathSegmentMatchingRule - from instana_client.models.match_expression_dto import MatchExpressionDTO - from instana_client.models.meta_data import MetaData - from instana_client.models.metric_api_result import MetricAPIResult - from instana_client.models.metric_config import MetricConfig - from instana_client.models.metric_configuration import MetricConfiguration - from instana_client.models.metric_description import MetricDescription - from instana_client.models.metric_field import MetricField - from instana_client.models.metric_field_value import MetricFieldValue - from instana_client.models.metric_instance import MetricInstance - from instana_client.models.metric_item import MetricItem - from instana_client.models.metric_metadata import MetricMetadata - from instana_client.models.metric_pattern import MetricPattern - from instana_client.models.metrics_result import MetricsResult - from instana_client.models.metrics_result_item import MetricsResultItem - from instana_client.models.metrics_test_result_item import MetricsTestResultItem - from instana_client.models.mobile_app import MobileApp - from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig - from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag - from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule - from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem - from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult - from instana_client.models.mobile_app_beacon_result import MobileAppBeaconResult - from instana_client.models.mobile_app_beacon_tag_group import MobileAppBeaconTagGroup - from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem - from instana_client.models.mobile_app_event_result import MobileAppEventResult - from instana_client.models.mobile_app_metric_result import MobileAppMetricResult - from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon - from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription - from instana_client.models.mobile_app_monitoring_metrics_configuration import MobileAppMonitoringMetricsConfiguration - from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold - from instana_client.models.mobile_slo_entity import MobileSloEntity - from instana_client.models.model_field import ModelField - from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats - from instana_client.models.monitoring_state import MonitoringState - from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration - from instana_client.models.ns1_integration import NS1Integration - from instana_client.models.new_application_config import NewApplicationConfig - from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig - from instana_client.models.new_manual_service_config import NewManualServiceConfig - from instana_client.models.notification import Notification - from instana_client.models.o_auth_config import OAuthConfig - from instana_client.models.o_auth_integration import OAuthIntegration - from instana_client.models.o_auth_token import OAuthToken - from instana_client.models.occurrence import Occurrence - from instana_client.models.office365_integration import Office365Integration - from instana_client.models.one_time_maintenance_window import OneTimeMaintenanceWindow - from instana_client.models.opsgenie_integration import OpsgenieIntegration - from instana_client.models.order import Order - from instana_client.models.pagerduty_integration import PagerdutyIntegration - from instana_client.models.paginated_result import PaginatedResult - from instana_client.models.pagination import Pagination - from instana_client.models.parameter import Parameter - from instana_client.models.parameter_value import ParameterValue - from instana_client.models.path_parameter_http_path_segment_matching_rule import PathParameterHttpPathSegmentMatchingRule - from instana_client.models.physical_context import PhysicalContext - from instana_client.models.plugin_result import PluginResult - from instana_client.models.policy import Policy - from instana_client.models.policy_runnable import PolicyRunnable - from instana_client.models.policy_scheduling import PolicyScheduling - from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest - from instana_client.models.post_snapshots_result import PostSnapshotsResult - from instana_client.models.prefix_object import PrefixObject - from instana_client.models.problem import Problem - from instana_client.models.prometheus_webhook_integration import PrometheusWebhookIntegration - from instana_client.models.rbac_restrictions import RbacRestrictions - from instana_client.models.recurrent_maintenance_window import RecurrentMaintenanceWindow - from instana_client.models.release import Release - from instana_client.models.release_scope import ReleaseScope - from instana_client.models.release_with_metadata import ReleaseWithMetadata - from instana_client.models.retention_period import RetentionPeriod - from instana_client.models.role_mapping_overview import RoleMappingOverview - from instana_client.models.rolling_time_window import RollingTimeWindow - from instana_client.models.rule_input import RuleInput - from instana_client.models.rule_with_threshold_application_alert_rule import RuleWithThresholdApplicationAlertRule - from instana_client.models.rule_with_threshold_infra_alert_rule import RuleWithThresholdInfraAlertRule - from instana_client.models.rule_with_threshold_log_alert_rule import RuleWithThresholdLogAlertRule - from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule - from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule - from instana_client.models.run_configuration import RunConfiguration - from instana_client.models.run_evaluation_response import RunEvaluationResponse - from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag - from instana_client.models.ssl_certificate_configuration import SSLCertificateConfiguration - from instana_client.models.ssl_certificate_configuration_update import SSLCertificateConfigurationUpdate - from instana_client.models.ssl_certificate_validation import SSLCertificateValidation - from instana_client.models.salesforce_integration import SalesforceIntegration - from instana_client.models.sampling_metadata import SamplingMetadata - from instana_client.models.saturation_blueprint_indicator import SaturationBlueprintIndicator - from instana_client.models.scope_binding import ScopeBinding - from instana_client.models.search_field_result import SearchFieldResult - from instana_client.models.service import Service - from instana_client.models.service_config import ServiceConfig - from instana_client.models.service_event_result import ServiceEventResult - from instana_client.models.service_item import ServiceItem - from instana_client.models.service_level_indicator import ServiceLevelIndicator - from instana_client.models.service_level_objective_alert_rule import ServiceLevelObjectiveAlertRule - from instana_client.models.service_levels_alert_config import ServiceLevelsAlertConfig - from instana_client.models.service_levels_alert_config_with_rbac_tag import ServiceLevelsAlertConfigWithRBACTag - from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule - from instana_client.models.service_levels_burn_rate_config import ServiceLevelsBurnRateConfig - from instana_client.models.service_levels_burn_rate_time_windows import ServiceLevelsBurnRateTimeWindows - from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig - from instana_client.models.service_levels_time_threshold import ServiceLevelsTimeThreshold - from instana_client.models.service_levelse_alert_config_with_metadata import ServiceLevelseAlertConfigWithMetadata - from instana_client.models.service_map import ServiceMap - from instana_client.models.service_map_connection import ServiceMapConnection - from instana_client.models.service_matching_rule import ServiceMatchingRule - from instana_client.models.service_metric_result import ServiceMetricResult - from instana_client.models.service_node import ServiceNode - from instana_client.models.service_now_enhanced_integration import ServiceNowEnhancedIntegration - from instana_client.models.service_now_integration import ServiceNowIntegration - from instana_client.models.service_result import ServiceResult - from instana_client.models.service_scope import ServiceScope - from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata - from instana_client.models.service_scoped_to import ServiceScopedTo - from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata - from instana_client.models.service_simple import ServiceSimple - from instana_client.models.session_replay_metadata import SessionReplayMetadata - from instana_client.models.session_replay_timestamps import SessionReplayTimestamps - from instana_client.models.session_settings import SessionSettings - from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration - from instana_client.models.slack_integration import SlackIntegration - from instana_client.models.sli_configuration import SliConfiguration - from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated - from instana_client.models.sli_entity import SliEntity - from instana_client.models.sli_report import SliReport - from instana_client.models.slo_entity import SloEntity - from instana_client.models.slo_health_snapshot import SloHealthSnapshot - from instana_client.models.slo_health_snapshot_item import SloHealthSnapshotItem - from instana_client.models.slo_report import SloReport - from instana_client.models.slowness_application_alert_rule import SlownessApplicationAlertRule - from instana_client.models.slowness_mobile_app_alert_rule import SlownessMobileAppAlertRule - from instana_client.models.slowness_website_alert_rule import SlownessWebsiteAlertRule - from instana_client.models.snapshot_item import SnapshotItem - from instana_client.models.snapshot_preview import SnapshotPreview - from instana_client.models.snapshot_result import SnapshotResult - from instana_client.models.software_user import SoftwareUser - from instana_client.models.software_version import SoftwareVersion - from instana_client.models.source_map_file_blob import SourceMapFileBlob - from instana_client.models.source_map_file_meta import SourceMapFileMeta - from instana_client.models.source_map_upload_config import SourceMapUploadConfig - from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs - from instana_client.models.span_excerpt import SpanExcerpt - from instana_client.models.span_relation import SpanRelation - from instana_client.models.specific_js_errors_website_alert_rule import SpecificJsErrorsWebsiteAlertRule - from instana_client.models.splunk_integration import SplunkIntegration - from instana_client.models.stack_trace_item import StackTraceItem - from instana_client.models.stack_trace_line import StackTraceLine - from instana_client.models.static_baseline_threshold_rule import StaticBaselineThresholdRule - from instana_client.models.static_string_field import StaticStringField - from instana_client.models.static_threshold import StaticThreshold - from instana_client.models.static_threshold_rule import StaticThresholdRule - from instana_client.models.status_code_application_alert_rule import StatusCodeApplicationAlertRule - from instana_client.models.status_code_mobile_app_alert_rule import StatusCodeMobileAppAlertRule - from instana_client.models.status_code_website_alert_rule import StatusCodeWebsiteAlertRule - from instana_client.models.synthetic_alert_config import SyntheticAlertConfig - from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata - from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag - from instana_client.models.synthetic_alert_rule import SyntheticAlertRule - from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse - from instana_client.models.synthetic_call_config import SyntheticCallConfig - from instana_client.models.synthetic_call_rule import SyntheticCallRule - from instana_client.models.synthetic_call_with_defaults_config import SyntheticCallWithDefaultsConfig - from instana_client.models.synthetic_configuration import SyntheticConfiguration - from instana_client.models.synthetic_configuration_update import SyntheticConfigurationUpdate - from instana_client.models.synthetic_credential import SyntheticCredential - from instana_client.models.synthetic_datacenter import SyntheticDatacenter - from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration - from instana_client.models.synthetic_geo_point import SyntheticGeoPoint - from instana_client.models.synthetic_location import SyntheticLocation - from instana_client.models.synthetic_location_configuration import SyntheticLocationConfiguration - from instana_client.models.synthetic_metric_configuration import SyntheticMetricConfiguration - from instana_client.models.synthetic_metric_tag_group import SyntheticMetricTagGroup - from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities - from instana_client.models.synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value import SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue - from instana_client.models.synthetic_resource_update_list_icmp_validation_list_icmp_validation import SyntheticResourceUpdateListICMPValidationListICMPValidation - from instana_client.models.synthetic_resource_update_list_network_profile_list_network_profile import SyntheticResourceUpdateListNetworkProfileListNetworkProfile - from instana_client.models.synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation import SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation - from instana_client.models.synthetic_resource_update_list_string_list_string import SyntheticResourceUpdateListStringListString - from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString - from instana_client.models.synthetic_slo_entity import SyntheticSloEntity - from instana_client.models.synthetic_test import SyntheticTest - from instana_client.models.synthetic_test_cicd import SyntheticTestCICD - from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization - from instana_client.models.synthetic_test_cicd_item import SyntheticTestCICDItem - from instana_client.models.synthetic_test_cicd_response import SyntheticTestCICDResponse - from instana_client.models.synthetic_test_deep_update import SyntheticTestDeepUpdate - from instana_client.models.synthetic_test_shallow_update import SyntheticTestShallowUpdate - from instana_client.models.synthetic_test_update import SyntheticTestUpdate - from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold - from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration - from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate - from instana_client.models.synthetics_event_result import SyntheticsEventResult - from instana_client.models.system_rule import SystemRule - from instana_client.models.system_rule_label import SystemRuleLabel - from instana_client.models.tag import Tag - from instana_client.models.tag_catalog import TagCatalog - from instana_client.models.tag_filter import TagFilter - from instana_client.models.tag_filter_expression import TagFilterExpression - from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement - from instana_client.models.tag_matcher_dto import TagMatcherDTO - from instana_client.models.tag_tree_level import TagTreeLevel - from instana_client.models.tag_tree_node import TagTreeNode - from instana_client.models.tag_tree_tag import TagTreeTag - from instana_client.models.test_common_properties import TestCommonProperties - from instana_client.models.test_connection_response import TestConnectionResponse - from instana_client.models.test_last_error import TestLastError - from instana_client.models.test_result import TestResult - from instana_client.models.test_result_common_properties import TestResultCommonProperties - from instana_client.models.test_result_detail_data import TestResultDetailData - from instana_client.models.test_result_item import TestResultItem - from instana_client.models.test_result_list_item import TestResultListItem - from instana_client.models.test_result_list_result import TestResultListResult - from instana_client.models.test_result_metadata import TestResultMetadata - from instana_client.models.test_result_subtransaction import TestResultSubtransaction - from instana_client.models.threshold import Threshold - from instana_client.models.threshold_config_rule import ThresholdConfigRule - from instana_client.models.threshold_rule import ThresholdRule - from instana_client.models.throughput_application_alert_rule import ThroughputApplicationAlertRule - from instana_client.models.throughput_mobile_app_alert_rule import ThroughputMobileAppAlertRule - from instana_client.models.throughput_website_alert_rule import ThroughputWebsiteAlertRule - from instana_client.models.time_config import TimeConfig - from instana_client.models.time_frame import TimeFrame - from instana_client.models.time_window import TimeWindow - from instana_client.models.topology import Topology - from instana_client.models.trace import Trace - from instana_client.models.trace_activity_tree_node_details import TraceActivityTreeNodeDetails - from instana_client.models.trace_download_result import TraceDownloadResult - from instana_client.models.trace_groups_item import TraceGroupsItem - from instana_client.models.trace_groups_result import TraceGroupsResult - from instana_client.models.trace_impact_application_time_threshold import TraceImpactApplicationTimeThreshold - from instana_client.models.trace_item import TraceItem - from instana_client.models.trace_result import TraceResult - from instana_client.models.trace_sampling_config import TraceSamplingConfig - from instana_client.models.traffic_blueprint_indicator import TrafficBlueprintIndicator - from instana_client.models.trigger import Trigger - from instana_client.models.type_configuration import TypeConfiguration - from instana_client.models.unified_beacon import UnifiedBeacon - from instana_client.models.unsupported_http_path_segment_matching_rule import UnsupportedHttpPathSegmentMatchingRule - from instana_client.models.update_evaluation_request import UpdateEvaluationRequest - from instana_client.models.updated_business_perspective_config import UpdatedBusinessPerspectiveConfig - from instana_client.models.usage_result import UsageResult - from instana_client.models.usage_result_items import UsageResultItems - from instana_client.models.user_basic_result import UserBasicResult - from instana_client.models.user_impact_mobile_app_time_threshold import UserImpactMobileAppTimeThreshold - from instana_client.models.user_impact_website_time_threshold import UserImpactWebsiteTimeThreshold - from instana_client.models.user_result import UserResult - from instana_client.models.users_result import UsersResult - from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo - from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration - from instana_client.models.validated_maintenance_config_v2_with_state_and_occurrence import ValidatedMaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.validated_maintenance_config_with_status import ValidatedMaintenanceConfigWithStatus - from instana_client.models.victor_ops_integration import VictorOpsIntegration - from instana_client.models.violations_in_period_application_time_threshold import ViolationsInPeriodApplicationTimeThreshold - from instana_client.models.violations_in_period_mobile_app_time_threshold import ViolationsInPeriodMobileAppTimeThreshold - from instana_client.models.violations_in_period_website_time_threshold import ViolationsInPeriodWebsiteTimeThreshold - from instana_client.models.violations_in_sequence_application_time_threshold import ViolationsInSequenceApplicationTimeThreshold - from instana_client.models.violations_in_sequence_infra_time_threshold import ViolationsInSequenceInfraTimeThreshold - from instana_client.models.violations_in_sequence_log_time_threshold import ViolationsInSequenceLogTimeThreshold - from instana_client.models.violations_in_sequence_mobile_app_time_threshold import ViolationsInSequenceMobileAppTimeThreshold - from instana_client.models.violations_in_sequence_synthetic_time_threshold import ViolationsInSequenceSyntheticTimeThreshold - from instana_client.models.violations_in_sequence_website_time_threshold import ViolationsInSequenceWebsiteTimeThreshold - from instana_client.models.watson_ai_ops_webhook_integration import WatsonAIOpsWebhookIntegration - from instana_client.models.webex_teams_webhook_integration import WebexTeamsWebhookIntegration - from instana_client.models.webhook_integration import WebhookIntegration - from instana_client.models.webpage_action_configuration import WebpageActionConfiguration - from instana_client.models.webpage_action_configuration_update import WebpageActionConfigurationUpdate - from instana_client.models.webpage_script_configuration import WebpageScriptConfiguration - from instana_client.models.webpage_script_configuration_update import WebpageScriptConfigurationUpdate - from instana_client.models.website import Website - from instana_client.models.website_alert_config import WebsiteAlertConfig - from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata - from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag - from instana_client.models.website_alert_rule import WebsiteAlertRule - from instana_client.models.website_apdex_entity import WebsiteApdexEntity - from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem - from instana_client.models.website_beacon_groups_result import WebsiteBeaconGroupsResult - from instana_client.models.website_beacon_result import WebsiteBeaconResult - from instana_client.models.website_beacon_tag_group import WebsiteBeaconTagGroup - from instana_client.models.website_beacons_item import WebsiteBeaconsItem - from instana_client.models.website_event_based_sli_entity import WebsiteEventBasedSliEntity - from instana_client.models.website_event_result import WebsiteEventResult - from instana_client.models.website_metric_result import WebsiteMetricResult - from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon - from instana_client.models.website_monitoring_metric_description import WebsiteMonitoringMetricDescription - from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration - from instana_client.models.website_slo_entity import WebsiteSloEntity - from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity - from instana_client.models.website_time_threshold import WebsiteTimeThreshold - from instana_client.models.widget import Widget - from instana_client.models.with_meta_data import WithMetaData - from instana_client.models.with_resolved_name import WithResolvedName - from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import models into model package +# import models into model package from instana_client.models.abstract_integration import AbstractIntegration from instana_client.models.abstract_rule import AbstractRule from instana_client.models.access_rule import AccessRule @@ -1179,8 +592,3 @@ from instana_client.models.with_resolved_name import WithResolvedName from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/instana_client/models/abstract_integration.py b/instana_client/models/abstract_integration.py index 5ddd285d..592e000d 100644 --- a/instana_client/models/abstract_integration.py +++ b/instana_client/models/abstract_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -58,7 +59,8 @@ class AbstractIntegration(BaseModel): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -87,8 +89,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[BidirectionalMsTeamsAppIntegration, BidirectionalSlackAppIntegration, EmailIntegration, GoogleChatIntegration, NS1Integration, Office365Integration, OpsgenieIntegration, PagerdutyIntegration, PrometheusWebhookIntegration, SalesforceIntegration, ServiceNowEnhancedIntegration, ServiceNowIntegration, SlackIntegration, SplunkIntegration, VictorOpsIntegration, WatsonAIOpsWebhookIntegration, WebexTeamsWebhookIntegration, WebhookIntegration, ZChatOpsIntegration]]: diff --git a/instana_client/models/abstract_rule.py b/instana_client/models/abstract_rule.py index fa7cc72c..7f8f61b5 100644 --- a/instana_client/models/abstract_rule.py +++ b/instana_client/models/abstract_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -42,7 +43,8 @@ class AbstractRule(BaseModel): __properties: ClassVar[List[str]] = ["ruleType", "severity"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[EntityCountRule, EntityCountVerificationRule, EntityVerificationRule, HostAvailabilityRule, SystemRule, ThresholdRule]]: diff --git a/instana_client/models/access_rule.py b/instana_client/models/access_rule.py index bac1dc08..232af722 100644 --- a/instana_client/models/access_rule.py +++ b/instana_client/models/access_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AccessRule(BaseModel): """ @@ -48,7 +49,8 @@ def relation_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action.py b/instana_client/models/action.py index 048ba524..7d00eb75 100644 --- a/instana_client/models/action.py +++ b/instana_client/models/action.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.parameter import Parameter from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Action(BaseModel): """ @@ -52,7 +53,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_beacon.py b/instana_client/models/action_beacon.py index 75ac40fb..2bf9b33a 100644 --- a/instana_client/models/action_beacon.py +++ b/instana_client/models/action_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,32 +22,34 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionBeacon(BaseModel): """ List of action beacons for the current page """ # noqa: E501 - app_state: Optional[StrictStr] = Field(default=None, description="Application state (e.g., foreground, background)", alias="appState") - beacon_clockskew: Optional[StrictInt] = Field(default=None, description="Clock skew in milliseconds between client and server", alias="beaconClockskew") - beacon_id: StrictStr = Field(description="Beacon identifier", alias="beaconId") - beacon_type: StrictStr = Field(description="Type of beacon", alias="beaconType") - bytes_ingested_metadata: Optional[StrictInt] = Field(default=None, description="Bytes ingested for metadata", alias="bytesIngestedMetadata") - event_type: Optional[StrictStr] = Field(default=None, description="Event type (e.g., st=start, fs=frustration signal, oc=orientation change)", alias="eventType") - frustration_signal: Optional[StrictStr] = Field(default=None, description="Frustration signal type (e.g., rt=rage tap)", alias="frustrationSignal") + app_state: Optional[StrictStr] = Field(default=None, description="Application state (e.g., foreground, background)", alias="appState", json_schema_extra={"examples": ["foreground"]}) + beacon_clockskew: Optional[StrictInt] = Field(default=None, description="Clock skew in milliseconds between client and server", alias="beaconClockskew", json_schema_extra={"examples": [1234]}) + beacon_id: StrictStr = Field(description="Beacon identifier", alias="beaconId", json_schema_extra={"examples": ["beacon-123"]}) + beacon_type: StrictStr = Field(description="Type of beacon", alias="beaconType", json_schema_extra={"examples": ["ued"]}) + bytes_ingested_metadata: Optional[StrictInt] = Field(default=None, description="Bytes ingested for metadata", alias="bytesIngestedMetadata", json_schema_extra={"examples": [1024]}) + event_type: Optional[StrictStr] = Field(default=None, description="Event type (e.g., st=start, fs=frustration signal, oc=orientation change)", alias="eventType", json_schema_extra={"examples": ["st"]}) + frustration_signal: Optional[StrictStr] = Field(default=None, description="Frustration signal type (e.g., rt=rage tap)", alias="frustrationSignal", json_schema_extra={"examples": ["rt"]}) keyboard_operation: Optional[StrictStr] = Field(default=None, description="Keyboard operation indicator", alias="keyboardOperation") - mobile_app_id: StrictStr = Field(description="Mobile app identifier", alias="mobileAppId") - orientation_change: Optional[StrictStr] = Field(default=None, description="Orientation change indicator (l=landscape, p=portrait)", alias="orientationChange") + mobile_app_id: StrictStr = Field(description="Mobile app identifier", alias="mobileAppId", json_schema_extra={"examples": ["KVJIyIPsTUGfvNORN_07uQ"]}) + orientation_change: Optional[StrictStr] = Field(default=None, description="Orientation change indicator (l=landscape, p=portrait)", alias="orientationChange", json_schema_extra={"examples": ["l"]}) scroll_direction: Optional[StrictStr] = Field(default=None, description="Scroll direction", alias="scrollDirection") scroll_duration: Optional[StrictStr] = Field(default=None, description="Scroll duration in milliseconds", alias="scrollDuration") - session_id: StrictStr = Field(description="Session identifier", alias="sessionId") - session_replay_version: Optional[StrictStr] = Field(default=None, description="Session replay version", alias="sessionReplayVersion") - timestamp: StrictInt = Field(description="Timestamp when the action was captured (epoch milliseconds)") - view_component_class_name: Optional[StrictStr] = Field(default=None, description="View component class name", alias="viewComponentClassName") - view_component_id: Optional[StrictStr] = Field(default=None, description="View component identifier", alias="viewComponentId") + session_id: StrictStr = Field(description="Session identifier", alias="sessionId", json_schema_extra={"examples": ["24c6c1d4-161f-4243-85eb-3d0f46edbcbf"]}) + session_replay_version: Optional[StrictStr] = Field(default=None, description="Session replay version", alias="sessionReplayVersion", json_schema_extra={"examples": ["0.0.1"]}) + timestamp: StrictInt = Field(description="Timestamp when the action was captured (epoch milliseconds)", json_schema_extra={"examples": [1757339999715]}) + view_component_class_name: Optional[StrictStr] = Field(default=None, description="View component class name", alias="viewComponentClassName", json_schema_extra={"examples": ["MaterialButton"]}) + view_component_id: Optional[StrictStr] = Field(default=None, description="View component identifier", alias="viewComponentId", json_schema_extra={"examples": ["resetDirectory"]}) __properties: ClassVar[List[str]] = ["appState", "beaconClockskew", "beaconId", "beaconType", "bytesIngestedMetadata", "eventType", "frustrationSignal", "keyboardOperation", "mobileAppId", "orientationChange", "scrollDirection", "scrollDuration", "sessionId", "sessionReplayVersion", "timestamp", "viewComponentClassName", "viewComponentId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_configuration.py b/instana_client/models/action_configuration.py index 396b5501..1c2bead1 100644 --- a/instana_client/models/action_configuration.py +++ b/instana_client/models/action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.parameter_value import ParameterValue from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionConfiguration(BaseModel): """ @@ -37,7 +38,8 @@ class ActionConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["action", "agentId", "inputParameterValues", "notifications"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_instance.py b/instana_client/models/action_instance.py index bee9f8fa..74167165 100644 --- a/instana_client/models/action_instance.py +++ b/instana_client/models/action_instance.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.action_instance_parameter import ActionInstanceParameter from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionInstance(BaseModel): """ @@ -88,7 +89,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -100,8 +102,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_instance_metadata_entry.py b/instana_client/models/action_instance_metadata_entry.py index d6be2b4e..060c9cbc 100644 --- a/instana_client/models/action_instance_metadata_entry.py +++ b/instana_client/models/action_instance_metadata_entry.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionInstanceMetadataEntry(BaseModel): """ @@ -33,7 +34,8 @@ class ActionInstanceMetadataEntry(BaseModel): __properties: ClassVar[List[str]] = ["name", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_instance_parameter.py b/instana_client/models/action_instance_parameter.py index 858e8bd4..f8c9f995 100644 --- a/instana_client/models/action_instance_parameter.py +++ b/instana_client/models/action_instance_parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionInstanceParameter(BaseModel): """ @@ -35,7 +36,8 @@ class ActionInstanceParameter(BaseModel): __properties: ClassVar[List[str]] = ["displayName", "name", "type", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_instance_request.py b/instana_client/models/action_instance_request.py index 49c10370..af4c1816 100644 --- a/instana_client/models/action_instance_request.py +++ b/instana_client/models/action_instance_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionInstanceRequest(BaseModel): """ @@ -38,7 +39,8 @@ class ActionInstanceRequest(BaseModel): __properties: ClassVar[List[str]] = ["actionId", "async", "eventId", "hostId", "inputParameters", "policyId", "timeout"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_instance_request_parameters.py b/instana_client/models/action_instance_request_parameters.py index bc4505a0..0b72bb95 100644 --- a/instana_client/models/action_instance_request_parameters.py +++ b/instana_client/models/action_instance_request_parameters.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionInstanceRequestParameters(BaseModel): """ @@ -33,7 +34,8 @@ class ActionInstanceRequestParameters(BaseModel): __properties: ClassVar[List[str]] = ["name", "type", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_match.py b/instana_client/models/action_match.py index 138caf88..12012d72 100644 --- a/instana_client/models/action_match.py +++ b/instana_client/models/action_match.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.policy import Policy from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionMatch(BaseModel): """ @@ -47,7 +48,8 @@ def ai_engine_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/action_search_space.py b/instana_client/models/action_search_space.py index 53dcf69d..d8975e31 100644 --- a/instana_client/models/action_search_space.py +++ b/instana_client/models/action_search_space.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ActionSearchSpace(BaseModel): """ @@ -35,7 +36,8 @@ class ActionSearchSpace(BaseModel): __properties: ClassVar[List[str]] = ["description", "entityType", "eventId", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/adaptive_baseline.py b/instana_client/models/adaptive_baseline.py index a407eaff..bd9a36f8 100644 --- a/instana_client/models/adaptive_baseline.py +++ b/instana_client/models/adaptive_baseline.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,22 +18,49 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field +from pydantic import ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AdaptiveBaseline(Threshold): """ AdaptiveBaseline """ # noqa: E501 - deviation_factor: Optional[Union[Annotated[float, Field(le=16.0, strict=True, ge=0.5)], Annotated[int, Field(le=16, strict=True, ge=1)]]] = Field(default=None, alias="deviationFactor") - __properties: ClassVar[List[str]] = ["operator", "type", "deviationFactor"] + adaptability: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = None + deviation_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="deviationFactor") + minimum_absolute_delta: Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="minimumAbsoluteDelta") + seasonality: Optional[StrictStr] = None + sensitivity_mode: Optional[StrictStr] = Field(default=None, alias="sensitivityMode") + sensitivity_value: Optional[Union[Annotated[float, Field(strict=True, gt=0)], Annotated[int, Field(strict=True, gt=0)]]] = Field(default=None, alias="sensitivityValue") + __properties: ClassVar[List[str]] = ["operator", "type", "adaptability", "deviationFactor", "minimumAbsoluteDelta", "seasonality", "sensitivityMode", "sensitivityValue"] + + @field_validator('seasonality') + def seasonality_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AUTO', 'WEEKLY', 'DAILY', 'NONE']): + raise ValueError("must be one of enum values ('AUTO', 'WEEKLY', 'DAILY', 'NONE')") + return value + + @field_validator('sensitivity_mode') + def sensitivity_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['STANDARD_DEVIATIONS', 'PERCENTAGE', 'ABSOLUTE']): + raise ValueError("must be one of enum values ('STANDARD_DEVIATIONS', 'PERCENTAGE', 'ABSOLUTE')") + return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -85,7 +111,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "operator": obj.get("operator"), "type": obj.get("type"), - "deviationFactor": obj.get("deviationFactor") + "adaptability": obj.get("adaptability"), + "deviationFactor": obj.get("deviationFactor"), + "minimumAbsoluteDelta": obj.get("minimumAbsoluteDelta"), + "seasonality": obj.get("seasonality"), + "sensitivityMode": obj.get("sensitivityMode"), + "sensitivityValue": obj.get("sensitivityValue") }) return _obj diff --git a/instana_client/models/adaptive_threshold_rule.py b/instana_client/models/adaptive_threshold_rule.py index 438213f2..5e8eceba 100644 --- a/instana_client/models/adaptive_threshold_rule.py +++ b/instana_client/models/adaptive_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,22 +18,49 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field +from pydantic import ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AdaptiveThresholdRule(ThresholdConfigRule): """ AdaptiveThresholdRule """ # noqa: E501 - deviation_factor: Optional[Union[Annotated[float, Field(le=16.0, strict=True, ge=0.5)], Annotated[int, Field(le=16, strict=True, ge=1)]]] = Field(default=None, alias="deviationFactor") - __properties: ClassVar[List[str]] = ["type", "deviationFactor"] + adaptability: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.01)], Annotated[int, Field(le=1, strict=True, ge=1)]]] = None + deviation_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="deviationFactor") + minimum_absolute_delta: Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="minimumAbsoluteDelta") + seasonality: Optional[StrictStr] = None + sensitivity_mode: Optional[StrictStr] = Field(default=None, alias="sensitivityMode") + sensitivity_value: Optional[Union[Annotated[float, Field(strict=True, gt=0)], Annotated[int, Field(strict=True, gt=0)]]] = Field(default=None, alias="sensitivityValue") + __properties: ClassVar[List[str]] = ["type", "adaptability", "deviationFactor", "minimumAbsoluteDelta", "seasonality", "sensitivityMode", "sensitivityValue"] + + @field_validator('seasonality') + def seasonality_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AUTO', 'WEEKLY', 'DAILY', 'NONE']): + raise ValueError("must be one of enum values ('AUTO', 'WEEKLY', 'DAILY', 'NONE')") + return value + + @field_validator('sensitivity_mode') + def sensitivity_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['STANDARD_DEVIATIONS', 'PERCENTAGE', 'ABSOLUTE']): + raise ValueError("must be one of enum values ('STANDARD_DEVIATIONS', 'PERCENTAGE', 'ABSOLUTE')") + return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -84,7 +110,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "type": obj.get("type"), - "deviationFactor": obj.get("deviationFactor") + "adaptability": obj.get("adaptability"), + "deviationFactor": obj.get("deviationFactor"), + "minimumAbsoluteDelta": obj.get("minimumAbsoluteDelta"), + "seasonality": obj.get("seasonality"), + "sensitivityMode": obj.get("sensitivityMode"), + "sensitivityValue": obj.get("sensitivityValue") }) return _obj diff --git a/instana_client/models/adjusted_timeframe.py b/instana_client/models/adjusted_timeframe.py index 9d0ce18f..2fada128 100644 --- a/instana_client/models/adjusted_timeframe.py +++ b/instana_client/models/adjusted_timeframe.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AdjustedTimeframe(BaseModel): """ @@ -33,7 +34,8 @@ class AdjustedTimeframe(BaseModel): __properties: ClassVar[List[str]] = ["to", "windowSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/advanced_custom_blueprint_indicator.py b/instana_client/models/advanced_custom_blueprint_indicator.py index 0a7a1e1a..b80fd975 100644 --- a/instana_client/models/advanced_custom_blueprint_indicator.py +++ b/instana_client/models/advanced_custom_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_level_indicator import ServiceLevelIndicator from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AdvancedCustomBlueprintIndicator(ServiceLevelIndicator): """ @@ -34,7 +35,8 @@ class AdvancedCustomBlueprintIndicator(ServiceLevelIndicator): __properties: ClassVar[List[str]] = ["aggregation", "blueprint", "operator", "serviceLevelsMeasurement", "threshold", "type", "badEvents", "goodEvents"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/advanced_filter.py b/instana_client/models/advanced_filter.py index 5c158ffc..10155627 100644 --- a/instana_client/models/advanced_filter.py +++ b/instana_client/models/advanced_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.entity_metric import EntityMetric from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AdvancedFilter(BaseModel): """ @@ -49,7 +50,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/agent_configuration_update.py b/instana_client/models/agent_configuration_update.py index de82c2b1..80cf3e7b 100644 --- a/instana_client/models/agent_configuration_update.py +++ b/instana_client/models/agent_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AgentConfigurationUpdate(BaseModel): """ @@ -34,7 +35,8 @@ class AgentConfigurationUpdate(BaseModel): __properties: ClassVar[List[str]] = ["remoteBranch", "remoteName", "remoteUri"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/agent_mode_update.py b/instana_client/models/agent_mode_update.py index b8f0b9e0..f3eac002 100644 --- a/instana_client/models/agent_mode_update.py +++ b/instana_client/models/agent_mode_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AgentModeUpdate(BaseModel): """ @@ -35,12 +36,16 @@ class AgentModeUpdate(BaseModel): @field_validator('agent_mode') def agent_mode_validate_regular_expression(cls, value): """Validates the regular expression""" + if not isinstance(value, str): + value = str(value) + if not re.match(r"APM|INFRASTRUCTURE|INFRA|OFF", value): raise ValueError(r"must validate the regular expression /APM|INFRASTRUCTURE|INFRA|OFF/") return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/alerting_configuration.py b/instana_client/models/alerting_configuration.py index a3828b83..50668371 100644 --- a/instana_client/models/alerting_configuration.py +++ b/instana_client/models/alerting_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.event_filtering_configuration import EventFilteringConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AlertingConfiguration(BaseModel): """ @@ -40,7 +41,8 @@ class AlertingConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["alertName", "customPayloadFields", "eventFilteringConfiguration", "id", "includeEntityNameInLegacyAlerts", "integrationIds", "muteUntil"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/alerting_configuration_with_last_updated.py b/instana_client/models/alerting_configuration_with_last_updated.py index b4926ce9..76d9152b 100644 --- a/instana_client/models/alerting_configuration_with_last_updated.py +++ b/instana_client/models/alerting_configuration_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.event_filtering_configuration import EventFilteringConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AlertingConfigurationWithLastUpdated(BaseModel): """ @@ -41,7 +42,8 @@ class AlertingConfigurationWithLastUpdated(BaseModel): __properties: ClassVar[List[str]] = ["alertName", "customPayloadFields", "eventFilteringConfiguration", "id", "includeEntityNameInLegacyAlerts", "integrationIds", "lastUpdated", "muteUntil"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/alerting_time_window.py b/instana_client/models/alerting_time_window.py index af8b5fd0..4141a9d7 100644 --- a/instana_client/models/alerting_time_window.py +++ b/instana_client/models/alerting_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AlertingTimeWindow(BaseModel): """ @@ -50,7 +51,8 @@ def duration_unit_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,8 +64,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_alert_rule.py b/instana_client/models/apdex_alert_rule.py index 5dc57df2..b10c00fe 100644 --- a/instana_client/models/apdex_alert_rule.py +++ b/instana_client/models/apdex_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexAlertRule(ServiceLevelsAlertRule): """ @@ -39,7 +40,8 @@ def metric_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_config_with_rbac_tag.py b/instana_client/models/apdex_config_with_rbac_tag.py index 563ac365..7ed4b58c 100644 --- a/instana_client/models/apdex_config_with_rbac_tag.py +++ b/instana_client/models/apdex_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.api_tag import ApiTag from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexConfigWithRBACTag(BaseModel): """ @@ -40,7 +41,8 @@ class ApdexConfigWithRBACTag(BaseModel): __properties: ClassVar[List[str]] = ["apdexEntity", "apdexName", "createdAt", "id", "lastUpdated", "rbacTags", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_configuration.py b/instana_client/models/apdex_configuration.py index a3a3f056..2ffb8897 100644 --- a/instana_client/models/apdex_configuration.py +++ b/instana_client/models/apdex_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.apdex_entity import ApdexEntity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexConfiguration(BaseModel): """ @@ -38,7 +39,8 @@ class ApdexConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["apdexEntity", "apdexName", "createdAt", "id", "lastUpdated", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_configuration_input.py b/instana_client/models/apdex_configuration_input.py index 280d1aeb..92d3d613 100644 --- a/instana_client/models/apdex_configuration_input.py +++ b/instana_client/models/apdex_configuration_input.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.apdex_entity import ApdexEntity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexConfigurationInput(BaseModel): """ @@ -35,7 +36,8 @@ class ApdexConfigurationInput(BaseModel): __properties: ClassVar[List[str]] = ["apdexEntity", "apdexName", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_entity.py b/instana_client/models/apdex_entity.py index 06919ddd..9223e977 100644 --- a/instana_client/models/apdex_entity.py +++ b/instana_client/models/apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -42,7 +43,8 @@ class ApdexEntity(BaseModel): __properties: ClassVar[List[str]] = ["apdexType", "entityId", "tagFilterExpression", "threshold"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ApplicationApdexEntity, WebsiteApdexEntity]]: diff --git a/instana_client/models/apdex_level.py b/instana_client/models/apdex_level.py index e7a15c27..45695c67 100644 --- a/instana_client/models/apdex_level.py +++ b/instana_client/models/apdex_level.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,19 +22,21 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexLevel(BaseModel): """ Apdex satisfaction level definition with threshold boundaries """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the level") - lower: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Lower threshold boundary (inclusive)") - name: Optional[StrictStr] = Field(default=None, description="Name of the satisfaction level") - upper: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Upper threshold boundary (inclusive)") + id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the level", json_schema_extra={"examples": [0]}) + lower: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Lower threshold boundary (inclusive)", json_schema_extra={"examples": [0.94]}) + name: Optional[StrictStr] = Field(default=None, description="Name of the satisfaction level", json_schema_extra={"examples": ["Excellent"]}) + upper: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Upper threshold boundary (inclusive)", json_schema_extra={"examples": [1.0]}) __properties: ClassVar[List[str]] = ["id", "lower", "name", "upper"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/apdex_report.py b/instana_client/models/apdex_report.py index 9d5c8f16..6adf28f0 100644 --- a/instana_client/models/apdex_report.py +++ b/instana_client/models/apdex_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApdexReport(BaseModel): """ @@ -34,7 +35,8 @@ class ApdexReport(BaseModel): __properties: ClassVar[List[str]] = ["apdexId", "apdexScore", "from", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_create_group.py b/instana_client/models/api_create_group.py index 01fbe417..d10a8572 100644 --- a/instana_client/models/api_create_group.py +++ b/instana_client/models/api_create_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.api_permission_set import ApiPermissionSet from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiCreateGroup(BaseModel): """ @@ -37,7 +38,8 @@ class ApiCreateGroup(BaseModel): __properties: ClassVar[List[str]] = ["description", "members", "name", "permissionSet"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_create_role.py b/instana_client/models/api_create_role.py index 6322223c..5a627c64 100644 --- a/instana_client/models/api_create_role.py +++ b/instana_client/models/api_create_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.api_member import ApiMember from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiCreateRole(BaseModel): """ @@ -36,7 +37,8 @@ class ApiCreateRole(BaseModel): __properties: ClassVar[List[str]] = ["description", "members", "name", "permissions"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_group.py b/instana_client/models/api_group.py index 448ff306..d631b295 100644 --- a/instana_client/models/api_group.py +++ b/instana_client/models/api_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.api_permission_set import ApiPermissionSet from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiGroup(BaseModel): """ @@ -38,7 +39,8 @@ class ApiGroup(BaseModel): __properties: ClassVar[List[str]] = ["description", "id", "members", "name", "permissionSet"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_group_to_team_role_migration.py b/instana_client/models/api_group_to_team_role_migration.py index ad00a1b3..414af277 100644 --- a/instana_client/models/api_group_to_team_role_migration.py +++ b/instana_client/models/api_group_to_team_role_migration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiGroupToTeamRoleMigration(BaseModel): """ @@ -32,7 +33,8 @@ class ApiGroupToTeamRoleMigration(BaseModel): __properties: ClassVar[List[str]] = ["targetRoleId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_log_item.py b/instana_client/models/api_log_item.py index 64f1ad48..98766593 100644 --- a/instana_client/models/api_log_item.py +++ b/instana_client/models/api_log_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.api_log_tag import ApiLogTag from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiLogItem(BaseModel): """ @@ -62,7 +63,8 @@ class ApiLogItem(BaseModel): __properties: ClassVar[List[str]] = ["aws.ecs.containerId", "aws.ecs.containerName", "containerd.containerId", "crio.containerId", "docker.containerId", "docker.containerName", "garden.containerId", "kubernetes.cluster.name", "kubernetes.container.name", "kubernetes.deployment.name", "kubernetes.namespace.name", "kubernetes.node.name", "kubernetes.pod.name", "log.applications", "log.custom", "log.exception.message", "log.exception.stackTrace", "log.exception.type", "log.expiration.ts.seconds", "log.file.path", "log.hostId", "log.hostName", "log.level", "log.message", "log.processId", "log.serviceId", "log.serviceName", "log.streamName", "log.timestamp", "log.traceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -74,8 +76,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_log_tag.py b/instana_client/models/api_log_tag.py index d40ecc34..086121d9 100644 --- a/instana_client/models/api_log_tag.py +++ b/instana_client/models/api_log_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiLogTag(BaseModel): """ @@ -33,7 +34,8 @@ class ApiLogTag(BaseModel): __properties: ClassVar[List[str]] = ["key", "name", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_member.py b/instana_client/models/api_member.py index 35536bbf..1c2ce301 100644 --- a/instana_client/models/api_member.py +++ b/instana_client/models/api_member.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiMember(BaseModel): """ @@ -33,7 +34,8 @@ class ApiMember(BaseModel): __properties: ClassVar[List[str]] = ["email", "name", "userId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_permission_set.py b/instana_client/models/api_permission_set.py index 973ce52f..128103ce 100644 --- a/instana_client/models/api_permission_set.py +++ b/instana_client/models/api_permission_set.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.scope_binding import ScopeBinding from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiPermissionSet(BaseModel): """ @@ -47,7 +48,8 @@ class ApiPermissionSet(BaseModel): __properties: ClassVar[List[str]] = ["actionFilter", "apdexIds", "applicationIds", "businessPerspectiveIds", "infraDfqFilter", "kubernetesClusterUUIDs", "kubernetesNamespaceUIDs", "mobileAppIds", "permissions", "restrictedApplicationFilter", "sloIds", "syntheticCredentialKeys", "syntheticTestIds", "websiteIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_restricted_application_filter.py b/instana_client/models/api_restricted_application_filter.py index d32cd3c0..699e0647 100644 --- a/instana_client/models/api_restricted_application_filter.py +++ b/instana_client/models/api_restricted_application_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiRestrictedApplicationFilter(BaseModel): """ @@ -43,7 +44,8 @@ def scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_role.py b/instana_client/models/api_role.py index 6425b794..78376c8e 100644 --- a/instana_client/models/api_role.py +++ b/instana_client/models/api_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.api_member import ApiMember from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiRole(BaseModel): """ @@ -37,7 +38,8 @@ class ApiRole(BaseModel): __properties: ClassVar[List[str]] = ["description", "id", "members", "name", "permissions"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_tag.py b/instana_client/models/api_tag.py index b09d9ce6..6989095a 100644 --- a/instana_client/models/api_tag.py +++ b/instana_client/models/api_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTag(BaseModel): """ @@ -33,7 +34,8 @@ class ApiTag(BaseModel): __properties: ClassVar[List[str]] = ["displayName", "id"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_team.py b/instana_client/models/api_team.py index 8c6eac65..c28ba066 100644 --- a/instana_client/models/api_team.py +++ b/instana_client/models/api_team.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.api_team_scope import ApiTeamScope from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTeam(BaseModel): """ @@ -39,7 +40,8 @@ class ApiTeam(BaseModel): __properties: ClassVar[List[str]] = ["id", "info", "members", "scope", "tag"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_team_info.py b/instana_client/models/api_team_info.py index 610c707f..aa76d197 100644 --- a/instana_client/models/api_team_info.py +++ b/instana_client/models/api_team_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTeamInfo(BaseModel): """ @@ -32,7 +33,8 @@ class ApiTeamInfo(BaseModel): __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_team_member.py b/instana_client/models/api_team_member.py index 8b31cc00..ddb0264a 100644 --- a/instana_client/models/api_team_member.py +++ b/instana_client/models/api_team_member.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.api_team_role import ApiTeamRole from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTeamMember(BaseModel): """ @@ -35,7 +36,8 @@ class ApiTeamMember(BaseModel): __properties: ClassVar[List[str]] = ["email", "name", "roles", "userId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_team_role.py b/instana_client/models/api_team_role.py index 415544b7..d68f6fe6 100644 --- a/instana_client/models/api_team_role.py +++ b/instana_client/models/api_team_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTeamRole(BaseModel): """ @@ -33,7 +34,8 @@ class ApiTeamRole(BaseModel): __properties: ClassVar[List[str]] = ["roleId", "roleName", "viaIdP"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_team_scope.py b/instana_client/models/api_team_scope.py index f9f25019..2ab514b0 100644 --- a/instana_client/models/api_team_scope.py +++ b/instana_client/models/api_team_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiTeamScope(BaseModel): """ @@ -59,7 +60,8 @@ def access_permissions_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/api_token.py b/instana_client/models/api_token.py index 93fbd185..16a978ca 100644 --- a/instana_client/models/api_token.py +++ b/instana_client/models/api_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApiToken(BaseModel): """ @@ -145,7 +146,8 @@ class ApiToken(BaseModel): __properties: ClassVar[List[str]] = ["accessGrantingToken", "canCollectNetTraceLogs", "canConfigureAgentRunMode", "canConfigureAgents", "canConfigureAiAgents", "canConfigureApdex", "canConfigureApiTokens", "canConfigureApplicationBusinessCriticality", "canConfigureApplicationSmartAlerts", "canConfigureApplications", "canConfigureAuthenticationMethods", "canConfigureAutomationActions", "canConfigureAutomationPolicies", "canConfigureBizops", "canConfigureCustomEntities", "canConfigureDatabaseManagement", "canConfigureEntityPayloadTransformationRules", "canConfigureEumApplications", "canConfigureEventsAndAlerts", "canConfigureGenAIEvaluations", "canConfigureGenAISmartAlerts", "canConfigureGlobalAlertPayload", "canConfigureGlobalApplicationSmartAlerts", "canConfigureGlobalInfraSmartAlerts", "canConfigureGlobalLogSmartAlerts", "canConfigureGlobalSyntheticSmartAlerts", "canConfigureIPFiltering", "canConfigureIntegrations", "canConfigureLLM", "canConfigureLLMModelPrice", "canConfigureLogManagement", "canConfigureLogRetentionPeriod", "canConfigureLoggingPerspectives", "canConfigureMaintenanceWindows", "canConfigureMobileAppBusinessCriticality", "canConfigureMobileAppConversions", "canConfigureMobileAppMonitoring", "canConfigureMobileAppSmartAlerts", "canConfigureNetworkIntegrations", "canConfigurePersonalApiTokens", "canConfigurePersonallyIdentifiableInformationMasking", "canConfigureReleases", "canConfigureServiceLevelCorrectionWindows", "canConfigureServiceLevelSmartAlerts", "canConfigureServiceLevels", "canConfigureServiceMapping", "canConfigureSessionSettings", "canConfigureSubtraces", "canConfigureSyntheticCredentials", "canConfigureSyntheticLocations", "canConfigureSyntheticTests", "canConfigureTeams", "canConfigureUsers", "canConfigureWebsiteBusinessCriticality", "canConfigureWebsiteConversions", "canConfigureWebsiteSmartAlerts", "canCreateHeapDump", "canCreatePublicCustomDashboards", "canCreateThreadDump", "canDeleteAutomationActionHistory", "canDeleteLogs", "canDownloadAgentConfiguration", "canEditAllAccessibleCustomDashboards", "canInstallNewAgents", "canInvokeAlertChannel", "canManuallyCloseIssue", "canPlaybackSessionReplay", "canRunAutomationActions", "canUseSyntheticCredentials", "canViewAccountAndBillingInformation", "canViewAuditLog", "canViewBizAlerts", "canViewBusinessActivities", "canViewBusinessProcessDetails", "canViewBusinessProcesses", "canViewLogVolume", "canViewLogs", "canViewSyntheticLocations", "canViewSyntheticTestResults", "canViewSyntheticTests", "canViewTraceDetails", "createdBy", "createdOn", "expiresOn", "id", "internalId", "lastUsedOn", "limitedAiGatewayScope", "limitedAlertChannelsScope", "limitedApplicationsScope", "limitedAutomationScope", "limitedBizOpsScope", "limitedGenAICapabilitiesScope", "limitedGenAIScope", "limitedInfrastructureScope", "limitedKubernetesScope", "limitedLinuxKVMHypervisorScope", "limitedLoggingPerspectivesScope", "limitedLogsScope", "limitedMobileAppsScope", "limitedNutanixScope", "limitedOpenstackScope", "limitedPcfScope", "limitedPhmcScope", "limitedPvcScope", "limitedSAPScope", "limitedServiceLevelScope", "limitedSyntheticsScope", "limitedVsphereScope", "limitedWebsitesScope", "limitedWindowsHypervisorScope", "limitedXenServerScope", "limitedZhmcScope", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -157,8 +159,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/app_data_metric_configuration.py b/instana_client/models/app_data_metric_configuration.py index f1608990..e068c961 100644 --- a/instana_client/models/app_data_metric_configuration.py +++ b/instana_client/models/app_data_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AppDataMetricConfiguration(BaseModel): """ @@ -43,7 +44,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application.py b/instana_client/models/application.py index 847980be..4ad5cf62 100644 --- a/instana_client/models/application.py +++ b/instana_client/models/application.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Application(BaseModel): """ @@ -46,7 +47,8 @@ def entity_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_alert_config.py b/instana_client/models/application_alert_config.py index 0506a26b..ad0fc80c 100644 --- a/instana_client/models/application_alert_config.py +++ b/instana_client/models/application_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,6 +32,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationAlertConfig(BaseModel): """ @@ -84,7 +85,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -96,8 +98,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_alert_config_with_metadata.py b/instana_client/models/application_alert_config_with_metadata.py index 0b9136c1..e9bd92fa 100644 --- a/instana_client/models/application_alert_config_with_metadata.py +++ b/instana_client/models/application_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,6 +32,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationAlertConfigWithMetadata(BaseModel): """ @@ -89,7 +90,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -101,8 +103,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_alert_rule.py b/instana_client/models/application_alert_rule.py index 67afa9b9..29800e4d 100644 --- a/instana_client/models/application_alert_rule.py +++ b/instana_client/models/application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -55,7 +56,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -84,8 +86,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[CustomMetricApplicationAlertRule, ErrorsApplicationAlertRule, ErrorsApplicationAlertRule, LogsApplicationAlertRule, SlownessApplicationAlertRule, StatusCodeApplicationAlertRule, ThroughputApplicationAlertRule]]: diff --git a/instana_client/models/application_apdex_entity.py b/instana_client/models/application_apdex_entity.py index 2b255d86..da71abee 100644 --- a/instana_client/models/application_apdex_entity.py +++ b/instana_client/models/application_apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationApdexEntity(ApdexEntity): """ @@ -45,7 +46,8 @@ def boundary_scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_batch_business_criticality_update.py b/instana_client/models/application_batch_business_criticality_update.py index cb3825c8..a7faf94e 100644 --- a/instana_client/models/application_batch_business_criticality_update.py +++ b/instana_client/models/application_batch_business_criticality_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationBatchBusinessCriticalityUpdate(BaseModel): """ @@ -34,7 +35,8 @@ class ApplicationBatchBusinessCriticalityUpdate(BaseModel): __properties: ClassVar[List[str]] = ["businessCriticality", "ids", "idsUnique"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_config.py b/instana_client/models/application_config.py index b7341c2f..496ad2fd 100644 --- a/instana_client/models/application_config.py +++ b/instana_client/models/application_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationConfig(BaseModel): """ @@ -60,7 +61,8 @@ def scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -72,8 +74,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_event_result.py b/instana_client/models/application_event_result.py index b49287b5..ed1710e2 100644 --- a/instana_client/models/application_event_result.py +++ b/instana_client/models/application_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationEventResult(EventResult): """ @@ -32,7 +33,8 @@ class ApplicationEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "applicationId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_item.py b/instana_client/models/application_item.py index f44c175b..3ac52579 100644 --- a/instana_client/models/application_item.py +++ b/instana_client/models/application_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application import Application from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationItem(BaseModel): """ @@ -33,7 +34,8 @@ class ApplicationItem(BaseModel): __properties: ClassVar[List[str]] = ["application", "metrics"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_metric_result.py b/instana_client/models/application_metric_result.py index 2085f991..cdc1c9db 100644 --- a/instana_client/models/application_metric_result.py +++ b/instana_client/models/application_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.application_item import ApplicationItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationMetricResult(BaseModel): """ @@ -38,7 +39,8 @@ class ApplicationMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_node.py b/instana_client/models/application_node.py index 2b5f251e..382c48e0 100644 --- a/instana_client/models/application_node.py +++ b/instana_client/models/application_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_node import ServiceNode from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationNode(BaseModel): """ @@ -35,7 +36,8 @@ class ApplicationNode(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "inclusive", "services"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_result.py b/instana_client/models/application_result.py index ef3010d1..49b6ac98 100644 --- a/instana_client/models/application_result.py +++ b/instana_client/models/application_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application import Application from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationResult(BaseModel): """ @@ -35,7 +36,8 @@ class ApplicationResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_scope.py b/instana_client/models/application_scope.py index 9763481b..5e0e4e84 100644 --- a/instana_client/models/application_scope.py +++ b/instana_client/models/application_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationScope(BaseModel): """ @@ -32,7 +33,8 @@ class ApplicationScope(BaseModel): __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_scope_with_metadata.py b/instana_client/models/application_scope_with_metadata.py index fed061d4..e6497e0b 100644 --- a/instana_client/models/application_scope_with_metadata.py +++ b/instana_client/models/application_scope_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationScopeWithMetadata(BaseModel): """ @@ -33,7 +34,8 @@ class ApplicationScopeWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_sli_entity.py b/instana_client/models/application_sli_entity.py index 00b39011..0e1748d7 100644 --- a/instana_client/models/application_sli_entity.py +++ b/instana_client/models/application_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.sli_entity import SliEntity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationSliEntity(SliEntity): """ @@ -45,7 +46,8 @@ def boundary_scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_slo_entity.py b/instana_client/models/application_slo_entity.py index b7332730..a18edb61 100644 --- a/instana_client/models/application_slo_entity.py +++ b/instana_client/models/application_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ApplicationSloEntity(SloEntity): """ @@ -46,7 +47,8 @@ def boundary_scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/application_time_threshold.py b/instana_client/models/application_time_threshold.py index 39dc7f81..a0838084 100644 --- a/instana_client/models/application_time_threshold.py +++ b/instana_client/models/application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -39,7 +40,8 @@ class ApplicationTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[TraceImpactApplicationTimeThreshold, ViolationsInPeriodApplicationTimeThreshold, ViolationsInSequenceApplicationTimeThreshold]]: diff --git a/instana_client/models/audit_log_ui_response.py b/instana_client/models/audit_log_ui_response.py index 4051f801..37ac60f2 100644 --- a/instana_client/models/audit_log_ui_response.py +++ b/instana_client/models/audit_log_ui_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AuditLogUiResponse(BaseModel): """ @@ -32,7 +33,8 @@ class AuditLogUiResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries", "total"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/author.py b/instana_client/models/author.py index 13ac0786..6b44808c 100644 --- a/instana_client/models/author.py +++ b/instana_client/models/author.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Author(BaseModel): """ @@ -42,7 +43,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/availability_blueprint_indicator.py b/instana_client/models/availability_blueprint_indicator.py index dae52ffd..cdd7a432 100644 --- a/instana_client/models/availability_blueprint_indicator.py +++ b/instana_client/models/availability_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_level_indicator import ServiceLevelIndicator from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AvailabilityBlueprintIndicator(ServiceLevelIndicator): """ @@ -35,7 +36,8 @@ class AvailabilityBlueprintIndicator(ServiceLevelIndicator): __properties: ClassVar[List[str]] = ["aggregation", "blueprint", "operator", "serviceLevelsMeasurement", "threshold", "type", "metric"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/availability_sli_entity.py b/instana_client/models/availability_sli_entity.py index ea711372..5d340279 100644 --- a/instana_client/models/availability_sli_entity.py +++ b/instana_client/models/availability_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AvailabilitySliEntity(SliEntity): """ @@ -54,7 +55,8 @@ def boundary_scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/available_metrics.py b/instana_client/models/available_metrics.py index 051a69eb..e5338259 100644 --- a/instana_client/models/available_metrics.py +++ b/instana_client/models/available_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.metric_metadata import MetricMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AvailableMetrics(BaseModel): """ @@ -32,7 +33,8 @@ class AvailableMetrics(BaseModel): __properties: ClassVar[List[str]] = ["metrics"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/available_plugins.py b/instana_client/models/available_plugins.py index b0484c8b..49593f34 100644 --- a/instana_client/models/available_plugins.py +++ b/instana_client/models/available_plugins.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class AvailablePlugins(BaseModel): """ @@ -31,7 +32,8 @@ class AvailablePlugins(BaseModel): __properties: ClassVar[List[str]] = ["plugins"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/backend_trace_reference.py b/instana_client/models/backend_trace_reference.py index 23f51816..78e8fa86 100644 --- a/instana_client/models/backend_trace_reference.py +++ b/instana_client/models/backend_trace_reference.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BackendTraceReference(BaseModel): """ @@ -31,7 +32,8 @@ class BackendTraceReference(BaseModel): __properties: ClassVar[List[str]] = ["traceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/bidirectional_ms_teams_app_integration.py b/instana_client/models/bidirectional_ms_teams_app_integration.py index 9c0e43d0..28cea52e 100644 --- a/instana_client/models/bidirectional_ms_teams_app_integration.py +++ b/instana_client/models/bidirectional_ms_teams_app_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BidirectionalMsTeamsAppIntegration(AbstractIntegration): """ @@ -41,7 +42,8 @@ class BidirectionalMsTeamsAppIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "apiTokenId", "channelId", "channelName", "instanaUrl", "serviceUrl", "teamId", "teamName", "tenantId", "tenantName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/bidirectional_slack_app_integration.py b/instana_client/models/bidirectional_slack_app_integration.py index 03e887a8..e3c87d02 100644 --- a/instana_client/models/bidirectional_slack_app_integration.py +++ b/instana_client/models/bidirectional_slack_app_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BidirectionalSlackAppIntegration(AbstractIntegration): """ @@ -38,7 +39,8 @@ class BidirectionalSlackAppIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "appId", "channelId", "channelName", "emojiRendering", "status", "teamId", "teamName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/binary_operator_dto.py b/instana_client/models/binary_operator_dto.py index 005dfb8e..fc554d5d 100644 --- a/instana_client/models/binary_operator_dto.py +++ b/instana_client/models/binary_operator_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.match_expression_dto import MatchExpressionDTO from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BinaryOperatorDTO(MatchExpressionDTO): """ @@ -41,7 +42,8 @@ def conjunction_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/browser_script_configuration.py b/instana_client/models/browser_script_configuration.py index b52af017..c7497e61 100644 --- a/instana_client/models/browser_script_configuration.py +++ b/instana_client/models/browser_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BrowserScriptConfiguration(SyntheticTypeConfiguration): """ @@ -73,7 +74,8 @@ def script_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -85,8 +87,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/browser_script_configuration_update.py b/instana_client/models/browser_script_configuration_update.py index a180fbf3..19800080 100644 --- a/instana_client/models/browser_script_configuration_update.py +++ b/instana_client/models/browser_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BrowserScriptConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -62,7 +63,8 @@ def script_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -74,8 +76,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/built_in_event_specification.py b/instana_client/models/built_in_event_specification.py index 066292d0..201c8481 100644 --- a/instana_client/models/built_in_event_specification.py +++ b/instana_client/models/built_in_event_specification.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.rule_input import RuleInput from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BuiltInEventSpecification(BaseModel): """ @@ -44,7 +45,8 @@ class BuiltInEventSpecification(BaseModel): __properties: ClassVar[List[str]] = ["description", "enabled", "hidden", "hyperParams", "id", "name", "ruleInputs", "severity", "shortPluginId", "supportedPollRateSeconds", "triggering"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/built_in_event_specification_with_last_updated.py b/instana_client/models/built_in_event_specification_with_last_updated.py index b7f8e68d..12257d2f 100644 --- a/instana_client/models/built_in_event_specification_with_last_updated.py +++ b/instana_client/models/built_in_event_specification_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.rule_input import RuleInput from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BuiltInEventSpecificationWithLastUpdated(BaseModel): """ @@ -45,7 +46,8 @@ class BuiltInEventSpecificationWithLastUpdated(BaseModel): __properties: ClassVar[List[str]] = ["description", "enabled", "hidden", "hyperParams", "id", "lastUpdated", "name", "ruleInputs", "severity", "shortPluginId", "supportedPollRateSeconds", "triggering"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/bulk_alert_config_request.py b/instana_client/models/bulk_alert_config_request.py index f28fdfc0..9a76d5ea 100644 --- a/instana_client/models/bulk_alert_config_request.py +++ b/instana_client/models/bulk_alert_config_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BulkAlertConfigRequest(BaseModel): """ @@ -31,7 +32,8 @@ class BulkAlertConfigRequest(BaseModel): __properties: ClassVar[List[str]] = ["configs"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/business_activity.py b/instana_client/models/business_activity.py index 9ebeec9a..5e8015a4 100644 --- a/instana_client/models/business_activity.py +++ b/instana_client/models/business_activity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,24 +23,26 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BusinessActivity(BaseModel): """ BusinessActivity """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the activity generated by the source BPM tool", alias="activityId") - activity_name: Optional[StrictStr] = Field(default=None, description="Name of the activity ", alias="activityName") - activity_start: Optional[StrictInt] = Field(default=None, description="Unix timestamp representing the activity's start time", alias="activityStart") - activity_type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Type of the activity ", alias="activityType") + activity_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the activity generated by the source BPM tool", alias="activityId", json_schema_extra={"examples": ["ApproveInvoiceTask"]}) + activity_name: Optional[StrictStr] = Field(default=None, description="Name of the activity ", alias="activityName", json_schema_extra={"examples": ["Approve Invoice"]}) + activity_start: Optional[StrictInt] = Field(default=None, description="Unix timestamp representing the activity's start time", alias="activityStart", json_schema_extra={"examples": [1680559706000]}) + activity_type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Type of the activity ", alias="activityType", json_schema_extra={"examples": ["userTask"]}) call_id: Optional[StrictStr] = Field(default=None, alias="callId") endpoint_ids: Optional[List[StrictStr]] = Field(default=None, alias="endpointIds") - process_definition_id: Optional[StrictStr] = Field(default=None, description="The identifier of the process the activity is an instance of.", alias="processDefinitionId") - process_definition_name: Optional[StrictStr] = Field(default=None, description="The name of the process that the activity is an instance of", alias="processDefinitionName") - root_process_instance_id: Optional[StrictStr] = Field(default=None, description="The id of the root process for the activity", alias="rootProcessInstanceId") + process_definition_id: Optional[StrictStr] = Field(default=None, description="The identifier of the process the activity is an instance of.", alias="processDefinitionId", json_schema_extra={"examples": ["invoice:2:aa2bbbcc-bb04-11ee-9d4e-0242ac110002"]}) + process_definition_name: Optional[StrictStr] = Field(default=None, description="The name of the process that the activity is an instance of", alias="processDefinitionName", json_schema_extra={"examples": ["Invoice Approval"]}) + root_process_instance_id: Optional[StrictStr] = Field(default=None, description="The id of the root process for the activity", alias="rootProcessInstanceId", json_schema_extra={"examples": ["486cbb3b-e633-11ee-8707-0242ac110002"]}) __properties: ClassVar[List[str]] = ["activityId", "activityName", "activityStart", "activityType", "callId", "endpointIds", "processDefinitionId", "processDefinitionName", "rootProcessInstanceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/business_perspective_config.py b/instana_client/models/business_perspective_config.py index 4a2c53a9..928299d3 100644 --- a/instana_client/models/business_perspective_config.py +++ b/instana_client/models/business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class BusinessPerspectiveConfig(BaseModel): """ @@ -36,7 +37,8 @@ class BusinessPerspectiveConfig(BaseModel): __properties: ClassVar[List[str]] = ["description", "id", "name", "tagFilterExpression"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/call_groups_item.py b/instana_client/models/call_groups_item.py index bb268c7f..b5da37ed 100644 --- a/instana_client/models/call_groups_item.py +++ b/instana_client/models/call_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CallGroupsItem(BaseModel): """ @@ -35,7 +36,8 @@ class CallGroupsItem(BaseModel): __properties: ClassVar[List[str]] = ["cursor", "metrics", "name", "timestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/call_groups_result.py b/instana_client/models/call_groups_result.py index c8277229..76569492 100644 --- a/instana_client/models/call_groups_result.py +++ b/instana_client/models/call_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.call_groups_item import CallGroupsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CallGroupsResult(BaseModel): """ @@ -39,7 +40,8 @@ class CallGroupsResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/call_relation.py b/instana_client/models/call_relation.py index c86e2c61..77379042 100644 --- a/instana_client/models/call_relation.py +++ b/instana_client/models/call_relation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_simple import ServiceSimple from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CallRelation(BaseModel): """ @@ -35,7 +36,8 @@ class CallRelation(BaseModel): __properties: ClassVar[List[str]] = ["endpoint", "service", "technologies"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/calls_event_result.py b/instana_client/models/calls_event_result.py index 7be59664..ee7ade9b 100644 --- a/instana_client/models/calls_event_result.py +++ b/instana_client/models/calls_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CallsEventResult(EventResult): """ @@ -31,7 +32,8 @@ class CallsEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/change_summary.py b/instana_client/models/change_summary.py index 224e2aa7..9fbd93ae 100644 --- a/instana_client/models/change_summary.py +++ b/instana_client/models/change_summary.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.author import Author from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ChangeSummary(BaseModel): """ @@ -40,7 +41,8 @@ def change_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/cloudfoundry_physical_context.py b/instana_client/models/cloudfoundry_physical_context.py index 4a4a2ee8..9a305718 100644 --- a/instana_client/models/cloudfoundry_physical_context.py +++ b/instana_client/models/cloudfoundry_physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.snapshot_preview import SnapshotPreview from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CloudfoundryPhysicalContext(BaseModel): """ @@ -35,7 +36,8 @@ class CloudfoundryPhysicalContext(BaseModel): __properties: ClassVar[List[str]] = ["application", "cfInstanceIndex", "organization", "space"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/condition.py b/instana_client/models/condition.py index 1e67a216..54227b85 100644 --- a/instana_client/models/condition.py +++ b/instana_client/models/condition.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Condition(BaseModel): """ @@ -31,7 +32,8 @@ class Condition(BaseModel): __properties: ClassVar[List[str]] = ["query"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/config_version.py b/instana_client/models/config_version.py index e7beba78..62dc78eb 100644 --- a/instana_client/models/config_version.py +++ b/instana_client/models/config_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.change_summary import ChangeSummary from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ConfigVersion(BaseModel): """ @@ -37,7 +38,8 @@ class ConfigVersion(BaseModel): __properties: ClassVar[List[str]] = ["changeSummary", "created", "deleted", "enabled", "id"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/correction.py b/instana_client/models/correction.py index 7aca8f47..c43122b3 100644 --- a/instana_client/models/correction.py +++ b/instana_client/models/correction.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.correction_window import CorrectionWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Correction(BaseModel): """ @@ -37,7 +38,8 @@ class Correction(BaseModel): __properties: ClassVar[List[str]] = ["activeCorrectionConfigIds", "correctionWindows", "from", "inActiveCorrectionConfigIds", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/correction_configuration.py b/instana_client/models/correction_configuration.py index 6316429a..408d9820 100644 --- a/instana_client/models/correction_configuration.py +++ b/instana_client/models/correction_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.correction_scheduling import CorrectionScheduling from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CorrectionConfiguration(BaseModel): """ @@ -42,7 +43,8 @@ class CorrectionConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["active", "createdDate", "description", "id", "lastUpdated", "name", "scheduling", "sloIds", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/correction_scheduling.py b/instana_client/models/correction_scheduling.py index 52db375c..abeff208 100644 --- a/instana_client/models/correction_scheduling.py +++ b/instana_client/models/correction_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CorrectionScheduling(BaseModel): """ @@ -44,7 +45,8 @@ def duration_unit_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/correction_window.py b/instana_client/models/correction_window.py index 5f9bb8d9..61fe05a5 100644 --- a/instana_client/models/correction_window.py +++ b/instana_client/models/correction_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CorrectionWindow(BaseModel): """ @@ -35,7 +36,8 @@ class CorrectionWindow(BaseModel): __properties: ClassVar[List[str]] = ["correctionConfigs", "from", "sloConfigs", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/crash_mobile_app_alert_rule.py b/instana_client/models/crash_mobile_app_alert_rule.py index 74a70293..20490c4b 100644 --- a/instana_client/models/crash_mobile_app_alert_rule.py +++ b/instana_client/models/crash_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CrashMobileAppAlertRule(MobileAppAlertRule): """ @@ -31,7 +32,8 @@ class CrashMobileAppAlertRule(MobileAppAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/create_evaluation_request.py b/instana_client/models/create_evaluation_request.py index aa79d0ee..13f8363a 100644 --- a/instana_client/models/create_evaluation_request.py +++ b/instana_client/models/create_evaluation_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CreateEvaluationRequest(BaseModel): """ @@ -49,7 +50,8 @@ class CreateEvaluationRequest(BaseModel): __properties: ClassVar[List[str]] = ["description", "evaluation_name", "evaluator_ids", "metadata", "model_names", "sampling_percentage", "schedule_enabled", "schedule_end_date", "schedule_end_occurrences", "schedule_end_type", "schedule_frequency", "schedule_start_time", "schedule_timezone", "schedule_week_days", "service_names", "time_before_run_hours", "time_before_run_minutes", "trace_ids"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/create_evaluation_response.py b/instana_client/models/create_evaluation_response.py index 18d67c42..5eba6f65 100644 --- a/instana_client/models/create_evaluation_response.py +++ b/instana_client/models/create_evaluation_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CreateEvaluationResponse(BaseModel): """ @@ -32,7 +33,8 @@ class CreateEvaluationResponse(BaseModel): __properties: ClassVar[List[str]] = ["evaluation_id", "message"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/create_website_request_inner.py b/instana_client/models/create_website_request_inner.py index 175aa82e..da0478c7 100644 --- a/instana_client/models/create_website_request_inner.py +++ b/instana_client/models/create_website_request_inner.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CreateWebsiteRequestInner(BaseModel): """ @@ -32,7 +33,8 @@ class CreateWebsiteRequestInner(BaseModel): __properties: ClassVar[List[str]] = ["displayName", "id"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/cursor_paginated_business_activity_item.py b/instana_client/models/cursor_paginated_business_activity_item.py index 6e8abe24..cb14a697 100644 --- a/instana_client/models/cursor_paginated_business_activity_item.py +++ b/instana_client/models/cursor_paginated_business_activity_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.business_activity import BusinessActivity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CursorPaginatedBusinessActivityItem(BaseModel): """ @@ -34,7 +35,8 @@ class CursorPaginatedBusinessActivityItem(BaseModel): __properties: ClassVar[List[str]] = ["businessActivity", "cursor", "metrics"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/cursor_pagination.py b/instana_client/models/cursor_pagination.py index 332a0d14..08f004d7 100644 --- a/instana_client/models/cursor_pagination.py +++ b/instana_client/models/cursor_pagination.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CursorPagination(BaseModel): """ @@ -34,7 +35,8 @@ class CursorPagination(BaseModel): __properties: ClassVar[List[str]] = ["ingestionTime", "offset", "retrievalSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/cursor_pagination_with_ui_cursor_infra_explore_cursor.py b/instana_client/models/cursor_pagination_with_ui_cursor_infra_explore_cursor.py index 609782a0..53889188 100644 --- a/instana_client/models/cursor_pagination_with_ui_cursor_infra_explore_cursor.py +++ b/instana_client/models/cursor_pagination_with_ui_cursor_infra_explore_cursor.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CursorPaginationWithUiCursorInfraExploreCursor(BaseModel): """ @@ -34,7 +35,8 @@ class CursorPaginationWithUiCursorInfraExploreCursor(BaseModel): __properties: ClassVar[List[str]] = ["ingestionTime", "offset", "retrievalSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_blueprint_indicator.py b/instana_client/models/custom_blueprint_indicator.py index 76c424af..261d56e0 100644 --- a/instana_client/models/custom_blueprint_indicator.py +++ b/instana_client/models/custom_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomBlueprintIndicator(ServiceLevelIndicator): """ @@ -36,7 +37,8 @@ class CustomBlueprintIndicator(ServiceLevelIndicator): __properties: ClassVar[List[str]] = ["aggregation", "blueprint", "operator", "serviceLevelsMeasurement", "threshold", "type", "badEventInfraMetric", "badEventsFilter", "goodEventInfraMetric", "goodEventsFilter"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_dashboard.py b/instana_client/models/custom_dashboard.py index 7177c39c..e4ac83a3 100644 --- a/instana_client/models/custom_dashboard.py +++ b/instana_client/models/custom_dashboard.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.widget import Widget from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomDashboard(BaseModel): """ @@ -37,7 +38,8 @@ class CustomDashboard(BaseModel): __properties: ClassVar[List[str]] = ["accessRules", "id", "title", "widgets"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_dashboard_preview.py b/instana_client/models/custom_dashboard_preview.py index 3d8253a7..aab20bd6 100644 --- a/instana_client/models/custom_dashboard_preview.py +++ b/instana_client/models/custom_dashboard_preview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomDashboardPreview(BaseModel): """ @@ -43,7 +44,8 @@ def annotations_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_dashboard_with_user_specific_information.py b/instana_client/models/custom_dashboard_with_user_specific_information.py index 4da58a8d..9e254f1d 100644 --- a/instana_client/models/custom_dashboard_with_user_specific_information.py +++ b/instana_client/models/custom_dashboard_with_user_specific_information.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.widget import Widget from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomDashboardWithUserSpecificInformation(BaseModel): """ @@ -39,7 +40,8 @@ class CustomDashboardWithUserSpecificInformation(BaseModel): __properties: ClassVar[List[str]] = ["accessRules", "id", "ownerId", "title", "widgets", "writable"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_dependency.py b/instana_client/models/custom_dependency.py index ae1b99d5..97a1fe5e 100644 --- a/instana_client/models/custom_dependency.py +++ b/instana_client/models/custom_dependency.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomDependency(BaseModel): """ @@ -57,7 +58,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,8 +71,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_email_subject_prefix.py b/instana_client/models/custom_email_subject_prefix.py index a52f09f3..7b88ff45 100644 --- a/instana_client/models/custom_email_subject_prefix.py +++ b/instana_client/models/custom_email_subject_prefix.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,19 +22,21 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEmailSubjectPrefix(BaseModel): """ CustomEmailSubjectPrefix """ # noqa: E501 - agent_monitoring_issue: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given agent monitoring issue", alias="agentMonitoringIssue") - change: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given change event") - incident: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given incident") - issue: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given issue") + agent_monitoring_issue: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given agent monitoring issue", alias="agentMonitoringIssue", json_schema_extra={"examples": [{"closeValue": "Close email subject prefix value", "openValue": "Open email subject prefix value"}]}) + change: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given change event", json_schema_extra={"examples": [{"changeValue": "Email subject prefix value"}]}) + incident: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given incident", json_schema_extra={"examples": [{"closeValue": "Close email subject prefix value", "openValue": "Open email subject prefix value"}]}) + issue: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map containing the open and close email subject value of a given issue", json_schema_extra={"examples": [{"closeValue": "Close email subject prefix value", "openValue": "Open email subject prefix value"}]}) __properties: ClassVar[List[str]] = ["agentMonitoringIssue", "change", "incident", "issue"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_entity_model.py b/instana_client/models/custom_entity_model.py index 151bb8b0..859e2b3f 100644 --- a/instana_client/models/custom_entity_model.py +++ b/instana_client/models/custom_entity_model.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEntityModel(BaseModel): """ @@ -44,7 +45,8 @@ class CustomEntityModel(BaseModel): __properties: ClassVar[List[str]] = ["dashboards", "dependencies", "identifiers", "label", "metrics", "name", "tagFilterExpression", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_entity_with_metadata.py b/instana_client/models/custom_entity_with_metadata.py index a80b7470..944c5451 100644 --- a/instana_client/models/custom_entity_with_metadata.py +++ b/instana_client/models/custom_entity_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.custom_entity_model import CustomEntityModel from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEntityWithMetadata(BaseModel): """ @@ -36,7 +37,8 @@ class CustomEntityWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["created", "data", "id", "version"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_event_mobile_app_alert_rule.py b/instana_client/models/custom_event_mobile_app_alert_rule.py index 84a49ae6..b5e698b4 100644 --- a/instana_client/models/custom_event_mobile_app_alert_rule.py +++ b/instana_client/models/custom_event_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEventMobileAppAlertRule(MobileAppAlertRule): """ @@ -34,7 +35,8 @@ class CustomEventMobileAppAlertRule(MobileAppAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "customEventName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_event_specification.py b/instana_client/models/custom_event_specification.py index 5ccd0572..2e55f380 100644 --- a/instana_client/models/custom_event_specification.py +++ b/instana_client/models/custom_event_specification.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.action import Action from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEventSpecification(BaseModel): """ @@ -56,7 +57,8 @@ def rule_logical_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_event_specification_with_last_updated.py b/instana_client/models/custom_event_specification_with_last_updated.py index fe1f9ef8..d24548f2 100644 --- a/instana_client/models/custom_event_specification_with_last_updated.py +++ b/instana_client/models/custom_event_specification_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.action import Action from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEventSpecificationWithLastUpdated(BaseModel): """ @@ -63,7 +64,8 @@ def rule_logical_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,8 +77,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_event_website_alert_rule.py b/instana_client/models/custom_event_website_alert_rule.py index 811f2458..886f8a16 100644 --- a/instana_client/models/custom_event_website_alert_rule.py +++ b/instana_client/models/custom_event_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomEventWebsiteAlertRule(WebsiteAlertRule): """ @@ -34,7 +35,8 @@ class CustomEventWebsiteAlertRule(WebsiteAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "customEventName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_metric.py b/instana_client/models/custom_metric.py index 2af54564..e00dc688 100644 --- a/instana_client/models/custom_metric.py +++ b/instana_client/models/custom_metric.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomMetric(BaseModel): """ @@ -66,7 +67,8 @@ def section_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -78,8 +80,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_metric_application_alert_rule.py b/instana_client/models/custom_metric_application_alert_rule.py index cd396f1e..de304f35 100644 --- a/instana_client/models/custom_metric_application_alert_rule.py +++ b/instana_client/models/custom_metric_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomMetricApplicationAlertRule(ApplicationAlertRule): """ @@ -33,7 +34,8 @@ class CustomMetricApplicationAlertRule(ApplicationAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "metricKey"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_payload_configuration.py b/instana_client/models/custom_payload_configuration.py index 9148bac9..41b9a3b9 100644 --- a/instana_client/models/custom_payload_configuration.py +++ b/instana_client/models/custom_payload_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.custom_payload_field import CustomPayloadField from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomPayloadConfiguration(BaseModel): """ @@ -33,7 +34,8 @@ class CustomPayloadConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["fields"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_payload_field.py b/instana_client/models/custom_payload_field.py index 7f24b925..13f57867 100644 --- a/instana_client/models/custom_payload_field.py +++ b/instana_client/models/custom_payload_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -40,7 +41,8 @@ class CustomPayloadField(BaseModel): __properties: ClassVar[List[str]] = ["key", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,8 +71,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[DynamicField, MetricField, StaticStringField]]: diff --git a/instana_client/models/custom_payload_with_last_updated.py b/instana_client/models/custom_payload_with_last_updated.py index 2cac5c1e..78756030 100644 --- a/instana_client/models/custom_payload_with_last_updated.py +++ b/instana_client/models/custom_payload_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.custom_payload_field import CustomPayloadField from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomPayloadWithLastUpdated(BaseModel): """ @@ -34,7 +35,8 @@ class CustomPayloadWithLastUpdated(BaseModel): __properties: ClassVar[List[str]] = ["fields", "lastUpdated"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_payload_with_version.py b/instana_client/models/custom_payload_with_version.py index 77bdce63..037a3d95 100644 --- a/instana_client/models/custom_payload_with_version.py +++ b/instana_client/models/custom_payload_with_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.custom_payload_field import CustomPayloadField from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomPayloadWithVersion(BaseModel): """ @@ -35,7 +36,8 @@ class CustomPayloadWithVersion(BaseModel): __properties: ClassVar[List[str]] = ["fields", "lastUpdated", "version"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/custom_tag.py b/instana_client/models/custom_tag.py index 905bfc71..2ff02082 100644 --- a/instana_client/models/custom_tag.py +++ b/instana_client/models/custom_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomTag(BaseModel): """ @@ -58,7 +59,8 @@ def section_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/customer_email.py b/instana_client/models/customer_email.py index 9579cb76..ec921201 100644 --- a/instana_client/models/customer_email.py +++ b/instana_client/models/customer_email.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class CustomerEmail(BaseModel): """ @@ -32,7 +33,8 @@ class CustomerEmail(BaseModel): __properties: ClassVar[List[str]] = ["customerEmail", "email"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dashboard_api_token.py b/instana_client/models/dashboard_api_token.py index 7cbb2db7..0312c3e0 100644 --- a/instana_client/models/dashboard_api_token.py +++ b/instana_client/models/dashboard_api_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DashboardApiToken(BaseModel): """ @@ -33,7 +34,8 @@ class DashboardApiToken(BaseModel): __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/database_integration.py b/instana_client/models/database_integration.py index d324fece..18225426 100644 --- a/instana_client/models/database_integration.py +++ b/instana_client/models/database_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DatabaseIntegration(BaseModel): """ @@ -32,7 +33,8 @@ class DatabaseIntegration(BaseModel): __properties: ClassVar[List[str]] = ["type", "url"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/deprecated_tag_filter.py b/instana_client/models/deprecated_tag_filter.py index 14646867..412e0729 100644 --- a/instana_client/models/deprecated_tag_filter.py +++ b/instana_client/models/deprecated_tag_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DeprecatedTagFilter(BaseModel): """ @@ -52,7 +53,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dns_configuration.py b/instana_client/models/dns_configuration.py index 32edd1eb..068e2f9b 100644 --- a/instana_client/models/dns_configuration.py +++ b/instana_client/models/dns_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DNSConfiguration(SyntheticTypeConfiguration): """ @@ -64,7 +65,8 @@ def transport_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,8 +78,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dns_configuration_update.py b/instana_client/models/dns_configuration_update.py index abf28721..2bcedeb8 100644 --- a/instana_client/models/dns_configuration_update.py +++ b/instana_client/models/dns_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DNSConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -64,7 +65,8 @@ def transport_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,8 +78,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dns_filter_query_time.py b/instana_client/models/dns_filter_query_time.py index 51c14a41..b88c4a4d 100644 --- a/instana_client/models/dns_filter_query_time.py +++ b/instana_client/models/dns_filter_query_time.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DNSFilterQueryTime(BaseModel): """ @@ -40,7 +41,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dns_filter_target_value.py b/instana_client/models/dns_filter_target_value.py index 982549ab..94d76c78 100644 --- a/instana_client/models/dns_filter_target_value.py +++ b/instana_client/models/dns_filter_target_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DNSFilterTargetValue(BaseModel): """ @@ -47,7 +48,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/duration.py b/instana_client/models/duration.py index fcb1f18e..7b34ab73 100644 --- a/instana_client/models/duration.py +++ b/instana_client/models/duration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Duration(BaseModel): """ @@ -40,7 +41,8 @@ def unit_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dynamic_field.py b/instana_client/models/dynamic_field.py index dd5358d6..9b46b28b 100644 --- a/instana_client/models/dynamic_field.py +++ b/instana_client/models/dynamic_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.dynamic_field_value import DynamicFieldValue from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DynamicField(CustomPayloadField): """ @@ -33,7 +34,8 @@ class DynamicField(CustomPayloadField): __properties: ClassVar[List[str]] = ["key", "type", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dynamic_field_value.py b/instana_client/models/dynamic_field_value.py index 71f2900f..d886ac54 100644 --- a/instana_client/models/dynamic_field_value.py +++ b/instana_client/models/dynamic_field_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DynamicFieldValue(BaseModel): """ @@ -33,7 +34,8 @@ class DynamicFieldValue(BaseModel): __properties: ClassVar[List[str]] = ["key", "tagName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dynamic_parameter.py b/instana_client/models/dynamic_parameter.py index c2a61a20..bcab4852 100644 --- a/instana_client/models/dynamic_parameter.py +++ b/instana_client/models/dynamic_parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DynamicParameter(BaseModel): """ @@ -34,7 +35,8 @@ class DynamicParameter(BaseModel): __properties: ClassVar[List[str]] = ["key", "name", "resolvedValue", "tagName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/dynamic_tag.py b/instana_client/models/dynamic_tag.py index 249bb654..a2ec90c4 100644 --- a/instana_client/models/dynamic_tag.py +++ b/instana_client/models/dynamic_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class DynamicTag(BaseModel): """ @@ -38,7 +39,8 @@ class DynamicTag(BaseModel): __properties: ClassVar[List[str]] = ["aliases", "canApplyToDestination", "canApplyToSource", "categoryLabels", "icon", "prefix", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/edit_user.py b/instana_client/models/edit_user.py index 0ce79afe..90532025 100644 --- a/instana_client/models/edit_user.py +++ b/instana_client/models/edit_user.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EditUser(BaseModel): """ @@ -32,7 +33,8 @@ class EditUser(BaseModel): __properties: ClassVar[List[str]] = ["fullName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/email_integration.py b/instana_client/models/email_integration.py index 39f50c58..148b8d2d 100644 --- a/instana_client/models/email_integration.py +++ b/instana_client/models/email_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EmailIntegration(AbstractIntegration): """ @@ -36,7 +37,8 @@ class EmailIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "customEmailSubjectPrefix", "emails", "transformationExpression"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/empty_configuration.py b/instana_client/models/empty_configuration.py index c79b8112..3282eba9 100644 --- a/instana_client/models/empty_configuration.py +++ b/instana_client/models/empty_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EmptyConfiguration(SyntheticTypeConfiguration): """ @@ -31,7 +32,8 @@ class EmptyConfiguration(SyntheticTypeConfiguration): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "syntheticType", "timeout"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint.py b/instana_client/models/endpoint.py index 8bbc3411..d3bade1a 100644 --- a/instana_client/models/endpoint.py +++ b/instana_client/models/endpoint.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Endpoint(BaseModel): """ @@ -67,7 +68,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_config.py b/instana_client/models/endpoint_config.py index 60050799..d4b9b9d6 100644 --- a/instana_client/models/endpoint_config.py +++ b/instana_client/models/endpoint_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.http_endpoint_rule import HttpEndpointRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointConfig(BaseModel): """ @@ -44,7 +45,8 @@ def endpoint_case_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_event_result.py b/instana_client/models/endpoint_event_result.py index 63d68895..38da145e 100644 --- a/instana_client/models/endpoint_event_result.py +++ b/instana_client/models/endpoint_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointEventResult(EventResult): """ @@ -34,7 +35,8 @@ class EndpointEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "applicationId", "endpointId", "endpointServiceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_item.py b/instana_client/models/endpoint_item.py index b780750b..ea6b91cd 100644 --- a/instana_client/models/endpoint_item.py +++ b/instana_client/models/endpoint_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.endpoint import Endpoint from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointItem(BaseModel): """ @@ -33,7 +34,8 @@ class EndpointItem(BaseModel): __properties: ClassVar[List[str]] = ["endpoint", "metrics"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_metric_result.py b/instana_client/models/endpoint_metric_result.py index c69c5280..10149cc8 100644 --- a/instana_client/models/endpoint_metric_result.py +++ b/instana_client/models/endpoint_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.endpoint_item import EndpointItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointMetricResult(BaseModel): """ @@ -38,7 +39,8 @@ class EndpointMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_node.py b/instana_client/models/endpoint_node.py index cb5f638d..c06da96a 100644 --- a/instana_client/models/endpoint_node.py +++ b/instana_client/models/endpoint_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointNode(BaseModel): """ @@ -33,7 +34,8 @@ class EndpointNode(BaseModel): __properties: ClassVar[List[str]] = ["endpointId", "inclusive"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_result.py b/instana_client/models/endpoint_result.py index 3f3551a3..5fed4464 100644 --- a/instana_client/models/endpoint_result.py +++ b/instana_client/models/endpoint_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.endpoint import Endpoint from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointResult(BaseModel): """ @@ -35,7 +36,8 @@ class EndpointResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/endpoint_simple.py b/instana_client/models/endpoint_simple.py index 39a3e89f..10e39798 100644 --- a/instana_client/models/endpoint_simple.py +++ b/instana_client/models/endpoint_simple.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EndpointSimple(BaseModel): """ @@ -43,7 +44,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_count_rule.py b/instana_client/models/entity_count_rule.py index 9847f553..9c55f776 100644 --- a/instana_client/models/entity_count_rule.py +++ b/instana_client/models/entity_count_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.abstract_rule import AbstractRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityCountRule(AbstractRule): """ @@ -40,7 +41,8 @@ def condition_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_count_verification_rule.py b/instana_client/models/entity_count_verification_rule.py index 488ed26e..476178f8 100644 --- a/instana_client/models/entity_count_verification_rule.py +++ b/instana_client/models/entity_count_verification_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_rule import AbstractRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityCountVerificationRule(AbstractRule): """ @@ -51,7 +52,8 @@ def matching_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -63,8 +65,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_health_info.py b/instana_client/models/entity_health_info.py index 303f05eb..4eaba90f 100644 --- a/instana_client/models/entity_health_info.py +++ b/instana_client/models/entity_health_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.event import Event from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityHealthInfo(BaseModel): """ @@ -34,7 +35,8 @@ class EntityHealthInfo(BaseModel): __properties: ClassVar[List[str]] = ["maxSeverity", "openIssues"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_id.py b/instana_client/models/entity_id.py index bd8b7ea7..8bdabd79 100644 --- a/instana_client/models/entity_id.py +++ b/instana_client/models/entity_id.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityId(BaseModel): """ @@ -33,7 +34,8 @@ class EntityId(BaseModel): __properties: ClassVar[List[str]] = ["host", "pluginId", "steadyId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_metric.py b/instana_client/models/entity_metric.py index a7706573..7358038c 100644 --- a/instana_client/models/entity_metric.py +++ b/instana_client/models/entity_metric.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.entity_metric_scope import EntityMetricScope from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityMetric(BaseModel): """ @@ -33,7 +34,8 @@ class EntityMetric(BaseModel): __properties: ClassVar[List[str]] = ["name", "scope"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_metric_scope.py b/instana_client/models/entity_metric_scope.py index 527f920d..fc7b9d45 100644 --- a/instana_client/models/entity_metric_scope.py +++ b/instana_client/models/entity_metric_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityMetricScope(BaseModel): """ @@ -33,7 +34,8 @@ class EntityMetricScope(BaseModel): __properties: ClassVar[List[str]] = ["tagFilterExpression", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/entity_verification_rule.py b/instana_client/models/entity_verification_rule.py index 75eee424..ee89fa05 100644 --- a/instana_client/models/entity_verification_rule.py +++ b/instana_client/models/entity_verification_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_rule import AbstractRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EntityVerificationRule(AbstractRule): """ @@ -43,7 +44,8 @@ def matching_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/error_budget_alert_rule.py b/instana_client/models/error_budget_alert_rule.py index d4511543..b20f5a59 100644 --- a/instana_client/models/error_budget_alert_rule.py +++ b/instana_client/models/error_budget_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ErrorBudgetAlertRule(ServiceLevelsAlertRule): """ @@ -39,7 +40,8 @@ def metric_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/errors_application_alert_rule.py b/instana_client/models/errors_application_alert_rule.py index 8c98b38a..85293431 100644 --- a/instana_client/models/errors_application_alert_rule.py +++ b/instana_client/models/errors_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ErrorsApplicationAlertRule(ApplicationAlertRule): """ @@ -33,7 +34,8 @@ class ErrorsApplicationAlertRule(ApplicationAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/evaluation_detail_response.py b/instana_client/models/evaluation_detail_response.py index 09df2699..2a1d2e43 100644 --- a/instana_client/models/evaluation_detail_response.py +++ b/instana_client/models/evaluation_detail_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EvaluationDetailResponse(BaseModel): """ @@ -52,7 +53,8 @@ class EvaluationDetailResponse(BaseModel): __properties: ClassVar[List[str]] = ["client_id", "created_at", "created_by", "description", "evaluation_id", "evaluation_name", "evaluator_ids", "model_names", "sampling_percentage", "schedule_enabled", "schedule_end_date", "schedule_end_occurrences", "schedule_end_type", "schedule_frequency", "schedule_run_count", "schedule_start_time", "schedule_timezone", "schedule_week_days", "service_names", "time_before_run_hours", "time_before_run_minutes", "trace_ids"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/evaluation_list_item.py b/instana_client/models/evaluation_list_item.py index 7b073453..cb678b6f 100644 --- a/instana_client/models/evaluation_list_item.py +++ b/instana_client/models/evaluation_list_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EvaluationListItem(BaseModel): """ @@ -54,7 +55,8 @@ class EvaluationListItem(BaseModel): __properties: ClassVar[List[str]] = ["duration_mean_ms", "evaluation_id", "evaluator_names", "evaluators", "last_run_start", "metadata", "model_names", "name", "number_of_runs", "sampling_percentage", "schedule_enabled", "schedule_end_date", "schedule_end_occurrences", "schedule_end_type", "schedule_frequency", "schedule_next_run_time", "schedule_run_count", "schedule_start_time", "schedule_timezone", "schedule_week_days", "service_names", "time_before_run_hours", "time_before_run_minutes", "trace_ids"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/evaluation_list_response.py b/instana_client/models/evaluation_list_response.py index 7246a344..8ad7bd1d 100644 --- a/instana_client/models/evaluation_list_response.py +++ b/instana_client/models/evaluation_list_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.evaluation_list_item import EvaluationListItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EvaluationListResponse(BaseModel): """ @@ -33,7 +34,8 @@ class EvaluationListResponse(BaseModel): __properties: ClassVar[List[str]] = ["evaluations", "total"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/evaluator.py b/instana_client/models/evaluator.py index 486eb8fe..007c28c0 100644 --- a/instana_client/models/evaluator.py +++ b/instana_client/models/evaluator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Evaluator(BaseModel): """ @@ -38,7 +39,8 @@ class Evaluator(BaseModel): __properties: ClassVar[List[str]] = ["criteria", "evaluatorId", "evaluatorName", "isBuiltIn", "meanScore", "numberOfRuns", "passRateMean", "threshold"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/event.py b/instana_client/models/event.py index 0d8c8522..e6a47754 100644 --- a/instana_client/models/event.py +++ b/instana_client/models/event.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.problem import Problem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Event(BaseModel): """ @@ -61,7 +62,8 @@ def entity_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -73,8 +75,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/event_filtering_configuration.py b/instana_client/models/event_filtering_configuration.py index 44688d42..c8641f31 100644 --- a/instana_client/models/event_filtering_configuration.py +++ b/instana_client/models/event_filtering_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EventFilteringConfiguration(BaseModel): """ @@ -46,7 +47,8 @@ def event_types_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/event_result.py b/instana_client/models/event_result.py index 8b81509a..9c43b55a 100644 --- a/instana_client/models/event_result.py +++ b/instana_client/models/event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -64,7 +65,8 @@ class EventResult(BaseModel): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -93,8 +95,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ApplicationEventResult, CallsEventResult, EndpointEventResult, InfraEventResult, LogEventResult, MobileAppEventResult, ServiceEventResult, SyntheticsEventResult, WebsiteEventResult]]: diff --git a/instana_client/models/event_specification_info.py b/instana_client/models/event_specification_info.py index 467ba307..43f9d390 100644 --- a/instana_client/models/event_specification_info.py +++ b/instana_client/models/event_specification_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class EventSpecificationInfo(BaseModel): """ @@ -49,7 +50,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/extended_service.py b/instana_client/models/extended_service.py index e0f584f0..68a15c61 100644 --- a/instana_client/models/extended_service.py +++ b/instana_client/models/extended_service.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ExtendedService(BaseModel): """ @@ -58,7 +59,8 @@ def types_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/failure_synthetic_alert_rule.py b/instana_client/models/failure_synthetic_alert_rule.py index b2dccf0f..9dab36b2 100644 --- a/instana_client/models/failure_synthetic_alert_rule.py +++ b/instana_client/models/failure_synthetic_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_alert_rule import SyntheticAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class FailureSyntheticAlertRule(SyntheticAlertRule): """ @@ -31,7 +32,8 @@ class FailureSyntheticAlertRule(SyntheticAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/filter_interface.py b/instana_client/models/filter_interface.py index e7b02fab..3914de57 100644 --- a/instana_client/models/filter_interface.py +++ b/instana_client/models/filter_interface.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.time_config import TimeConfig from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class FilterInterface(BaseModel): """ @@ -34,7 +35,8 @@ class FilterInterface(BaseModel): __properties: ClassVar[List[str]] = ["rbacRestrictions", "timeConfig"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/fixed_http_path_segment_matching_rule.py b/instana_client/models/fixed_http_path_segment_matching_rule.py index 6018c0ef..397450a7 100644 --- a/instana_client/models/fixed_http_path_segment_matching_rule.py +++ b/instana_client/models/fixed_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class FixedHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ @@ -33,7 +34,8 @@ class FixedHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): __properties: ClassVar[List[str]] = ["type", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/fixed_time_window.py b/instana_client/models/fixed_time_window.py index b8b114e1..884e61d0 100644 --- a/instana_client/models/fixed_time_window.py +++ b/instana_client/models/fixed_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.time_window import TimeWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class FixedTimeWindow(TimeWindow): """ @@ -33,7 +34,8 @@ class FixedTimeWindow(TimeWindow): __properties: ClassVar[List[str]] = ["duration", "durationUnit", "timezone", "type", "startTimestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/gateway_status_response.py b/instana_client/models/gateway_status_response.py index 6bdb9c88..9b3283d4 100644 --- a/instana_client/models/gateway_status_response.py +++ b/instana_client/models/gateway_status_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GatewayStatusResponse(BaseModel): """ @@ -35,7 +36,8 @@ class GatewayStatusResponse(BaseModel): __properties: ClassVar[List[str]] = ["enabled", "gateway_id", "gateway_name", "message", "model_name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/generic_infra_alert_rule.py b/instana_client/models/generic_infra_alert_rule.py index 7e3315a2..00d5dec0 100644 --- a/instana_client/models/generic_infra_alert_rule.py +++ b/instana_client/models/generic_infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GenericInfraAlertRule(InfraAlertRule): """ @@ -35,7 +36,8 @@ class GenericInfraAlertRule(InfraAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "crossSeriesAggregation", "entityType", "metricGroupBy", "metricName", "metricTagFilterExpression", "regex"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/geo_location_configuration.py b/instana_client/models/geo_location_configuration.py index 5e086c57..db6fe730 100644 --- a/instana_client/models/geo_location_configuration.py +++ b/instana_client/models/geo_location_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.geo_mapping_rule import GeoMappingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GeoLocationConfiguration(BaseModel): """ @@ -41,7 +42,8 @@ def geo_detail_removal_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/geo_mapping_rule.py b/instana_client/models/geo_mapping_rule.py index 773d9d60..84d497f6 100644 --- a/instana_client/models/geo_mapping_rule.py +++ b/instana_client/models/geo_mapping_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.geo_subdivision import GeoSubdivision from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GeoMappingRule(BaseModel): """ @@ -43,7 +44,8 @@ class GeoMappingRule(BaseModel): __properties: ClassVar[List[str]] = ["accuracyRadius", "cidr", "city", "continent", "continentCode", "country", "countryCode", "latitude", "leastSpecificSubdivision", "longitude", "subdivisions"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/geo_subdivision.py b/instana_client/models/geo_subdivision.py index 012a8eac..e425ff5f 100644 --- a/instana_client/models/geo_subdivision.py +++ b/instana_client/models/geo_subdivision.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GeoSubdivision(BaseModel): """ @@ -33,7 +34,8 @@ class GeoSubdivision(BaseModel): __properties: ClassVar[List[str]] = ["code", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_action_beacons_result.py b/instana_client/models/get_action_beacons_result.py index 1824e76a..8d4bf9c4 100644 --- a/instana_client/models/get_action_beacons_result.py +++ b/instana_client/models/get_action_beacons_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,18 +23,20 @@ from instana_client.models.action_beacon import ActionBeacon from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetActionBeaconsResult(BaseModel): """ GetActionBeaconsResult """ # noqa: E501 beacons: List[ActionBeacon] = Field(description="List of action beacons for the current page") - has_more: StrictBool = Field(description="Indicates whether more beacons are available beyond the current page", alias="hasMore") - next_cursor: Optional[StrictInt] = Field(default=None, description="Cursor for the next page (timestamp). Use this value in the next request to fetch more beacons.", alias="nextCursor") + has_more: StrictBool = Field(description="Indicates whether more beacons are available beyond the current page", alias="hasMore", json_schema_extra={"examples": [True]}) + next_cursor: Optional[StrictInt] = Field(default=None, description="Cursor for the next page (timestamp). Use this value in the next request to fetch more beacons.", alias="nextCursor", json_schema_extra={"examples": [1757340000000]}) __properties: ClassVar[List[str]] = ["beacons", "hasMore", "nextCursor"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_activities.py b/instana_client/models/get_activities.py index 29607f67..79015e28 100644 --- a/instana_client/models/get_activities.py +++ b/instana_client/models/get_activities.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetActivities(BaseModel): """ @@ -39,7 +40,8 @@ class GetActivities(BaseModel): __properties: ClassVar[List[str]] = ["order", "pagination", "tagFilterExpression", "timeFrame", "timeframe"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_application_metrics.py b/instana_client/models/get_application_metrics.py index 2d39370e..27c2ad60 100644 --- a/instana_client/models/get_application_metrics.py +++ b/instana_client/models/get_application_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetApplicationMetrics(BaseModel): """ @@ -38,7 +39,8 @@ class GetApplicationMetrics(BaseModel): __properties: ClassVar[List[str]] = ["includeInternal", "includeSynthetic", "metrics", "tagFilterExpression", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_applications.py b/instana_client/models/get_applications.py index 6b386635..2e89a679 100644 --- a/instana_client/models/get_applications.py +++ b/instana_client/models/get_applications.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetApplications(BaseModel): """ @@ -67,7 +68,8 @@ def endpoint_types_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_available_metrics_query.py b/instana_client/models/get_available_metrics_query.py index 61953583..2523f39c 100644 --- a/instana_client/models/get_available_metrics_query.py +++ b/instana_client/models/get_available_metrics_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetAvailableMetricsQuery(BaseModel): """ @@ -37,7 +38,8 @@ class GetAvailableMetricsQuery(BaseModel): __properties: ClassVar[List[str]] = ["query", "tagFilterExpression", "timeFrame", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_available_plugins_query.py b/instana_client/models/get_available_plugins_query.py index f4d73f86..8ff10432 100644 --- a/instana_client/models/get_available_plugins_query.py +++ b/instana_client/models/get_available_plugins_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetAvailablePluginsQuery(BaseModel): """ @@ -34,7 +35,8 @@ class GetAvailablePluginsQuery(BaseModel): __properties: ClassVar[List[str]] = ["tagFilterExpression", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_call_groups.py b/instana_client/models/get_call_groups.py index c040392a..44b96f5b 100644 --- a/instana_client/models/get_call_groups.py +++ b/instana_client/models/get_call_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetCallGroups(BaseModel): """ @@ -47,7 +48,8 @@ class GetCallGroups(BaseModel): __properties: ClassVar[List[str]] = ["group", "includeInternal", "includeSynthetic", "metrics", "order", "pagination", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_combined_metrics.py b/instana_client/models/get_combined_metrics.py index 518c003d..8472aaf5 100644 --- a/instana_client/models/get_combined_metrics.py +++ b/instana_client/models/get_combined_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,21 +24,23 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetCombinedMetrics(BaseModel): """ GetCombinedMetrics """ # noqa: E501 metrics: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1, max_length=15)] = Field(description="Id of the exact metric you want to retrieve, eg. \"cpu.user\", \"clientrequests.read.mean\"") - plugin: StrictStr = Field(description="Plugin name") - query: Optional[StrictStr] = Field(default=None, description="Dynamic Focus Query") - rollup: Optional[StrictInt] = Field(default=None, description="Rollup value in seconds") + plugin: StrictStr = Field(description="Plugin name", json_schema_extra={"examples": ["host"]}) + query: Optional[StrictStr] = Field(default=None, description="Dynamic Focus Query", json_schema_extra={"examples": ["entity.selfType:java"]}) + rollup: Optional[StrictInt] = Field(default=None, description="Rollup value in seconds", json_schema_extra={"examples": [5]}) snapshot_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1, max_length=60)]] = Field(default=None, description="Unique identifier the metrics are assigned to", alias="snapshotIds") time_frame: Optional[TimeFrame] = Field(default=None, alias="timeFrame") __properties: ClassVar[List[str]] = ["metrics", "plugin", "query", "rollup", "snapshotIds", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_dynamic_parameter_values.py b/instana_client/models/get_dynamic_parameter_values.py index 6254a26a..435aa145 100644 --- a/instana_client/models/get_dynamic_parameter_values.py +++ b/instana_client/models/get_dynamic_parameter_values.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.dynamic_parameter import DynamicParameter from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetDynamicParameterValues(BaseModel): """ @@ -35,7 +36,8 @@ class GetDynamicParameterValues(BaseModel): __properties: ClassVar[List[str]] = ["eventId", "parameters", "timestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_endpoints.py b/instana_client/models/get_endpoints.py index 7ef642b2..8ebb180d 100644 --- a/instana_client/models/get_endpoints.py +++ b/instana_client/models/get_endpoints.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetEndpoints(BaseModel): """ @@ -67,7 +68,8 @@ def endpoint_types_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_infrastructure_groups_query.py b/instana_client/models/get_infrastructure_groups_query.py index 5b35a542..0812e751 100644 --- a/instana_client/models/get_infrastructure_groups_query.py +++ b/instana_client/models/get_infrastructure_groups_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -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_extensions import Annotated from instana_client.models.cursor_pagination_with_ui_cursor_infra_explore_cursor import CursorPaginationWithUiCursorInfraExploreCursor @@ -28,12 +28,14 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetInfrastructureGroupsQuery(BaseModel): """ GetInfrastructureGroupsQuery """ # noqa: E501 group_by: Annotated[List[StrictStr], Field(min_length=0, max_length=5)] = Field(description="Entity grouping tag. Use the Instana Analyze Infrastructure dashboard to determine the entity grouping tag name.", alias="groupBy") + include_member_ids: Optional[StrictBool] = Field(default=None, description="Includes the IDs of each group’s member entities in the response", alias="includeMemberIds") metrics: Optional[Annotated[List[SimpleMetricConfiguration], Field(min_length=0, max_length=10)]] = None missing_placeholder: Optional[StrictStr] = Field(default=None, description="Placeholder value for missing tag values", alias="missingPlaceholder") order: Optional[Order] = None @@ -41,10 +43,11 @@ class GetInfrastructureGroupsQuery(BaseModel): tag_filter_expression: Optional[TagFilterExpressionElement] = Field(alias="tagFilterExpression") time_frame: TimeFrame = Field(alias="timeFrame") type: Optional[StrictStr] = Field(default=None, description="Type of entities") - __properties: ClassVar[List[str]] = ["groupBy", "metrics", "missingPlaceholder", "order", "pagination", "tagFilterExpression", "timeFrame", "type"] + __properties: ClassVar[List[str]] = ["groupBy", "includeMemberIds", "metrics", "missingPlaceholder", "order", "pagination", "tagFilterExpression", "timeFrame", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -134,6 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "groupBy": obj.get("groupBy"), + "includeMemberIds": obj.get("includeMemberIds"), "metrics": [SimpleMetricConfiguration.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, "missingPlaceholder": obj.get("missingPlaceholder"), "order": Order.from_dict(obj["order"]) if obj.get("order") is not None else None, diff --git a/instana_client/models/get_infrastructure_query.py b/instana_client/models/get_infrastructure_query.py index b262cf44..60845787 100644 --- a/instana_client/models/get_infrastructure_query.py +++ b/instana_client/models/get_infrastructure_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetInfrastructureQuery(BaseModel): """ @@ -44,7 +45,8 @@ class GetInfrastructureQuery(BaseModel): __properties: ClassVar[List[str]] = ["metrics", "missingPlaceholder", "order", "pagination", "tagFilterExpression", "tags", "timeFrame", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_metrics_result.py b/instana_client/models/get_metrics_result.py index d5c21f51..b5b6a8d3 100644 --- a/instana_client/models/get_metrics_result.py +++ b/instana_client/models/get_metrics_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetMetricsResult(BaseModel): """ @@ -42,7 +43,8 @@ class GetMetricsResult(BaseModel): __properties: ClassVar[List[str]] = ["disableDefaultGroups", "groups", "includeAggregatedTestIds", "metrics", "pagination", "tagFilterExpression", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_mobile_app_beacon_groups.py b/instana_client/models/get_mobile_app_beacon_groups.py index c2862ceb..07492bca 100644 --- a/instana_client/models/get_mobile_app_beacon_groups.py +++ b/instana_client/models/get_mobile_app_beacon_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetMobileAppBeaconGroups(BaseModel): """ @@ -53,7 +54,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,8 +67,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_mobile_app_beacons.py b/instana_client/models/get_mobile_app_beacons.py index 7448f049..09904cfd 100644 --- a/instana_client/models/get_mobile_app_beacons.py +++ b/instana_client/models/get_mobile_app_beacons.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetMobileAppBeacons(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_mobile_app_metrics.py b/instana_client/models/get_mobile_app_metrics.py index fb34d61a..c2fb2c63 100644 --- a/instana_client/models/get_mobile_app_metrics.py +++ b/instana_client/models/get_mobile_app_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetMobileAppMetrics(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_mobile_app_metrics_v2.py b/instana_client/models/get_mobile_app_metrics_v2.py index 7e4aaeb4..9a56d1cd 100644 --- a/instana_client/models/get_mobile_app_metrics_v2.py +++ b/instana_client/models/get_mobile_app_metrics_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetMobileAppMetricsV2(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_payload_keys_result.py b/instana_client/models/get_payload_keys_result.py index 105a1d24..ef02d45f 100644 --- a/instana_client/models/get_payload_keys_result.py +++ b/instana_client/models/get_payload_keys_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetPayloadKeysResult(BaseModel): """ @@ -31,7 +32,8 @@ class GetPayloadKeysResult(BaseModel): __properties: ClassVar[List[str]] = ["payloadKeys"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_services.py b/instana_client/models/get_services.py index 4a1ef761..057b6a4c 100644 --- a/instana_client/models/get_services.py +++ b/instana_client/models/get_services.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetServices(BaseModel): """ @@ -65,7 +66,8 @@ def context_scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -77,8 +79,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_session_replay_metadata_result.py b/instana_client/models/get_session_replay_metadata_result.py index 999d5e32..6e93adc7 100644 --- a/instana_client/models/get_session_replay_metadata_result.py +++ b/instana_client/models/get_session_replay_metadata_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,18 +23,20 @@ from instana_client.models.session_replay_metadata import SessionReplayMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetSessionReplayMetadataResult(BaseModel): """ GetSessionReplayMetadataResult """ # noqa: E501 - has_more: StrictBool = Field(description="Whether there are more records to fetch beyond this page", alias="hasMore") + has_more: StrictBool = Field(description="Whether there are more records to fetch beyond this page", alias="hasMore", json_schema_extra={"examples": [True]}) metadata: List[SessionReplayMetadata] = Field(description="List of session replay metadata records") - next_cursor: Optional[StrictInt] = Field(default=None, description="Cursor for the next page (timestamp of last record)", alias="nextCursor") + next_cursor: Optional[StrictInt] = Field(default=None, description="Cursor for the next page (timestamp of last record)", alias="nextCursor", json_schema_extra={"examples": [1234587890]}) __properties: ClassVar[List[str]] = ["hasMore", "metadata", "nextCursor"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_snapshots_query.py b/instana_client/models/get_snapshots_query.py index 39af5fd2..cb4dc95a 100644 --- a/instana_client/models/get_snapshots_query.py +++ b/instana_client/models/get_snapshots_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetSnapshotsQuery(BaseModel): """ @@ -34,7 +35,8 @@ class GetSnapshotsQuery(BaseModel): __properties: ClassVar[List[str]] = ["snapshotIds", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_test_result.py b/instana_client/models/get_test_result.py index d9a6678b..cfe5e9df 100644 --- a/instana_client/models/get_test_result.py +++ b/instana_client/models/get_test_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTestResult(BaseModel): """ @@ -47,7 +48,8 @@ class GetTestResult(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "locationId", "metrics", "order", "pagination", "serviceId", "tagFilterExpression", "tagFilters", "testId", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_test_result_analytic.py b/instana_client/models/get_test_result_analytic.py index f68605ea..c702a0af 100644 --- a/instana_client/models/get_test_result_analytic.py +++ b/instana_client/models/get_test_result_analytic.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTestResultAnalytic(BaseModel): """ @@ -43,7 +44,8 @@ class GetTestResultAnalytic(BaseModel): __properties: ClassVar[List[str]] = ["analyticFunction", "includeLocationIdGrouping", "order", "pagination", "syntheticMetrics", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_test_result_base.py b/instana_client/models/get_test_result_base.py index ded38cf5..a2689b67 100644 --- a/instana_client/models/get_test_result_base.py +++ b/instana_client/models/get_test_result_base.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTestResultBase(BaseModel): """ @@ -40,7 +41,8 @@ class GetTestResultBase(BaseModel): __properties: ClassVar[List[str]] = ["order", "pagination", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_test_result_list.py b/instana_client/models/get_test_result_list.py index fc781828..ac73975c 100644 --- a/instana_client/models/get_test_result_list.py +++ b/instana_client/models/get_test_result_list.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTestResultList(BaseModel): """ @@ -43,7 +44,8 @@ class GetTestResultList(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "order", "pagination", "syntheticMetrics", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_test_summary_result.py b/instana_client/models/get_test_summary_result.py index 0e68e3a6..b5295358 100644 --- a/instana_client/models/get_test_summary_result.py +++ b/instana_client/models/get_test_summary_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTestSummaryResult(BaseModel): """ @@ -42,7 +43,8 @@ class GetTestSummaryResult(BaseModel): __properties: ClassVar[List[str]] = ["metrics", "order", "pagination", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_trace_download_result_item.py b/instana_client/models/get_trace_download_result_item.py index b441ec01..8cd14640 100644 --- a/instana_client/models/get_trace_download_result_item.py +++ b/instana_client/models/get_trace_download_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.call_relation import CallRelation from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTraceDownloadResultItem(BaseModel): """ @@ -43,7 +44,8 @@ class GetTraceDownloadResultItem(BaseModel): __properties: ClassVar[List[str]] = ["callCount", "cursor", "destination", "duration", "errorCount", "foreignParentId", "id", "minSelfTime", "name", "networkTime", "parentId", "timestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_trace_groups.py b/instana_client/models/get_trace_groups.py index b3a67de5..6d952bef 100644 --- a/instana_client/models/get_trace_groups.py +++ b/instana_client/models/get_trace_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTraceGroups(BaseModel): """ @@ -47,7 +48,8 @@ class GetTraceGroups(BaseModel): __properties: ClassVar[List[str]] = ["group", "includeInternal", "includeSynthetic", "metrics", "order", "pagination", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_traces.py b/instana_client/models/get_traces.py index 3f9ae591..49455f81 100644 --- a/instana_client/models/get_traces.py +++ b/instana_client/models/get_traces.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetTraces(BaseModel): """ @@ -43,7 +44,8 @@ class GetTraces(BaseModel): __properties: ClassVar[List[str]] = ["includeInternal", "includeSynthetic", "order", "pagination", "tagFilterExpression", "tagFilters", "timeFrame"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_website_beacon_groups.py b/instana_client/models/get_website_beacon_groups.py index a6931e82..b5f5185a 100644 --- a/instana_client/models/get_website_beacon_groups.py +++ b/instana_client/models/get_website_beacon_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetWebsiteBeaconGroups(BaseModel): """ @@ -53,7 +54,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,8 +67,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_website_beacons.py b/instana_client/models/get_website_beacons.py index eac55204..c563f6b9 100644 --- a/instana_client/models/get_website_beacons.py +++ b/instana_client/models/get_website_beacons.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_frame import TimeFrame from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetWebsiteBeacons(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_website_metrics.py b/instana_client/models/get_website_metrics.py index 2b643b15..c8d107fe 100644 --- a/instana_client/models/get_website_metrics.py +++ b/instana_client/models/get_website_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetWebsiteMetrics(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/get_website_metrics_v2.py b/instana_client/models/get_website_metrics_v2.py index a876f599..4982ea64 100644 --- a/instana_client/models/get_website_metrics_v2.py +++ b/instana_client/models/get_website_metrics_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GetWebsiteMetricsV2(BaseModel): """ @@ -45,7 +46,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/git_hub_configuration.py b/instana_client/models/git_hub_configuration.py index b6c4a36b..9830cb06 100644 --- a/instana_client/models/git_hub_configuration.py +++ b/instana_client/models/git_hub_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GitHubConfiguration(BaseModel): """ @@ -34,7 +35,8 @@ class GitHubConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["allowedCredentials", "credentialName", "scriptFile", "url"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/global_application_alert_config_with_metadata.py b/instana_client/models/global_application_alert_config_with_metadata.py index 985fb7ac..75d3e1cc 100644 --- a/instana_client/models/global_application_alert_config_with_metadata.py +++ b/instana_client/models/global_application_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GlobalApplicationAlertConfigWithMetadata(BaseModel): """ @@ -88,7 +89,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -100,8 +102,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/global_applications_alert_config.py b/instana_client/models/global_applications_alert_config.py index 54a02a15..058bc627 100644 --- a/instana_client/models/global_applications_alert_config.py +++ b/instana_client/models/global_applications_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GlobalApplicationsAlertConfig(BaseModel): """ @@ -80,7 +81,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -92,8 +94,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/google_chat_integration.py b/instana_client/models/google_chat_integration.py index b09845a0..533eeb42 100644 --- a/instana_client/models/google_chat_integration.py +++ b/instana_client/models/google_chat_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GoogleChatIntegration(AbstractIntegration): """ @@ -33,7 +34,8 @@ class GoogleChatIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/graph_edge.py b/instana_client/models/graph_edge.py index 38f49980..fe4bd297 100644 --- a/instana_client/models/graph_edge.py +++ b/instana_client/models/graph_edge.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GraphEdge(BaseModel): """ @@ -43,7 +44,8 @@ def relation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/graph_node.py b/instana_client/models/graph_node.py index be154456..5e36920f 100644 --- a/instana_client/models/graph_node.py +++ b/instana_client/models/graph_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.entity_id import EntityId from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GraphNode(BaseModel): """ @@ -36,7 +37,8 @@ class GraphNode(BaseModel): __properties: ClassVar[List[str]] = ["data", "entityId", "id", "label", "plugin"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/group.py b/instana_client/models/group.py index 7482667f..ad6aef84 100644 --- a/instana_client/models/group.py +++ b/instana_client/models/group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Group(BaseModel): """ @@ -41,7 +42,8 @@ def groupby_tag_entity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/group_by_tag.py b/instana_client/models/group_by_tag.py index 00ea1777..ec0e51d1 100644 --- a/instana_client/models/group_by_tag.py +++ b/instana_client/models/group_by_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class GroupByTag(BaseModel): """ @@ -33,7 +34,8 @@ class GroupByTag(BaseModel): __properties: ClassVar[List[str]] = ["key", "tagName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/health_state.py b/instana_client/models/health_state.py index d222ec06..e52c5090 100644 --- a/instana_client/models/health_state.py +++ b/instana_client/models/health_state.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HealthState(BaseModel): """ @@ -42,7 +43,8 @@ def health_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/historic_baseline.py b/instana_client/models/historic_baseline.py index 43e56a23..4ee16f35 100644 --- a/instana_client/models/historic_baseline.py +++ b/instana_client/models/historic_baseline.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HistoricBaseline(Threshold): """ @@ -43,7 +44,8 @@ def seasonality_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/host_availability_rule.py b/instana_client/models/host_availability_rule.py index a161dab3..3c96cb2c 100644 --- a/instana_client/models/host_availability_rule.py +++ b/instana_client/models/host_availability_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter import TagFilter from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HostAvailabilityRule(AbstractRule): """ @@ -36,7 +37,8 @@ class HostAvailabilityRule(AbstractRule): __properties: ClassVar[List[str]] = ["ruleType", "severity", "closeAfter", "offlineDuration", "tagFilter"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_action_configuration.py b/instana_client/models/http_action_configuration.py index 0f3029c0..b3cb8fd2 100644 --- a/instana_client/models/http_action_configuration.py +++ b/instana_client/models/http_action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpActionConfiguration(SyntheticTypeConfiguration): """ @@ -54,7 +55,8 @@ def operation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_action_configuration_update.py b/instana_client/models/http_action_configuration_update.py index 14d01fb9..18886ab6 100644 --- a/instana_client/models/http_action_configuration_update.py +++ b/instana_client/models/http_action_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpActionConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -55,7 +56,8 @@ def operation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_endpoint_config.py b/instana_client/models/http_endpoint_config.py index e87774bf..26ff5371 100644 --- a/instana_client/models/http_endpoint_config.py +++ b/instana_client/models/http_endpoint_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.http_endpoint_rule import HttpEndpointRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpEndpointConfig(BaseModel): """ @@ -36,7 +37,8 @@ class HttpEndpointConfig(BaseModel): __properties: ClassVar[List[str]] = ["endpointNameByCollectedPathTemplateRuleEnabled", "endpointNameByFirstPathSegmentRuleEnabled", "rules", "serviceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_endpoint_rule.py b/instana_client/models/http_endpoint_rule.py index 8c16ca19..ad83e29a 100644 --- a/instana_client/models/http_endpoint_rule.py +++ b/instana_client/models/http_endpoint_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpEndpointRule(BaseModel): """ @@ -35,7 +36,8 @@ class HttpEndpointRule(BaseModel): __properties: ClassVar[List[str]] = ["enabled", "pathSegments", "testCases"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_path_segment_matching_rule.py b/instana_client/models/http_path_segment_matching_rule.py index 773697d4..c256ac6d 100644 --- a/instana_client/models/http_path_segment_matching_rule.py +++ b/instana_client/models/http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -46,7 +47,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,8 +77,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[FixedHttpPathSegmentMatchingRule, MatchAllHttpPathSegmentMatchingRule, PathParameterHttpPathSegmentMatchingRule, UnsupportedHttpPathSegmentMatchingRule]]: diff --git a/instana_client/models/http_script_configuration.py b/instana_client/models/http_script_configuration.py index b66d312e..3fca3ecd 100644 --- a/instana_client/models/http_script_configuration.py +++ b/instana_client/models/http_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpScriptConfiguration(SyntheticTypeConfiguration): """ @@ -49,7 +50,8 @@ def script_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/http_script_configuration_update.py b/instana_client/models/http_script_configuration_update.py index 99179a8d..364295dc 100644 --- a/instana_client/models/http_script_configuration_update.py +++ b/instana_client/models/http_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HttpScriptConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -48,7 +49,8 @@ def script_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/hyper_param.py b/instana_client/models/hyper_param.py index bbb4e865..9fdfcbd6 100644 --- a/instana_client/models/hyper_param.py +++ b/instana_client/models/hyper_param.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class HyperParam(BaseModel): """ @@ -48,7 +49,8 @@ def value_format_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/icmp_configuration.py b/instana_client/models/icmp_configuration.py index 98ea3047..8040a957 100644 --- a/instana_client/models/icmp_configuration.py +++ b/instana_client/models/icmp_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ICMPConfiguration(SyntheticTypeConfiguration): """ @@ -40,7 +41,8 @@ class ICMPConfiguration(SyntheticTypeConfiguration): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "syntheticType", "timeout", "packetCount", "packetInterval", "packetSize", "packetTimeout", "targetHost", "useDNS", "useIPv6", "validationRules"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/icmp_configuration_update.py b/instana_client/models/icmp_configuration_update.py index 4be4fb38..dfdd4c82 100644 --- a/instana_client/models/icmp_configuration_update.py +++ b/instana_client/models/icmp_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ICMPConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -40,7 +41,8 @@ class ICMPConfigurationUpdate(SyntheticTypeConfigurationUpdate): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "syntheticTest", "syntheticType", "timeout", "packetCount", "packetInterval", "packetSize", "packetTimeout", "targetHost", "useDNS", "useIPv6", "validationRules"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/icmp_validation.py b/instana_client/models/icmp_validation.py index ac61bc9a..5fce699c 100644 --- a/instana_client/models/icmp_validation.py +++ b/instana_client/models/icmp_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ICMPValidation(BaseModel): """ @@ -40,7 +41,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/identity_provider_patch.py b/instana_client/models/identity_provider_patch.py index 256b8ecb..91a02016 100644 --- a/instana_client/models/identity_provider_patch.py +++ b/instana_client/models/identity_provider_patch.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IdentityProviderPatch(BaseModel): """ @@ -31,7 +32,8 @@ class IdentityProviderPatch(BaseModel): __properties: ClassVar[List[str]] = ["restrictEmptyIdpGroups"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/idp_status_update.py b/instana_client/models/idp_status_update.py index 2ddbada0..831825a0 100644 --- a/instana_client/models/idp_status_update.py +++ b/instana_client/models/idp_status_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IdpStatusUpdate(BaseModel): """ @@ -31,7 +32,8 @@ class IdpStatusUpdate(BaseModel): __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/impacted_beacon_info.py b/instana_client/models/impacted_beacon_info.py index 206362e5..d79bd11d 100644 --- a/instana_client/models/impacted_beacon_info.py +++ b/instana_client/models/impacted_beacon_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ImpactedBeaconInfo(BaseModel): """ @@ -35,7 +36,8 @@ class ImpactedBeaconInfo(BaseModel): __properties: ClassVar[List[str]] = ["country", "label", "subdivision", "userEmail", "userName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infra_alert_config.py b/instana_client/models/infra_alert_config.py index 29fc05c3..7651d7eb 100644 --- a/instana_client/models/infra_alert_config.py +++ b/instana_client/models/infra_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfraAlertConfig(BaseModel): """ @@ -81,7 +82,8 @@ def rule_logical_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -93,8 +95,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infra_alert_config_with_metadata.py b/instana_client/models/infra_alert_config_with_metadata.py index dc2d7b12..6d3e47eb 100644 --- a/instana_client/models/infra_alert_config_with_metadata.py +++ b/instana_client/models/infra_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfraAlertConfigWithMetadata(BaseModel): """ @@ -87,7 +88,8 @@ def rule_logical_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -99,8 +101,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infra_alert_rule.py b/instana_client/models/infra_alert_rule.py index 54d04823..4c93657c 100644 --- a/instana_client/models/infra_alert_rule.py +++ b/instana_client/models/infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -65,7 +66,8 @@ def cross_series_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -94,8 +96,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[GenericInfraAlertRule]]: diff --git a/instana_client/models/infra_event_result.py b/instana_client/models/infra_event_result.py index 6aae3a01..920e110d 100644 --- a/instana_client/models/infra_event_result.py +++ b/instana_client/models/infra_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfraEventResult(EventResult): """ @@ -34,7 +35,8 @@ class InfraEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "ibmMqFileTransfer", "snapshotIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infra_slo_entity.py b/instana_client/models/infra_slo_entity.py index 7f2fa944..bdeaa6c6 100644 --- a/instana_client/models/infra_slo_entity.py +++ b/instana_client/models/infra_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfraSloEntity(SloEntity): """ @@ -33,7 +34,8 @@ class InfraSloEntity(SloEntity): __properties: ClassVar[List[str]] = ["tagFilterExpression", "type", "infraType"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infra_time_threshold.py b/instana_client/models/infra_time_threshold.py index 7e61ad0b..14b0b102 100644 --- a/instana_client/models/infra_time_threshold.py +++ b/instana_client/models/infra_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -37,7 +38,8 @@ class InfraTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ViolationsInSequenceInfraTimeThreshold]]: diff --git a/instana_client/models/infrastructure_entities_result.py b/instana_client/models/infrastructure_entities_result.py index eece941e..c5c38fda 100644 --- a/instana_client/models/infrastructure_entities_result.py +++ b/instana_client/models/infrastructure_entities_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.infrastructure_item import InfrastructureItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfrastructureEntitiesResult(BaseModel): """ @@ -38,7 +39,8 @@ class InfrastructureEntitiesResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "next", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infrastructure_group.py b/instana_client/models/infrastructure_group.py index 9aaa7c34..5962e6db 100644 --- a/instana_client/models/infrastructure_group.py +++ b/instana_client/models/infrastructure_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,11 +18,12 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from instana_client.models.sampling_metadata import SamplingMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfrastructureGroup(BaseModel): """ @@ -30,14 +31,16 @@ class InfrastructureGroup(BaseModel): """ # noqa: E501 adjusted_granularities: Optional[Dict[str, StrictInt]] = Field(default=None, description="map of metric keys to their adjusted granularity (in milliseconds)", alias="adjustedGranularities") count: Optional[StrictInt] = Field(default=None, description="number of entities in this group") + member_ids: Optional[List[StrictStr]] = Field(default=None, description="Snapshot IDs of entities in this group", alias="memberIds") metrics: Optional[Dict[str, List[List[Union[StrictFloat, StrictInt]]]]] = Field(default=None, description="map of metric keys to array of timestamp,value pairs") poll_rate: Optional[StrictInt] = Field(default=None, description="max poll rate across this group", alias="pollRate") sampling_metadata: Optional[SamplingMetadata] = Field(default=None, alias="samplingMetadata") tags: Optional[Dict[str, Dict[str, Any]]] = Field(default=None, description="tag keys and values for this group") - __properties: ClassVar[List[str]] = ["adjustedGranularities", "count", "metrics", "pollRate", "samplingMetadata", "tags"] + __properties: ClassVar[List[str]] = ["adjustedGranularities", "count", "memberIds", "metrics", "pollRate", "samplingMetadata", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -78,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of sampling_metadata if self.sampling_metadata: _dict['samplingMetadata'] = self.sampling_metadata.to_dict() + # set to None if member_ids (nullable) is None + # and model_fields_set contains the field + if self.member_ids is None and "member_ids" in self.model_fields_set: + _dict['memberIds'] = None + # set to None if sampling_metadata (nullable) is None # and model_fields_set contains the field if self.sampling_metadata is None and "sampling_metadata" in self.model_fields_set: @@ -97,6 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "adjustedGranularities": obj.get("adjustedGranularities"), "count": obj.get("count"), + "memberIds": obj.get("memberIds"), "metrics": obj.get("metrics"), "pollRate": obj.get("pollRate"), "samplingMetadata": SamplingMetadata.from_dict(obj["samplingMetadata"]) if obj.get("samplingMetadata") is not None else None, diff --git a/instana_client/models/infrastructure_groups_result.py b/instana_client/models/infrastructure_groups_result.py index 07bafc10..5a760f38 100644 --- a/instana_client/models/infrastructure_groups_result.py +++ b/instana_client/models/infrastructure_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.infrastructure_group import InfrastructureGroup from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfrastructureGroupsResult(BaseModel): """ @@ -38,7 +39,8 @@ class InfrastructureGroupsResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "next", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infrastructure_item.py b/instana_client/models/infrastructure_item.py index fff9317d..d8c009df 100644 --- a/instana_client/models/infrastructure_item.py +++ b/instana_client/models/infrastructure_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.entity_health_info import EntityHealthInfo from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfrastructureItem(BaseModel): """ @@ -39,7 +40,8 @@ class InfrastructureItem(BaseModel): __properties: ClassVar[List[str]] = ["adjustedGranularities", "entityHealthInfo", "label", "metrics", "plugin", "snapshotId", "tags", "time"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/infrastructure_metric_result.py b/instana_client/models/infrastructure_metric_result.py index c3c0d6e7..5091607f 100644 --- a/instana_client/models/infrastructure_metric_result.py +++ b/instana_client/models/infrastructure_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.metric_item import MetricItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InfrastructureMetricResult(BaseModel): """ @@ -32,7 +33,8 @@ class InfrastructureMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["items"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/instana_version_info.py b/instana_client/models/instana_version_info.py index d024b8d3..077e9c9c 100644 --- a/instana_client/models/instana_version_info.py +++ b/instana_client/models/instana_version_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InstanaVersionInfo(BaseModel): """ @@ -33,7 +34,8 @@ class InstanaVersionInfo(BaseModel): __properties: ClassVar[List[str]] = ["branch", "commit", "imageTag"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/integration_overview.py b/instana_client/models/integration_overview.py index a54b2a87..0a5d789e 100644 --- a/instana_client/models/integration_overview.py +++ b/instana_client/models/integration_overview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.api_tag import ApiTag from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IntegrationOverview(BaseModel): """ @@ -37,7 +38,8 @@ class IntegrationOverview(BaseModel): __properties: ClassVar[List[str]] = ["id", "kind", "name", "properties", "rbacTags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/invitation.py b/instana_client/models/invitation.py index 702056cf..9a7cd630 100644 --- a/instana_client/models/invitation.py +++ b/instana_client/models/invitation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Invitation(BaseModel): """ @@ -36,7 +37,8 @@ class Invitation(BaseModel): __properties: ClassVar[List[str]] = ["email", "groupId", "message", "path", "teamId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/invitation_response.py b/instana_client/models/invitation_response.py index 44d16198..cb52a9f8 100644 --- a/instana_client/models/invitation_response.py +++ b/instana_client/models/invitation_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.invitation_result import InvitationResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InvitationResponse(BaseModel): """ @@ -32,7 +33,8 @@ class InvitationResponse(BaseModel): __properties: ClassVar[List[str]] = ["invitationResults"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/invitation_result.py b/instana_client/models/invitation_result.py index e566a265..b52d171f 100644 --- a/instana_client/models/invitation_result.py +++ b/instana_client/models/invitation_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class InvitationResult(BaseModel): """ @@ -42,7 +43,8 @@ def invitation_status_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ip_filtering.py b/instana_client/models/ip_filtering.py index 368d2a39..c23c7973 100644 --- a/instana_client/models/ip_filtering.py +++ b/instana_client/models/ip_filtering.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.ip_filtering_rule_dto import IPFilteringRuleDto from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IPFiltering(BaseModel): """ @@ -38,7 +39,8 @@ class IPFiltering(BaseModel): __properties: ClassVar[List[str]] = ["active", "denyAll", "enabled", "lastChangedAt", "lastVerifiedAt", "rules", "supportAccessEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ip_filtering_rule_dto.py b/instana_client/models/ip_filtering_rule_dto.py index 32613d8f..247ee0e5 100644 --- a/instana_client/models/ip_filtering_rule_dto.py +++ b/instana_client/models/ip_filtering_rule_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IPFilteringRuleDto(BaseModel): """ @@ -32,7 +33,8 @@ class IPFilteringRuleDto(BaseModel): __properties: ClassVar[List[str]] = ["block", "target"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ip_filtering_upsert.py b/instana_client/models/ip_filtering_upsert.py index 49b500a9..f649dfd4 100644 --- a/instana_client/models/ip_filtering_upsert.py +++ b/instana_client/models/ip_filtering_upsert.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.ip_filtering_rule_dto import IPFilteringRuleDto from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IPFilteringUpsert(BaseModel): """ @@ -36,7 +37,8 @@ class IPFilteringUpsert(BaseModel): __properties: ClassVar[List[str]] = ["denyAll", "enabled", "rules", "supportAccessEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ip_masking_configuration.py b/instana_client/models/ip_masking_configuration.py index ea6240ca..68896119 100644 --- a/instana_client/models/ip_masking_configuration.py +++ b/instana_client/models/ip_masking_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class IpMaskingConfiguration(BaseModel): """ @@ -38,7 +39,8 @@ def ip_masking_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/js_stack_trace_line.py b/instana_client/models/js_stack_trace_line.py index 85219b34..fd356767 100644 --- a/instana_client/models/js_stack_trace_line.py +++ b/instana_client/models/js_stack_trace_line.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class JsStackTraceLine(BaseModel): """ @@ -37,7 +38,8 @@ class JsStackTraceLine(BaseModel): __properties: ClassVar[List[str]] = ["column", "file", "line", "name", "translationExplanation", "translationStatus"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/kubernetes_physical_context.py b/instana_client/models/kubernetes_physical_context.py index 848ff264..5c50560c 100644 --- a/instana_client/models/kubernetes_physical_context.py +++ b/instana_client/models/kubernetes_physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.snapshot_preview import SnapshotPreview from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class KubernetesPhysicalContext(BaseModel): """ @@ -35,7 +36,8 @@ class KubernetesPhysicalContext(BaseModel): __properties: ClassVar[List[str]] = ["cluster", "namespace", "node", "pod"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/latency_blueprint_indicator.py b/instana_client/models/latency_blueprint_indicator.py index 1c4c7355..aa341560 100644 --- a/instana_client/models/latency_blueprint_indicator.py +++ b/instana_client/models/latency_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_level_indicator import ServiceLevelIndicator from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LatencyBlueprintIndicator(ServiceLevelIndicator): """ @@ -35,7 +36,8 @@ class LatencyBlueprintIndicator(ServiceLevelIndicator): __properties: ClassVar[List[str]] = ["aggregation", "blueprint", "operator", "serviceLevelsMeasurement", "threshold", "type", "metric"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_egress_gateway.py b/instana_client/models/llm_egress_gateway.py index fae529f4..87e682fe 100644 --- a/instana_client/models/llm_egress_gateway.py +++ b/instana_client/models/llm_egress_gateway.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.llm_gateway_service import LLMGatewayService from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LLMEgressGateway(BaseModel): """ @@ -49,7 +50,8 @@ class LLMEgressGateway(BaseModel): __properties: ClassVar[List[str]] = ["capabilities", "createdAt", "description", "enabled", "id", "instanaAgents", "metadata", "model", "modifiedAt", "name", "prompt", "service", "system", "tenantUnitId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_gateway_capability.py b/instana_client/models/llm_gateway_capability.py index 4bd19236..c7793d0e 100644 --- a/instana_client/models/llm_gateway_capability.py +++ b/instana_client/models/llm_gateway_capability.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LLMGatewayCapability(BaseModel): """ @@ -34,7 +35,8 @@ class LLMGatewayCapability(BaseModel): __properties: ClassVar[List[str]] = ["enabled", "id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_gateway_model.py b/instana_client/models/llm_gateway_model.py index 4802a9a5..1e115709 100644 --- a/instana_client/models/llm_gateway_model.py +++ b/instana_client/models/llm_gateway_model.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LLMGatewayModel(BaseModel): """ @@ -32,7 +33,8 @@ class LLMGatewayModel(BaseModel): __properties: ClassVar[List[str]] = ["configuration", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_gateway_service.py b/instana_client/models/llm_gateway_service.py index dd18cc4c..44368df2 100644 --- a/instana_client/models/llm_gateway_service.py +++ b/instana_client/models/llm_gateway_service.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LLMGatewayService(BaseModel): """ @@ -34,7 +35,8 @@ class LLMGatewayService(BaseModel): __properties: ClassVar[List[str]] = ["connectionParameters", "id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_gateway_test_connection_request.py b/instana_client/models/llm_gateway_test_connection_request.py index eeabde8e..486791b9 100644 --- a/instana_client/models/llm_gateway_test_connection_request.py +++ b/instana_client/models/llm_gateway_test_connection_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LLMGatewayTestConnectionRequest(BaseModel): """ @@ -33,7 +34,8 @@ class LLMGatewayTestConnectionRequest(BaseModel): __properties: ClassVar[List[str]] = ["connectionParameters", "gatewayId", "serviceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_model_price.py b/instana_client/models/llm_model_price.py index 3c4214f8..ec8fe041 100644 --- a/instana_client/models/llm_model_price.py +++ b/instana_client/models/llm_model_price.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LlmModelPrice(BaseModel): """ @@ -39,7 +40,8 @@ class LlmModelPrice(BaseModel): __properties: ClassVar[List[str]] = ["defaultInputCost", "defaultOutputCost", "hasDefaultPrice", "inputCost", "isUserDefined", "modelName", "outputCost", "platform", "provider"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/llm_model_price_metadata.py b/instana_client/models/llm_model_price_metadata.py index 09305590..409679d4 100644 --- a/instana_client/models/llm_model_price_metadata.py +++ b/instana_client/models/llm_model_price_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LlmModelPriceMetadata(BaseModel): """ @@ -32,7 +33,8 @@ class LlmModelPriceMetadata(BaseModel): __properties: ClassVar[List[str]] = ["currencyCode"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/location_status.py b/instana_client/models/location_status.py index 11381510..2fe48e6e 100644 --- a/instana_client/models/location_status.py +++ b/instana_client/models/location_status.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LocationStatus(BaseModel): """ @@ -37,7 +38,8 @@ class LocationStatus(BaseModel): __properties: ClassVar[List[str]] = ["locationDisplayLabel", "locationId", "locationType", "successRate", "successRuns", "totalTestRuns"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_alert_config.py b/instana_client/models/log_alert_config.py index 24d86799..9cc91f7e 100644 --- a/instana_client/models/log_alert_config.py +++ b/instana_client/models/log_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogAlertConfig(BaseModel): """ @@ -57,7 +58,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,8 +71,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_alert_config_with_metadata.py b/instana_client/models/log_alert_config_with_metadata.py index 2d3ac211..666fa9cf 100644 --- a/instana_client/models/log_alert_config_with_metadata.py +++ b/instana_client/models/log_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogAlertConfigWithMetadata(BaseModel): """ @@ -63,7 +64,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,8 +77,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_alert_rule.py b/instana_client/models/log_alert_rule.py index e2953f83..e5073ea1 100644 --- a/instana_client/models/log_alert_rule.py +++ b/instana_client/models/log_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -49,7 +50,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -78,8 +80,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[LogCountAlertRule]]: diff --git a/instana_client/models/log_count_alert_rule.py b/instana_client/models/log_count_alert_rule.py index 0aa7de5b..ad4efca3 100644 --- a/instana_client/models/log_count_alert_rule.py +++ b/instana_client/models/log_count_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.log_alert_rule import LogAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogCountAlertRule(LogAlertRule): """ @@ -31,7 +32,8 @@ class LogCountAlertRule(LogAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_event_result.py b/instana_client/models/log_event_result.py index bedefa9e..71804f0b 100644 --- a/instana_client/models/log_event_result.py +++ b/instana_client/models/log_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogEventResult(EventResult): """ @@ -32,7 +33,8 @@ class LogEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_time_threshold.py b/instana_client/models/log_time_threshold.py index d35aa68d..ff46144e 100644 --- a/instana_client/models/log_time_threshold.py +++ b/instana_client/models/log_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -37,7 +38,8 @@ class LogTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ViolationsInSequenceLogTimeThreshold]]: diff --git a/instana_client/models/log_volume_group.py b/instana_client/models/log_volume_group.py index e88930c3..844406f7 100644 --- a/instana_client/models/log_volume_group.py +++ b/instana_client/models/log_volume_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogVolumeGroup(BaseModel): """ @@ -33,7 +34,8 @@ class LogVolumeGroup(BaseModel): __properties: ClassVar[List[str]] = ["label", "logVolume"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_volume_usage_item.py b/instana_client/models/log_volume_usage_item.py index 18616e41..3a7cfe9e 100644 --- a/instana_client/models/log_volume_usage_item.py +++ b/instana_client/models/log_volume_usage_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.retention_period import RetentionPeriod from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogVolumeUsageItem(BaseModel): """ @@ -35,7 +36,8 @@ class LogVolumeUsageItem(BaseModel): __properties: ClassVar[List[str]] = ["logVolume", "numberOfMonth", "retentionPeriods"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/log_volume_usage_result.py b/instana_client/models/log_volume_usage_result.py index 002d665f..e829bd30 100644 --- a/instana_client/models/log_volume_usage_result.py +++ b/instana_client/models/log_volume_usage_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.log_volume_usage_item import LogVolumeUsageItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogVolumeUsageResult(BaseModel): """ @@ -32,7 +33,8 @@ class LogVolumeUsageResult(BaseModel): __properties: ClassVar[List[str]] = ["logVolumeUsageItems"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/logging_perspective.py b/instana_client/models/logging_perspective.py index a68380c1..189c79f3 100644 --- a/instana_client/models/logging_perspective.py +++ b/instana_client/models/logging_perspective.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LoggingPerspective(BaseModel): """ @@ -36,7 +37,8 @@ class LoggingPerspective(BaseModel): __properties: ClassVar[List[str]] = ["description", "filter", "perspectiveId", "perspectiveName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/logs_api_response.py b/instana_client/models/logs_api_response.py index c3534edf..3cfa1d62 100644 --- a/instana_client/models/logs_api_response.py +++ b/instana_client/models/logs_api_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.api_log_item import ApiLogItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogsApiResponse(BaseModel): """ @@ -35,7 +36,8 @@ class LogsApiResponse(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeFrame", "canLoadMore", "items", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/logs_application_alert_rule.py b/instana_client/models/logs_application_alert_rule.py index 25257652..3a159b0e 100644 --- a/instana_client/models/logs_application_alert_rule.py +++ b/instana_client/models/logs_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogsApplicationAlertRule(ApplicationAlertRule): """ @@ -59,7 +60,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/logs_query.py b/instana_client/models/logs_query.py index aa6ed953..066d2817 100644 --- a/instana_client/models/logs_query.py +++ b/instana_client/models/logs_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.time_config import TimeConfig from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class LogsQuery(BaseModel): """ @@ -51,7 +52,8 @@ def order_direction_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -63,8 +65,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/maintenance_config.py b/instana_client/models/maintenance_config.py index fa676826..14b87685 100644 --- a/instana_client/models/maintenance_config.py +++ b/instana_client/models/maintenance_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.maintenance_window import MaintenanceWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MaintenanceConfig(BaseModel): """ @@ -36,7 +37,8 @@ class MaintenanceConfig(BaseModel): __properties: ClassVar[List[str]] = ["id", "name", "query", "windows"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/maintenance_config_scheduling.py b/instana_client/models/maintenance_config_scheduling.py index 4ec422a7..70f6d2af 100644 --- a/instana_client/models/maintenance_config_scheduling.py +++ b/instana_client/models/maintenance_config_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.duration import Duration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -41,7 +42,8 @@ class MaintenanceConfigScheduling(BaseModel): __properties: ClassVar[List[str]] = ["duration", "start", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[OneTimeMaintenanceWindow, RecurrentMaintenanceWindow]]: diff --git a/instana_client/models/maintenance_config_v2.py b/instana_client/models/maintenance_config_v2.py index 78cea405..c4618e75 100644 --- a/instana_client/models/maintenance_config_v2.py +++ b/instana_client/models/maintenance_config_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MaintenanceConfigV2(BaseModel): """ @@ -41,7 +42,8 @@ class MaintenanceConfigV2(BaseModel): __properties: ClassVar[List[str]] = ["id", "name", "paused", "query", "retriggerOpenAlertsEnabled", "scheduling", "tagFilterExpression", "tagFilterExpressionEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py b/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py index fc18fc51..444c3140 100644 --- a/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +++ b/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MaintenanceConfigV2WithStateAndOccurrence(BaseModel): """ @@ -55,7 +56,8 @@ def state_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/maintenance_config_with_last_updated.py b/instana_client/models/maintenance_config_with_last_updated.py index dfb8c917..dfecd31e 100644 --- a/instana_client/models/maintenance_config_with_last_updated.py +++ b/instana_client/models/maintenance_config_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.maintenance_window import MaintenanceWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MaintenanceConfigWithLastUpdated(BaseModel): """ @@ -37,7 +38,8 @@ class MaintenanceConfigWithLastUpdated(BaseModel): __properties: ClassVar[List[str]] = ["id", "lastUpdated", "name", "query", "windows"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/maintenance_window.py b/instana_client/models/maintenance_window.py index e30707da..8e333902 100644 --- a/instana_client/models/maintenance_window.py +++ b/instana_client/models/maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MaintenanceWindow(BaseModel): """ @@ -34,7 +35,8 @@ class MaintenanceWindow(BaseModel): __properties: ClassVar[List[str]] = ["end", "id", "start"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/manual_alerting_channel_configuration.py b/instana_client/models/manual_alerting_channel_configuration.py index de46d9ae..1ec3db77 100644 --- a/instana_client/models/manual_alerting_channel_configuration.py +++ b/instana_client/models/manual_alerting_channel_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.static_string_field import StaticStringField from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ManualAlertingChannelConfiguration(BaseModel): """ @@ -34,7 +35,8 @@ class ManualAlertingChannelConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["customPayloadFields", "eventId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/manual_close_info.py b/instana_client/models/manual_close_info.py index 0031418d..02ce5e89 100644 --- a/instana_client/models/manual_close_info.py +++ b/instana_client/models/manual_close_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ManualCloseInfo(BaseModel): """ @@ -38,7 +39,8 @@ class ManualCloseInfo(BaseModel): __properties: ClassVar[List[str]] = ["closeTimestamp", "disableEvent", "eventIds", "forceClose", "muteAlerts", "reasonForClosing", "username"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/manual_service_config.py b/instana_client/models/manual_service_config.py index f0f0cd9b..b2525b85 100644 --- a/instana_client/models/manual_service_config.py +++ b/instana_client/models/manual_service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ManualServiceConfig(BaseModel): """ @@ -38,7 +39,8 @@ class ManualServiceConfig(BaseModel): __properties: ClassVar[List[str]] = ["description", "enabled", "existingServiceId", "id", "tagFilterExpression", "unmonitoredServiceName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mapping.py b/instana_client/models/mapping.py index f3a0e8fd..dcc78ba7 100644 --- a/instana_client/models/mapping.py +++ b/instana_client/models/mapping.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Mapping(BaseModel): """ @@ -36,7 +37,8 @@ class Mapping(BaseModel): __properties: ClassVar[List[str]] = ["groupId", "id", "key", "teamId", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mapping_overview.py b/instana_client/models/mapping_overview.py index d8b15d9b..63420f61 100644 --- a/instana_client/models/mapping_overview.py +++ b/instana_client/models/mapping_overview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MappingOverview(BaseModel): """ @@ -35,7 +36,8 @@ class MappingOverview(BaseModel): __properties: ClassVar[List[str]] = ["id", "key", "role", "team", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/match_all_http_path_segment_matching_rule.py b/instana_client/models/match_all_http_path_segment_matching_rule.py index 54e4ffb0..07ba0ff7 100644 --- a/instana_client/models/match_all_http_path_segment_matching_rule.py +++ b/instana_client/models/match_all_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MatchAllHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ @@ -31,7 +32,8 @@ class MatchAllHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/match_expression_dto.py b/instana_client/models/match_expression_dto.py index 7fc81c6e..a65a9766 100644 --- a/instana_client/models/match_expression_dto.py +++ b/instana_client/models/match_expression_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -37,7 +38,8 @@ class MatchExpressionDTO(BaseModel): __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[BinaryOperatorDTO, TagMatcherDTO]]: diff --git a/instana_client/models/meta_data.py b/instana_client/models/meta_data.py index c03d4f0b..fa74dafd 100644 --- a/instana_client/models/meta_data.py +++ b/instana_client/models/meta_data.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetaData(BaseModel): """ @@ -35,7 +36,8 @@ class MetaData(BaseModel): __properties: ClassVar[List[str]] = ["ai", "aiOriginated", "builtIn", "readOnly", "sensorImported"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_api_result.py b/instana_client/models/metric_api_result.py index 868cbf82..ad8ce74d 100644 --- a/instana_client/models/metric_api_result.py +++ b/instana_client/models/metric_api_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.adjusted_timeframe import AdjustedTimeframe from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricAPIResult(BaseModel): """ @@ -33,7 +34,8 @@ class MetricAPIResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "metrics"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_config.py b/instana_client/models/metric_config.py index 13cc3332..568f8e88 100644 --- a/instana_client/models/metric_config.py +++ b/instana_client/models/metric_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricConfig(BaseModel): """ @@ -41,7 +42,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_configuration.py b/instana_client/models/metric_configuration.py index 1fddcad4..36834e8e 100644 --- a/instana_client/models/metric_configuration.py +++ b/instana_client/models/metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricConfiguration(BaseModel): """ @@ -44,7 +45,8 @@ def metric_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_description.py b/instana_client/models/metric_description.py index d0d16946..5f0b3272 100644 --- a/instana_client/models/metric_description.py +++ b/instana_client/models/metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricDescription(BaseModel): """ @@ -55,7 +56,8 @@ def default_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_field.py b/instana_client/models/metric_field.py index 36247bb2..356183d0 100644 --- a/instana_client/models/metric_field.py +++ b/instana_client/models/metric_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.metric_field_value import MetricFieldValue from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricField(CustomPayloadField): """ @@ -58,7 +59,8 @@ def source_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_field_value.py b/instana_client/models/metric_field_value.py index 9302c1d2..5237b863 100644 --- a/instana_client/models/metric_field_value.py +++ b/instana_client/models/metric_field_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricFieldValue(BaseModel): """ @@ -52,7 +53,8 @@ def source_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_instance.py b/instana_client/models/metric_instance.py index 75613bad..cb689656 100644 --- a/instana_client/models/metric_instance.py +++ b/instana_client/models/metric_instance.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricInstance(BaseModel): """ @@ -44,7 +45,8 @@ def formatter_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_item.py b/instana_client/models/metric_item.py index 5b866ad7..c9bdf7d2 100644 --- a/instana_client/models/metric_item.py +++ b/instana_client/models/metric_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricItem(BaseModel): """ @@ -38,7 +39,8 @@ class MetricItem(BaseModel): __properties: ClassVar[List[str]] = ["from", "host", "label", "metrics", "plugin", "snapshotId", "tags", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_metadata.py b/instana_client/models/metric_metadata.py index 7420ff0e..bb89a4e3 100644 --- a/instana_client/models/metric_metadata.py +++ b/instana_client/models/metric_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricMetadata(BaseModel): """ @@ -67,7 +68,8 @@ def infra_tag_category_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metric_pattern.py b/instana_client/models/metric_pattern.py index 0d5a8e01..8e57b14c 100644 --- a/instana_client/models/metric_pattern.py +++ b/instana_client/models/metric_pattern.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricPattern(BaseModel): """ @@ -42,7 +43,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metrics_result.py b/instana_client/models/metrics_result.py index 97eca07a..b55860b9 100644 --- a/instana_client/models/metrics_result.py +++ b/instana_client/models/metrics_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.metrics_result_item import MetricsResultItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricsResult(BaseModel): """ @@ -32,7 +33,8 @@ class MetricsResult(BaseModel): __properties: ClassVar[List[str]] = ["metricsResult"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metrics_result_item.py b/instana_client/models/metrics_result_item.py index e431a1fe..d2091175 100644 --- a/instana_client/models/metrics_result_item.py +++ b/instana_client/models/metrics_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.metrics_test_result_item import MetricsTestResultItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricsResultItem(BaseModel): """ @@ -35,7 +36,8 @@ class MetricsResultItem(BaseModel): __properties: ClassVar[List[str]] = ["customTags", "metrics", "runType", "tests"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/metrics_test_result_item.py b/instana_client/models/metrics_test_result_item.py index d53aca9e..767dbf73 100644 --- a/instana_client/models/metrics_test_result_item.py +++ b/instana_client/models/metrics_test_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MetricsTestResultItem(BaseModel): """ @@ -39,7 +40,8 @@ class MetricsTestResultItem(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "applicationIds", "locationId", "mobileApplicationIds", "serviceId", "testId", "testName", "websiteIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app.py b/instana_client/models/mobile_app.py index b9f6fdfa..a624ce64 100644 --- a/instana_client/models/mobile_app.py +++ b/instana_client/models/mobile_app.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileApp(BaseModel): """ @@ -34,7 +35,8 @@ class MobileApp(BaseModel): __properties: ClassVar[List[str]] = ["businessCriticality", "id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_alert_config.py b/instana_client/models/mobile_app_alert_config.py index bc706c9c..526e990c 100644 --- a/instana_client/models/mobile_app_alert_config.py +++ b/instana_client/models/mobile_app_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppAlertConfig(BaseModel): """ @@ -63,7 +64,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,8 +77,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_alert_config_with_rbac_tag.py b/instana_client/models/mobile_app_alert_config_with_rbac_tag.py index 10d5bc05..81477897 100644 --- a/instana_client/models/mobile_app_alert_config_with_rbac_tag.py +++ b/instana_client/models/mobile_app_alert_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppAlertConfigWithRBACTag(BaseModel): """ @@ -69,7 +70,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -81,8 +83,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_alert_rule.py b/instana_client/models/mobile_app_alert_rule.py index 015627aa..fa8cf04d 100644 --- a/instana_client/models/mobile_app_alert_rule.py +++ b/instana_client/models/mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -53,7 +54,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -82,8 +84,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[CrashMobileAppAlertRule, CustomEventMobileAppAlertRule, SlownessMobileAppAlertRule, StatusCodeMobileAppAlertRule, ThroughputMobileAppAlertRule]]: diff --git a/instana_client/models/mobile_app_beacon_groups_item.py b/instana_client/models/mobile_app_beacon_groups_item.py index 23dfff92..c232fbf8 100644 --- a/instana_client/models/mobile_app_beacon_groups_item.py +++ b/instana_client/models/mobile_app_beacon_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppBeaconGroupsItem(BaseModel): """ @@ -35,7 +36,8 @@ class MobileAppBeaconGroupsItem(BaseModel): __properties: ClassVar[List[str]] = ["cursor", "earliestTimestamp", "metrics", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_beacon_groups_result.py b/instana_client/models/mobile_app_beacon_groups_result.py index 622b9ad0..74b0ceb5 100644 --- a/instana_client/models/mobile_app_beacon_groups_result.py +++ b/instana_client/models/mobile_app_beacon_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppBeaconGroupsResult(BaseModel): """ @@ -39,7 +40,8 @@ class MobileAppBeaconGroupsResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_beacon_result.py b/instana_client/models/mobile_app_beacon_result.py index 92674a37..b04cc3f8 100644 --- a/instana_client/models/mobile_app_beacon_result.py +++ b/instana_client/models/mobile_app_beacon_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppBeaconResult(BaseModel): """ @@ -39,7 +40,8 @@ class MobileAppBeaconResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_beacon_tag_group.py b/instana_client/models/mobile_app_beacon_tag_group.py index 14266b78..f1651cc2 100644 --- a/instana_client/models/mobile_app_beacon_tag_group.py +++ b/instana_client/models/mobile_app_beacon_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppBeaconTagGroup(BaseModel): """ @@ -41,7 +42,8 @@ def groupby_tag_entity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_beacons_item.py b/instana_client/models/mobile_app_beacons_item.py index c16d19a7..afa66c6a 100644 --- a/instana_client/models/mobile_app_beacons_item.py +++ b/instana_client/models/mobile_app_beacons_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppBeaconsItem(BaseModel): """ @@ -35,7 +36,8 @@ class MobileAppBeaconsItem(BaseModel): __properties: ClassVar[List[str]] = ["beacon", "cursor", "impactedBeaconInfo"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_event_result.py b/instana_client/models/mobile_app_event_result.py index 8fc42343..7652cdce 100644 --- a/instana_client/models/mobile_app_event_result.py +++ b/instana_client/models/mobile_app_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppEventResult(EventResult): """ @@ -32,7 +33,8 @@ class MobileAppEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "mobileAppId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_metric_result.py b/instana_client/models/mobile_app_metric_result.py index 79bc8b09..eb7e7a70 100644 --- a/instana_client/models/mobile_app_metric_result.py +++ b/instana_client/models/mobile_app_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppMetricResult(BaseModel): """ @@ -32,7 +33,8 @@ class MobileAppMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["empty"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_monitoring_beacon.py b/instana_client/models/mobile_app_monitoring_beacon.py index 74895ced..52fccbac 100644 --- a/instana_client/models/mobile_app_monitoring_beacon.py +++ b/instana_client/models/mobile_app_monitoring_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.stack_trace_line import StackTraceLine from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppMonitoringBeacon(BaseModel): """ @@ -124,7 +125,8 @@ class MobileAppMonitoringBeacon(BaseModel): __properties: ClassVar[List[str]] = ["accuracyRadius", "agentVersion", "appBuild", "appVersion", "appVersionNumber", "availableMb", "backendTraceId", "batchSize", "beaconId", "bundleIdentifier", "bytesIngested", "carrier", "city", "clockSkew", "coldStartTimeMs", "connectionType", "continent", "continentCode", "country", "countryCode", "currentAppState", "customEventName", "customMetric", "decodedBodySize", "deviceHardware", "deviceManufacturer", "deviceModel", "dropView", "duration", "effectiveConnectionType", "encodedBodySize", "environment", "errorCount", "errorId", "errorMessage", "errorType", "googlePlayServicesMissing", "hotStartTimeMs", "httpCallHeaders", "httpCallMethod", "httpCallOrigin", "httpCallPath", "httpCallStatus", "httpCallUrl", "ingestionTime", "internalMeta", "label", "latitude", "longitude", "maxMb", "meta", "mobileAppId", "mobileAppLabel", "osName", "osVersion", "parentBeaconId", "parsedStackTrace", "performanceSubtype", "platform", "rateLimitBeaconType", "rateLimitCount", "rateLimitCustomMetricVal", "rateLimitTimeMax", "rateLimitTimeMin", "region", "rooted", "sessionId", "sessionReplayStatus", "stackTrace", "stackTraceKeyChecksum", "stackTraceKeyInformation", "stackTraceLine", "stackTraceParsingStatus", "subdivision", "subdivisionCode", "tenant", "timestamp", "transferSize", "type", "unit", "useFeatures", "usedMb", "userEmail", "userId", "userIp", "userLanguages", "userName", "userSessionId", "view", "viewportHeight", "viewportWidth", "warmStartTimeMs"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -136,8 +138,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_monitoring_metric_description.py b/instana_client/models/mobile_app_monitoring_metric_description.py index 16e7ddc1..89662e0f 100644 --- a/instana_client/models/mobile_app_monitoring_metric_description.py +++ b/instana_client/models/mobile_app_monitoring_metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppMonitoringMetricDescription(BaseModel): """ @@ -59,7 +60,8 @@ def default_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_monitoring_metrics_configuration.py b/instana_client/models/mobile_app_monitoring_metrics_configuration.py index 9d0f0af5..4e2ba6ba 100644 --- a/instana_client/models/mobile_app_monitoring_metrics_configuration.py +++ b/instana_client/models/mobile_app_monitoring_metrics_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileAppMonitoringMetricsConfiguration(BaseModel): """ @@ -43,7 +44,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/mobile_app_time_threshold.py b/instana_client/models/mobile_app_time_threshold.py index fae13ffa..a059f013 100644 --- a/instana_client/models/mobile_app_time_threshold.py +++ b/instana_client/models/mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -39,7 +40,8 @@ class MobileAppTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[UserImpactMobileAppTimeThreshold, ViolationsInPeriodMobileAppTimeThreshold, ViolationsInSequenceMobileAppTimeThreshold]]: diff --git a/instana_client/models/mobile_slo_entity.py b/instana_client/models/mobile_slo_entity.py index 7eef0dfc..2af4acbc 100644 --- a/instana_client/models/mobile_slo_entity.py +++ b/instana_client/models/mobile_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MobileSloEntity(SloEntity): """ @@ -33,7 +34,8 @@ class MobileSloEntity(SloEntity): __properties: ClassVar[List[str]] = ["tagFilterExpression", "type", "mobileIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/model_field.py b/instana_client/models/model_field.py index 5e1630d9..73f81657 100644 --- a/instana_client/models/model_field.py +++ b/instana_client/models/model_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ModelField(BaseModel): """ @@ -36,7 +37,8 @@ class ModelField(BaseModel): __properties: ClassVar[List[str]] = ["description", "encoding", "name", "secured", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/monitored_entities_stats.py b/instana_client/models/monitored_entities_stats.py index 873ad3b4..97e067dc 100644 --- a/instana_client/models/monitored_entities_stats.py +++ b/instana_client/models/monitored_entities_stats.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MonitoredEntitiesStats(BaseModel): """ @@ -34,7 +35,8 @@ class MonitoredEntitiesStats(BaseModel): __properties: ClassVar[List[str]] = ["hostCount", "otelCollectorCount", "otelCount", "serverlessCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/monitoring_state.py b/instana_client/models/monitoring_state.py index 696b7f40..22b9188b 100644 --- a/instana_client/models/monitoring_state.py +++ b/instana_client/models/monitoring_state.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MonitoringState(BaseModel): """ @@ -37,7 +38,8 @@ class MonitoringState(BaseModel): __properties: ClassVar[List[str]] = ["hasEntities", "hostCount", "monitoredEntitiesStats", "openTelemetryCollectorCount", "openTelemetryCount", "serverlessCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/multiple_scripts_configuration.py b/instana_client/models/multiple_scripts_configuration.py index 835b8424..e180eafb 100644 --- a/instana_client/models/multiple_scripts_configuration.py +++ b/instana_client/models/multiple_scripts_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class MultipleScriptsConfiguration(BaseModel): """ @@ -32,7 +33,8 @@ class MultipleScriptsConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["bundle", "scriptFile"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/new_application_config.py b/instana_client/models/new_application_config.py index 9e8d82b3..5f95a30b 100644 --- a/instana_client/models/new_application_config.py +++ b/instana_client/models/new_application_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class NewApplicationConfig(BaseModel): """ @@ -55,7 +56,8 @@ def scope_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/new_business_perspective_config.py b/instana_client/models/new_business_perspective_config.py index 9178ed8b..d1b05493 100644 --- a/instana_client/models/new_business_perspective_config.py +++ b/instana_client/models/new_business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class NewBusinessPerspectiveConfig(BaseModel): """ @@ -35,7 +36,8 @@ class NewBusinessPerspectiveConfig(BaseModel): __properties: ClassVar[List[str]] = ["description", "name", "tagFilterExpression"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/new_manual_service_config.py b/instana_client/models/new_manual_service_config.py index c359dc9a..d307403a 100644 --- a/instana_client/models/new_manual_service_config.py +++ b/instana_client/models/new_manual_service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class NewManualServiceConfig(BaseModel): """ @@ -36,7 +37,8 @@ class NewManualServiceConfig(BaseModel): __properties: ClassVar[List[str]] = ["description", "enabled", "existingServiceId", "tagFilterExpression", "unmonitoredServiceName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/notification.py b/instana_client/models/notification.py index 99d25a10..af475673 100644 --- a/instana_client/models/notification.py +++ b/instana_client/models/notification.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Notification(BaseModel): """ @@ -40,7 +41,8 @@ def condition_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ns1_integration.py b/instana_client/models/ns1_integration.py index f79fb9f8..76a2d317 100644 --- a/instana_client/models/ns1_integration.py +++ b/instana_client/models/ns1_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class NS1Integration(AbstractIntegration): """ @@ -35,7 +36,8 @@ class NS1Integration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "feedLabel", "headers", "webhookUrls"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/o_auth_config.py b/instana_client/models/o_auth_config.py index 5460263e..b843c5a2 100644 --- a/instana_client/models/o_auth_config.py +++ b/instana_client/models/o_auth_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class OAuthConfig(BaseModel): """ @@ -48,7 +49,8 @@ def grant_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/o_auth_integration.py b/instana_client/models/o_auth_integration.py index 4ff9b57f..a99fb1f5 100644 --- a/instana_client/models/o_auth_integration.py +++ b/instana_client/models/o_auth_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.o_auth_token import OAuthToken from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class OAuthIntegration(BaseModel): """ @@ -34,7 +35,8 @@ class OAuthIntegration(BaseModel): __properties: ClassVar[List[str]] = ["config", "token"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/o_auth_token.py b/instana_client/models/o_auth_token.py index 5672ddd0..0f0c5d3e 100644 --- a/instana_client/models/o_auth_token.py +++ b/instana_client/models/o_auth_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class OAuthToken(BaseModel): """ @@ -48,7 +49,8 @@ def status_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/occurrence.py b/instana_client/models/occurrence.py index 68d07f91..59b963af 100644 --- a/instana_client/models/occurrence.py +++ b/instana_client/models/occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Occurrence(BaseModel): """ @@ -33,7 +34,8 @@ class Occurrence(BaseModel): __properties: ClassVar[List[str]] = ["end", "start"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/office365_integration.py b/instana_client/models/office365_integration.py index 458eefc0..6ba9645e 100644 --- a/instana_client/models/office365_integration.py +++ b/instana_client/models/office365_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Office365Integration(AbstractIntegration): """ @@ -33,7 +34,8 @@ class Office365Integration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/one_time_maintenance_window.py b/instana_client/models/one_time_maintenance_window.py index 3d18ede9..307e4db1 100644 --- a/instana_client/models/one_time_maintenance_window.py +++ b/instana_client/models/one_time_maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class OneTimeMaintenanceWindow(MaintenanceConfigScheduling): """ @@ -32,7 +33,8 @@ class OneTimeMaintenanceWindow(MaintenanceConfigScheduling): __properties: ClassVar[List[str]] = ["duration", "start", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/opsgenie_integration.py b/instana_client/models/opsgenie_integration.py index 0d85fadd..c937bd72 100644 --- a/instana_client/models/opsgenie_integration.py +++ b/instana_client/models/opsgenie_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class OpsgenieIntegration(AbstractIntegration): """ @@ -43,7 +44,8 @@ def region_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/order.py b/instana_client/models/order.py index 20eca8a4..af752332 100644 --- a/instana_client/models/order.py +++ b/instana_client/models/order.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Order(BaseModel): """ @@ -41,7 +42,8 @@ def direction_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/pagerduty_integration.py b/instana_client/models/pagerduty_integration.py index 8ce20a31..d8857c42 100644 --- a/instana_client/models/pagerduty_integration.py +++ b/instana_client/models/pagerduty_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PagerdutyIntegration(AbstractIntegration): """ @@ -33,7 +34,8 @@ class PagerdutyIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "serviceIntegrationKey"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/paginated_result.py b/instana_client/models/paginated_result.py index a53505d2..3c4ea3d7 100644 --- a/instana_client/models/paginated_result.py +++ b/instana_client/models/paginated_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PaginatedResult(BaseModel): """ @@ -35,7 +36,8 @@ class PaginatedResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/pagination.py b/instana_client/models/pagination.py index 2fe60ede..98ca6236 100644 --- a/instana_client/models/pagination.py +++ b/instana_client/models/pagination.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Pagination(BaseModel): """ @@ -33,7 +34,8 @@ class Pagination(BaseModel): __properties: ClassVar[List[str]] = ["page", "pageSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/parameter.py b/instana_client/models/parameter.py index c4d5b94d..5a5800a7 100644 --- a/instana_client/models/parameter.py +++ b/instana_client/models/parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Parameter(BaseModel): """ @@ -39,7 +40,8 @@ class Parameter(BaseModel): __properties: ClassVar[List[str]] = ["description", "hidden", "label", "name", "required", "secured", "type", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/parameter_value.py b/instana_client/models/parameter_value.py index 27d5e85f..7a935af8 100644 --- a/instana_client/models/parameter_value.py +++ b/instana_client/models/parameter_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ParameterValue(BaseModel): """ @@ -33,7 +34,8 @@ class ParameterValue(BaseModel): __properties: ClassVar[List[str]] = ["name", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/path_parameter_http_path_segment_matching_rule.py b/instana_client/models/path_parameter_http_path_segment_matching_rule.py index 88118afa..1c435f8e 100644 --- a/instana_client/models/path_parameter_http_path_segment_matching_rule.py +++ b/instana_client/models/path_parameter_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PathParameterHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ @@ -33,7 +34,8 @@ class PathParameterHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): __properties: ClassVar[List[str]] = ["type", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/physical_context.py b/instana_client/models/physical_context.py index ea66f608..0ffad331 100644 --- a/instana_client/models/physical_context.py +++ b/instana_client/models/physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.snapshot_preview import SnapshotPreview from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PhysicalContext(BaseModel): """ @@ -39,7 +40,8 @@ class PhysicalContext(BaseModel): __properties: ClassVar[List[str]] = ["cloudfoundry", "cluster", "container", "host", "kubernetes", "process"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/plugin_result.py b/instana_client/models/plugin_result.py index 3b0b72be..7c1553dd 100644 --- a/instana_client/models/plugin_result.py +++ b/instana_client/models/plugin_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PluginResult(BaseModel): """ @@ -32,7 +33,8 @@ class PluginResult(BaseModel): __properties: ClassVar[List[str]] = ["label", "plugin"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/policy.py b/instana_client/models/policy.py index e75e68c8..70aee05a 100644 --- a/instana_client/models/policy.py +++ b/instana_client/models/policy.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,28 +18,31 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.trigger import Trigger from instana_client.models.type_configuration import TypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Policy(BaseModel): """ Policy """ # noqa: E501 description: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=512)]] = Field(default=None, description="Policy description.") + enabled: Optional[StrictBool] = Field(default=True, description="Flag to enable or disable the policy. Enabled by default.") id: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Policy identifier.") name: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Policy name.") tags: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of policy tags.") trigger: Trigger type_configurations: Annotated[List[TypeConfiguration], Field(min_length=1)] = Field(description="List of configurations that contains the list of actions to run and the mode (automatic or manual) in which the policy is run.", alias="typeConfigurations") - __properties: ClassVar[List[str]] = ["description", "id", "name", "tags", "trigger", "typeConfigurations"] + __properties: ClassVar[List[str]] = ["description", "enabled", "id", "name", "tags", "trigger", "typeConfigurations"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -102,6 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "description": obj.get("description"), + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, "id": obj.get("id"), "name": obj.get("name"), "tags": obj.get("tags"), diff --git a/instana_client/models/policy_runnable.py b/instana_client/models/policy_runnable.py index 984b016c..ac3847fb 100644 --- a/instana_client/models/policy_runnable.py +++ b/instana_client/models/policy_runnable.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.run_configuration import RunConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PolicyRunnable(BaseModel): """ @@ -42,7 +43,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/policy_scheduling.py b/instana_client/models/policy_scheduling.py index 5a5f4520..1b4a6d6d 100644 --- a/instana_client/models/policy_scheduling.py +++ b/instana_client/models/policy_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PolicyScheduling(BaseModel): """ @@ -33,7 +34,8 @@ class PolicyScheduling(BaseModel): __properties: ClassVar[List[str]] = ["recurrentRule", "startTime"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/post_mobile_app_source_map_config_request.py b/instana_client/models/post_mobile_app_source_map_config_request.py index e1c5719f..4358d01c 100644 --- a/instana_client/models/post_mobile_app_source_map_config_request.py +++ b/instana_client/models/post_mobile_app_source_map_config_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PostMobileAppSourceMapConfigRequest(BaseModel): """ @@ -31,7 +32,8 @@ class PostMobileAppSourceMapConfigRequest(BaseModel): __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/post_snapshots_result.py b/instana_client/models/post_snapshots_result.py index cf402cde..19af55fc 100644 --- a/instana_client/models/post_snapshots_result.py +++ b/instana_client/models/post_snapshots_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.snapshot_item import SnapshotItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PostSnapshotsResult(BaseModel): """ @@ -33,7 +34,8 @@ class PostSnapshotsResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "notFoundSnapshotsIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/prefix_object.py b/instana_client/models/prefix_object.py index dbe2d1b0..926f0db7 100644 --- a/instana_client/models/prefix_object.py +++ b/instana_client/models/prefix_object.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,18 +23,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PrefixObject(BaseModel): """ Shortcode prefix configuration """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, description="Whether the shortcode prefix feature is enabled") - include_in_title: Optional[StrictBool] = Field(default=None, description="Whether the short code should be included in the incident title", alias="includeInTitle") - prefix: Optional[Annotated[str, Field(strict=True, max_length=6)]] = Field(default=None, description="The prefix to use for event short codes (e.g., 'INSTA-', 'PROD-'). Must not exceed 6 characters.") + enabled: Optional[StrictBool] = Field(default=None, description="Whether the shortcode prefix feature is enabled", json_schema_extra={"examples": [True]}) + include_in_title: Optional[StrictBool] = Field(default=None, description="Whether the short code should be included in the incident title", alias="includeInTitle", json_schema_extra={"examples": [False]}) + prefix: Optional[Annotated[str, Field(strict=True, max_length=6)]] = Field(default=None, description="The prefix to use for event short codes (e.g., 'INSTA-', 'PROD-'). Must not exceed 6 characters.", json_schema_extra={"examples": ["INSTA-"]}) __properties: ClassVar[List[str]] = ["enabled", "includeInTitle", "prefix"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/problem.py b/instana_client/models/problem.py index cdc9c304..a6a94318 100644 --- a/instana_client/models/problem.py +++ b/instana_client/models/problem.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Problem(BaseModel): """ @@ -35,7 +36,8 @@ class Problem(BaseModel): __properties: ClassVar[List[str]] = ["fixSuggestion", "id", "problemText", "severity"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/prometheus_webhook_integration.py b/instana_client/models/prometheus_webhook_integration.py index 12bb64f3..3ae68a87 100644 --- a/instana_client/models/prometheus_webhook_integration.py +++ b/instana_client/models/prometheus_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class PrometheusWebhookIntegration(AbstractIntegration): """ @@ -34,7 +35,8 @@ class PrometheusWebhookIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "receiver", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rbac_restrictions.py b/instana_client/models/rbac_restrictions.py index db3ac09a..dc01ec7c 100644 --- a/instana_client/models/rbac_restrictions.py +++ b/instana_client/models/rbac_restrictions.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RbacRestrictions(BaseModel): """ @@ -45,7 +46,8 @@ class RbacRestrictions(BaseModel): __properties: ClassVar[List[str]] = ["actionFilters", "alertingChannels", "apdexIds", "applications", "businessPerspectives", "infraDfqFilter", "kubernetesClusters", "kubernetesNamespaces", "logFilters", "loggingPerspectives", "mobileApps", "serviceLevels", "syntheticCredentials", "syntheticTests", "websites"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/recurrent_maintenance_window.py b/instana_client/models/recurrent_maintenance_window.py index 12f82ad8..5bf55f10 100644 --- a/instana_client/models/recurrent_maintenance_window.py +++ b/instana_client/models/recurrent_maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RecurrentMaintenanceWindow(MaintenanceConfigScheduling): """ @@ -35,7 +36,8 @@ class RecurrentMaintenanceWindow(MaintenanceConfigScheduling): __properties: ClassVar[List[str]] = ["duration", "start", "type", "rrule", "timezoneId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/release.py b/instana_client/models/release.py index 51b46f53..9a85944b 100644 --- a/instana_client/models/release.py +++ b/instana_client/models/release.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_scope import ServiceScope from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Release(BaseModel): """ @@ -37,7 +38,8 @@ class Release(BaseModel): __properties: ClassVar[List[str]] = ["applications", "name", "services", "start"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/release_scope.py b/instana_client/models/release_scope.py index 39ca33f1..21a87345 100644 --- a/instana_client/models/release_scope.py +++ b/instana_client/models/release_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ReleaseScope(BaseModel): """ @@ -34,7 +35,8 @@ class ReleaseScope(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "applicationName", "serviceId", "serviceName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/release_with_metadata.py b/instana_client/models/release_with_metadata.py index 6e27db09..b2b8b2fc 100644 --- a/instana_client/models/release_with_metadata.py +++ b/instana_client/models/release_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ReleaseWithMetadata(BaseModel): """ @@ -41,7 +42,8 @@ class ReleaseWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["applications", "id", "lastUpdated", "name", "scopes", "services", "start"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/retention_period.py b/instana_client/models/retention_period.py index 6a64c91c..54fbf92e 100644 --- a/instana_client/models/retention_period.py +++ b/instana_client/models/retention_period.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.log_volume_group import LogVolumeGroup from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RetentionPeriod(BaseModel): """ @@ -35,7 +36,8 @@ class RetentionPeriod(BaseModel): __properties: ClassVar[List[str]] = ["logVolume", "logVolumeGroups", "retentionDays"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/role_mapping_overview.py b/instana_client/models/role_mapping_overview.py index ef58b91c..91328580 100644 --- a/instana_client/models/role_mapping_overview.py +++ b/instana_client/models/role_mapping_overview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RoleMappingOverview(BaseModel): """ @@ -37,7 +38,8 @@ class RoleMappingOverview(BaseModel): __properties: ClassVar[List[str]] = ["id", "key", "role", "roleId", "team", "teamId", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rolling_time_window.py b/instana_client/models/rolling_time_window.py index 4a0942b7..34874355 100644 --- a/instana_client/models/rolling_time_window.py +++ b/instana_client/models/rolling_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.time_window import TimeWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RollingTimeWindow(TimeWindow): """ @@ -31,7 +32,8 @@ class RollingTimeWindow(TimeWindow): __properties: ClassVar[List[str]] = ["duration", "durationUnit", "timezone", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_input.py b/instana_client/models/rule_input.py index 76c138dc..296e2d2c 100644 --- a/instana_client/models/rule_input.py +++ b/instana_client/models/rule_input.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleInput(BaseModel): """ @@ -41,7 +42,8 @@ def input_kind_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_with_threshold_application_alert_rule.py b/instana_client/models/rule_with_threshold_application_alert_rule.py index 4f650a53..0a0f8933 100644 --- a/instana_client/models/rule_with_threshold_application_alert_rule.py +++ b/instana_client/models/rule_with_threshold_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleWithThresholdApplicationAlertRule(BaseModel): """ @@ -42,7 +43,8 @@ def threshold_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_with_threshold_infra_alert_rule.py b/instana_client/models/rule_with_threshold_infra_alert_rule.py index 7127f130..98555f3d 100644 --- a/instana_client/models/rule_with_threshold_infra_alert_rule.py +++ b/instana_client/models/rule_with_threshold_infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleWithThresholdInfraAlertRule(BaseModel): """ @@ -42,7 +43,8 @@ def threshold_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_with_threshold_log_alert_rule.py b/instana_client/models/rule_with_threshold_log_alert_rule.py index dd75afb8..8e975a74 100644 --- a/instana_client/models/rule_with_threshold_log_alert_rule.py +++ b/instana_client/models/rule_with_threshold_log_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleWithThresholdLogAlertRule(BaseModel): """ @@ -42,7 +43,8 @@ def threshold_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py b/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py index 045e5547..b57b81a7 100644 --- a/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +++ b/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleWithThresholdMobileAppAlertRule(BaseModel): """ @@ -42,7 +43,8 @@ def threshold_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/rule_with_threshold_website_alert_rule.py b/instana_client/models/rule_with_threshold_website_alert_rule.py index 29644028..65f8e19e 100644 --- a/instana_client/models/rule_with_threshold_website_alert_rule.py +++ b/instana_client/models/rule_with_threshold_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RuleWithThresholdWebsiteAlertRule(BaseModel): """ @@ -42,7 +43,8 @@ def threshold_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/run_configuration.py b/instana_client/models/run_configuration.py index 770e0cfb..a327a86b 100644 --- a/instana_client/models/run_configuration.py +++ b/instana_client/models/run_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.action_configuration import ActionConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RunConfiguration(BaseModel): """ @@ -33,7 +34,8 @@ class RunConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["actions"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/run_evaluation_response.py b/instana_client/models/run_evaluation_response.py index 6ccfe182..aab768f7 100644 --- a/instana_client/models/run_evaluation_response.py +++ b/instana_client/models/run_evaluation_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class RunEvaluationResponse(BaseModel): """ @@ -33,7 +34,8 @@ class RunEvaluationResponse(BaseModel): __properties: ClassVar[List[str]] = ["gateway_name", "message", "success"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/salesforce_integration.py b/instana_client/models/salesforce_integration.py index a523b422..d571ea79 100644 --- a/instana_client/models/salesforce_integration.py +++ b/instana_client/models/salesforce_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SalesforceIntegration(AbstractIntegration): """ @@ -36,7 +37,8 @@ class SalesforceIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "bearerToken", "clientId", "clientSecret", "salesforceUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/sampling_metadata.py b/instana_client/models/sampling_metadata.py index a86b4494..1e7a658b 100644 --- a/instana_client/models/sampling_metadata.py +++ b/instana_client/models/sampling_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SamplingMetadata(BaseModel): """ @@ -35,7 +36,8 @@ class SamplingMetadata(BaseModel): __properties: ClassVar[List[str]] = ["groupsSampled", "groupsSkipped", "samplingApplied", "totalMembersAfter", "totalMembersBefore"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/saturation_blueprint_indicator.py b/instana_client/models/saturation_blueprint_indicator.py index fb2bcf3b..21df7ca3 100644 --- a/instana_client/models/saturation_blueprint_indicator.py +++ b/instana_client/models/saturation_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_level_indicator import ServiceLevelIndicator from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SaturationBlueprintIndicator(ServiceLevelIndicator): """ @@ -36,7 +37,8 @@ class SaturationBlueprintIndicator(ServiceLevelIndicator): __properties: ClassVar[List[str]] = ["aggregation", "blueprint", "operator", "serviceLevelsMeasurement", "threshold", "type", "metric", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/scope_binding.py b/instana_client/models/scope_binding.py index 3bce23af..9d519fe9 100644 --- a/instana_client/models/scope_binding.py +++ b/instana_client/models/scope_binding.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ScopeBinding(BaseModel): """ @@ -33,7 +34,8 @@ class ScopeBinding(BaseModel): __properties: ClassVar[List[str]] = ["scopeId", "scopeRoleId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/search_field_result.py b/instana_client/models/search_field_result.py index e3096ff2..b567a1e6 100644 --- a/instana_client/models/search_field_result.py +++ b/instana_client/models/search_field_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,12 +22,13 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SearchFieldResult(BaseModel): """ SearchFieldResult """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, description="Field context") + context: Optional[StrictStr] = Field(default=None, description="Field context", json_schema_extra={"examples": ["Entity data, trace data, even data"]}) description: Optional[StrictStr] = Field(default=None, description="Description of the keyword") fixed_values: Optional[List[StrictStr]] = Field(default=None, description="Fixed value associated to the keyword", alias="fixedValues") keyword: Optional[StrictStr] = Field(default=None, description="Retrieved keyword") @@ -55,7 +56,8 @@ def term_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service.py b/instana_client/models/service.py index 12f3145d..c42b76c3 100644 --- a/instana_client/models/service.py +++ b/instana_client/models/service.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Service(BaseModel): """ @@ -55,7 +56,8 @@ def types_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_config.py b/instana_client/models/service_config.py index c346d1f6..07e8e47a 100644 --- a/instana_client/models/service_config.py +++ b/instana_client/models/service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_matching_rule import ServiceMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceConfig(BaseModel): """ @@ -38,7 +39,8 @@ class ServiceConfig(BaseModel): __properties: ClassVar[List[str]] = ["comment", "enabled", "id", "label", "matchSpecification", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_event_result.py b/instana_client/models/service_event_result.py index f02de718..cdb93915 100644 --- a/instana_client/models/service_event_result.py +++ b/instana_client/models/service_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceEventResult(EventResult): """ @@ -33,7 +34,8 @@ class ServiceEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "applicationId", "serviceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_item.py b/instana_client/models/service_item.py index 385f0e80..c3af0451 100644 --- a/instana_client/models/service_item.py +++ b/instana_client/models/service_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service import Service from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceItem(BaseModel): """ @@ -33,7 +34,8 @@ class ServiceItem(BaseModel): __properties: ClassVar[List[str]] = ["metrics", "service"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_level_indicator.py b/instana_client/models/service_level_indicator.py index 8c467ffc..bdf475dc 100644 --- a/instana_client/models/service_level_indicator.py +++ b/instana_client/models/service_level_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -96,7 +97,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -125,8 +127,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[AdvancedCustomBlueprintIndicator, AvailabilityBlueprintIndicator, CustomBlueprintIndicator, LatencyBlueprintIndicator, SaturationBlueprintIndicator, TrafficBlueprintIndicator]]: diff --git a/instana_client/models/service_level_objective_alert_rule.py b/instana_client/models/service_level_objective_alert_rule.py index 49cb4463..d3f65854 100644 --- a/instana_client/models/service_level_objective_alert_rule.py +++ b/instana_client/models/service_level_objective_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelObjectiveAlertRule(ServiceLevelsAlertRule): """ @@ -42,7 +43,8 @@ def metric_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_alert_config.py b/instana_client/models/service_levels_alert_config.py index fc81ef7d..a1704b6e 100644 --- a/instana_client/models/service_levels_alert_config.py +++ b/instana_client/models/service_levels_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.static_threshold import StaticThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsAlertConfig(BaseModel): """ @@ -50,7 +51,8 @@ class ServiceLevelsAlertConfig(BaseModel): __properties: ClassVar[List[str]] = ["alertChannelIds", "apdexIds", "burnRateConfig", "burnRateTimeWindows", "customPayloadFields", "description", "name", "rule", "severity", "sloIds", "threshold", "timeThreshold", "triggering"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,8 +64,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_alert_config_with_rbac_tag.py b/instana_client/models/service_levels_alert_config_with_rbac_tag.py index 402472c3..9c04c723 100644 --- a/instana_client/models/service_levels_alert_config_with_rbac_tag.py +++ b/instana_client/models/service_levels_alert_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.static_threshold import StaticThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsAlertConfigWithRBACTag(BaseModel): """ @@ -58,7 +59,8 @@ class ServiceLevelsAlertConfigWithRBACTag(BaseModel): __properties: ClassVar[List[str]] = ["alertChannelIds", "apdexIds", "burnRateConfig", "burnRateTimeWindows", "created", "customPayloadFields", "description", "displayUrl", "enabled", "id", "initialCreated", "name", "rbacTags", "readOnly", "rule", "severity", "sloIds", "threshold", "timeThreshold", "triggering"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_alert_rule.py b/instana_client/models/service_levels_alert_rule.py index 42613cf0..a1d30d15 100644 --- a/instana_client/models/service_levels_alert_rule.py +++ b/instana_client/models/service_levels_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -38,7 +39,8 @@ class ServiceLevelsAlertRule(BaseModel): __properties: ClassVar[List[str]] = ["alertType"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ApdexAlertRule, ErrorBudgetAlertRule, ServiceLevelObjectiveAlertRule]]: diff --git a/instana_client/models/service_levels_burn_rate_config.py b/instana_client/models/service_levels_burn_rate_config.py index e81f1a03..a15d5cf4 100644 --- a/instana_client/models/service_levels_burn_rate_config.py +++ b/instana_client/models/service_levels_burn_rate_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsBurnRateConfig(BaseModel): """ @@ -52,7 +53,8 @@ def duration_unit_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_burn_rate_time_windows.py b/instana_client/models/service_levels_burn_rate_time_windows.py index 888472cb..a429e287 100644 --- a/instana_client/models/service_levels_burn_rate_time_windows.py +++ b/instana_client/models/service_levels_burn_rate_time_windows.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.alerting_time_window import AlertingTimeWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsBurnRateTimeWindows(BaseModel): """ @@ -33,7 +34,8 @@ class ServiceLevelsBurnRateTimeWindows(BaseModel): __properties: ClassVar[List[str]] = ["longTimeWindow", "shortTimeWindow"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_static_threshold_config.py b/instana_client/models/service_levels_static_threshold_config.py index 17861555..9a32d043 100644 --- a/instana_client/models/service_levels_static_threshold_config.py +++ b/instana_client/models/service_levels_static_threshold_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsStaticThresholdConfig(BaseModel): """ @@ -41,7 +42,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levels_time_threshold.py b/instana_client/models/service_levels_time_threshold.py index 4d7c35ee..3a999971 100644 --- a/instana_client/models/service_levels_time_threshold.py +++ b/instana_client/models/service_levels_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelsTimeThreshold(BaseModel): """ @@ -32,7 +33,8 @@ class ServiceLevelsTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["expiry", "timeWindow"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_levelse_alert_config_with_metadata.py b/instana_client/models/service_levelse_alert_config_with_metadata.py index a30f5e07..05a59630 100644 --- a/instana_client/models/service_levelse_alert_config_with_metadata.py +++ b/instana_client/models/service_levelse_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ from instana_client.models.static_threshold import StaticThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceLevelseAlertConfigWithMetadata(BaseModel): """ @@ -56,7 +57,8 @@ class ServiceLevelseAlertConfigWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["alertChannelIds", "apdexIds", "burnRateConfig", "burnRateTimeWindows", "created", "customPayloadFields", "description", "displayUrl", "enabled", "id", "initialCreated", "name", "readOnly", "rule", "severity", "sloIds", "threshold", "timeThreshold", "triggering"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_map.py b/instana_client/models/service_map.py index e40d924a..124b2072 100644 --- a/instana_client/models/service_map.py +++ b/instana_client/models/service_map.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_map_connection import ServiceMapConnection from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceMap(BaseModel): """ @@ -34,7 +35,8 @@ class ServiceMap(BaseModel): __properties: ClassVar[List[str]] = ["connections", "services"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_map_connection.py b/instana_client/models/service_map_connection.py index f7b0ee53..70947a15 100644 --- a/instana_client/models/service_map_connection.py +++ b/instana_client/models/service_map_connection.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceMapConnection(BaseModel): """ @@ -36,7 +37,8 @@ class ServiceMapConnection(BaseModel): __properties: ClassVar[List[str]] = ["calls", "errorRate", "from", "latency", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_matching_rule.py b/instana_client/models/service_matching_rule.py index 33d1f06a..ce58ce75 100644 --- a/instana_client/models/service_matching_rule.py +++ b/instana_client/models/service_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceMatchingRule(BaseModel): """ @@ -33,7 +34,8 @@ class ServiceMatchingRule(BaseModel): __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_metric_result.py b/instana_client/models/service_metric_result.py index 087a3243..2aebabeb 100644 --- a/instana_client/models/service_metric_result.py +++ b/instana_client/models/service_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_item import ServiceItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceMetricResult(BaseModel): """ @@ -38,7 +39,8 @@ class ServiceMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_node.py b/instana_client/models/service_node.py index d62d81f3..2b3af0f0 100644 --- a/instana_client/models/service_node.py +++ b/instana_client/models/service_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.endpoint_node import EndpointNode from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceNode(BaseModel): """ @@ -35,7 +36,8 @@ class ServiceNode(BaseModel): __properties: ClassVar[List[str]] = ["endpoints", "inclusive", "serviceId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_now_enhanced_integration.py b/instana_client/models/service_now_enhanced_integration.py index cfe0f0d6..6f576615 100644 --- a/instana_client/models/service_now_enhanced_integration.py +++ b/instana_client/models/service_now_enhanced_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceNowEnhancedIntegration(AbstractIntegration): """ @@ -45,7 +46,8 @@ class ServiceNowEnhancedIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "autoCloseIncidents", "enableSendInstanaNotes", "enableSendServiceNowActivities", "enableSendServiceNowWorkNotes", "instanaUrl", "manuallyClosedIncidents", "password", "resolutionOfIncident", "serviceNowUrl", "snowStatusOnCloseEvent", "tenant", "unit", "username"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_now_integration.py b/instana_client/models/service_now_integration.py index 6ad814e9..ac862aa6 100644 --- a/instana_client/models/service_now_integration.py +++ b/instana_client/models/service_now_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceNowIntegration(AbstractIntegration): """ @@ -36,7 +37,8 @@ class ServiceNowIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "autoCloseIncidents", "password", "serviceNowUrl", "username"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_result.py b/instana_client/models/service_result.py index a3d9f2d7..8b95a299 100644 --- a/instana_client/models/service_result.py +++ b/instana_client/models/service_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.service import Service from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceResult(BaseModel): """ @@ -35,7 +36,8 @@ class ServiceResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_scope.py b/instana_client/models/service_scope.py index 3f12c00f..658edda4 100644 --- a/instana_client/models/service_scope.py +++ b/instana_client/models/service_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_scoped_to import ServiceScopedTo from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceScope(BaseModel): """ @@ -34,7 +35,8 @@ class ServiceScope(BaseModel): __properties: ClassVar[List[str]] = ["name", "scopedTo"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_scope_with_metadata.py b/instana_client/models/service_scope_with_metadata.py index 1b4af340..42d6f208 100644 --- a/instana_client/models/service_scope_with_metadata.py +++ b/instana_client/models/service_scope_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceScopeWithMetadata(BaseModel): """ @@ -35,7 +36,8 @@ class ServiceScopeWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["id", "name", "scopedTo"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_scoped_to.py b/instana_client/models/service_scoped_to.py index 667493fb..6daabfb7 100644 --- a/instana_client/models/service_scoped_to.py +++ b/instana_client/models/service_scoped_to.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_scope import ApplicationScope from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceScopedTo(BaseModel): """ @@ -33,7 +34,8 @@ class ServiceScopedTo(BaseModel): __properties: ClassVar[List[str]] = ["applications"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_scoped_to_with_metadata.py b/instana_client/models/service_scoped_to_with_metadata.py index acac3d1f..c4ca42f4 100644 --- a/instana_client/models/service_scoped_to_with_metadata.py +++ b/instana_client/models/service_scoped_to_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceScopedToWithMetadata(BaseModel): """ @@ -33,7 +34,8 @@ class ServiceScopedToWithMetadata(BaseModel): __properties: ClassVar[List[str]] = ["applications"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/service_simple.py b/instana_client/models/service_simple.py index 715b6d8c..57ac667e 100644 --- a/instana_client/models/service_simple.py +++ b/instana_client/models/service_simple.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ServiceSimple(BaseModel): """ @@ -32,7 +33,8 @@ class ServiceSimple(BaseModel): __properties: ClassVar[List[str]] = ["id", "label"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/session_replay_metadata.py b/instana_client/models/session_replay_metadata.py index d2bb2dfa..99312070 100644 --- a/instana_client/models/session_replay_metadata.py +++ b/instana_client/models/session_replay_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,22 +22,24 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SessionReplayMetadata(BaseModel): """ List of session replay metadata records """ # noqa: E501 - bytes_ingested_image: StrictInt = Field(description="Size of the image in bytes", alias="bytesIngestedImage") - id: StrictStr = Field(description="Unique identifier for the metadata record") - image_data: Optional[StrictStr] = Field(default=None, description="Base64-encoded image data loaded from external storage", alias="imageData") - image_format: StrictStr = Field(description="Image format", alias="imageFormat") - session_id: StrictStr = Field(description="Session identifier", alias="sessionId") - timestamp: StrictInt = Field(description="Timestamp when the record was captured (epoch milliseconds)") - type: StrictStr = Field(description="Type of record") + bytes_ingested_image: StrictInt = Field(description="Size of the image in bytes", alias="bytesIngestedImage", json_schema_extra={"examples": [50000]}) + id: StrictStr = Field(description="Unique identifier for the metadata record", json_schema_extra={"examples": ["image-123"]}) + image_data: Optional[StrictStr] = Field(default=None, description="Base64-encoded image data loaded from external storage", alias="imageData", json_schema_extra={"examples": ["iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="]}) + image_format: StrictStr = Field(description="Image format", alias="imageFormat", json_schema_extra={"examples": ["png"]}) + session_id: StrictStr = Field(description="Session identifier", alias="sessionId", json_schema_extra={"examples": ["session-xyz"]}) + timestamp: StrictInt = Field(description="Timestamp when the record was captured (epoch milliseconds)", json_schema_extra={"examples": [1234567890]}) + type: StrictStr = Field(description="Type of record", json_schema_extra={"examples": ["screenshot"]}) __properties: ClassVar[List[str]] = ["bytesIngestedImage", "id", "imageData", "imageFormat", "sessionId", "timestamp", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/session_replay_timestamps.py b/instana_client/models/session_replay_timestamps.py index 192b785e..f2a40322 100644 --- a/instana_client/models/session_replay_timestamps.py +++ b/instana_client/models/session_replay_timestamps.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,17 +22,19 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SessionReplayTimestamps(BaseModel): """ SessionReplayTimestamps """ # noqa: E501 - first_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the first image in the session (epoch milliseconds). Null if no images exist.", alias="firstImageTimestamp") - last_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the last image in the session (epoch milliseconds). Null if no images exist.", alias="lastImageTimestamp") + first_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the first image in the session (epoch milliseconds). Null if no images exist.", alias="firstImageTimestamp", json_schema_extra={"examples": [1234567890]}) + last_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the last image in the session (epoch milliseconds). Null if no images exist.", alias="lastImageTimestamp", json_schema_extra={"examples": [1234567990]}) __properties: ClassVar[List[str]] = ["firstImageTimestamp", "lastImageTimestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/session_settings.py b/instana_client/models/session_settings.py index e4097019..2821adec 100644 --- a/instana_client/models/session_settings.py +++ b/instana_client/models/session_settings.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SessionSettings(BaseModel): """ @@ -33,7 +34,8 @@ class SessionSettings(BaseModel): __properties: ClassVar[List[str]] = ["idleTimeInMillis", "tokenLifeTimeInMillis"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/simple_metric_configuration.py b/instana_client/models/simple_metric_configuration.py index a2646349..ee6deba3 100644 --- a/instana_client/models/simple_metric_configuration.py +++ b/instana_client/models/simple_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SimpleMetricConfiguration(BaseModel): """ @@ -55,7 +56,8 @@ def cross_series_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slack_integration.py b/instana_client/models/slack_integration.py index 44c1d355..1034ae15 100644 --- a/instana_client/models/slack_integration.py +++ b/instana_client/models/slack_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SlackIntegration(AbstractIntegration): """ @@ -36,7 +37,8 @@ class SlackIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "channel", "emojiRendering", "iconUrl", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/sli_configuration.py b/instana_client/models/sli_configuration.py index 54c974cb..4483de5b 100644 --- a/instana_client/models/sli_configuration.py +++ b/instana_client/models/sli_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.sli_entity import SliEntity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SliConfiguration(BaseModel): """ @@ -38,7 +39,8 @@ class SliConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["id", "initialEvaluationTimestamp", "metricConfiguration", "sliEntity", "sliName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/sli_configuration_with_last_updated.py b/instana_client/models/sli_configuration_with_last_updated.py index c2dd79a7..e7e59b50 100644 --- a/instana_client/models/sli_configuration_with_last_updated.py +++ b/instana_client/models/sli_configuration_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.sli_entity import SliEntity from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SliConfigurationWithLastUpdated(BaseModel): """ @@ -39,7 +40,8 @@ class SliConfigurationWithLastUpdated(BaseModel): __properties: ClassVar[List[str]] = ["id", "initialEvaluationTimestamp", "lastUpdated", "metricConfiguration", "sliEntity", "sliName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/sli_entity.py b/instana_client/models/sli_entity.py index 4abca8db..c5610649 100644 --- a/instana_client/models/sli_entity.py +++ b/instana_client/models/sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -39,7 +40,8 @@ class SliEntity(BaseModel): __properties: ClassVar[List[str]] = ["sliType"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ApplicationSliEntity, AvailabilitySliEntity, WebsiteEventBasedSliEntity, WebsiteTimeBasedSliEntity]]: diff --git a/instana_client/models/sli_report.py b/instana_client/models/sli_report.py index 96843540..a3abdb31 100644 --- a/instana_client/models/sli_report.py +++ b/instana_client/models/sli_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SliReport(BaseModel): """ @@ -37,7 +38,8 @@ class SliReport(BaseModel): __properties: ClassVar[List[str]] = ["errorBudgetRemaining", "fromTimestamp", "sli", "slo", "toTimestamp", "totalErrorBudget", "violationDistribution"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slo_config_with_rbac_tag.py b/instana_client/models/slo_config_with_rbac_tag.py index 3eaf0ec0..930ef11b 100644 --- a/instana_client/models/slo_config_with_rbac_tag.py +++ b/instana_client/models/slo_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.time_window import TimeWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SLOConfigWithRBACTag(BaseModel): """ @@ -46,7 +47,8 @@ class SLOConfigWithRBACTag(BaseModel): __properties: ClassVar[List[str]] = ["createdDate", "entity", "id", "indicator", "lastUpdated", "name", "rbacTags", "tags", "target", "timeWindow"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slo_entity.py b/instana_client/models/slo_entity.py index ffbe0561..c28239d6 100644 --- a/instana_client/models/slo_entity.py +++ b/instana_client/models/slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -42,7 +43,8 @@ class SloEntity(BaseModel): __properties: ClassVar[List[str]] = ["tagFilterExpression", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,8 +73,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ApplicationSloEntity, InfraSloEntity, MobileSloEntity, SyntheticSloEntity, WebsiteSloEntity]]: diff --git a/instana_client/models/slo_health_snapshot.py b/instana_client/models/slo_health_snapshot.py index d5be1e58..f3860058 100644 --- a/instana_client/models/slo_health_snapshot.py +++ b/instana_client/models/slo_health_snapshot.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.slo_health_snapshot_item import SloHealthSnapshotItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SloHealthSnapshot(BaseModel): """ @@ -34,7 +35,8 @@ class SloHealthSnapshot(BaseModel): __properties: ClassVar[List[str]] = ["items", "stateCounts", "totalCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slo_health_snapshot_item.py b/instana_client/models/slo_health_snapshot_item.py index 709968b3..c01900d5 100644 --- a/instana_client/models/slo_health_snapshot_item.py +++ b/instana_client/models/slo_health_snapshot_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SloHealthSnapshotItem(BaseModel): """ @@ -43,7 +44,8 @@ class SloHealthSnapshotItem(BaseModel): __properties: ClassVar[List[str]] = ["blueprint", "entityType", "healthScore", "healthState", "id", "name", "primaryReason", "tags", "target", "trend", "windowDuration", "windowDurationUnit", "windowType"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slo_report.py b/instana_client/models/slo_report.py index f7a27e4e..03904720 100644 --- a/instana_client/models/slo_report.py +++ b/instana_client/models/slo_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SloReport(BaseModel): """ @@ -47,7 +48,8 @@ class SloReport(BaseModel): __properties: ClassVar[List[str]] = ["errorAccumulationChart", "errorBudgetRemainChart", "errorBudgetRemaining", "errorBudgetSpent", "errorBurnRate", "errorBurnRateChart", "errorChart", "fromTimestamp", "healthScore", "healthScorePrimaryReason", "healthScoreTrend", "healthState", "sli", "slo", "toTimestamp", "totalErrorBudget", "violationDistribution"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slowness_application_alert_rule.py b/instana_client/models/slowness_application_alert_rule.py index f722a17d..bd938e1a 100644 --- a/instana_client/models/slowness_application_alert_rule.py +++ b/instana_client/models/slowness_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SlownessApplicationAlertRule(ApplicationAlertRule): """ @@ -31,7 +32,8 @@ class SlownessApplicationAlertRule(ApplicationAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slowness_mobile_app_alert_rule.py b/instana_client/models/slowness_mobile_app_alert_rule.py index f39d1865..0baec9f6 100644 --- a/instana_client/models/slowness_mobile_app_alert_rule.py +++ b/instana_client/models/slowness_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SlownessMobileAppAlertRule(MobileAppAlertRule): """ @@ -31,7 +32,8 @@ class SlownessMobileAppAlertRule(MobileAppAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/slowness_website_alert_rule.py b/instana_client/models/slowness_website_alert_rule.py index efe14169..130a6790 100644 --- a/instana_client/models/slowness_website_alert_rule.py +++ b/instana_client/models/slowness_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SlownessWebsiteAlertRule(WebsiteAlertRule): """ @@ -31,7 +32,8 @@ class SlownessWebsiteAlertRule(WebsiteAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/snapshot_item.py b/instana_client/models/snapshot_item.py index 11c2e59b..08aab418 100644 --- a/instana_client/models/snapshot_item.py +++ b/instana_client/models/snapshot_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SnapshotItem(BaseModel): """ @@ -31,14 +32,15 @@ class SnapshotItem(BaseModel): var_from: Optional[StrictInt] = Field(default=None, description="Start of timeframe expressed as the Unix epoch time in milliseconds", alias="from") host: Optional[StrictStr] = Field(default=None, description="Host name") label: Optional[StrictStr] = Field(default=None, description="Friendly label for the entity") - plugin: Optional[StrictStr] = Field(default=None, description="Plugin name") + plugin: Optional[StrictStr] = Field(default=None, description="Plugin name", json_schema_extra={"examples": ["host"]}) snapshot_id: Optional[StrictStr] = Field(default=None, description="Snapshot ID", alias="snapshotId") tags: Optional[List[StrictStr]] = Field(default=None, description="Tags which can be used to search for this entity") to: Optional[StrictInt] = Field(default=None, description="End of timeframe expressed as the Unix epoch time in milliseconds") __properties: ClassVar[List[str]] = ["data", "from", "host", "label", "plugin", "snapshotId", "tags", "to"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/snapshot_preview.py b/instana_client/models/snapshot_preview.py index a076f01a..c7f9e716 100644 --- a/instana_client/models/snapshot_preview.py +++ b/instana_client/models/snapshot_preview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SnapshotPreview(BaseModel): """ @@ -36,7 +37,8 @@ class SnapshotPreview(BaseModel): __properties: ClassVar[List[str]] = ["data", "id", "label", "plugin", "time"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/snapshot_result.py b/instana_client/models/snapshot_result.py index 030f2f8e..ede5f0d0 100644 --- a/instana_client/models/snapshot_result.py +++ b/instana_client/models/snapshot_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.snapshot_item import SnapshotItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SnapshotResult(BaseModel): """ @@ -32,7 +33,8 @@ class SnapshotResult(BaseModel): __properties: ClassVar[List[str]] = ["items"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/software_user.py b/instana_client/models/software_user.py index 1b0ef829..6be66d96 100644 --- a/instana_client/models/software_user.py +++ b/instana_client/models/software_user.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SoftwareUser(BaseModel): """ @@ -34,7 +35,8 @@ class SoftwareUser(BaseModel): __properties: ClassVar[List[str]] = ["container", "host", "process", "snapshotId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/software_version.py b/instana_client/models/software_version.py index b288b700..91364510 100644 --- a/instana_client/models/software_version.py +++ b/instana_client/models/software_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.software_user import SoftwareUser from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SoftwareVersion(BaseModel): """ @@ -54,7 +55,8 @@ def software_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/source_map_file_blob.py b/instana_client/models/source_map_file_blob.py index 8cb09c75..38e07e5f 100644 --- a/instana_client/models/source_map_file_blob.py +++ b/instana_client/models/source_map_file_blob.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SourceMapFileBlob(BaseModel): """ @@ -33,7 +34,8 @@ class SourceMapFileBlob(BaseModel): __properties: ClassVar[List[str]] = ["blobIndex", "size", "sizeOnDisk"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/source_map_file_meta.py b/instana_client/models/source_map_file_meta.py index cb011e22..dda3b5cd 100644 --- a/instana_client/models/source_map_file_meta.py +++ b/instana_client/models/source_map_file_meta.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.source_map_file_blob import SourceMapFileBlob from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SourceMapFileMeta(BaseModel): """ @@ -46,7 +47,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/source_map_upload_config.py b/instana_client/models/source_map_upload_config.py index 8a80c1e8..d59b3c83 100644 --- a/instana_client/models/source_map_upload_config.py +++ b/instana_client/models/source_map_upload_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.source_map_file_meta import SourceMapFileMeta from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SourceMapUploadConfig(BaseModel): """ @@ -38,7 +39,8 @@ class SourceMapUploadConfig(BaseModel): __properties: ClassVar[List[str]] = ["createdAt", "description", "id", "metadata", "modifiedAt"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/source_map_upload_configs.py b/instana_client/models/source_map_upload_configs.py index 3512621a..43adc877 100644 --- a/instana_client/models/source_map_upload_configs.py +++ b/instana_client/models/source_map_upload_configs.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.source_map_upload_config import SourceMapUploadConfig from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SourceMapUploadConfigs(BaseModel): """ @@ -34,7 +35,8 @@ class SourceMapUploadConfigs(BaseModel): __properties: ClassVar[List[str]] = ["config", "configs"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/span_excerpt.py b/instana_client/models/span_excerpt.py index 6ab40011..bfd78fcd 100644 --- a/instana_client/models/span_excerpt.py +++ b/instana_client/models/span_excerpt.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.stack_trace_item import StackTraceItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SpanExcerpt(BaseModel): """ @@ -52,7 +53,8 @@ def kind_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,8 +66,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/span_relation.py b/instana_client/models/span_relation.py index 66942eca..acc27b58 100644 --- a/instana_client/models/span_relation.py +++ b/instana_client/models/span_relation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.service import Service from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SpanRelation(BaseModel): """ @@ -38,7 +39,8 @@ class SpanRelation(BaseModel): __properties: ClassVar[List[str]] = ["applications", "endpoint", "physicalContext", "service"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/specific_js_errors_website_alert_rule.py b/instana_client/models/specific_js_errors_website_alert_rule.py index b1d03fc8..ae541aff 100644 --- a/instana_client/models/specific_js_errors_website_alert_rule.py +++ b/instana_client/models/specific_js_errors_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SpecificJsErrorsWebsiteAlertRule(WebsiteAlertRule): """ @@ -40,7 +41,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/splunk_integration.py b/instana_client/models/splunk_integration.py index df9299d9..9baec8dd 100644 --- a/instana_client/models/splunk_integration.py +++ b/instana_client/models/splunk_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SplunkIntegration(AbstractIntegration): """ @@ -34,7 +35,8 @@ class SplunkIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "token", "url"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ssl_certificate_configuration.py b/instana_client/models/ssl_certificate_configuration.py index 1d068268..4f0b7707 100644 --- a/instana_client/models/ssl_certificate_configuration.py +++ b/instana_client/models/ssl_certificate_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SSLCertificateConfiguration(SyntheticTypeConfiguration): """ @@ -38,7 +39,8 @@ class SSLCertificateConfiguration(SyntheticTypeConfiguration): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "syntheticType", "timeout", "acceptSelfSignedCertificate", "daysRemainingCheck", "hostname", "port", "validationRules"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ssl_certificate_configuration_update.py b/instana_client/models/ssl_certificate_configuration_update.py index 90196797..f77ff120 100644 --- a/instana_client/models/ssl_certificate_configuration_update.py +++ b/instana_client/models/ssl_certificate_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SSLCertificateConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -37,7 +38,8 @@ class SSLCertificateConfigurationUpdate(SyntheticTypeConfigurationUpdate): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "syntheticTest", "syntheticType", "timeout", "acceptSelfSignedCertificate", "daysRemainingCheck", "hostname", "port", "validationRules"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/ssl_certificate_validation.py b/instana_client/models/ssl_certificate_validation.py index a6ea05be..496ad5ac 100644 --- a/instana_client/models/ssl_certificate_validation.py +++ b/instana_client/models/ssl_certificate_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SSLCertificateValidation(BaseModel): """ @@ -40,7 +41,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/stack_trace_item.py b/instana_client/models/stack_trace_item.py index 0e3a9b90..6c3bc97a 100644 --- a/instana_client/models/stack_trace_item.py +++ b/instana_client/models/stack_trace_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StackTraceItem(BaseModel): """ @@ -33,7 +34,8 @@ class StackTraceItem(BaseModel): __properties: ClassVar[List[str]] = ["file", "line", "method"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/stack_trace_line.py b/instana_client/models/stack_trace_line.py index ad2a0699..b7c5cf72 100644 --- a/instana_client/models/stack_trace_line.py +++ b/instana_client/models/stack_trace_line.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StackTraceLine(BaseModel): """ @@ -37,7 +38,8 @@ class StackTraceLine(BaseModel): __properties: ClassVar[List[str]] = ["column", "file", "line", "name", "translationExplanation", "translationStatus"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/static_baseline_threshold_rule.py b/instana_client/models/static_baseline_threshold_rule.py index 99615b29..34afc6cf 100644 --- a/instana_client/models/static_baseline_threshold_rule.py +++ b/instana_client/models/static_baseline_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StaticBaselineThresholdRule(ThresholdConfigRule): """ @@ -42,7 +43,8 @@ def seasonality_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/static_string_field.py b/instana_client/models/static_string_field.py index f4dcf8ee..93171c0c 100644 --- a/instana_client/models/static_string_field.py +++ b/instana_client/models/static_string_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.custom_payload_field import CustomPayloadField from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StaticStringField(CustomPayloadField): """ @@ -33,7 +34,8 @@ class StaticStringField(CustomPayloadField): __properties: ClassVar[List[str]] = ["key", "type", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/static_threshold.py b/instana_client/models/static_threshold.py index 7a3b5e9e..dec46aad 100644 --- a/instana_client/models/static_threshold.py +++ b/instana_client/models/static_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StaticThreshold(Threshold): """ @@ -36,7 +37,8 @@ class StaticThreshold(Threshold): __properties: ClassVar[List[str]] = ["operator", "type", "lastUpdated", "lowerBound", "upperBound", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/static_threshold_rule.py b/instana_client/models/static_threshold_rule.py index d8ddbe5b..b0b83e63 100644 --- a/instana_client/models/static_threshold_rule.py +++ b/instana_client/models/static_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.threshold_config_rule import ThresholdConfigRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StaticThresholdRule(ThresholdConfigRule): """ @@ -35,7 +36,8 @@ class StaticThresholdRule(ThresholdConfigRule): __properties: ClassVar[List[str]] = ["type", "lowerBound", "upperBound", "value"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/status_code_application_alert_rule.py b/instana_client/models/status_code_application_alert_rule.py index 99bb9ed5..313a89cf 100644 --- a/instana_client/models/status_code_application_alert_rule.py +++ b/instana_client/models/status_code_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StatusCodeApplicationAlertRule(ApplicationAlertRule): """ @@ -35,7 +36,8 @@ class StatusCodeApplicationAlertRule(ApplicationAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "statusCodeEnd", "statusCodeStart"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/status_code_mobile_app_alert_rule.py b/instana_client/models/status_code_mobile_app_alert_rule.py index de13ab81..850e0f19 100644 --- a/instana_client/models/status_code_mobile_app_alert_rule.py +++ b/instana_client/models/status_code_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StatusCodeMobileAppAlertRule(MobileAppAlertRule): """ @@ -42,7 +43,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/status_code_website_alert_rule.py b/instana_client/models/status_code_website_alert_rule.py index 474f6a76..ac15923a 100644 --- a/instana_client/models/status_code_website_alert_rule.py +++ b/instana_client/models/status_code_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class StatusCodeWebsiteAlertRule(WebsiteAlertRule): """ @@ -41,7 +42,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_alert_config.py b/instana_client/models/synthetic_alert_config.py index 780ae8ff..1b887224 100644 --- a/instana_client/models/synthetic_alert_config.py +++ b/instana_client/models/synthetic_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticAlertConfig(BaseModel): """ @@ -58,7 +59,8 @@ def evaluation_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_alert_config_with_metadata.py b/instana_client/models/synthetic_alert_config_with_metadata.py index e3944b00..461c7f36 100644 --- a/instana_client/models/synthetic_alert_config_with_metadata.py +++ b/instana_client/models/synthetic_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticAlertConfigWithMetadata(BaseModel): """ @@ -64,7 +65,8 @@ def evaluation_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,8 +78,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_alert_config_with_rbac_tag.py b/instana_client/models/synthetic_alert_config_with_rbac_tag.py index faae49f6..f40aac7e 100644 --- a/instana_client/models/synthetic_alert_config_with_rbac_tag.py +++ b/instana_client/models/synthetic_alert_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticAlertConfigWithRBACTag(BaseModel): """ @@ -66,7 +67,8 @@ def evaluation_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -78,8 +80,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_alert_rule.py b/instana_client/models/synthetic_alert_rule.py index 380635e6..f7d7c832 100644 --- a/instana_client/models/synthetic_alert_rule.py +++ b/instana_client/models/synthetic_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -49,7 +50,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -78,8 +80,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[FailureSyntheticAlertRule]]: diff --git a/instana_client/models/synthetic_bulk_response.py b/instana_client/models/synthetic_bulk_response.py index 8822fd0e..00d679b6 100644 --- a/instana_client/models/synthetic_bulk_response.py +++ b/instana_client/models/synthetic_bulk_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticBulkResponse(BaseModel): """ @@ -33,7 +34,8 @@ class SyntheticBulkResponse(BaseModel): __properties: ClassVar[List[str]] = ["errorMessage", "id", "status"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_call_config.py b/instana_client/models/synthetic_call_config.py index 7d7b6ec1..2f72b8f9 100644 --- a/instana_client/models/synthetic_call_config.py +++ b/instana_client/models/synthetic_call_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_call_rule import SyntheticCallRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticCallConfig(BaseModel): """ @@ -34,7 +35,8 @@ class SyntheticCallConfig(BaseModel): __properties: ClassVar[List[str]] = ["customRules", "defaultRulesEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_call_rule.py b/instana_client/models/synthetic_call_rule.py index 27a05a39..db08a426 100644 --- a/instana_client/models/synthetic_call_rule.py +++ b/instana_client/models/synthetic_call_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.match_expression_dto import MatchExpressionDTO from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticCallRule(BaseModel): """ @@ -36,7 +37,8 @@ class SyntheticCallRule(BaseModel): __properties: ClassVar[List[str]] = ["description", "enabled", "matchSpecification", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_call_with_defaults_config.py b/instana_client/models/synthetic_call_with_defaults_config.py index e2be2a59..eaec3c08 100644 --- a/instana_client/models/synthetic_call_with_defaults_config.py +++ b/instana_client/models/synthetic_call_with_defaults_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_call_rule import SyntheticCallRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticCallWithDefaultsConfig(BaseModel): """ @@ -35,7 +36,8 @@ class SyntheticCallWithDefaultsConfig(BaseModel): __properties: ClassVar[List[str]] = ["customRules", "defaultRules", "defaultRulesEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_configuration.py b/instana_client/models/synthetic_configuration.py index 133071f2..908cc0a4 100644 --- a/instana_client/models/synthetic_configuration.py +++ b/instana_client/models/synthetic_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticConfiguration(BaseModel): """ @@ -34,7 +35,8 @@ class SyntheticConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["retries", "retryInterval", "timeout"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_configuration_update.py b/instana_client/models/synthetic_configuration_update.py index 511c9d53..7598d5f8 100644 --- a/instana_client/models/synthetic_configuration_update.py +++ b/instana_client/models/synthetic_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticConfigurationUpdate(BaseModel): """ @@ -35,7 +36,8 @@ class SyntheticConfigurationUpdate(BaseModel): __properties: ClassVar[List[str]] = ["markSyntheticCall", "retries", "retryInterval", "timeout"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_credential.py b/instana_client/models/synthetic_credential.py index da462815..0bd02758 100644 --- a/instana_client/models/synthetic_credential.py +++ b/instana_client/models/synthetic_credential.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.api_tag import ApiTag from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticCredential(BaseModel): """ @@ -33,7 +34,7 @@ class SyntheticCredential(BaseModel): applications: Optional[List[StrictStr]] = None created_at: Optional[StrictInt] = Field(default=None, alias="createdAt") created_by: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=128)]] = Field(default=None, alias="createdBy") - credential_name: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(alias="credentialName") + credential_name: Annotated[str, Field(min_length=1, strict=True, max_length=64)] = Field(alias="credentialName") credential_value: StrictStr = Field(alias="credentialValue") mobile_app_labels: Optional[List[StrictStr]] = Field(default=None, alias="mobileAppLabels") mobile_apps: Optional[List[StrictStr]] = Field(default=None, alias="mobileApps") @@ -45,7 +46,8 @@ class SyntheticCredential(BaseModel): __properties: ClassVar[List[str]] = ["applicationLabels", "applications", "createdAt", "createdBy", "credentialName", "credentialValue", "mobileAppLabels", "mobileApps", "modifiedAt", "modifiedBy", "rbacTags", "websiteLabels", "websites"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_datacenter.py b/instana_client/models/synthetic_datacenter.py index 12d9e576..5bded46c 100644 --- a/instana_client/models/synthetic_datacenter.py +++ b/instana_client/models/synthetic_datacenter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticDatacenter(BaseModel): """ @@ -45,7 +46,8 @@ class SyntheticDatacenter(BaseModel): __properties: ClassVar[List[str]] = ["cityName", "code", "configuration", "countryName", "datacenterId", "expectedActiveAt", "label", "latitude", "locationLabel", "longitude", "modifiedAt", "provider", "status"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_datacenter_configuration.py b/instana_client/models/synthetic_datacenter_configuration.py index 98c244ab..b29a0283 100644 --- a/instana_client/models/synthetic_datacenter_configuration.py +++ b/instana_client/models/synthetic_datacenter_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticDatacenterConfiguration(BaseModel): """ @@ -31,7 +32,8 @@ class SyntheticDatacenterConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["ipAddresses"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_geo_point.py b/instana_client/models/synthetic_geo_point.py index 01766ac2..fc303e77 100644 --- a/instana_client/models/synthetic_geo_point.py +++ b/instana_client/models/synthetic_geo_point.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticGeoPoint(BaseModel): """ @@ -34,7 +35,8 @@ class SyntheticGeoPoint(BaseModel): __properties: ClassVar[List[str]] = ["cityName", "countryName", "latitude", "longitude"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_location.py b/instana_client/models/synthetic_location.py index f083bfd9..f48c1177 100644 --- a/instana_client/models/synthetic_location.py +++ b/instana_client/models/synthetic_location.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticLocation(BaseModel): """ @@ -49,7 +50,8 @@ class SyntheticLocation(BaseModel): __properties: ClassVar[List[str]] = ["configuration", "createdAt", "customProperties", "description", "displayLabel", "geoPoint", "id", "label", "locationType", "modifiedAt", "observedAt", "playbackCapabilities", "popVersion", "status", "totalTests"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,8 +63,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_location_configuration.py b/instana_client/models/synthetic_location_configuration.py index d500561a..f9eaa6f0 100644 --- a/instana_client/models/synthetic_location_configuration.py +++ b/instana_client/models/synthetic_location_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticLocationConfiguration(BaseModel): """ @@ -43,7 +44,8 @@ def tenant_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_metric_configuration.py b/instana_client/models/synthetic_metric_configuration.py index 808beae2..4e1a2f78 100644 --- a/instana_client/models/synthetic_metric_configuration.py +++ b/instana_client/models/synthetic_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticMetricConfiguration(BaseModel): """ @@ -41,7 +42,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_metric_tag_group.py b/instana_client/models/synthetic_metric_tag_group.py index 5cbf45b2..d676d9d2 100644 --- a/instana_client/models/synthetic_metric_tag_group.py +++ b/instana_client/models/synthetic_metric_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticMetricTagGroup(BaseModel): """ @@ -51,7 +52,8 @@ def groupby_tag_entity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -63,8 +65,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_playback_capabilities.py b/instana_client/models/synthetic_playback_capabilities.py index e1cc412d..b3cf8a3f 100644 --- a/instana_client/models/synthetic_playback_capabilities.py +++ b/instana_client/models/synthetic_playback_capabilities.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticPlaybackCapabilities(BaseModel): """ @@ -59,12 +60,13 @@ def extensions_validate_enum(cls, value): return value for i in value: - if i not in set(['CNP', 'GitHub', 'PW']): - raise ValueError("each list item must be one of ('CNP', 'GitHub', 'PW')") + if i not in set(['CNP', 'ESM', 'GitHub', 'PW']): + raise ValueError("each list item must be one of ('CNP', 'ESM', 'GitHub', 'PW')") return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,8 +78,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py b/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py index b9d82b48..54b7f5b9 100644 --- a/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py +++ b/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.dns_filter_target_value import DNSFilterTargetValue from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue(BaseModel): """ @@ -33,7 +34,8 @@ class SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue(Ba __properties: ClassVar[List[str]] = ["add", "remove"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_list_icmp_validation_list_icmp_validation.py b/instana_client/models/synthetic_resource_update_list_icmp_validation_list_icmp_validation.py index 126b9c12..da0a651f 100644 --- a/instana_client/models/synthetic_resource_update_list_icmp_validation_list_icmp_validation.py +++ b/instana_client/models/synthetic_resource_update_list_icmp_validation_list_icmp_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.icmp_validation import ICMPValidation from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateListICMPValidationListICMPValidation(BaseModel): """ @@ -33,7 +34,8 @@ class SyntheticResourceUpdateListICMPValidationListICMPValidation(BaseModel): __properties: ClassVar[List[str]] = ["add", "remove"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_list_network_profile_list_network_profile.py b/instana_client/models/synthetic_resource_update_list_network_profile_list_network_profile.py index 3e4e9041..84e84056 100644 --- a/instana_client/models/synthetic_resource_update_list_network_profile_list_network_profile.py +++ b/instana_client/models/synthetic_resource_update_list_network_profile_list_network_profile.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateListNetworkProfileListNetworkProfile(BaseModel): """ @@ -54,7 +55,8 @@ def remove_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py b/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py index 068ea77f..f9c4d23a 100644 --- a/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py +++ b/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.ssl_certificate_validation import SSLCertificateValidation from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation(BaseModel): """ @@ -33,7 +34,8 @@ class SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValid __properties: ClassVar[List[str]] = ["add", "remove"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_list_string_list_string.py b/instana_client/models/synthetic_resource_update_list_string_list_string.py index e303da63..978cf493 100644 --- a/instana_client/models/synthetic_resource_update_list_string_list_string.py +++ b/instana_client/models/synthetic_resource_update_list_string_list_string.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateListStringListString(BaseModel): """ @@ -32,7 +33,8 @@ class SyntheticResourceUpdateListStringListString(BaseModel): __properties: ClassVar[List[str]] = ["add", "remove"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_resource_update_map_string_string_list_string.py b/instana_client/models/synthetic_resource_update_map_string_string_list_string.py index 6c86ec1d..12f4e1bf 100644 --- a/instana_client/models/synthetic_resource_update_map_string_string_list_string.py +++ b/instana_client/models/synthetic_resource_update_map_string_string_list_string.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticResourceUpdateMapStringStringListString(BaseModel): """ @@ -32,7 +33,8 @@ class SyntheticResourceUpdateMapStringStringListString(BaseModel): __properties: ClassVar[List[str]] = ["add", "remove"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_slo_entity.py b/instana_client/models/synthetic_slo_entity.py index 51dd06ba..e70d844e 100644 --- a/instana_client/models/synthetic_slo_entity.py +++ b/instana_client/models/synthetic_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticSloEntity(SloEntity): """ @@ -34,7 +35,8 @@ class SyntheticSloEntity(SloEntity): __properties: ClassVar[List[str]] = ["tagFilterExpression", "type", "includeUnscheduledTestResults", "syntheticTestIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test.py b/instana_client/models/synthetic_test.py index d7693668..7111346c 100644 --- a/instana_client/models/synthetic_test.py +++ b/instana_client/models/synthetic_test.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTest(BaseModel): """ @@ -68,7 +69,8 @@ def playback_mode_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -80,8 +82,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_cicd.py b/instana_client/models/synthetic_test_cicd.py index a73d3c2a..5002b583 100644 --- a/instana_client/models/synthetic_test_cicd.py +++ b/instana_client/models/synthetic_test_cicd.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestCICD(BaseModel): """ @@ -34,7 +35,8 @@ class SyntheticTestCICD(BaseModel): __properties: ClassVar[List[str]] = ["customization", "runType", "testId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_cicd_customization.py b/instana_client/models/synthetic_test_cicd_customization.py index b249c29a..1c104e57 100644 --- a/instana_client/models/synthetic_test_cicd_customization.py +++ b/instana_client/models/synthetic_test_cicd_customization.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_configuration import SyntheticConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestCICDCustomization(BaseModel): """ @@ -34,7 +35,8 @@ class SyntheticTestCICDCustomization(BaseModel): __properties: ClassVar[List[str]] = ["configuration", "customProperties", "locations"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_cicd_item.py b/instana_client/models/synthetic_test_cicd_item.py index ad30189a..b2960156 100644 --- a/instana_client/models/synthetic_test_cicd_item.py +++ b/instana_client/models/synthetic_test_cicd_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestCICDItem(BaseModel): """ @@ -43,7 +44,8 @@ class SyntheticTestCICDItem(BaseModel): __properties: ClassVar[List[str]] = ["applications", "completed", "customization", "locationId", "locationLabel", "mobileApps", "runType", "testId", "testLabel", "testResultId", "testType", "websites"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_cicd_response.py b/instana_client/models/synthetic_test_cicd_response.py index 17b18e72..e2bd9295 100644 --- a/instana_client/models/synthetic_test_cicd_response.py +++ b/instana_client/models/synthetic_test_cicd_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestCICDResponse(BaseModel): """ @@ -33,7 +34,8 @@ class SyntheticTestCICDResponse(BaseModel): __properties: ClassVar[List[str]] = ["locationId", "testId", "testResultId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_deep_update.py b/instana_client/models/synthetic_test_deep_update.py index f48727c8..c2bb7fdf 100644 --- a/instana_client/models/synthetic_test_deep_update.py +++ b/instana_client/models/synthetic_test_deep_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestDeepUpdate(SyntheticTestUpdate): """ @@ -35,7 +36,8 @@ class SyntheticTestDeepUpdate(SyntheticTestUpdate): __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "rbacTags", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_shallow_update.py b/instana_client/models/synthetic_test_shallow_update.py index 8a083c08..8a31e878 100644 --- a/instana_client/models/synthetic_test_shallow_update.py +++ b/instana_client/models/synthetic_test_shallow_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_test_update import SyntheticTestUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticTestShallowUpdate(SyntheticTestUpdate): """ @@ -35,7 +36,8 @@ class SyntheticTestShallowUpdate(SyntheticTestUpdate): __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "rbacTags", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/synthetic_test_update.py b/instana_client/models/synthetic_test_update.py index 31d07936..655b5908 100644 --- a/instana_client/models/synthetic_test_update.py +++ b/instana_client/models/synthetic_test_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -59,7 +60,8 @@ def synthetic_update_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -88,8 +90,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[SyntheticTestDeepUpdate, SyntheticTestShallowUpdate]]: diff --git a/instana_client/models/synthetic_time_threshold.py b/instana_client/models/synthetic_time_threshold.py index 6014d9e0..c9037f44 100644 --- a/instana_client/models/synthetic_time_threshold.py +++ b/instana_client/models/synthetic_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -38,7 +39,8 @@ class SyntheticTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["type", "violationsCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[ViolationsInSequenceSyntheticTimeThreshold]]: diff --git a/instana_client/models/synthetic_type_configuration.py b/instana_client/models/synthetic_type_configuration.py index 62986475..9e4a2993 100644 --- a/instana_client/models/synthetic_type_configuration.py +++ b/instana_client/models/synthetic_type_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -56,7 +57,8 @@ def synthetic_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -85,8 +87,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[BrowserScriptConfiguration, DNSConfiguration, HttpActionConfiguration, HttpScriptConfiguration, ICMPConfiguration, EmptyConfiguration, SSLCertificateConfiguration, WebpageActionConfiguration, WebpageScriptConfiguration]]: diff --git a/instana_client/models/synthetic_type_configuration_update.py b/instana_client/models/synthetic_type_configuration_update.py index 70f66c34..eaa3b3b7 100644 --- a/instana_client/models/synthetic_type_configuration_update.py +++ b/instana_client/models/synthetic_type_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -69,7 +70,8 @@ def synthetic_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -98,8 +100,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[BrowserScriptConfigurationUpdate, DNSConfigurationUpdate, HttpActionConfigurationUpdate, HttpScriptConfigurationUpdate, ICMPConfigurationUpdate, SSLCertificateConfigurationUpdate, WebpageActionConfigurationUpdate, WebpageScriptConfigurationUpdate]]: diff --git a/instana_client/models/synthetics_event_result.py b/instana_client/models/synthetics_event_result.py index 9314149f..39ea8c0a 100644 --- a/instana_client/models/synthetics_event_result.py +++ b/instana_client/models/synthetics_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SyntheticsEventResult(EventResult): """ @@ -33,7 +34,8 @@ class SyntheticsEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "locationIds", "syntheticTestId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/system_rule.py b/instana_client/models/system_rule.py index e540f509..f6623b7f 100644 --- a/instana_client/models/system_rule.py +++ b/instana_client/models/system_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.abstract_rule import AbstractRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SystemRule(AbstractRule): """ @@ -32,7 +33,8 @@ class SystemRule(AbstractRule): __properties: ClassVar[List[str]] = ["ruleType", "severity", "systemRuleId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/system_rule_label.py b/instana_client/models/system_rule_label.py index 3a4ec01a..2aa1464f 100644 --- a/instana_client/models/system_rule_label.py +++ b/instana_client/models/system_rule_label.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class SystemRuleLabel(BaseModel): """ @@ -33,7 +34,8 @@ class SystemRuleLabel(BaseModel): __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag.py b/instana_client/models/tag.py index 31d810e2..31b8d7e3 100644 --- a/instana_client/models/tag.py +++ b/instana_client/models/tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Tag(BaseModel): """ @@ -46,8 +47,8 @@ def availability_validate_enum(cls, value): return value for i in value: - if i not in set(['INFRASTRUCTURE_METRICS', 'APPLICATION', 'WEBSITE', 'MOBILE_APP', 'EUM', 'EUM_IMPACTED_BEACON', 'EVENT', 'SLI', 'SLO', 'SLO_PREVIEW', 'USAGE', 'LOG', 'SYNTHETICS', 'SYNTHETICS_DETAIL', 'APDEX', 'BIZOPS', 'BUSINESS_METRICS', 'SUBTRACE', 'UNKNOWN']): - raise ValueError("each list item must be one of ('INFRASTRUCTURE_METRICS', 'APPLICATION', 'WEBSITE', 'MOBILE_APP', 'EUM', 'EUM_IMPACTED_BEACON', 'EVENT', 'SLI', 'SLO', 'SLO_PREVIEW', 'USAGE', 'LOG', 'SYNTHETICS', 'SYNTHETICS_DETAIL', 'APDEX', 'BIZOPS', 'BUSINESS_METRICS', 'SUBTRACE', 'UNKNOWN')") + if i not in set(['INFRASTRUCTURE_METRICS', 'APPLICATION', 'WEBSITE', 'MOBILE_APP', 'EUM', 'EUM_IMPACTED_BEACON', 'EVENT', 'SLI', 'SLO', 'SLO_PREVIEW', 'USAGE', 'LOG', 'SYNTHETICS', 'SYNTHETICS_DETAIL', 'APDEX', 'BIZOPS', 'BUSINESS_METRICS', 'SUBTRACE', 'EVAL_RESULTS', 'UNKNOWN']): + raise ValueError("each list item must be one of ('INFRASTRUCTURE_METRICS', 'APPLICATION', 'WEBSITE', 'MOBILE_APP', 'EUM', 'EUM_IMPACTED_BEACON', 'EVENT', 'SLI', 'SLO', 'SLO_PREVIEW', 'USAGE', 'LOG', 'SYNTHETICS', 'SYNTHETICS_DETAIL', 'APDEX', 'BIZOPS', 'BUSINESS_METRICS', 'SUBTRACE', 'EVAL_RESULTS', 'UNKNOWN')") return value @field_validator('type') @@ -58,7 +59,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag_catalog.py b/instana_client/models/tag_catalog.py index 2952c848..21e94668 100644 --- a/instana_client/models/tag_catalog.py +++ b/instana_client/models/tag_catalog.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_tree_level import TagTreeLevel from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TagCatalog(BaseModel): """ @@ -37,7 +38,8 @@ class TagCatalog(BaseModel): __properties: ClassVar[List[str]] = ["dynamicTags", "tagTree", "tags"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,8 +51,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag_filter_expression.py b/instana_client/models/tag_filter_expression.py index 10d73e25..5de91cf3 100644 --- a/instana_client/models/tag_filter_expression.py +++ b/instana_client/models/tag_filter_expression.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TagFilterExpression(TagFilterExpressionElement): """ @@ -40,7 +41,8 @@ def logical_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag_filter_expression_element.py b/instana_client/models/tag_filter_expression_element.py index d21a4092..6f409104 100644 --- a/instana_client/models/tag_filter_expression_element.py +++ b/instana_client/models/tag_filter_expression_element.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -37,7 +38,8 @@ class TagFilterExpressionElement(BaseModel): __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,8 +68,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[TagFilterExpression, TagFilter]]: diff --git a/instana_client/models/tag_matcher_dto.py b/instana_client/models/tag_matcher_dto.py index c52b482a..dcb71bbb 100644 --- a/instana_client/models/tag_matcher_dto.py +++ b/instana_client/models/tag_matcher_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.match_expression_dto import MatchExpressionDTO from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TagMatcherDTO(MatchExpressionDTO): """ @@ -53,7 +54,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,8 +67,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag_tree_level.py b/instana_client/models/tag_tree_level.py index 7d513843..1185412c 100644 --- a/instana_client/models/tag_tree_level.py +++ b/instana_client/models/tag_tree_level.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_tree_node import TagTreeNode from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TagTreeLevel(BaseModel): """ @@ -39,7 +40,8 @@ class TagTreeLevel(BaseModel): __properties: ClassVar[List[str]] = ["children", "description", "icon", "label", "queryable", "scoreBoost", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/tag_tree_node.py b/instana_client/models/tag_tree_node.py index 611b47da..d688cae8 100644 --- a/instana_client/models/tag_tree_node.py +++ b/instana_client/models/tag_tree_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -39,7 +40,8 @@ class TagTreeNode(BaseModel): __properties: ClassVar[List[str]] = ["icon", "label", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[TagTreeLevel, TagTreeTag]]: diff --git a/instana_client/models/tag_tree_tag.py b/instana_client/models/tag_tree_tag.py index 02d8e628..6b16d63f 100644 --- a/instana_client/models/tag_tree_tag.py +++ b/instana_client/models/tag_tree_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_tree_node import TagTreeNode from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TagTreeTag(TagTreeNode): """ @@ -39,7 +40,8 @@ class TagTreeTag(TagTreeNode): __properties: ClassVar[List[str]] = ["icon", "label", "type", "description", "hidden", "queryable", "scoreBoost", "tagName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_common_properties.py b/instana_client/models/test_common_properties.py index 72c308da..41a746cd 100644 --- a/instana_client/models/test_common_properties.py +++ b/instana_client/models/test_common_properties.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.location_status import LocationStatus from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestCommonProperties(BaseModel): """ @@ -56,7 +57,8 @@ class TestCommonProperties(BaseModel): __properties: ClassVar[List[str]] = ["active", "applicationId", "applicationIds", "applicationLabel", "applicationLabels", "createdAt", "frequency", "getWebsiteLabels", "id", "label", "locationDisplayLabels", "locationIds", "locationLabels", "locationStatusList", "mobileApplicationIds", "mobileApplicationLabels", "modifiedAt", "profiles", "rbacTags", "serviceId", "type", "websiteIds", "websiteLabels"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_connection_response.py b/instana_client/models/test_connection_response.py index 423debe6..6acd08b7 100644 --- a/instana_client/models/test_connection_response.py +++ b/instana_client/models/test_connection_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,18 +22,20 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestConnectionResponse(BaseModel): """ Response from a test connection request """ # noqa: E501 - connected: StrictBool = Field(description="Indicates whether the connection to the remote service was established successfully") - message: StrictStr = Field(description="A human-readable message describing the outcome of the connection test") - status_code: StrictInt = Field(description="The HTTP status code returned by the remote service during the connection test", alias="statusCode") + connected: StrictBool = Field(description="Indicates whether the connection to the remote service was established successfully", json_schema_extra={"examples": [True]}) + message: StrictStr = Field(description="A human-readable message describing the outcome of the connection test", json_schema_extra={"examples": ["Connection successful"]}) + status_code: StrictInt = Field(description="The HTTP status code returned by the remote service during the connection test", alias="statusCode", json_schema_extra={"examples": [200]}) __properties: ClassVar[List[str]] = ["connected", "message", "statusCode"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_last_error.py b/instana_client/models/test_last_error.py index fb7321aa..563c3e0f 100644 --- a/instana_client/models/test_last_error.py +++ b/instana_client/models/test_last_error.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestLastError(BaseModel): """ @@ -32,7 +33,8 @@ class TestLastError(BaseModel): __properties: ClassVar[List[str]] = ["errors", "startTime"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result.py b/instana_client/models/test_result.py index 2303aa2b..4f43de22 100644 --- a/instana_client/models/test_result.py +++ b/instana_client/models/test_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.test_result_item import TestResultItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResult(BaseModel): """ @@ -33,7 +34,8 @@ class TestResult(BaseModel): __properties: ClassVar[List[str]] = ["testResult", "testResultItems"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_common_properties.py b/instana_client/models/test_result_common_properties.py index 6aeeb186..1e1b7e04 100644 --- a/instana_client/models/test_result_common_properties.py +++ b/instana_client/models/test_result_common_properties.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.test_last_error import TestLastError from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultCommonProperties(BaseModel): """ @@ -60,7 +61,8 @@ class TestResultCommonProperties(BaseModel): __properties: ClassVar[List[str]] = ["clientId", "customTags", "dnsLookup", "dnsQueryType", "dnsServerName", "dnsTransport", "errors", "gitCommit", "gitHubUrl", "icmpPacketCount", "icmpPacketInterval", "icmpPacketSize", "icmpPacketTimeout", "icmpTargetHost", "id", "ismDetails", "lastErrors", "locationDisplayLabel", "locationId", "profile", "runType", "sslDaysRemaining", "sslHostname", "testCommonProperties", "testId", "testLastError", "testName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -72,8 +74,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_detail_data.py b/instana_client/models/test_result_detail_data.py index e8b5c614..2fa51e83 100644 --- a/instana_client/models/test_result_detail_data.py +++ b/instana_client/models/test_result_detail_data.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.test_result_subtransaction import TestResultSubtransaction from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultDetailData(BaseModel): """ @@ -40,7 +41,8 @@ class TestResultDetailData(BaseModel): __properties: ClassVar[List[str]] = ["har", "imageFiles", "logFiles", "logs", "subtransactionAvgMetrics", "subtransactions", "testId", "testResultId", "videos"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_item.py b/instana_client/models/test_result_item.py index 749328a4..6143d1bf 100644 --- a/instana_client/models/test_result_item.py +++ b/instana_client/models/test_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultItem(BaseModel): """ @@ -41,7 +42,8 @@ class TestResultItem(BaseModel): __properties: ClassVar[List[str]] = ["applicationId", "applicationIds", "customTags", "locationId", "metrics", "mobileApplicationIds", "serviceId", "testId", "testName", "websiteIds"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_list_item.py b/instana_client/models/test_result_list_item.py index 907ff3f7..5f3d69f2 100644 --- a/instana_client/models/test_result_list_item.py +++ b/instana_client/models/test_result_list_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.test_result_common_properties import TestResultCommonProperties from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultListItem(BaseModel): """ @@ -33,7 +34,8 @@ class TestResultListItem(BaseModel): __properties: ClassVar[List[str]] = ["metrics", "testResultCommonProperties"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_list_result.py b/instana_client/models/test_result_list_result.py index eed30dab..8822f9f9 100644 --- a/instana_client/models/test_result_list_result.py +++ b/instana_client/models/test_result_list_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.test_result_list_item import TestResultListItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultListResult(BaseModel): """ @@ -36,7 +37,8 @@ class TestResultListResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "page", "pageSize", "totalHits"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,8 +50,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_metadata.py b/instana_client/models/test_result_metadata.py index 18f3b142..5c002089 100644 --- a/instana_client/models/test_result_metadata.py +++ b/instana_client/models/test_result_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultMetadata(BaseModel): """ @@ -35,7 +36,8 @@ class TestResultMetadata(BaseModel): __properties: ClassVar[List[str]] = ["metadata", "startTime", "testId", "testResultId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/test_result_subtransaction.py b/instana_client/models/test_result_subtransaction.py index bd560621..d1941c8d 100644 --- a/instana_client/models/test_result_subtransaction.py +++ b/instana_client/models/test_result_subtransaction.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TestResultSubtransaction(BaseModel): """ @@ -32,7 +33,8 @@ class TestResultSubtransaction(BaseModel): __properties: ClassVar[List[str]] = ["metrics", "properties"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/threshold.py b/instana_client/models/threshold.py index a910dfe6..31ce9e57 100644 --- a/instana_client/models/threshold.py +++ b/instana_client/models/threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -46,7 +47,8 @@ def operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,8 +77,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[AdaptiveBaseline, HistoricBaseline, StaticThreshold]]: diff --git a/instana_client/models/threshold_config_rule.py b/instana_client/models/threshold_config_rule.py index bb8c0113..2eeb41d9 100644 --- a/instana_client/models/threshold_config_rule.py +++ b/instana_client/models/threshold_config_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -38,7 +39,8 @@ class ThresholdConfigRule(BaseModel): __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,8 +69,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[AdaptiveThresholdRule, StaticBaselineThresholdRule, StaticThresholdRule]]: diff --git a/instana_client/models/threshold_rule.py b/instana_client/models/threshold_rule.py index a512f71d..fc42bc5e 100644 --- a/instana_client/models/threshold_rule.py +++ b/instana_client/models/threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.metric_pattern import MetricPattern from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ThresholdRule(AbstractRule): """ @@ -57,7 +58,8 @@ def condition_operator_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,8 +71,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/throughput_application_alert_rule.py b/instana_client/models/throughput_application_alert_rule.py index b2b0dea5..fe724597 100644 --- a/instana_client/models/throughput_application_alert_rule.py +++ b/instana_client/models/throughput_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application_alert_rule import ApplicationAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ThroughputApplicationAlertRule(ApplicationAlertRule): """ @@ -31,7 +32,8 @@ class ThroughputApplicationAlertRule(ApplicationAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/throughput_mobile_app_alert_rule.py b/instana_client/models/throughput_mobile_app_alert_rule.py index e7b4851a..6163e6fc 100644 --- a/instana_client/models/throughput_mobile_app_alert_rule.py +++ b/instana_client/models/throughput_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ThroughputMobileAppAlertRule(MobileAppAlertRule): """ @@ -31,7 +32,8 @@ class ThroughputMobileAppAlertRule(MobileAppAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/throughput_website_alert_rule.py b/instana_client/models/throughput_website_alert_rule.py index 23f7d20b..e5829275 100644 --- a/instana_client/models/throughput_website_alert_rule.py +++ b/instana_client/models/throughput_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ThroughputWebsiteAlertRule(WebsiteAlertRule): """ @@ -31,7 +32,8 @@ class ThroughputWebsiteAlertRule(WebsiteAlertRule): __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/time_config.py b/instana_client/models/time_config.py index 35e3dd5a..7d4f14c8 100644 --- a/instana_client/models/time_config.py +++ b/instana_client/models/time_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TimeConfig(BaseModel): """ @@ -34,7 +35,8 @@ class TimeConfig(BaseModel): __properties: ClassVar[List[str]] = ["autoRefresh", "focusedMoment", "to", "windowSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/time_frame.py b/instana_client/models/time_frame.py index 54711249..2601ba02 100644 --- a/instana_client/models/time_frame.py +++ b/instana_client/models/time_frame.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TimeFrame(BaseModel): """ @@ -33,7 +34,8 @@ class TimeFrame(BaseModel): __properties: ClassVar[List[str]] = ["to", "windowSize"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/time_window.py b/instana_client/models/time_window.py index fb7dca07..d8170506 100644 --- a/instana_client/models/time_window.py +++ b/instana_client/models/time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -47,7 +48,8 @@ def duration_unit_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,8 +78,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[FixedTimeWindow, RollingTimeWindow]]: diff --git a/instana_client/models/topology.py b/instana_client/models/topology.py index ab7804e5..9493f214 100644 --- a/instana_client/models/topology.py +++ b/instana_client/models/topology.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.graph_node import GraphNode from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Topology(BaseModel): """ @@ -34,7 +35,8 @@ class Topology(BaseModel): __properties: ClassVar[List[str]] = ["edges", "nodes"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace.py b/instana_client/models/trace.py index 2b919a02..9b0354cc 100644 --- a/instana_client/models/trace.py +++ b/instana_client/models/trace.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service import Service from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Trace(BaseModel): """ @@ -40,7 +41,8 @@ class Trace(BaseModel): __properties: ClassVar[List[str]] = ["duration", "endpoint", "erroneous", "id", "label", "service", "startTime"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,8 +54,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_activity_tree_node_details.py b/instana_client/models/trace_activity_tree_node_details.py index 330e4f27..078d5b42 100644 --- a/instana_client/models/trace_activity_tree_node_details.py +++ b/instana_client/models/trace_activity_tree_node_details.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.span_relation import SpanRelation from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceActivityTreeNodeDetails(BaseModel): """ @@ -60,7 +61,8 @@ def raw_span_load_error_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -72,8 +74,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_download_result.py b/instana_client/models/trace_download_result.py index fc74f05e..547804a7 100644 --- a/instana_client/models/trace_download_result.py +++ b/instana_client/models/trace_download_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceDownloadResult(BaseModel): """ @@ -39,7 +40,8 @@ class TraceDownloadResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_groups_item.py b/instana_client/models/trace_groups_item.py index 0d1500ef..1f03bf49 100644 --- a/instana_client/models/trace_groups_item.py +++ b/instana_client/models/trace_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceGroupsItem(BaseModel): """ @@ -35,7 +36,8 @@ class TraceGroupsItem(BaseModel): __properties: ClassVar[List[str]] = ["cursor", "metrics", "name", "timestamp"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_groups_result.py b/instana_client/models/trace_groups_result.py index 8153bf87..755ff4a7 100644 --- a/instana_client/models/trace_groups_result.py +++ b/instana_client/models/trace_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.trace_groups_item import TraceGroupsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceGroupsResult(BaseModel): """ @@ -39,7 +40,8 @@ class TraceGroupsResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_impact_application_time_threshold.py b/instana_client/models/trace_impact_application_time_threshold.py index c2d9317b..caf0febe 100644 --- a/instana_client/models/trace_impact_application_time_threshold.py +++ b/instana_client/models/trace_impact_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_time_threshold import ApplicationTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceImpactApplicationTimeThreshold(ApplicationTimeThreshold): """ @@ -33,7 +34,8 @@ class TraceImpactApplicationTimeThreshold(ApplicationTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type", "requests"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_item.py b/instana_client/models/trace_item.py index de36039c..da0ef2a9 100644 --- a/instana_client/models/trace_item.py +++ b/instana_client/models/trace_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.trace import Trace from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceItem(BaseModel): """ @@ -33,7 +34,8 @@ class TraceItem(BaseModel): __properties: ClassVar[List[str]] = ["cursor", "trace"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_result.py b/instana_client/models/trace_result.py index ed3d36d4..50b35598 100644 --- a/instana_client/models/trace_result.py +++ b/instana_client/models/trace_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.trace_item import TraceItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceResult(BaseModel): """ @@ -39,7 +40,8 @@ class TraceResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trace_sampling_config.py b/instana_client/models/trace_sampling_config.py index 2b66c18b..97a88958 100644 --- a/instana_client/models/trace_sampling_config.py +++ b/instana_client/models/trace_sampling_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TraceSamplingConfig(BaseModel): """ @@ -41,7 +42,8 @@ class TraceSamplingConfig(BaseModel): __properties: ClassVar[List[str]] = ["createdAt", "enabled", "evaluationWindowMinutes", "retentionPercentage", "samplingFrequencyHours", "samplingRate", "samplingType", "tenantUnitId", "updatedAt", "volumeStrategy"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/traffic_blueprint_indicator.py b/instana_client/models/traffic_blueprint_indicator.py index 33911b52..5ab3b08b 100644 --- a/instana_client/models/traffic_blueprint_indicator.py +++ b/instana_client/models/traffic_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.service_level_indicator import ServiceLevelIndicator from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TrafficBlueprintIndicator(ServiceLevelIndicator): """ @@ -43,7 +44,8 @@ def traffic_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/trigger.py b/instana_client/models/trigger.py index 8a9c2bb7..0d4c84f6 100644 --- a/instana_client/models/trigger.py +++ b/instana_client/models/trigger.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.policy_scheduling import PolicyScheduling from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Trigger(BaseModel): """ @@ -43,7 +44,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/type_configuration.py b/instana_client/models/type_configuration.py index b8e7f963..910e6061 100644 --- a/instana_client/models/type_configuration.py +++ b/instana_client/models/type_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.policy_runnable import PolicyRunnable from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class TypeConfiguration(BaseModel): """ @@ -43,7 +44,8 @@ def name_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/unified_beacon.py b/instana_client/models/unified_beacon.py index eb0936d4..9f85fd07 100644 --- a/instana_client/models/unified_beacon.py +++ b/instana_client/models/unified_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UnifiedBeacon(BaseModel): """ @@ -37,7 +38,7 @@ class UnifiedBeacon(BaseModel): batch_size: Optional[StrictInt] = Field(default=None, alias="batchSize") beacon_clockskew: Optional[StrictInt] = Field(default=None, alias="beaconClockskew") beacon_id: Optional[StrictStr] = Field(default=None, alias="beaconId") - beacon_source: Optional[StrictStr] = Field(default=None, description="Source table: LEGACY (all_mobile_app_monitoring_beacons) or ACTION (all_session_replay_mobile_app_metadata)", alias="beaconSource") + beacon_source: Optional[StrictStr] = Field(default=None, description="Source table: LEGACY (all_mobile_app_monitoring_beacons) or ACTION (all_session_replay_mobile_app_metadata)", alias="beaconSource", json_schema_extra={"examples": ["LEGACY"]}) beacon_type: Optional[StrictStr] = Field(default=None, alias="beaconType") bundle_identifier: Optional[StrictStr] = Field(default=None, alias="bundleIdentifier") bytes_ingested: Optional[StrictInt] = Field(default=None, alias="bytesIngested") @@ -130,7 +131,8 @@ class UnifiedBeacon(BaseModel): __properties: ClassVar[List[str]] = ["accuracyRadius", "agentVersion", "appBuild", "appState", "appVersion", "availableMb", "backendTraceId", "batchSize", "beaconClockskew", "beaconId", "beaconSource", "beaconType", "bundleIdentifier", "bytesIngested", "bytesIngestedMetadata", "carrier", "city", "clockSkew", "coldStartTimeMs", "connectionType", "continent", "continentCode", "country", "countryCode", "currentAppState", "customEventName", "customMetric", "decodedBodySize", "deviceHardware", "deviceManufacturer", "deviceModel", "dropView", "duration", "effectiveConnectionType", "encodedBodySize", "errorCount", "errorId", "errorMessage", "errorType", "eventType", "frustrationSignal", "googlePlayServicesMissing", "hotStartTimeMs", "httpCallHeaders", "httpCallMethod", "httpCallOrigin", "httpCallPath", "httpCallStatus", "httpCallUrl", "ingestionTime", "internalMeta", "keyboardOperation", "latitude", "longitude", "maxMb", "meta", "mobileAppId", "mobileAppLabel", "orientationChange", "osName", "osVersion", "parentBeaconId", "parsedStackTrace", "performanceSubtype", "platform", "rateLimitBeaconType", "rateLimitCount", "rateLimitCustomMetricVal", "rateLimitTimeMax", "rateLimitTimeMin", "rooted", "scrollDirection", "scrollDuration", "sessionId", "sessionReplayStatus", "sessionReplayVersion", "stackTrace", "stackTraceKeyChecksum", "stackTraceKeyInformation", "stackTraceLine", "stackTraceParsingStatus", "subdivision", "subdivisionCode", "timestamp", "transferSize", "type", "useFeatures", "usedMb", "userEmail", "userId", "userIp", "userLanguages", "userName", "userSessionId", "view", "viewComponentClassName", "viewComponentId", "viewportHeight", "viewportWidth", "warmStartTimeMs"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -142,8 +144,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/unsupported_http_path_segment_matching_rule.py b/instana_client/models/unsupported_http_path_segment_matching_rule.py index 54946e1e..38d9ecf4 100644 --- a/instana_client/models/unsupported_http_path_segment_matching_rule.py +++ b/instana_client/models/unsupported_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UnsupportedHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ @@ -32,7 +33,8 @@ class UnsupportedHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): __properties: ClassVar[List[str]] = ["type", "unsupportedType"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/update_evaluation_request.py b/instana_client/models/update_evaluation_request.py index 39ddeac5..336e9519 100644 --- a/instana_client/models/update_evaluation_request.py +++ b/instana_client/models/update_evaluation_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UpdateEvaluationRequest(BaseModel): """ @@ -50,7 +51,8 @@ class UpdateEvaluationRequest(BaseModel): __properties: ClassVar[List[str]] = ["description", "evaluation_id", "evaluation_name", "evaluator_ids", "metadata", "model_names", "sampling_percentage", "schedule_enabled", "schedule_end_date", "schedule_end_occurrences", "schedule_end_type", "schedule_frequency", "schedule_start_time", "schedule_timezone", "schedule_week_days", "service_names", "time_before_run_hours", "time_before_run_minutes", "trace_ids"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,8 +64,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/updated_business_perspective_config.py b/instana_client/models/updated_business_perspective_config.py index 95257be5..03708b82 100644 --- a/instana_client/models/updated_business_perspective_config.py +++ b/instana_client/models/updated_business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UpdatedBusinessPerspectiveConfig(BaseModel): """ @@ -35,7 +36,8 @@ class UpdatedBusinessPerspectiveConfig(BaseModel): __properties: ClassVar[List[str]] = ["description", "name", "tagFilterExpression"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/usage_result.py b/instana_client/models/usage_result.py index 2178811f..172c47cb 100644 --- a/instana_client/models/usage_result.py +++ b/instana_client/models/usage_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.usage_result_items import UsageResultItems from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UsageResult(BaseModel): """ @@ -33,7 +34,8 @@ class UsageResult(BaseModel): __properties: ClassVar[List[str]] = ["items", "time"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/usage_result_items.py b/instana_client/models/usage_result_items.py index 48dc922b..9d2f371e 100644 --- a/instana_client/models/usage_result_items.py +++ b/instana_client/models/usage_result_items.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UsageResultItems(BaseModel): """ @@ -32,7 +33,8 @@ class UsageResultItems(BaseModel): __properties: ClassVar[List[str]] = ["name", "sims"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/user_basic_result.py b/instana_client/models/user_basic_result.py index 34ceaf86..4ae24c42 100644 --- a/instana_client/models/user_basic_result.py +++ b/instana_client/models/user_basic_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UserBasicResult(BaseModel): """ @@ -34,7 +35,8 @@ class UserBasicResult(BaseModel): __properties: ClassVar[List[str]] = ["email", "fullName", "id"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/user_impact_mobile_app_time_threshold.py b/instana_client/models/user_impact_mobile_app_time_threshold.py index 371acc14..c9a037ec 100644 --- a/instana_client/models/user_impact_mobile_app_time_threshold.py +++ b/instana_client/models/user_impact_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UserImpactMobileAppTimeThreshold(MobileAppTimeThreshold): """ @@ -42,7 +43,8 @@ def impact_measurement_method_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/user_impact_website_time_threshold.py b/instana_client/models/user_impact_website_time_threshold.py index e46ed2df..2ac8ee07 100644 --- a/instana_client/models/user_impact_website_time_threshold.py +++ b/instana_client/models/user_impact_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UserImpactWebsiteTimeThreshold(WebsiteTimeThreshold): """ @@ -42,7 +43,8 @@ def impact_measurement_method_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/user_result.py b/instana_client/models/user_result.py index bbb735c6..011a9a73 100644 --- a/instana_client/models/user_result.py +++ b/instana_client/models/user_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UserResult(BaseModel): """ @@ -38,7 +39,8 @@ class UserResult(BaseModel): __properties: ClassVar[List[str]] = ["email", "fullName", "groupCount", "id", "lastLoggedIn", "teamNames", "tfaEnabled"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/users_result.py b/instana_client/models/users_result.py index ce884808..9af84364 100644 --- a/instana_client/models/users_result.py +++ b/instana_client/models/users_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.user_result import UserResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class UsersResult(BaseModel): """ @@ -34,7 +35,8 @@ class UsersResult(BaseModel): __properties: ClassVar[List[str]] = ["invitations", "users"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/validated_alerting_channel_input_info.py b/instana_client/models/validated_alerting_channel_input_info.py index c1715352..66cfff29 100644 --- a/instana_client/models/validated_alerting_channel_input_info.py +++ b/instana_client/models/validated_alerting_channel_input_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ValidatedAlertingChannelInputInfo(BaseModel): """ @@ -58,7 +59,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/validated_alerting_configuration.py b/instana_client/models/validated_alerting_configuration.py index 24b579e3..66d37df5 100644 --- a/instana_client/models/validated_alerting_configuration.py +++ b/instana_client/models/validated_alerting_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.event_filtering_configuration import EventFilteringConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ValidatedAlertingConfiguration(BaseModel): """ @@ -44,7 +45,8 @@ class ValidatedAlertingConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["alertChannelNames", "alertName", "applicationNames", "customPayloadFields", "eventFilteringConfiguration", "id", "includeEntityNameInLegacyAlerts", "integrationIds", "invalid", "lastUpdated", "muteUntil"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py b/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py index 3c8c2b35..b746a68b 100644 --- a/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +++ b/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,6 +26,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ValidatedMaintenanceConfigV2WithStateAndOccurrence(BaseModel): """ @@ -57,7 +58,8 @@ def state_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,8 +71,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/validated_maintenance_config_with_status.py b/instana_client/models/validated_maintenance_config_with_status.py index a499d56b..0599ae74 100644 --- a/instana_client/models/validated_maintenance_config_with_status.py +++ b/instana_client/models/validated_maintenance_config_with_status.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.maintenance_window import MaintenanceWindow from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ValidatedMaintenanceConfigWithStatus(BaseModel): """ @@ -46,7 +47,8 @@ def status_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,8 +60,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/victor_ops_integration.py b/instana_client/models/victor_ops_integration.py index a179be62..5c574a44 100644 --- a/instana_client/models/victor_ops_integration.py +++ b/instana_client/models/victor_ops_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class VictorOpsIntegration(AbstractIntegration): """ @@ -34,7 +35,8 @@ class VictorOpsIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "apiKey", "routingKey"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_period_application_time_threshold.py b/instana_client/models/violations_in_period_application_time_threshold.py index f46cbf94..5eff6212 100644 --- a/instana_client/models/violations_in_period_application_time_threshold.py +++ b/instana_client/models/violations_in_period_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.application_time_threshold import ApplicationTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInPeriodApplicationTimeThreshold(ApplicationTimeThreshold): """ @@ -33,7 +34,8 @@ class ViolationsInPeriodApplicationTimeThreshold(ApplicationTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type", "violations"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_period_mobile_app_time_threshold.py b/instana_client/models/violations_in_period_mobile_app_time_threshold.py index fe547d53..59128607 100644 --- a/instana_client/models/violations_in_period_mobile_app_time_threshold.py +++ b/instana_client/models/violations_in_period_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInPeriodMobileAppTimeThreshold(MobileAppTimeThreshold): """ @@ -33,7 +34,8 @@ class ViolationsInPeriodMobileAppTimeThreshold(MobileAppTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type", "violations"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_period_website_time_threshold.py b/instana_client/models/violations_in_period_website_time_threshold.py index 4db71da4..c6f69795 100644 --- a/instana_client/models/violations_in_period_website_time_threshold.py +++ b/instana_client/models/violations_in_period_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInPeriodWebsiteTimeThreshold(WebsiteTimeThreshold): """ @@ -33,7 +34,8 @@ class ViolationsInPeriodWebsiteTimeThreshold(WebsiteTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type", "violations"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_application_time_threshold.py b/instana_client/models/violations_in_sequence_application_time_threshold.py index 32708ac7..22d9a7eb 100644 --- a/instana_client/models/violations_in_sequence_application_time_threshold.py +++ b/instana_client/models/violations_in_sequence_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.application_time_threshold import ApplicationTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceApplicationTimeThreshold(ApplicationTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceApplicationTimeThreshold(ApplicationTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_infra_time_threshold.py b/instana_client/models/violations_in_sequence_infra_time_threshold.py index 406553d1..6be2cbd1 100644 --- a/instana_client/models/violations_in_sequence_infra_time_threshold.py +++ b/instana_client/models/violations_in_sequence_infra_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.infra_time_threshold import InfraTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceInfraTimeThreshold(InfraTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceInfraTimeThreshold(InfraTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_log_time_threshold.py b/instana_client/models/violations_in_sequence_log_time_threshold.py index 197c8ff7..3e95889d 100644 --- a/instana_client/models/violations_in_sequence_log_time_threshold.py +++ b/instana_client/models/violations_in_sequence_log_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.log_time_threshold import LogTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceLogTimeThreshold(LogTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceLogTimeThreshold(LogTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py b/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py index c2acf417..fcf4ac1f 100644 --- a/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +++ b/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceMobileAppTimeThreshold(MobileAppTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceMobileAppTimeThreshold(MobileAppTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_synthetic_time_threshold.py b/instana_client/models/violations_in_sequence_synthetic_time_threshold.py index 891507bf..4a1ca66c 100644 --- a/instana_client/models/violations_in_sequence_synthetic_time_threshold.py +++ b/instana_client/models/violations_in_sequence_synthetic_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceSyntheticTimeThreshold(SyntheticTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceSyntheticTimeThreshold(SyntheticTimeThreshold): __properties: ClassVar[List[str]] = ["type", "violationsCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/violations_in_sequence_website_time_threshold.py b/instana_client/models/violations_in_sequence_website_time_threshold.py index 29b47a48..217ded35 100644 --- a/instana_client/models/violations_in_sequence_website_time_threshold.py +++ b/instana_client/models/violations_in_sequence_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ViolationsInSequenceWebsiteTimeThreshold(WebsiteTimeThreshold): """ @@ -31,7 +32,8 @@ class ViolationsInSequenceWebsiteTimeThreshold(WebsiteTimeThreshold): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -43,8 +45,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/watson_ai_ops_webhook_integration.py b/instana_client/models/watson_ai_ops_webhook_integration.py index 0166aada..47c3b37d 100644 --- a/instana_client/models/watson_ai_ops_webhook_integration.py +++ b/instana_client/models/watson_ai_ops_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WatsonAIOpsWebhookIntegration(AbstractIntegration): """ @@ -34,7 +35,8 @@ class WatsonAIOpsWebhookIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "headers", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,8 +48,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webex_teams_webhook_integration.py b/instana_client/models/webex_teams_webhook_integration.py index d944031f..07d431f6 100644 --- a/instana_client/models/webex_teams_webhook_integration.py +++ b/instana_client/models/webex_teams_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebexTeamsWebhookIntegration(AbstractIntegration): """ @@ -33,7 +34,8 @@ class WebexTeamsWebhookIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "webhookUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,8 +47,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webhook_integration.py b/instana_client/models/webhook_integration.py index 2223e424..2dd4a8f7 100644 --- a/instana_client/models/webhook_integration.py +++ b/instana_client/models/webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.o_auth_integration import OAuthIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebhookIntegration(AbstractIntegration): """ @@ -38,7 +39,8 @@ class WebhookIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "headers", "oauth", "oauthEnabled", "transformationExpression", "webhookUrls"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,8 +52,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webpage_action_configuration.py b/instana_client/models/webpage_action_configuration.py index 05352170..32d85f71 100644 --- a/instana_client/models/webpage_action_configuration.py +++ b/instana_client/models/webpage_action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebpageActionConfiguration(SyntheticTypeConfiguration): """ @@ -45,7 +46,8 @@ def browser_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,8 +59,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webpage_action_configuration_update.py b/instana_client/models/webpage_action_configuration_update.py index 8bfd04ca..cc3c694a 100644 --- a/instana_client/models/webpage_action_configuration_update.py +++ b/instana_client/models/webpage_action_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebpageActionConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -44,7 +45,8 @@ def browser_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,8 +58,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webpage_script_configuration.py b/instana_client/models/webpage_script_configuration.py index 22ef4f15..2eb5f8bd 100644 --- a/instana_client/models/webpage_script_configuration.py +++ b/instana_client/models/webpage_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebpageScriptConfiguration(SyntheticTypeConfiguration): """ @@ -48,7 +49,8 @@ def browser_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,8 +62,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/webpage_script_configuration_update.py b/instana_client/models/webpage_script_configuration_update.py index be8556da..e9b14075 100644 --- a/instana_client/models/webpage_script_configuration_update.py +++ b/instana_client/models/webpage_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebpageScriptConfigurationUpdate(SyntheticTypeConfigurationUpdate): """ @@ -47,7 +48,8 @@ def browser_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,8 +61,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website.py b/instana_client/models/website.py index 161a1231..df97ea0e 100644 --- a/instana_client/models/website.py +++ b/instana_client/models/website.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Website(BaseModel): """ @@ -35,7 +36,8 @@ class Website(BaseModel): __properties: ClassVar[List[str]] = ["appName", "businessCriticality", "id", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_alert_config.py b/instana_client/models/website_alert_config.py index 501eac2e..82371f3f 100644 --- a/instana_client/models/website_alert_config.py +++ b/instana_client/models/website_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteAlertConfig(BaseModel): """ @@ -62,7 +63,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -74,8 +76,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_alert_config_with_metadata.py b/instana_client/models/website_alert_config_with_metadata.py index f1a6707d..5f654bd4 100644 --- a/instana_client/models/website_alert_config_with_metadata.py +++ b/instana_client/models/website_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteAlertConfigWithMetadata(BaseModel): """ @@ -67,7 +68,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_alert_config_with_rbac_tag.py b/instana_client/models/website_alert_config_with_rbac_tag.py index 089c836b..bbfec21d 100644 --- a/instana_client/models/website_alert_config_with_rbac_tag.py +++ b/instana_client/models/website_alert_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ from instana_client.models.website_time_threshold import WebsiteTimeThreshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteAlertConfigWithRBACTag(BaseModel): """ @@ -69,7 +70,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -81,8 +83,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_alert_rule.py b/instana_client/models/website_alert_rule.py index c5623204..05d0951c 100644 --- a/instana_client/models/website_alert_rule.py +++ b/instana_client/models/website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -53,7 +54,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -82,8 +84,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[CustomEventWebsiteAlertRule, SlownessWebsiteAlertRule, SpecificJsErrorsWebsiteAlertRule, StatusCodeWebsiteAlertRule, ThroughputWebsiteAlertRule]]: diff --git a/instana_client/models/website_apdex_entity.py b/instana_client/models/website_apdex_entity.py index 05309597..0a05ef71 100644 --- a/instana_client/models/website_apdex_entity.py +++ b/instana_client/models/website_apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteApdexEntity(ApdexEntity): """ @@ -43,7 +44,8 @@ def beacon_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_beacon_groups_item.py b/instana_client/models/website_beacon_groups_item.py index e8361fb4..2eccc29a 100644 --- a/instana_client/models/website_beacon_groups_item.py +++ b/instana_client/models/website_beacon_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteBeaconGroupsItem(BaseModel): """ @@ -35,7 +36,8 @@ class WebsiteBeaconGroupsItem(BaseModel): __properties: ClassVar[List[str]] = ["cursor", "earliestTimestamp", "metrics", "name"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_beacon_groups_result.py b/instana_client/models/website_beacon_groups_result.py index 9bce7c14..1455b81a 100644 --- a/instana_client/models/website_beacon_groups_result.py +++ b/instana_client/models/website_beacon_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteBeaconGroupsResult(BaseModel): """ @@ -39,7 +40,8 @@ class WebsiteBeaconGroupsResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_beacon_result.py b/instana_client/models/website_beacon_result.py index 69336ffc..f72bfb6f 100644 --- a/instana_client/models/website_beacon_result.py +++ b/instana_client/models/website_beacon_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from instana_client.models.website_beacons_item import WebsiteBeaconsItem from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteBeaconResult(BaseModel): """ @@ -39,7 +40,8 @@ class WebsiteBeaconResult(BaseModel): __properties: ClassVar[List[str]] = ["adjustedTimeframe", "canLoadMore", "items", "totalHits", "totalRepresentedItemCount", "totalRetainedItemCount"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_beacon_tag_group.py b/instana_client/models/website_beacon_tag_group.py index 5712acba..326ce15e 100644 --- a/instana_client/models/website_beacon_tag_group.py +++ b/instana_client/models/website_beacon_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteBeaconTagGroup(BaseModel): """ @@ -41,7 +42,8 @@ def groupby_tag_entity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_beacons_item.py b/instana_client/models/website_beacons_item.py index e6aedfc2..a83840c8 100644 --- a/instana_client/models/website_beacons_item.py +++ b/instana_client/models/website_beacons_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteBeaconsItem(BaseModel): """ @@ -35,7 +36,8 @@ class WebsiteBeaconsItem(BaseModel): __properties: ClassVar[List[str]] = ["beacon", "cursor", "impactedBeaconInfo"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_event_based_sli_entity.py b/instana_client/models/website_event_based_sli_entity.py index 3b25388c..d4bf859c 100644 --- a/instana_client/models/website_event_based_sli_entity.py +++ b/instana_client/models/website_event_based_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteEventBasedSliEntity(SliEntity): """ @@ -43,7 +44,8 @@ def beacon_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_event_result.py b/instana_client/models/website_event_result.py index d737b9e7..b0d02b48 100644 --- a/instana_client/models/website_event_result.py +++ b/instana_client/models/website_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.event_result import EventResult from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteEventResult(EventResult): """ @@ -32,7 +33,8 @@ class WebsiteEventResult(EventResult): __properties: ClassVar[List[str]] = ["aggregated", "detail", "end", "entityLabel", "entityName", "entityType", "eventId", "eventSpecificationId", "fixSuggestion", "metadata", "metrics", "probableCause", "problem", "recentEvents", "severity", "shortCode", "snapshotId", "start", "state", "triggeringEventId", "type", "websiteId"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_metric_result.py b/instana_client/models/website_metric_result.py index 04617b80..d6a5e602 100644 --- a/instana_client/models/website_metric_result.py +++ b/instana_client/models/website_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteMetricResult(BaseModel): """ @@ -32,7 +33,8 @@ class WebsiteMetricResult(BaseModel): __properties: ClassVar[List[str]] = ["empty"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,8 +46,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_monitoring_beacon.py b/instana_client/models/website_monitoring_beacon.py index afc7a1b4..248906b5 100644 --- a/instana_client/models/website_monitoring_beacon.py +++ b/instana_client/models/website_monitoring_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.js_stack_trace_line import JsStackTraceLine from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteMonitoringBeacon(BaseModel): """ @@ -138,7 +139,8 @@ class WebsiteMonitoringBeacon(BaseModel): __properties: ClassVar[List[str]] = ["accuracyRadius", "accurateTimingsAvailable", "agentVersion", "appCacheTime", "backendTime", "backendTraceId", "batchSize", "beaconId", "browserName", "browserVersion", "bytesIngested", "cacheInteraction", "childrenTime", "city", "clockSkew", "componentStack", "connectionType", "continent", "continentCode", "country", "countryCode", "cspBlockedUri", "cspColumnNumber", "cspDisposition", "cspEffectiveDirective", "cspLineNumber", "cspOriginalPolicy", "cspSample", "cspSourceFile", "cumulativeLayoutShift", "customEventName", "customMetric", "decodedBodySize", "deprecations", "deviceType", "dnsTime", "domTime", "duration", "encodedBodySize", "errorCount", "errorId", "errorMessage", "errorType", "firstContentfulPaintTime", "firstInputDelayTime", "firstPaintTime", "frontendTime", "graphqlOperationName", "graphqlOperationType", "httpCallAsynchronous", "httpCallCorrelationAttempted", "httpCallHeaders", "httpCallMethod", "httpCallOrigin", "httpCallPath", "httpCallStatus", "httpCallUrl", "initiator", "interactionNextPaint", "internalMeta", "label", "largestContentfulPaintTime", "latitude", "locationOrigin", "locationPath", "locationUrl", "longitude", "meta", "onLoadTime", "osName", "osVersion", "page", "pageLoadId", "parentBeaconId", "parsedStackTrace", "phase", "processingTime", "redirectTime", "requestTime", "resourceType", "responseTime", "sessionId", "sessionReplayStatus", "snippetVersion", "sslTime", "stackTrace", "stackTraceParsingStatus", "stackTraceReadability", "subdivision", "subdivisionCode", "tcpTime", "timestamp", "transferSize", "type", "unloadTime", "useFeatures", "userEmail", "userId", "userIp", "userLanguages", "userName", "websiteId", "websiteLabel", "windowHeight", "windowHidden", "windowWidth"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -150,8 +152,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_monitoring_metric_description.py b/instana_client/models/website_monitoring_metric_description.py index 7e6813a7..d3e83d0a 100644 --- a/instana_client/models/website_monitoring_metric_description.py +++ b/instana_client/models/website_monitoring_metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteMonitoringMetricDescription(BaseModel): """ @@ -58,7 +59,8 @@ def default_aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,8 +72,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_monitoring_metrics_configuration.py b/instana_client/models/website_monitoring_metrics_configuration.py index 6c612721..06a14b5b 100644 --- a/instana_client/models/website_monitoring_metrics_configuration.py +++ b/instana_client/models/website_monitoring_metrics_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteMonitoringMetricsConfiguration(BaseModel): """ @@ -41,7 +42,8 @@ def aggregation_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_slo_entity.py b/instana_client/models/website_slo_entity.py index ad8a4d3f..0667f1b5 100644 --- a/instana_client/models/website_slo_entity.py +++ b/instana_client/models/website_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteSloEntity(SloEntity): """ @@ -41,7 +42,8 @@ def beacon_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,8 +55,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_time_based_sli_entity.py b/instana_client/models/website_time_based_sli_entity.py index fa817c93..e75d2e4c 100644 --- a/instana_client/models/website_time_based_sli_entity.py +++ b/instana_client/models/website_time_based_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WebsiteTimeBasedSliEntity(SliEntity): """ @@ -42,7 +43,8 @@ def beacon_type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,8 +56,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/website_time_threshold.py b/instana_client/models/website_time_threshold.py index 59a933fe..d286ccd9 100644 --- a/instana_client/models/website_time_threshold.py +++ b/instana_client/models/website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -39,7 +40,8 @@ class WebsiteTimeThreshold(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow", "type"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -68,8 +70,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Union[UserImpactWebsiteTimeThreshold, ViolationsInPeriodWebsiteTimeThreshold, ViolationsInSequenceWebsiteTimeThreshold]]: diff --git a/instana_client/models/widget.py b/instana_client/models/widget.py index f8d0d4db..ef47dcca 100644 --- a/instana_client/models/widget.py +++ b/instana_client/models/widget.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class Widget(BaseModel): """ @@ -39,7 +40,8 @@ class Widget(BaseModel): __properties: ClassVar[List[str]] = ["config", "height", "id", "title", "type", "width", "x", "y"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,8 +53,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/with_meta_data.py b/instana_client/models/with_meta_data.py index 0ab93d92..7acbe8c8 100644 --- a/instana_client/models/with_meta_data.py +++ b/instana_client/models/with_meta_data.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ from instana_client.models.threshold import Threshold from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WithMetaData(BaseModel): """ @@ -67,7 +68,8 @@ def granularity_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,8 +81,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/with_resolved_name.py b/instana_client/models/with_resolved_name.py index 40b7f798..d3bd41a7 100644 --- a/instana_client/models/with_resolved_name.py +++ b/instana_client/models/with_resolved_name.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class WithResolvedName(BaseModel): """ @@ -43,7 +44,8 @@ def type_validate_enum(cls, value): return value model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,8 +57,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/models/z_chat_ops_integration.py b/instana_client/models/z_chat_ops_integration.py index 94d1b2bf..bb1782da 100644 --- a/instana_client/models/z_chat_ops_integration.py +++ b/instana_client/models/z_chat_ops_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self +from pydantic_core import to_jsonable_python class ZChatOpsIntegration(AbstractIntegration): """ @@ -35,7 +36,8 @@ class ZChatOpsIntegration(AbstractIntegration): __properties: ClassVar[List[str]] = ["id", "kind", "name", "timezone", "bearerAuthToken", "channels", "zchatOpsIncidentsUrl"] model_config = ConfigDict( - populate_by_name=True, + validate_by_name=True, + validate_by_alias=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,8 +49,7 @@ def to_str(self) -> str: 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()) + return json.dumps(to_jsonable_python(self.to_dict())) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/instana_client/rest.py b/instana_client/rest.py index 11b48008..2a43eef6 100644 --- a/instana_client/rest.py +++ b/instana_client/rest.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -49,12 +49,17 @@ def read(self): self.data = self.response.data return self.data + @property + def headers(self): + """Returns a dictionary of response headers.""" + return self.response.headers + def getheaders(self): - """Returns a dictionary of the response headers.""" + """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers def getheader(self, name, default=None): - """Returns a given response header.""" + """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/openapi-generator-config.json b/openapi-generator-config.json index 78f022fb..628b85ac 100644 --- a/openapi-generator-config.json +++ b/openapi-generator-config.json @@ -1,6 +1,6 @@ { "packageName": "instana_client", "projectName": "instana-client", - "packageVersion": "1.1.4", + "packageVersion": "1.1.5", "packageUrl": "https://github.com/instana/client-python" } diff --git a/openapi.yaml b/openapi.yaml index 3e29c43e..15f81336 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -7,7 +7,7 @@ info: description: Documentation for INSTANA REST API termsOfService: https://www.instana.com/terms-of-use/ title: Instana REST API documentation - version: 1.328.1128 + version: 1.329.1386 x-description: info x-ibm-ahub-try: true x-logo: @@ -199,6 +199,7 @@ paths: summary: Generate Apdex report tags: - Apdex Report + x-ibm-ahub-byok: true /api/application-monitoring/analyze/backend-correlation: get: description: |- @@ -234,6 +235,7 @@ paths: summary: Resolve Trace IDs from Monitoring Beacons. tags: - Application Analyze + x-ibm-ahub-byok: true /api/application-monitoring/analyze/call-groups: post: description: |2- @@ -320,6 +322,7 @@ paths: tags: - Application Analyze x-description: getCallGroup + x-ibm-ahub-byok: true /api/application-monitoring/analyze/trace-groups: post: description: "In this endpoint, the supported `groupbyTag` are `trace.endpoint.name`\ @@ -398,6 +401,7 @@ paths: tags: - Application Analyze x-description: getTraceGroups + x-ibm-ahub-byok: true /api/application-monitoring/analyze/traces: post: description: |2- @@ -480,6 +484,7 @@ paths: tags: - Application Analyze x-description: getTraces + x-ibm-ahub-byok: true /api/application-monitoring/applications: get: description: |- @@ -549,6 +554,7 @@ paths: summary: Get applications tags: - Application Resources + x-ibm-ahub-byok: true /api/application-monitoring/applications;id={applicationId}/services;id={serviceId}: get: description: |- @@ -638,6 +644,7 @@ paths: summary: Get applications/services tags: - Application Resources + x-ibm-ahub-byok: true /api/application-monitoring/applications;id={applicationId}/services;id={serviceId}/endpoints;id={endpointId}: get: description: |- @@ -743,6 +750,7 @@ paths: summary: Get endpoints tags: - Application Resources + x-ibm-ahub-byok: true /api/application-monitoring/catalog: get: description: |2- @@ -836,6 +844,7 @@ paths: tags: - Application Catalog x-description: getApplicationTagsCatalog + x-ibm-ahub-byok: true /api/application-monitoring/catalog/metrics: get: description: |2- @@ -867,6 +876,7 @@ paths: tags: - Application Catalog x-description: getApplicationCatalogMetrics + x-ibm-ahub-byok: true /api/application-monitoring/catalog/tags: get: deprecated: true @@ -931,6 +941,7 @@ paths: tags: - Application Catalog x-description: getApplicationCatalogTags + x-ibm-ahub-byok: true /api/application-monitoring/metrics/applications: post: description: |- @@ -1001,6 +1012,7 @@ paths: summary: Get Application Metrics tags: - Application Metrics + x-ibm-ahub-byok: true /api/application-monitoring/metrics/endpoints: post: description: |- @@ -1079,6 +1091,7 @@ paths: summary: Get Endpoint metrics tags: - Application Metrics + x-ibm-ahub-byok: true /api/application-monitoring/metrics/services: post: description: |- @@ -1163,6 +1176,7 @@ paths: summary: Get Service metrics tags: - Application Metrics + x-ibm-ahub-byok: true /api/application-monitoring/services: get: description: |- @@ -1234,6 +1248,7 @@ paths: summary: Get services tags: - Application Resources + x-ibm-ahub-byok: true /api/application-monitoring/settings/application: get: description: |- @@ -1304,6 +1319,7 @@ paths: summary: All Application configurations tags: - Application Settings + x-ibm-ahub-byok: true post: description: "Ignores the provided business criticality of the application;\ \ business criticality can only be set with the \"Batch update application\ @@ -1410,6 +1426,7 @@ paths: tags: - Application Settings x-description: addApplicationConfig + x-ibm-ahub-byok: true /api/application-monitoring/settings/application/batch-business-criticality: patch: description: Updates the business criticality of one or more Application Perspectives @@ -1443,6 +1460,7 @@ paths: summary: Batch update application business criticality tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/application/{id}: delete: description: |- @@ -1469,12 +1487,16 @@ paths: description: Unauthorized access - requires user authentication. '403': description: Insufficient permissions or limited in access. + '412': + description: Pre-Condition Failed — the targeted AP is a ContributionFilter + AP managed by a group or team and cannot be deleted directly. security: - ApiKeyAuth: - ConfigureServiceMapping summary: Delete application configuration tags: - Application Settings + x-ibm-ahub-byok: true get: description: |- Use this API endpoint if one wants to retrieve an Application Perspective with its configuration setting. @@ -1553,6 +1575,7 @@ paths: summary: Application configuration tags: - Application Settings + x-ibm-ahub-byok: true put: description: "Does not allow changing the business criticality of an application;\ \ this must be done with the \"Batch update application business criticality\"\ @@ -1666,6 +1689,7 @@ paths: tags: - Application Settings x-description: updateApplicationConfig + x-ibm-ahub-byok: true /api/application-monitoring/settings/endpoint: get: description: |- @@ -1703,6 +1727,7 @@ paths: summary: All Endpoint configurations tags: - Application Settings + x-ibm-ahub-byok: true post: description: |- Use this API endpoint if one wants to create an endpoint configuration of a service. @@ -1745,6 +1770,7 @@ paths: summary: Create endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/endpoint/{id}: delete: description: |- @@ -1779,6 +1805,7 @@ paths: summary: Delete endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true get: description: |- Use this API endpoint if one wants to retrieve the endpoint configuration of a service. @@ -1822,6 +1849,7 @@ paths: summary: Endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true put: description: |- Use this API endpoint if one wants to update an existing endpoint configuration of a service. @@ -1890,6 +1918,7 @@ paths: summary: Update endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/http-endpoint: get: deprecated: true @@ -1931,6 +1960,7 @@ paths: summary: All HTTP endpoint configurations tags: - Application Settings + x-ibm-ahub-byok: true post: deprecated: true description: |- @@ -1982,6 +2012,7 @@ paths: summary: Create HTTP endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/http-endpoint/{id}: delete: deprecated: true @@ -2016,6 +2047,7 @@ paths: summary: Delete HTTP endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true get: deprecated: true description: |- @@ -2064,6 +2096,7 @@ paths: summary: HTTP Endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true put: deprecated: true description: |- @@ -2133,6 +2166,7 @@ paths: summary: Update HTTP endpoint configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/manual-service: get: description: |2- @@ -2171,6 +2205,7 @@ paths: tags: - Application Settings x-description: getAllManualServiceConfigs + x-ibm-ahub-byok: true post: description: |2- @@ -2227,6 +2262,7 @@ paths: tags: - Application Settings x-description: addManualServiceConfigs + x-ibm-ahub-byok: true put: description: |2- @@ -2287,6 +2323,7 @@ paths: tags: - Application Settings x-description: replaceAllManualServiceConfigs + x-ibm-ahub-byok: true /api/application-monitoring/settings/manual-service/{id}: delete: description: |2- @@ -2313,6 +2350,7 @@ paths: tags: - Application Settings x-description: deleteManualServiceConfigs + x-ibm-ahub-byok: true put: description: |2- @@ -2377,6 +2415,7 @@ paths: tags: - Application Settings x-description: updateManualServiceConfigs + x-ibm-ahub-byok: true /api/application-monitoring/settings/service: get: description: |- @@ -2412,6 +2451,7 @@ paths: summary: All service configurations tags: - Application Settings + x-ibm-ahub-byok: true post: description: |- Use this API endpoint if one wants to create a custom service rule. @@ -2469,6 +2509,7 @@ paths: summary: Add service configuration tags: - Application Settings + x-ibm-ahub-byok: true put: description: |- Use this API endpoint if one wants to modify 1 or more existing service configuration. @@ -2520,6 +2561,7 @@ paths: summary: Replace all service configurations tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/service/order: put: description: |- @@ -2558,6 +2600,7 @@ paths: summary: Order of service configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/settings/service/{id}: delete: description: |- @@ -2588,6 +2631,7 @@ paths: summary: Delete service configuration tags: - Application Settings + x-ibm-ahub-byok: true get: description: |- Use this API endpoint if one wants to retrieve a particular custom service rule. @@ -2633,6 +2677,7 @@ paths: summary: Service configuration tags: - Application Settings + x-ibm-ahub-byok: true put: description: |- Use this API endpoint if one wants to update a particular custom service rule. @@ -2691,6 +2736,7 @@ paths: summary: Update service configuration tags: - Application Settings + x-ibm-ahub-byok: true /api/application-monitoring/topology/services: get: description: | @@ -2767,6 +2813,7 @@ paths: summary: Gets the service topology tags: - Application Topology + x-ibm-ahub-byok: true /api/application-monitoring/v2/analyze/traces/{id}: get: description: |- @@ -2853,6 +2900,7 @@ paths: summary: Get trace detail tags: - Application Analyze + x-ibm-ahub-byok: true /api/application-monitoring/v2/analyze/traces/{traceId}/calls/{callId}/details: get: description: |- @@ -2952,6 +3000,7 @@ paths: summary: Get call detail tags: - Application Analyze + x-ibm-ahub-byok: true /api/application-monitoring/v2/metrics: post: description: |- @@ -3003,6 +3052,7 @@ paths: summary: Get Application Data Metrics tags: - Application Metrics + x-ibm-ahub-byok: true /api/automation/actioninstances: delete: description: Deletes the automation action run results from the action run history. @@ -3108,6 +3158,7 @@ paths: summary: Delete automation action run results. tags: - Action History + x-ibm-ahub-byok: true get: description: Get the details of automation action run results from action run history. The results are filtered by the filters in the query parameters. @@ -3261,6 +3312,7 @@ paths: summary: Get the details of automation action run results from action run history. tags: - Action History + x-ibm-ahub-byok: true post: description: Submits the automation action for execution on an agent. The automation action to execute and the agent on which to execute the action must be specified @@ -3328,6 +3380,7 @@ paths: summary: Run an automation action. tags: - Action History + x-ibm-ahub-byok: true /api/automation/actioninstances/{actionInstanceId}: delete: description: Deletes the automation action run result specified in the request @@ -3385,6 +3438,7 @@ paths: by ID. tags: - Action History + x-ibm-ahub-byok: true get: description: Get the details of automation action run result specified in the request path from action run history. The automation action run result will @@ -3471,6 +3525,7 @@ paths: run history. tags: - Action History + x-ibm-ahub-byok: true /api/automation/actions: get: description: Get all automation actions. When using personal access tokens, @@ -3524,6 +3579,7 @@ paths: summary: Get all automation actions. tags: - Action Catalog + x-ibm-ahub-byok: true /api/automation/actions/{id}: get: description: Get an automation action by ID specified in the request path. When @@ -3583,6 +3639,7 @@ paths: summary: Get an automation action by ID. tags: - Action Catalog + x-ibm-ahub-byok: true /api/automation/ai/action/match: get: description: Get automation actions that match based on application ID or snapshot @@ -3629,6 +3686,7 @@ paths: summary: Get action matches by application ID or snapshot ID. tags: - Action Catalog + x-ibm-ahub-byok: true post: description: Get automation actions that match the incident or issue data in the request body. @@ -3699,6 +3757,7 @@ paths: summary: Get automation actions that match the incidents or issues. tags: - Action Catalog + x-ibm-ahub-byok: true /api/automation/parameters/dynamic: put: operationId: resolve @@ -3736,6 +3795,7 @@ paths: summary: Resolve dynamic parameter values tags: - Action Catalog + x-ibm-ahub-byok: true /api/automation/parameters/dynamic/catalog: get: operationId: getDynamicParametersTagCatalog @@ -3776,6 +3836,7 @@ paths: tags: - Action Catalog x-description: getDynamicParametersTagCatalog + x-ibm-ahub-byok: true /api/automation/policies: get: description: Returns all the automation policies filtered by the values in optional @@ -3870,6 +3931,7 @@ paths: summary: Get all automation policies. tags: - Policies + x-ibm-ahub-byok: true post: description: Creates a new automation policy. Policy creation requires `Configuration of automation policies` permission. @@ -3958,6 +4020,7 @@ paths: summary: Create an automation policy. tags: - Policies + x-ibm-ahub-byok: true /api/automation/policies/bulk: post: description: Creates a list of automation policies. Policy creation requires @@ -3994,6 +4057,7 @@ paths: summary: Create automation policies. tags: - Policies + x-ibm-ahub-byok: true /api/automation/policies/{id}: delete: description: Deletes an automation policy by identifier. Policy deletion requires @@ -4022,6 +4086,7 @@ paths: summary: Deletes an automation policy by identifier. tags: - Policies + x-ibm-ahub-byok: true get: description: Returns the automation policy filtered by the ID in request parameter. When using personal access tokens, the user must have at least `Viewer` access @@ -4095,6 +4160,7 @@ paths: summary: Get an automation policy by ID. tags: - Policies + x-ibm-ahub-byok: true put: description: Updates an automation policy by identifier. Policy updates requires `Configuration of automation policies` permission. When using personal tokens @@ -4191,6 +4257,161 @@ paths: summary: Updates an automation policy by identifier. tags: - Policies + x-ibm-ahub-byok: true + /api/automation/policies/{id}/disable: + put: + description: Disables an automation policy by identifier. Policy updates require + `Configuration of automation policies` permission. When using personal tokens + the automation policies updated are based on the access set in `Limited access` + permission settings. + operationId: disablePolicy + parameters: + - description: Automation policy ID to disable + example: a14700b0-401b-47eb-a751-deda0035fde3 + in: path + name: id + required: true + schema: + type: string + responses: + '200': + content: + application/json: + example: + id: a14700b0-401b-47eb-a751-deda0035fde3 + name: Policy for test + description: Policy for test + trigger: + type: customEvent + id: C3Ha8PffQHfJ0Hk6 + name: Test Event + typeConfigurations: + - name: manual + runnable: + type: action + id: d473c1b0-0740-4d08-95fe-31e5d0a9faff + runConfiguration: + actions: + - action: + id: d473c1b0-0740-4d08-95fe-31e5d0a9faff + name: Hello World + description: Simple script action for testing + type: SCRIPT + fields: + - name: subtype + description: script subtype + encoding: base64 + value: YmFzaA== + secured: false + - name: script_ssh + description: script content + encoding: base64 + value: ZWNobyBoZWxsbyB3b3JsZA== + secured: false + - name: timeout + description: timeout of the action execution in seconds + encoding: ascii + value: '' + secured: false + inputParameters: [ + ] + tags: + - Test + createdAt: 1.694442511129923E9 + modifiedAt: 1.703191040321448E9 + schema: + $ref: '#/components/schemas/Policy' + description: Automation policy successfully disabled. + '403': + description: Insufficient permissions. + '404': + description: Automation policy not found. + '500': + description: Server Error. + security: + - ApiKeyAuth: + - canConfigureAutomationPolicies + summary: Disables an automation policy by identifier. + tags: + - Policies + x-ibm-ahub-byok: true + /api/automation/policies/{id}/enable: + put: + description: Enables an automation policy by identifier. Policy updates require + `Configuration of automation policies` permission. When using personal tokens + the automation policies updated are based on the access set in `Limited access` + permission settings. + operationId: enablePolicy + parameters: + - description: Automation policy ID to enable + example: a14700b0-401b-47eb-a751-deda0035fde3 + in: path + name: id + required: true + schema: + type: string + responses: + '200': + content: + application/json: + example: + id: a14700b0-401b-47eb-a751-deda0035fde3 + name: Policy for test + description: Policy for test + trigger: + type: customEvent + id: C3Ha8PffQHfJ0Hk6 + name: Test Event + typeConfigurations: + - name: manual + runnable: + type: action + id: d473c1b0-0740-4d08-95fe-31e5d0a9faff + runConfiguration: + actions: + - action: + id: d473c1b0-0740-4d08-95fe-31e5d0a9faff + name: Hello World + description: Simple script action for testing + type: SCRIPT + fields: + - name: subtype + description: script subtype + encoding: base64 + value: YmFzaA== + secured: false + - name: script_ssh + description: script content + encoding: base64 + value: ZWNobyBoZWxsbyB3b3JsZA== + secured: false + - name: timeout + description: timeout of the action execution in seconds + encoding: ascii + value: '' + secured: false + inputParameters: [ + ] + tags: + - Test + createdAt: 1.694442511129923E9 + modifiedAt: 1.703191040321448E9 + schema: + $ref: '#/components/schemas/Policy' + description: Automation policy successfully enabled. + '403': + description: Insufficient permissions. + '404': + description: Automation policy not found. + '500': + description: Server Error. + security: + - ApiKeyAuth: + - canConfigureAutomationPolicies + summary: Enables an automation policy by identifier. + tags: + - Policies + x-ibm-ahub-byok: true /api/business-monitoring/activities: post: operationId: getActivities @@ -4213,6 +4434,7 @@ paths: summary: Get Business Activities tags: - Business Monitoring + x-ibm-ahub-byok: true /api/business-monitoring/activities/csv: post: operationId: getActivitiesCsv @@ -4235,6 +4457,7 @@ paths: summary: Download Business Activities tags: - Business Monitoring + x-ibm-ahub-byok: true /api/business-monitoring/business-perspectives: get: operationId: getBusinessPerspectives @@ -4287,6 +4510,7 @@ paths: summary: Get all business perspectives tags: - Business Monitoring + x-ibm-ahub-byok: true post: operationId: createBusinessPerspective requestBody: @@ -4381,6 +4605,7 @@ paths: tags: - Business Monitoring x-description: createBusinessPerspective + x-ibm-ahub-byok: true /api/business-monitoring/business-perspectives/{id}: delete: operationId: deleteBusinessPerspective @@ -4402,6 +4627,7 @@ paths: summary: Delete business perspective tags: - Business Monitoring + x-ibm-ahub-byok: true get: operationId: getBusinessPerspective parameters: @@ -4459,6 +4685,7 @@ paths: summary: Get business perspective tags: - Business Monitoring + x-ibm-ahub-byok: true put: operationId: updateBusinessPerspective parameters: @@ -4558,6 +4785,7 @@ paths: tags: - Business Monitoring x-description: updateBusinessPerspective + x-ibm-ahub-byok: true /api/business-monitoring/catalog: get: operationId: getBusinessTagCatalog @@ -4747,6 +4975,7 @@ paths: tags: - Business Monitoring x-description: getBusinessTagCatalog + x-ibm-ahub-byok: true /api/cassandra/metrics: post: operationId: getCassandraMetrics @@ -4767,6 +4996,7 @@ paths: tags: - Infrastructure Metrics x-description: getCassandraMetrics + x-ibm-ahub-byok: true /api/custom-dashboard: get: description: |- @@ -4824,6 +5054,7 @@ paths: summary: Get accessible custom dashboards tags: - Custom Dashboards + x-ibm-ahub-byok: true post: description: |2- @@ -4853,6 +5084,7 @@ paths: summary: Add custom dashboard tags: - Custom Dashboards + x-ibm-ahub-byok: true /api/custom-dashboard/shareable-api-tokens: get: description: |- @@ -4883,6 +5115,7 @@ paths: summary: Get all API tokens. tags: - Custom Dashboards + x-ibm-ahub-byok: true /api/custom-dashboard/shareable-users: get: description: |- @@ -4913,6 +5146,7 @@ paths: summary: Get all users (without invitations). tags: - Custom Dashboards + x-ibm-ahub-byok: true /api/custom-dashboard/{customDashboardId}: delete: description: |2- @@ -4934,6 +5168,7 @@ paths: summary: Remove custom dashboard tags: - Custom Dashboards + x-ibm-ahub-byok: true get: description: |- Get all Custom Dashboard Info for specified customDashboardId. @@ -5011,6 +5246,7 @@ paths: summary: Get custom dashboard tags: - Custom Dashboards + x-ibm-ahub-byok: true put: description: |2- @@ -5046,6 +5282,7 @@ paths: summary: Update custom dashboard tags: - Custom Dashboards + x-ibm-ahub-byok: true /api/custom-entitytypes: get: description: This end point lists custom Entity Type Definition @@ -5063,6 +5300,7 @@ paths: summary: List custom Entity Type Definition tags: - Custom Entities + x-ibm-ahub-byok: true post: description: This end point creates a custom entity type operationId: createCustomEntities @@ -5087,6 +5325,7 @@ paths: summary: Create a Custom Entity type tags: - Custom Entities + x-ibm-ahub-byok: true /api/custom-entitytypes/{id}: delete: description: This end point deletes a custom Entity type definition @@ -5118,6 +5357,7 @@ paths: summary: Delete a Custom Entity Type tags: - Custom Entities + x-ibm-ahub-byok: true get: description: This endpoint gets custom Entity Type by ID operationId: getCustomEntity @@ -5140,6 +5380,7 @@ paths: summary: Get custom Entity Types tags: - Custom Entities + x-ibm-ahub-byok: true put: description: This end points updates the definition of a custom entity type operationId: updateCustomEntity @@ -5170,6 +5411,7 @@ paths: summary: Update a Custom Entity Type tags: - Custom Entities + x-ibm-ahub-byok: true /api/encrypt: post: operationId: encrypt @@ -5185,6 +5427,7 @@ paths: schema: type: string description: default response + x-ibm-ahub-byok: true /api/eum/impact/report/{eventId}: get: description: Gets a report of users impacted by an event which was created from @@ -5216,6 +5459,7 @@ paths: summary: Get impacted users report tags: - End User Monitoring + x-ibm-ahub-byok: true /api/evaluator: get: description: Fetch all evaluator configurations for the current tenant unit. @@ -5233,6 +5477,7 @@ paths: summary: Get all evaluators tags: - LLM Evaluation + x-ibm-ahub-byok: true put: description: Create a new evaluator or update an existing one. Returns the evaluator ID. @@ -5253,12 +5498,16 @@ paths: schema: $ref: '#/components/schemas/Evaluator' description: OK + '400': + description: Bad Request - Name is blank, reserved, already in use, or a + built-in evaluator is being renamed security: - ApiKeyAuth: - CanConfigureGenAiEvaluations summary: Create or update evaluator tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/evaluator/{evaluatorId}: delete: description: Delete an evaluator configuration by its ID. @@ -5284,6 +5533,7 @@ paths: summary: Delete evaluator tags: - LLM Evaluation + x-ibm-ahub-byok: true get: description: Fetch a specific evaluator by its ID. operationId: getEvaluator @@ -5310,6 +5560,7 @@ paths: summary: Get evaluator by ID tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/evaluator/{evaluatorId}/reset: post: description: Reset a built-in evaluator to its system default configuration @@ -5335,6 +5586,7 @@ paths: summary: Reset built-in evaluator tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/events: get: description: 'Get all Events within a timeframe. The timeframe is defined as @@ -5474,6 +5726,7 @@ paths: summary: Get all Events tags: - Events + x-ibm-ahub-byok: true post: description: 'Gets a set of events by their IDs. ' operationId: getEventsByIds @@ -5556,6 +5809,7 @@ paths: summary: Get Events by IDs tags: - Events + x-ibm-ahub-byok: true /api/events/agent-monitoring-events: get: description: 'Gets all Agent Monitoring Events within a timeframe. The timeframe @@ -5640,6 +5894,7 @@ paths: summary: Get Agent Monitoring Events tags: - Events + x-ibm-ahub-byok: true /api/events/kubernetes-info-events: get: description: 'Gets all Kubernetes Info Events within a timeframe. The timeframe @@ -5720,6 +5975,7 @@ paths: summary: Get Kubernetes Info Events tags: - Events + x-ibm-ahub-byok: true /api/events/settings/alert-configs/bulk/delete: put: description: Atomically deletes alert configurations across multiple types. @@ -5763,6 +6019,7 @@ paths: tags: - Event Settings - Events + x-ibm-ahub-byok: true /api/events/settings/alert-configs/bulk/disable: put: description: Atomically disables alert configurations across multiple types. @@ -5805,6 +6062,7 @@ paths: tags: - Event Settings - Events + x-ibm-ahub-byok: true /api/events/settings/alert-configs/bulk/enable: put: description: Atomically enables alert configurations across multiple types. @@ -5847,6 +6105,7 @@ paths: tags: - Event Settings - Events + x-ibm-ahub-byok: true /api/events/settings/alertingChannels: get: description: Gets all the alerting channels. Requires the permission called @@ -5895,6 +6154,7 @@ paths: summary: Get all Alerting Channels tags: - Event Settings + x-ibm-ahub-byok: true post: description: Creates an alerting channel. Requires the permission called CanConfigureIntegrations. operationId: postAlertingChannel @@ -5933,6 +6193,7 @@ paths: summary: Create Alert Channel tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alertingChannels/infos: get: description: Gets the overview information of all alerting channels. Requires @@ -5979,6 +6240,7 @@ paths: summary: Get Overview of Alerting Channels tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alertingChannels/notify/{id}: post: description: Sends alert for a specific event to an alerting channel. Provided @@ -6012,6 +6274,7 @@ paths: CanConfigureIntegrations. tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alertingChannels/test: put: description: Sends a test alert to an alert channel. This is for testing if @@ -6048,6 +6311,7 @@ paths: summary: Test Alerting Channel tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alertingChannels/{id}: delete: description: Deletes an alert channel. Requires the permission called CanConfigureIntegrations. @@ -6069,6 +6333,7 @@ paths: summary: Delete Alerting Channel tags: - Event Settings + x-ibm-ahub-byok: true get: description: Gets an alerting channel. Requires the permission called CanConfigureIntegrations. operationId: getAlertingChannel @@ -6100,6 +6365,7 @@ paths: summary: Get Alerting Channel tags: - Event Settings + x-ibm-ahub-byok: true put: description: Updates an alerting channel. Requires the permission called CanConfigureIntegrations. operationId: putAlertingChannel @@ -6146,6 +6412,7 @@ paths: summary: Update Alert Channel tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alerts: get: description: Gets all Alert Configurations @@ -6238,6 +6505,7 @@ paths: summary: Get all Alert Configurations tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alerts/infos: get: description: Gets all alert configurations that relate to the given alert channel. @@ -6289,6 +6557,7 @@ paths: summary: All alerting configuration info tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/alerts/{id}: delete: description: Delete a specific Alert Configuration by ID @@ -6312,6 +6581,7 @@ paths: summary: Delete Alert Configuration tags: - Event Settings + x-ibm-ahub-byok: true get: description: Get a specific Alert Configuration by ID. operationId: getAlert @@ -6362,6 +6632,7 @@ paths: summary: Get Alert Configuration tags: - Event Settings + x-ibm-ahub-byok: true put: description: Create or update a specific Alert configuration by ID operationId: putAlert @@ -6470,6 +6741,7 @@ paths: summary: Create or update Alert Configuration tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs: get: description: |- @@ -6557,6 +6829,7 @@ paths: summary: Get all Smart Alert Configs tags: - Application Alert Configuration + x-ibm-ahub-byok: true post: description: |- Creates a new Smart Alert Configuration. @@ -6596,17 +6869,11 @@ paths: aggregation: P90 metricName: latency threshold: - type: historicBaseline + type: adaptiveBaseline operator: '>=' - seasonality: DAILY - baseline: - - - 0 - - 1 - - 3 - - - 600000 - - 1 - - 3 - deviationFactor: 3 + sensitivityMode: STANDARD_DEVIATIONS + sensitivityValue: 3.0 + minimumAbsoluteDelta: 0.0 lastUpdated: 0 alertChannelIds: [ ] @@ -6655,17 +6922,11 @@ paths: aggregation: P90 metricName: latency threshold: - type: historicBaseline + type: adaptiveBaseline operator: '>=' - seasonality: DAILY - baseline: - - - 0 - - 1 - - 3 - - - 600000 - - 1 - - 3 - deviationFactor: 3 + sensitivityMode: STANDARD_DEVIATIONS + sensitivityValue: 3.0 + minimumAbsoluteDelta: 0.0 lastUpdated: 0 alertChannelIds: [ ] @@ -6699,6 +6960,7 @@ paths: summary: Create Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/bulk/delete: put: description: Deletes multiple application alert configurations. Creates new @@ -6730,6 +6992,7 @@ paths: summary: Bulk Delete Application Smart Alert Configs tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/bulk/disable: put: description: Disables multiple application alert configurations. Creates new @@ -6761,6 +7024,7 @@ paths: summary: Bulk Disable Application Smart Alert Configs tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/bulk/enable: put: description: Enables multiple application alert configurations. Creates new @@ -6792,6 +7056,7 @@ paths: summary: Bulk Enable Application Smart Alert Configs tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}: delete: description: |- @@ -6819,6 +7084,7 @@ paths: summary: Delete Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true get: description: |- Gets a specific Smart Alert Configuration. This may return a deleted Configuration. @@ -6876,17 +7142,11 @@ paths: aggregation: P90 metricName: latency threshold: - type: historicBaseline + type: adaptiveBaseline operator: '>=' - seasonality: DAILY - baseline: - - - 0 - - 1 - - 3 - - - 600000 - - 1 - - 3 - deviationFactor: 3 + sensitivityMode: STANDARD_DEVIATIONS + sensitivityValue: 3.0 + minimumAbsoluteDelta: 0.0 lastUpdated: 0 alertChannelIds: [ ] @@ -6916,6 +7176,7 @@ paths: summary: Get Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true post: description: |- Updates an existing Smart Alert Configuration. @@ -6963,17 +7224,11 @@ paths: aggregation: P90 metricName: latency threshold: - type: historicBaseline + type: adaptiveBaseline operator: '>=' - seasonality: DAILY - baseline: - - - 0 - - 1 - - 3 - - - 600000 - - 1 - - 3 - deviationFactor: 3 + sensitivityMode: STANDARD_DEVIATIONS + sensitivityValue: 3.0 + minimumAbsoluteDelta: 0.0 lastUpdated: 0 alertChannelIds: [ ] @@ -7022,17 +7277,11 @@ paths: aggregation: P90 metricName: latency threshold: - type: historicBaseline + type: adaptiveBaseline operator: '>=' - seasonality: DAILY - baseline: - - - 0 - - 1 - - 3 - - - 600000 - - 1 - - 3 - deviationFactor: 3 + sensitivityMode: STANDARD_DEVIATIONS + sensitivityValue: 3.0 + minimumAbsoluteDelta: 0.0 lastUpdated: 0 alertChannelIds: [ ] @@ -7070,6 +7319,7 @@ paths: summary: Update Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}/disable: put: description: |- @@ -7103,6 +7353,7 @@ paths: summary: Disable Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}/enable: put: description: |- @@ -7136,6 +7387,7 @@ paths: summary: Enable Application Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}/restore/{created}: put: description: |- @@ -7178,6 +7430,7 @@ paths: summary: Restore Smart Alert Config tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}/update-baseline: post: description: |- @@ -7218,6 +7471,7 @@ paths: summary: Recalculate Smart Alert Config Baseline tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/application-alert-configs/{id}/versions: get: description: |- @@ -7262,6 +7516,7 @@ paths: summary: Get Smart Alert Config Versions tags: - Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/custom-payload-configurations: delete: description: Deletes a Global Custom Payload Configuration. @@ -7279,6 +7534,7 @@ paths: summary: Delete Custom Payload Configuration tags: - Event Settings + x-ibm-ahub-byok: true get: description: Gets All Global Custom Payload Configurations. operationId: getCustomPayloadConfigurations @@ -7329,6 +7585,7 @@ paths: summary: Get All Global Custom Payload Configurations tags: - Event Settings + x-ibm-ahub-byok: true put: description: Creates or Updates Global Custom Payload Configuration. operationId: upsertCustomPayloadConfiguration @@ -7382,6 +7639,7 @@ paths: summary: Create/Update Global Custom Payload Configuration tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/custom-payload-configurations/catalog: get: description: Custom payload tags used to filter, extract and aggregate specific @@ -7425,6 +7683,7 @@ paths: summary: Get Tag Catalog for Custom Payload tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/custom-payload-configurations/v2: put: description: Creates or Updates Global Custom Payload Configuration. @@ -7490,6 +7749,7 @@ paths: summary: Create/Update Global Custom Payload Configuration tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/built-in: get: description: Get all built-in event specifications. Can be filtered by event @@ -7596,6 +7856,7 @@ paths: summary: All built-in event specification tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/built-in/{eventSpecificationId}: delete: operationId: deleteBuiltInEventSpecification @@ -7618,6 +7879,7 @@ paths: summary: Delete built-in event specification tags: - Event Settings + x-ibm-ahub-byok: true get: operationId: getBuiltInEventSpecification parameters: @@ -7645,6 +7907,7 @@ paths: summary: Built-in event specifications tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/built-in/{eventSpecificationId}/disable: post: operationId: disableBuiltInEventSpecification @@ -7679,6 +7942,7 @@ paths: summary: Disable built-in event specification tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/built-in/{eventSpecificationId}/enable: post: operationId: enableBuiltInEventSpecification @@ -7713,6 +7977,7 @@ paths: summary: Enable built-in event specification tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/custom: get: description: ' This API helps in getting all the custom event specifications.' @@ -7762,6 +8027,7 @@ paths: summary: All custom event specifications tags: - Event Settings + x-ibm-ahub-byok: true post: operationId: postCustomEventSpecification requestBody: @@ -7790,6 +8056,7 @@ paths: tags: - Event Settings x-description: postCustomEventSpecification + x-ibm-ahub-byok: true /api/events/settings/event-specifications/custom/systemRules: get: description: This API helps to get all the system rules for custom event specifications. @@ -7816,6 +8083,7 @@ paths: summary: All system rules for custom event specifications tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/custom/{eventSpecificationId}: delete: operationId: deleteCustomEventSpecification @@ -7839,6 +8107,7 @@ paths: tags: - Event Settings x-description: deleteCustomEventSpecification + x-ibm-ahub-byok: true get: description: This API helps to get the Custom Event specification for the given ID. @@ -7898,6 +8167,7 @@ paths: summary: Custom event specification tags: - Event Settings + x-ibm-ahub-byok: true put: operationId: putCustomEventSpecification parameters: @@ -7939,6 +8209,7 @@ paths: tags: - Event Settings x-description: putCustomEventSpecification + x-ibm-ahub-byok: true /api/events/settings/event-specifications/custom/{eventSpecificationId}/disable: post: operationId: disableCustomEventSpecification @@ -7975,6 +8246,7 @@ paths: summary: Disable custom event specification tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/custom/{eventSpecificationId}/enable: post: operationId: enableCustomEventSpecification @@ -8011,6 +8283,7 @@ paths: summary: Enable custom event specification tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/event-specifications/infos: get: description: This API helps to get the summary of all build-in and custom event @@ -8047,6 +8320,7 @@ paths: summary: Summary of all built-in and custom event specifications tags: - Event Settings + x-ibm-ahub-byok: true post: description: Summary of all built-in and custom event specifications by IDs operationId: getEventSpecificationInfosByIds @@ -8077,6 +8351,7 @@ paths: summary: All built-in and custom event specifications tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications: get: description: |- @@ -8164,6 +8439,7 @@ paths: summary: Get all Global Smart Alert Configs tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true post: description: |- Creates a new Global Smart Alert Configuration. @@ -8278,6 +8554,7 @@ paths: summary: Create Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/bulk/delete: put: description: "Deletes multiple Global Smart Alert Configurations in a single\ @@ -8308,6 +8585,7 @@ paths: summary: Bulk Delete Global Smart Alert Configs tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/bulk/disable: put: description: "Disables multiple Global Smart Alert Configurations in a single\ @@ -8338,6 +8616,7 @@ paths: summary: Bulk Disable Global Smart Alert Configs tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/bulk/enable: put: description: "Enables multiple Global Smart Alert Configurations in a single\ @@ -8368,6 +8647,7 @@ paths: summary: Bulk Enable Global Smart Alert Configs tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/{id}: delete: description: |- @@ -8395,6 +8675,7 @@ paths: summary: Delete Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true get: description: |- Gets a specific Global Smart Alert Configuration. This may return a deleted Configuration. @@ -8479,6 +8760,7 @@ paths: summary: Get Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true post: description: |- Updates an existing Global Smart Alert Configuration. @@ -8607,6 +8889,7 @@ paths: summary: Update Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/{id}/disable: put: description: |- @@ -8640,6 +8923,7 @@ paths: summary: Disable Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/{id}/enable: put: description: |- @@ -8673,6 +8957,7 @@ paths: summary: Enable Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/{id}/restore/{created}: put: description: |- @@ -8715,6 +9000,7 @@ paths: summary: Restore Global Smart Alert Config tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/applications/{id}/versions: get: description: |- @@ -8759,6 +9045,7 @@ paths: summary: Get Global Smart Alert Config Versions tags: - Global Application Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs: get: description: Configs are sorted descending by their created date. @@ -8788,6 +9075,7 @@ paths: summary: All Log Alert Configs tags: - Log Alert Configuration + x-ibm-ahub-byok: true post: operationId: createLogAlertConfig requestBody: @@ -8812,6 +9100,7 @@ paths: tags: - Log Alert Configuration x-description: createLogAlertConfig + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/bulk/delete: put: description: Delete multiple log alert configurations at once. Maximum 1000 @@ -8847,6 +9136,7 @@ paths: summary: Bulk Delete Log Alert Configs tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/bulk/disable: put: description: Disable multiple log alert configurations at once. Maximum 1000 @@ -8882,6 +9172,7 @@ paths: summary: Bulk Disable Log Alert Configs tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/bulk/enable: put: description: Enable multiple log alert configurations at once. Maximum 1000 @@ -8917,6 +9208,7 @@ paths: summary: Bulk Enable Log Alert Configs tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/{id}: delete: operationId: deleteLogAlertConfig @@ -8939,6 +9231,7 @@ paths: summary: Delete Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true get: description: Find a Log Alert Config by ID. This will deliver deleted configs too. @@ -8969,6 +9262,7 @@ paths: summary: Get Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true post: operationId: updateLogAlertConfig parameters: @@ -9001,6 +9295,7 @@ paths: tags: - Log Alert Configuration x-description: updateLogAlertConfig + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/{id}/disable: put: operationId: disableLogAlertConfig @@ -9029,6 +9324,7 @@ paths: summary: Disable Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/{id}/enable: put: operationId: enableLogAlertConfig @@ -9057,6 +9353,7 @@ paths: summary: Enable Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/{id}/restore/{created}: put: operationId: restoreLogAlertConfig @@ -9091,6 +9388,7 @@ paths: summary: Restore Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/logs/{id}/versions: get: description: Find all versions of a Log Alert Config by ID. This will deliver @@ -9119,6 +9417,7 @@ paths: summary: Get versions of Log Alert Config tags: - Log Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels: get: description: Configs are sorted descending by their created date. @@ -9200,6 +9499,7 @@ paths: summary: All Service levels Alert Configs tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true post: operationId: createServiceLevelsAlertConfig requestBody: @@ -9288,6 +9588,7 @@ paths: tags: - Service Levels Alert Configuration x-description: createServiceLevelsAlertConfig + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/bulk/delete: put: description: Delete multiple Service Levels Smart Alert configurations in a @@ -9315,6 +9616,7 @@ paths: summary: Bulk Delete Service Levels Smart Alert Configs tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/bulk/disable: put: description: Disable multiple Service Levels Smart Alert configurations in a @@ -9342,6 +9644,7 @@ paths: summary: Bulk Disable Service Levels Smart Alert Configs tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/bulk/enable: put: description: Enable multiple Service Levels Smart Alert configurations in a @@ -9369,6 +9672,7 @@ paths: summary: Bulk Enable Service Levels Smart Alert Configs tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/{id}: delete: operationId: deleteServiceLevelsAlertConfig @@ -9397,6 +9701,7 @@ paths: summary: Delete Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true get: description: Find a Service levels Alert Config by ID. This will deliver deleted configs too. @@ -9469,6 +9774,7 @@ paths: summary: Get Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true post: operationId: updateServiceLevelsAlertConfig parameters: @@ -9567,6 +9873,7 @@ paths: tags: - Service Levels Alert Configuration x-description: updateServiceLevelsAlertConfig + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/{id}/disable: put: operationId: disableServiceLevelsAlertConfig @@ -9601,6 +9908,7 @@ paths: summary: Disable Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/{id}/enable: put: operationId: enableServiceLevelsAlertConfig @@ -9635,6 +9943,7 @@ paths: summary: Enable Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/{id}/restore/{created}: put: operationId: restoreServiceLevelsAlertConfig @@ -9677,6 +9986,7 @@ paths: summary: Restore Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/service-levels/{id}/versions: get: description: Find all versions of a Service levels Alert Config by ID. This @@ -9736,6 +10046,7 @@ paths: summary: Get versions of Service levels Alert Config tags: - Service Levels Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics: get: description: |- @@ -9826,6 +10137,7 @@ paths: summary: Get all Synthetic Smart Alert Configs tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true post: description: |- Creates a new Synthetic Smart Alert Configuration. @@ -9919,6 +10231,7 @@ paths: summary: Create Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/bulk/delete: put: description: |- @@ -9955,6 +10268,7 @@ paths: summary: Bulk Delete Synthetic Smart Alert Configs tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/bulk/disable: put: description: |- @@ -9991,6 +10305,7 @@ paths: summary: Bulk Disable Synthetic Smart Alert Configs tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/bulk/enable: put: description: |- @@ -10027,6 +10342,7 @@ paths: summary: Bulk Enable Synthetic Smart Alert Configs tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/{id}: delete: description: |- @@ -10054,6 +10370,7 @@ paths: summary: Delete Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true get: description: |- Gets a specific Synthetic Smart Alert Configuration. This may return a deleted Configuration. @@ -10130,6 +10447,7 @@ paths: summary: Get Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true post: description: |- Updates an existing Synthetic Smart Alert Configuration. @@ -10235,6 +10553,7 @@ paths: summary: Update Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/{id}/disable: put: description: |- @@ -10268,6 +10587,7 @@ paths: summary: Disable Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/{id}/enable: put: description: |- @@ -10301,6 +10621,7 @@ paths: summary: Enable Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/{id}/restore/{created}: put: description: |- @@ -10343,6 +10664,7 @@ paths: summary: Restore Synthetic Smart Alert Config tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/global-alert-configs/synthetics/{id}/versions: get: description: |- @@ -10397,6 +10719,7 @@ paths: summary: Get Synthetic Smart Alert Config Versions tags: - Synthetic Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs: get: description: Configs are sorted descending by their created date. @@ -10496,6 +10819,7 @@ paths: summary: All Infra Alert Configs tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true post: operationId: createInfraAlertConfig requestBody: @@ -10587,6 +10911,7 @@ paths: summary: Create Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/bulk/delete: put: description: Delete multiple Infra Smart Alert configurations in a single operation. @@ -10613,6 +10938,7 @@ paths: summary: Bulk Delete Infra Smart Alert Configs tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/bulk/disable: put: description: Disable multiple Infra Smart Alert configurations in a single operation. @@ -10639,6 +10965,7 @@ paths: summary: Bulk Disable Infra Smart Alert Configs tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/bulk/enable: put: description: Enable multiple Infra Smart Alert configurations in a single operation. @@ -10665,6 +10992,7 @@ paths: summary: Bulk Enable Infra Smart Alert Configs tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/{id}: delete: operationId: deleteInfraAlertConfig @@ -10689,6 +11017,7 @@ paths: summary: Delete Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true get: description: Find a Infra Alert Config by ID. This will deliver deleted configs too. @@ -10790,6 +11119,7 @@ paths: summary: Get Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true post: operationId: updateInfraAlertConfig parameters: @@ -10893,6 +11223,7 @@ paths: summary: Update Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/{id}/disable: put: operationId: disableInfraAlertConfig @@ -10923,6 +11254,7 @@ paths: summary: Disable Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/{id}/enable: put: operationId: enableInfraAlertConfig @@ -10953,6 +11285,7 @@ paths: summary: Enable Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/{id}/restore/{created}: put: operationId: restoreInfraAlertConfig @@ -10991,6 +11324,7 @@ paths: summary: Restore Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/infra-alert-configs/{id}/versions: get: description: Find all versions of a Infra Alert Config by ID. This will deliver @@ -11032,6 +11366,7 @@ paths: summary: Get versions of Infra Alert Config tags: - Infrastructure Alert Configuration + x-ibm-ahub-byok: true /api/events/settings/manual-close: post: description: Manually close a set of events. A close notification will be sent @@ -11078,6 +11413,7 @@ paths: summary: Manually closing multiple events tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/manual-close/{eventId}: post: description: Manually close an event (issue or incident). A close notification @@ -11188,6 +11524,7 @@ paths: summary: Manually close an event. tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs: get: description: Gets all the Mobile Smart Alert Configuration pertaining to a specific @@ -11291,6 +11628,7 @@ paths: summary: Get all Mobile Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true post: description: 'Creates a new Mobile Smart Alert Configuration. ' operationId: createMobileAppAlertConfig @@ -11408,6 +11746,7 @@ paths: summary: Create Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/bulk/delete: put: description: Deletes multiple Mobile Smart Alert Configurations in a single @@ -11437,6 +11776,7 @@ paths: summary: Bulk delete Mobile Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/bulk/disable: put: description: Disables multiple Mobile Smart Alert Configurations in a single @@ -11466,6 +11806,7 @@ paths: summary: Bulk disable Mobile Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/bulk/enable: put: description: Enables multiple Mobile Smart Alert Configurations in a single @@ -11495,6 +11836,7 @@ paths: summary: Bulk enable Mobile Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}: delete: description: Deletes a Mobile Smart Alert Configuration @@ -11520,6 +11862,7 @@ paths: summary: Delete Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true get: description: Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. @@ -11619,6 +11962,7 @@ paths: summary: Get Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true post: description: 'Updates an existing Mobile Smart Alert Configuration. ' operationId: updateMobileAppAlertConfig @@ -11750,6 +12094,7 @@ paths: summary: Update Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}/disable: put: description: Disables a Mobile Smart Alert Configuration. @@ -11781,6 +12126,7 @@ paths: summary: Disable Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}/enable: put: description: Enables a Mobile Smart Alert Configuration. @@ -11812,6 +12158,7 @@ paths: summary: Enable Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}/restore/{created}: put: description: Restores a Mobile Smart Alert Configuration. @@ -11852,6 +12199,7 @@ paths: summary: Restore Mobile Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}/update-baseline: post: description: Recalculates and updates the historic baseline (static seasonal @@ -11892,6 +12240,7 @@ paths: summary: Recalculate Mobile Smart Alert Config Baseline tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/mobile-app-alert-configs/{id}/versions: get: description: Gets all versions of a Mobile Smart Alert Configuration. This may @@ -11936,6 +12285,7 @@ paths: summary: Get Mobile Smart Alert Config Versions tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/shortcode/current-prefix: get: description: Returns the current shortcode prefix and enabled state used for @@ -11962,6 +12312,7 @@ paths: summary: Get current shortcode prefix. tags: - Event Settings + x-ibm-ahub-byok: true put: description: Updates the shortcode prefix and enabled state used for events. The prefix will be applied to all new incidents created after this update. @@ -12025,6 +12376,7 @@ paths: summary: Update shortcode prefix. tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs: get: description: Gets all the Website Smart Alert Configuration pertaining to a @@ -12125,6 +12477,7 @@ paths: summary: Get all Website Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true post: description: Creates a new Website Smart Alert Configuration. operationId: createWebsiteAlertConfig @@ -12258,6 +12611,7 @@ paths: summary: Create Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/bulk/delete: put: description: Deletes multiple website alert configurations. Creates new revisions @@ -12289,6 +12643,7 @@ paths: summary: Bulk Delete Website Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/bulk/disable: put: description: Disables multiple website alert configurations. Creates new revisions @@ -12320,6 +12675,7 @@ paths: summary: Bulk Disable Website Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/bulk/enable: put: description: Enables multiple website alert configurations. Creates new revisions @@ -12351,6 +12707,7 @@ paths: summary: Bulk Enable Website Smart Alert Configs tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}: delete: description: Deletes a Website Smart Alert Configuration. @@ -12376,6 +12733,7 @@ paths: summary: Delete Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true get: description: Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. @@ -12470,6 +12828,7 @@ paths: summary: Get Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true post: description: Updates an existing Website Smart Alert Configuration. operationId: updateWebsiteAlertConfig @@ -12617,6 +12976,7 @@ paths: summary: Update Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}/disable: put: description: Disables a Website Smart Alert Configuration. @@ -12648,6 +13008,7 @@ paths: summary: Disable Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}/enable: put: description: Enables a website alert configuration. @@ -12679,6 +13040,7 @@ paths: summary: Enable Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}/restore/{created}: put: description: Restores a deleted Website Smart Alert Configuration. @@ -12719,6 +13081,7 @@ paths: summary: Restore Website Smart Alert Config tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}/update-baseline: post: description: Recalculates and updates the historic baseline (static seasonal @@ -12759,6 +13122,7 @@ paths: summary: Recalculate Website Smart Alert Config Baseline tags: - Event Settings + x-ibm-ahub-byok: true /api/events/settings/website-alert-configs/{id}/versions: get: description: Gets all versions of a Website Smart Alert Configuration. This @@ -12803,6 +13167,7 @@ paths: summary: 'Get Website Smart Alert Config Versions. ' tags: - Event Settings + x-ibm-ahub-byok: true /api/events/{eventId}: get: description: Gets a specific event. @@ -12852,6 +13217,7 @@ paths: summary: Get Event tags: - Events + x-ibm-ahub-byok: true /api/filters: get: operationId: get @@ -12861,6 +13227,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true post: operationId: post responses: @@ -12869,6 +13236,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/filters/{id}: delete: operationId: delete @@ -12884,6 +13252,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true put: operationId: put parameters: @@ -12898,6 +13267,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/genai-monitoring/analyze/tasks/{rootId}: get: operationId: getTaskFlowsByRootId @@ -12921,6 +13291,7 @@ paths: summary: Get task flow hierarchy by root ID (built in genai-analytics-reader) tags: - Application Analyze + x-ibm-ahub-byok: true /api/genai-monitoring/evaluations: get: operationId: getEvaluations @@ -12944,6 +13315,7 @@ paths: summary: Get all evaluations tags: - LLM Evaluation + x-ibm-ahub-byok: true post: operationId: createEvaluation requestBody: @@ -12968,6 +13340,7 @@ paths: summary: Create a new evaluation definition tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/genai-monitoring/evaluations/gateway-status: get: operationId: getGatewayStatus @@ -12986,6 +13359,7 @@ paths: summary: Check gateway status for evaluation capability tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/genai-monitoring/evaluations/runs: get: operationId: getEvaluationRuns @@ -13019,6 +13393,7 @@ paths: summary: Get all evaluation runs tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/genai-monitoring/evaluations/{evaluationId}: delete: operationId: deleteEvaluation @@ -13041,6 +13416,7 @@ paths: summary: Delete an evaluation tags: - LLM Evaluation + x-ibm-ahub-byok: true get: operationId: getEvaluation parameters: @@ -13066,6 +13442,7 @@ paths: summary: Get evaluation details by ID tags: - LLM Evaluation + x-ibm-ahub-byok: true put: operationId: updateEvaluation parameters: @@ -13092,6 +13469,7 @@ paths: summary: Update an evaluation tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/genai-monitoring/evaluations/{evaluationId}/run: post: operationId: runEvaluation @@ -13120,6 +13498,7 @@ paths: summary: Run an evaluation tags: - LLM Evaluation + x-ibm-ahub-byok: true /api/host-agent: get: operationId: searchHostAgents @@ -13174,6 +13553,7 @@ paths: summary: Query host agent snapshots tags: - Host Agent + x-ibm-ahub-byok: true /api/host-agent/configuration: post: operationId: updateConfigurationByQuery @@ -13222,6 +13602,7 @@ paths: tags: - Host Agent x-description: updateConfigurationByQuery + x-ibm-ahub-byok: true /api/host-agent/mode: post: operationId: updateModeByQuery @@ -13258,6 +13639,7 @@ paths: tags: - Host Agent x-description: updateModeByQuery + x-ibm-ahub-byok: true /api/host-agent/{hostId}/clr-logs: get: operationId: getAgentClrLogs @@ -13286,6 +13668,7 @@ paths: summary: Agent CLR download logs tags: - Host Agent + x-ibm-ahub-byok: true /api/host-agent/{hostId}/configuration: get: operationId: getAgentConfigurationByHost @@ -13310,6 +13693,7 @@ paths: summary: Get effective Agent configuration tags: - Host Agent + x-ibm-ahub-byok: true post: operationId: updateConfigurationByHost parameters: @@ -13340,6 +13724,7 @@ paths: tags: - Host Agent x-description: updateConfigurationByHost + x-ibm-ahub-byok: true /api/host-agent/{hostId}/logs: get: operationId: getAgentLogs @@ -13376,6 +13761,7 @@ paths: summary: Agent download logs tags: - Host Agent + x-ibm-ahub-byok: true /api/host-agent/{hostId}/mode: post: operationId: updateModeByHost @@ -13407,6 +13793,7 @@ paths: tags: - Host Agent x-description: updateModeByHost + x-ibm-ahub-byok: true /api/host-agent/{hostId}/support-info: get: operationId: getAgentSupportInformation @@ -13437,6 +13824,7 @@ paths: summary: Agent download support information tags: - Host Agent + x-ibm-ahub-byok: true /api/host-agent/{hostId}/update: post: operationId: updateAgent @@ -13461,6 +13849,7 @@ paths: summary: Agent update tags: - Host Agent + x-ibm-ahub-byok: true /api/host-agent/{id}: get: operationId: getAgentSnapshot @@ -13574,6 +13963,7 @@ paths: summary: Get host agent snapshot details tags: - Host Agent + x-ibm-ahub-byok: true /api/infrastructure-monitoring/analyze/entities: post: description: |- @@ -13650,6 +14040,7 @@ paths: summary: Get infrastructure entities tags: - Infrastructure Analyze + x-ibm-ahub-byok: true /api/infrastructure-monitoring/analyze/entity-groups: post: description: |- @@ -13712,6 +14103,7 @@ paths: summary: Get grouped infrastructure entities with aggregated metrics tags: - Infrastructure Analyze + x-ibm-ahub-byok: true /api/infrastructure-monitoring/analyze/entity-types: post: description: |- @@ -13749,6 +14141,7 @@ paths: summary: Get available entity types tags: - Infrastructure Analyze + x-ibm-ahub-byok: true /api/infrastructure-monitoring/analyze/metrics: post: description: |- @@ -13789,6 +14182,7 @@ paths: summary: Get available metrics tags: - Infrastructure Analyze + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/metrics/{plugin}: get: operationId: getInfrastructureCatalogMetrics @@ -13827,6 +14221,7 @@ paths: tags: - Infrastructure Catalog x-description: getInfrastructureCatalogMetrics + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/payloads/{pluginId}: get: description: 'This endpoint retrieves the list of keys that can be used to retrieve @@ -13861,6 +14256,7 @@ paths: tags: - Infrastructure Catalog x-description: getAvailablePayloadKeysByPluginId + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/plugins: get: operationId: getInfrastructureCatalogPlugins @@ -13880,6 +14276,7 @@ paths: tags: - Infrastructure Catalog x-description: getInfrastructureCatalogPlugins + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/plugins-with-custom-metrics: get: description: This endpoint retrieves a list of all plugins that have custom @@ -13901,6 +14298,7 @@ paths: tags: - Infrastructure Catalog x-description: getInfrastructureCatalogPluginsWithCustomMetrics + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/search: get: operationId: getInfrastructureCatalogSearchFields @@ -13920,6 +14318,7 @@ paths: tags: - Infrastructure Catalog x-description: getInfrastructureCatalogSearchFields + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/tags: get: description: This endpoint retrieves the tag catalog. @@ -13937,6 +14336,7 @@ paths: summary: Get available tags tags: - Infrastructure Catalog + x-ibm-ahub-byok: true /api/infrastructure-monitoring/catalog/tags/{plugin}: get: description: This endpoint retrieves the tag catalog filtered by plugin. @@ -13962,6 +14362,7 @@ paths: summary: Get available tags for a particular plugin tags: - Infrastructure Catalog + x-ibm-ahub-byok: true /api/infrastructure-monitoring/graph/related-hosts/{snapshotId}: get: description: Gets the Related Hosts @@ -14005,6 +14406,7 @@ paths: summary: Related hosts tags: - Infrastructure Topology + x-ibm-ahub-byok: true /api/infrastructure-monitoring/metrics: post: description: |2- @@ -14075,6 +14477,7 @@ paths: tags: - Infrastructure Metrics x-description: getInfrastructureMetrics + x-ibm-ahub-byok: true /api/infrastructure-monitoring/monitoring-state: get: description: This API endpoint retrieves the current monitoring state of the @@ -14098,6 +14501,7 @@ paths: summary: Monitored host count tags: - Infrastructure Resources + x-ibm-ahub-byok: true /api/infrastructure-monitoring/payloads/{snapshotId}/{payloadKey}: get: description: This endpoint retrieves the payload for a snapshot. Please note @@ -14152,6 +14556,7 @@ paths: tags: - Infrastructure Resources x-description: getPluginPayload + x-ibm-ahub-byok: true /api/infrastructure-monitoring/snapshots: get: operationId: getSnapshots @@ -14236,6 +14641,7 @@ paths: tags: - Infrastructure Resources x-description: getSnapshots + x-ibm-ahub-byok: true post: description: This endpoint retrieves detail information for one or more snapshots. timeFrame defaults to the last 10 minutes if not specified. @@ -14270,6 +14676,7 @@ paths: summary: Get snapshot details for multiple snapshots tags: - Infrastructure Resources + x-ibm-ahub-byok: true /api/infrastructure-monitoring/snapshots/{id}: get: description: Get all snapshot information @@ -14363,6 +14770,7 @@ paths: summary: Get snapshot details tags: - Infrastructure Resources + x-ibm-ahub-byok: true /api/infrastructure-monitoring/software/versions: get: description: |- @@ -14486,6 +14894,7 @@ paths: summary: Get installed software tags: - Infrastructure Resources + x-ibm-ahub-byok: true /api/infrastructure-monitoring/topology: get: operationId: getTopology @@ -14521,6 +14930,7 @@ paths: summary: Gets the infrastructure topology tags: - Infrastructure Topology + x-ibm-ahub-byok: true /api/instana/health: get: description: Get basic health of application. @@ -14543,6 +14953,7 @@ paths: tags: - Health x-description: getHealthState + x-ibm-ahub-byok: true /api/instana/usage/api: get: operationId: getAllUsage @@ -14561,6 +14972,7 @@ paths: summary: API usage by customer tags: - Usage + x-ibm-ahub-byok: true /api/instana/usage/api/{day}/{month}/{year}: get: operationId: getUsagePerDay @@ -14598,6 +15010,7 @@ paths: summary: API usage day / month / year tags: - Usage + x-ibm-ahub-byok: true /api/instana/usage/api/{month}/{year}: get: operationId: getUsagePerMonth @@ -14629,6 +15042,7 @@ paths: summary: API usage month / year tags: - Usage + x-ibm-ahub-byok: true /api/instana/usage/hosts/{day}/{month}/{year}: get: operationId: getHostsPerDay @@ -14666,6 +15080,7 @@ paths: summary: Host count day / month / year tags: - Usage + x-ibm-ahub-byok: true /api/instana/usage/hosts/{month}/{year}: get: operationId: getHostsPerMonth @@ -14697,6 +15112,7 @@ paths: summary: Host count month / year tags: - Usage + x-ibm-ahub-byok: true /api/instana/version: get: description: Get lastest API version information. @@ -14719,6 +15135,7 @@ paths: tags: - Health x-description: getVersion + x-ibm-ahub-byok: true /api/internal/custom-dashboard: get: operationId: getInternalCustomDashboards @@ -14758,6 +15175,7 @@ paths: security: - ApiKeyAuth: - Default + x-ibm-ahub-byok: true /api/internal/custom-dashboard/{dashboardId}: get: operationId: getInternalDashboard @@ -14776,6 +15194,7 @@ paths: security: - ApiKeyAuth: - Default + x-ibm-ahub-byok: true /api/license: get: operationId: get_1 @@ -14785,6 +15204,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/llm/capabilities: get: description: Retrieve all available LLM capabilities. @@ -14839,6 +15259,7 @@ paths: summary: Get all LLM capabilities tags: - AI Management + x-ibm-ahub-byok: true /api/llm/gateways: get: deprecated: true @@ -14902,6 +15323,7 @@ paths: summary: Get all AI connections tags: - AI Management + x-ibm-ahub-byok: true post: deprecated: true description: Create a new AI connection @@ -14972,6 +15394,7 @@ paths: summary: Create a new AI connection tags: - AI Management + x-ibm-ahub-byok: true /api/llm/gateways/test: post: deprecated: true @@ -15016,6 +15439,7 @@ paths: summary: Test AI connection connection parameters tags: - AI Management + x-ibm-ahub-byok: true /api/llm/gateways/{id}: delete: deprecated: true @@ -15045,6 +15469,7 @@ paths: summary: Delete an AI connection tags: - AI Management + x-ibm-ahub-byok: true get: deprecated: true description: Retrieve an AI connection by ID. @@ -15100,6 +15525,7 @@ paths: summary: Get an AI connection by ID tags: - AI Management + x-ibm-ahub-byok: true put: deprecated: true description: Update an existing AI connection by ID. @@ -15179,6 +15605,7 @@ paths: summary: Update an existing AI connection. tags: - AI Management + x-ibm-ahub-byok: true /api/llm/gateways/{id}/disable: put: deprecated: true @@ -15208,6 +15635,7 @@ paths: summary: Disable an AI connection tags: - AI Management + x-ibm-ahub-byok: true /api/llm/gateways/{id}/enable: put: deprecated: true @@ -15238,6 +15666,7 @@ paths: summary: Enable an AI connection tags: - AI Management + x-ibm-ahub-byok: true /api/logging/logs/getLogVolumeUsage: get: description: | @@ -15334,6 +15763,7 @@ paths: summary: Get Log Volume Usage tags: - Logging Analyze + x-ibm-ahub-byok: true /api/logging/logs/getLogs/v1: post: description: | @@ -15547,6 +15977,7 @@ paths: summary: Retrieve logs via REST API tags: - Logging Analyze + x-ibm-ahub-byok: true /api/logging/perspective/v1: get: description: | @@ -15600,6 +16031,7 @@ paths: summary: Get All Log Perspectives tags: - Logging Analyze + x-ibm-ahub-byok: true post: description: | Creates a new log perspective for the caller's tenant unit. @@ -15743,6 +16175,7 @@ paths: summary: Create Log Perspective tags: - Logging Analyze + x-ibm-ahub-byok: true /api/logging/perspective/v1/{perspectiveId}: delete: description: | @@ -15773,6 +16206,7 @@ paths: summary: Delete Log Perspective tags: - Logging Analyze + x-ibm-ahub-byok: true get: description: | Retrieves a single log perspective by its ID. @@ -15815,6 +16249,7 @@ paths: summary: Get Log Perspective tags: - Logging Analyze + x-ibm-ahub-byok: true put: description: | Replaces an existing log perspective with the provided values. @@ -15949,6 +16384,7 @@ paths: summary: Update Log Perspective tags: - Logging Analyze + x-ibm-ahub-byok: true /api/mobile-app-monitoring/analyze/beacon-groups: post: description: API request to get grouped mobile app beacon metrics. @@ -16027,6 +16463,7 @@ paths: summary: Get grouped beacon metrics tags: - Mobile App Analyze + x-ibm-ahub-byok: true /api/mobile-app-monitoring/analyze/beacons: post: description: API request to get all mobile app beacons with matching type. @@ -16138,6 +16575,7 @@ paths: summary: Get all beacons tags: - Mobile App Analyze + x-ibm-ahub-byok: true /api/mobile-app-monitoring/catalog: get: operationId: getMobileAppTagCatalog @@ -16194,6 +16632,7 @@ paths: tags: - Mobile App Catalog x-description: getMobileAppTagCatalog + x-ibm-ahub-byok: true /api/mobile-app-monitoring/catalog/metrics: get: description: API request to get mobile app metric catalog. @@ -16238,6 +16677,7 @@ paths: tags: - Mobile App Catalog x-description: getMobileAppMetricCatalog + x-ibm-ahub-byok: true /api/mobile-app-monitoring/catalog/tags: get: description: API request to get all mobile app tags. @@ -16269,6 +16709,7 @@ paths: tags: - Mobile App Catalog x-description: getAllMobileAppCatalogTags + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config: get: description: API request to get configured mobile apps. @@ -16298,6 +16739,7 @@ paths: summary: Get configured mobile apps tags: - Mobile App Configuration + x-ibm-ahub-byok: true post: description: API request to add new mobile app. operationId: postMobileAppConfig @@ -16347,6 +16789,7 @@ paths: summary: Configure new mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}: delete: description: API request to remove mobile app. @@ -16374,6 +16817,7 @@ paths: summary: Remove mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true get: description: API request to get a specific mobile app configuration by ID. operationId: getSingleMobileAppConfig @@ -16410,6 +16854,7 @@ paths: summary: Get mobile app configuration by ID tags: - Mobile App Configuration + x-ibm-ahub-byok: true put: description: API request to rename mobile app. operationId: renameMobileAppConfig @@ -16450,6 +16895,7 @@ paths: summary: Rename mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/geo-location: get: description: API request to get geo location configuration for mobile app. @@ -16485,6 +16931,7 @@ paths: summary: Get geo location configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true put: description: API request to update geo location configuration for mobile app. operationId: updateMobileAppGeoLocationConfiguration @@ -16522,6 +16969,7 @@ paths: summary: Update geo location configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/geo-mapping-rules: get: description: API request to get custom geo mapping rules for mobile app. @@ -16552,6 +17000,7 @@ paths: summary: Get custom geo mapping rules for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true put: description: API request to set custom geo mapping rules for mobile app. operationId: setMobileAppGeoMappingRules @@ -16588,6 +17037,7 @@ paths: summary: Set custom geo mapping rules for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/ip-masking: get: description: API request to get IP masking configuration for mobile app. @@ -16621,6 +17071,7 @@ paths: summary: Get IP masking configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true put: description: API request to update IP masking configuration for mobile app. operationId: updateMobileAppIpMaskingConfiguration @@ -16658,6 +17109,7 @@ paths: summary: Update IP masking configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/session-replay-config: get: description: API request to get the session replay configuration for a mobile @@ -16686,6 +17138,7 @@ paths: summary: Get session replay config for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true put: description: API request to configure session replay for a mobile app. operationId: updateMobileAppSessionReplay @@ -16714,6 +17167,7 @@ paths: summary: Configure session replay for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload: get: description: API request to get all sourcemap configurations for mobile app. @@ -16760,6 +17214,7 @@ paths: summary: Get all sourcemap configurations for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true post: description: API request to add sourcemap configuration for mobile app. operationId: postMobileAppSourceMapConfig @@ -16813,6 +17268,7 @@ paths: summary: Add new sourcemap configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}: delete: description: API request to delete sourcemap configuration for mobile app. @@ -16848,6 +17304,7 @@ paths: summary: Delete sourcemap configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true get: description: API request to get sourcemap configuration for mobile app. operationId: getMobileAppSourceMapFile @@ -16899,6 +17356,7 @@ paths: summary: Get sourcemap configuration for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}/clear: put: description: API request to clear sourcemap files of a configuration for mobile @@ -16937,6 +17395,7 @@ paths: summary: Clear sourcemap files for sourcemap upload configuration tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}/commit: put: description: API request to commit sourcemap file upload for mobile app. @@ -17001,6 +17460,7 @@ paths: summary: Commit sourcemap file upload for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}/form: put: description: API request to upload sourcemap file for mobile app. @@ -17089,6 +17549,7 @@ paths: summary: Upload sourcemap file for mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/config/{mobileAppId}/teams: put: description: API request to update teams of a mobile app. @@ -17135,6 +17596,7 @@ paths: summary: Update teams assigned to the mobile app tags: - Mobile App Configuration + x-ibm-ahub-byok: true /api/mobile-app-monitoring/metrics: post: deprecated: true @@ -17159,6 +17621,7 @@ paths: summary: Get mobile app beacon metrics tags: - Mobile App Metrics + x-ibm-ahub-byok: true /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/action-beacons: get: description: Retrieves action beacons (user interactions and events) for a mobile @@ -17241,6 +17704,7 @@ paths: summary: Get action beacons for a session tags: - Mobile App Session Replay + x-ibm-ahub-byok: true /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-metadata: get: description: Retrieves detailed metadata for session replay captured during @@ -17324,6 +17788,7 @@ paths: summary: Get session replay metadata tags: - Mobile App Session Replay + x-ibm-ahub-byok: true /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-timestamps: get: description: Retrieves the first and last image timestamps for a mobile app @@ -17377,6 +17842,7 @@ paths: summary: Get session replay timestamps tags: - Mobile App Session Replay + x-ibm-ahub-byok: true /api/mobile-app-monitoring/session;id={id};timestamp={timestamp}: get: description: API request to get a mobile app monitoring session. @@ -17487,6 +17953,7 @@ paths: summary: Get mobile app session tags: - Mobile App Metrics + x-ibm-ahub-byok: true /api/mobile-app-monitoring/session-merged: get: description: Returns a merged JSON array of all legacy beacons and action beacons @@ -17542,6 +18009,7 @@ paths: summary: Download merged session beacons tags: - Mobile App Metrics + x-ibm-ahub-byok: true /api/mobile-app-monitoring/v2/metrics: post: description: API request to get mobile app monitoring beacon metrics. @@ -17602,6 +18070,7 @@ paths: summary: Get beacon metrics tags: - Mobile App Metrics + x-ibm-ahub-byok: true /api/permissions: get: operationId: getUserPermissions @@ -17611,6 +18080,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/permissions/{userId}: get: operationId: getUserPermissionsById @@ -17626,6 +18096,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/releases: get: operationId: getAllReleases @@ -17669,6 +18140,7 @@ paths: tags: - Releases x-description: getAllReleases + x-ibm-ahub-byok: true post: operationId: postRelease requestBody: @@ -17691,6 +18163,7 @@ paths: tags: - Releases x-description: postRelease + x-ibm-ahub-byok: true /api/releases/{releaseId}: delete: operationId: deleteRelease @@ -17715,6 +18188,7 @@ paths: tags: - Releases x-description: deleteRelease + x-ibm-ahub-byok: true get: operationId: getRelease parameters: @@ -17744,6 +18218,7 @@ paths: tags: - Releases x-description: getRelease + x-ibm-ahub-byok: true put: operationId: putRelease parameters: @@ -17774,6 +18249,7 @@ paths: tags: - Releases x-description: putRelease + x-ibm-ahub-byok: true /api/settings/accesslog: get: description: Retrieve all access logs using defined query. @@ -17821,6 +18297,7 @@ paths: summary: Access log tags: - Audit Log + x-ibm-ahub-byok: true /api/settings/apdex: get: description: API to Get All Apdex Configurations. @@ -17869,6 +18346,7 @@ paths: summary: Get All Apdex Configurations tags: - Apdex Settings + x-ibm-ahub-byok: true post: operationId: createApdexConfiguration requestBody: @@ -17903,6 +18381,7 @@ paths: tags: - Apdex Settings x-description: createApdexConfiguration + x-ibm-ahub-byok: true /api/settings/apdex/v2: get: description: API to Get All Apdex Configurations. @@ -18073,6 +18552,7 @@ paths: summary: Get All Apdex Configurations tags: - Apdex Settings + x-ibm-ahub-byok: true post: operationId: createApdexConfigurationV2 requestBody: @@ -18107,6 +18587,7 @@ paths: tags: - Apdex Settings x-description: createApdexConfiguration + x-ibm-ahub-byok: true /api/settings/apdex/v2/apdex-levels: get: description: Returns the Apdex satisfaction level definitions with their thresholds @@ -18126,6 +18607,7 @@ paths: summary: Get All Apdex Levels tags: - Apdex Settings + x-ibm-ahub-byok: true /api/settings/apdex/v2/tags: get: operationId: getAllApdexConfigTagsV2 @@ -18195,6 +18677,7 @@ paths: summary: Get All Apdex Config tags tags: - Apdex Settings + x-ibm-ahub-byok: true /api/settings/apdex/v2/{id}: delete: operationId: deleteApdexConfigurationV2 @@ -18215,6 +18698,7 @@ paths: summary: Delete Apdex Configuration tags: - Apdex Settings + x-ibm-ahub-byok: true get: description: API to Get Apdex Configuration for specified ID. operationId: getApdexConfigurationV2 @@ -18260,6 +18744,7 @@ paths: summary: Get Apdex Configuration tags: - Apdex Settings + x-ibm-ahub-byok: true put: operationId: updateApdexConfigV2 parameters: @@ -18325,6 +18810,7 @@ paths: tags: - Apdex Settings x-description: updateApdexConfiguration + x-ibm-ahub-byok: true /api/settings/apdex/{entityType}/{entityId}: get: description: API to Get All Apdex Configurations for specified entity type and @@ -18398,6 +18884,7 @@ paths: summary: Get all Apdex configurations for entity type and entity id tags: - Apdex Settings + x-ibm-ahub-byok: true /api/settings/apdex/{id}: delete: operationId: deleteApdexConfiguration @@ -18418,6 +18905,7 @@ paths: summary: Delete Apdex Configuration tags: - Apdex Settings + x-ibm-ahub-byok: true get: description: API to Get Apdex Configuration for specified ID. operationId: getApdexConfiguration @@ -18463,6 +18951,7 @@ paths: summary: Get Apdex Configuration tags: - Apdex Settings + x-ibm-ahub-byok: true /api/settings/api-tokens: get: description: |- @@ -18649,6 +19138,7 @@ paths: summary: Get all API Tokens tags: - API Token + x-ibm-ahub-byok: true post: description: |- Create an API Token on the Tenant-Unit. Each API Token entry also contains a set of permissions @@ -18764,6 +19254,7 @@ paths: summary: Create an API token tags: - API Token + x-ibm-ahub-byok: true /api/settings/api-tokens/{internalId}: delete: description: |- @@ -18785,6 +19276,7 @@ paths: summary: Delete API token tags: - API Token + x-ibm-ahub-byok: true get: description: |- Returns API Token details, including the set of permissions @@ -18893,6 +19385,7 @@ paths: summary: Get API token tags: - API Token + x-ibm-ahub-byok: true put: description: |- Update API Token- Change Token name and associated permissions @@ -19014,6 +19507,7 @@ paths: summary: Create or update an API token tags: - API Token + x-ibm-ahub-byok: true /api/settings/auditlog: get: description: Retrieve all audit logs using defined query. @@ -19067,6 +19561,7 @@ paths: summary: Audit log tags: - Audit Log + x-ibm-ahub-byok: true /api/settings/authentication/2fa/credentials: get: operationId: getTwoFactorCredentials @@ -19076,6 +19571,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/settings/authentication/2fa/toggle: post: operationId: toggle2Fa @@ -19085,6 +19581,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/settings/authentication/2fa/verify/{token}: post: operationId: toggle2Fa_1 @@ -19101,6 +19598,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/settings/authentication/changePassword: post: operationId: postChangePassword @@ -19110,6 +19608,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/settings/authentication/googleSSO: delete: description: Delete the corresponding tenants Google SSO configuration. @@ -19123,6 +19622,7 @@ paths: summary: Delete Google SSO configuration tags: - Authentication + x-ibm-ahub-byok: true /api/settings/authentication/idp/status: patch: description: Enable or disable the identity provider (IdP) configuration for @@ -19154,6 +19654,7 @@ paths: summary: Enable or disable IdP configuration tags: - Authentication + x-ibm-ahub-byok: true /api/settings/authentication/ldap: delete: description: Delete the corresponding tenants LDAP configuration. @@ -19167,6 +19668,7 @@ paths: summary: Delete LDAP configuration tags: - Authentication + x-ibm-ahub-byok: true /api/settings/authentication/oidc: delete: description: Delete the corresponding tenants OIDC configuration. @@ -19180,6 +19682,7 @@ paths: summary: Delete OIDC configuration tags: - Authentication + x-ibm-ahub-byok: true /api/settings/authentication/saml: delete: description: Delete the corresponding tenants SAML configuration. @@ -19193,6 +19696,7 @@ paths: summary: Delete SAML configuration tags: - Authentication + x-ibm-ahub-byok: true /api/settings/correction: get: operationId: getAllSloCorrectionWindowConfigs @@ -19344,6 +19848,7 @@ paths: summary: Get All SLO Correction Window Configs tags: - SLO Correction Configurations + x-ibm-ahub-byok: true post: operationId: createSloCorrectionWindowConfig requestBody: @@ -19408,6 +19913,7 @@ paths: tags: - SLO Correction Configurations x-description: createSloCorrectionConfiguration + x-ibm-ahub-byok: true /api/settings/correction/{id}: delete: operationId: deleteSloCorrectionWindowConfig @@ -19428,6 +19934,7 @@ paths: summary: Delete an existing SLO Correction Window Configuration tags: - SLO Correction Configurations + x-ibm-ahub-byok: true get: operationId: getSloCorrectionWindowConfigById parameters: @@ -19485,6 +19992,7 @@ paths: summary: Get an existing SLO Correction Window Config tags: - SLO Correction Configurations + x-ibm-ahub-byok: true put: operationId: updateSloCorrectionWindowConfig parameters: @@ -19558,6 +20066,7 @@ paths: tags: - SLO Correction Configurations x-description: updateSloCorrectionConfiguration + x-ibm-ahub-byok: true /api/settings/invitation/share: post: operationId: shareAndInviteUsers @@ -19603,6 +20112,7 @@ paths: tags: - User x-description: inviteUsers + x-ibm-ahub-byok: true /api/settings/invitations: delete: operationId: revokePendingInvitation @@ -19629,6 +20139,7 @@ paths: tags: - User x-description: revokePendingInvitation + x-ibm-ahub-byok: true get: operationId: getInvitations responses: @@ -19647,6 +20158,7 @@ paths: tags: - User x-description: getInvitations + x-ibm-ahub-byok: true post: operationId: inviteUsers requestBody: @@ -19689,6 +20201,7 @@ paths: tags: - User x-description: inviteUsers + x-ibm-ahub-byok: true /api/settings/ip-filtering: delete: description: Delete the currently configured ip-filtering for the current tenant @@ -19721,6 +20234,7 @@ paths: summary: Delete current ip-filtering tags: - IP Filtering + x-ibm-ahub-byok: true get: description: Retrieve currently configured ip-filtering for the current tenant unit. @@ -19768,6 +20282,7 @@ paths: summary: Get current ip-filtering tags: - IP Filtering + x-ibm-ahub-byok: true put: description: Update or create ip-filtering for the current tenant unit. Enabled configurations will become temporarily active (5 minutes) and need to be verified @@ -19846,6 +20361,7 @@ paths: summary: Upsert ip-filtering tags: - IP Filtering + x-ibm-ahub-byok: true /api/settings/ip-filtering/disable: patch: description: Disable and retrieve the currently configured ip-filtering for @@ -19902,6 +20418,7 @@ paths: summary: Disable the current ip-filtering tags: - IP Filtering + x-ibm-ahub-byok: true /api/settings/ip-filtering/verify: patch: description: Verify and retrieve the currently configured ip-filtering for the @@ -19961,6 +20478,7 @@ paths: summary: Verify current ip-filtering tags: - IP Filtering + x-ibm-ahub-byok: true /api/settings/llm-pricing: delete: description: Delete a tenant-specific price configuration for a specific provider+model. @@ -19997,6 +20515,7 @@ paths: summary: Delete LLM model price tags: - LLM Price Configuration + x-ibm-ahub-byok: true get: description: Fetch all LLM price configurations for the current tenant unit. operationId: getAllLlmModelPrices @@ -20013,6 +20532,7 @@ paths: summary: Get all LLM model prices tags: - LLM Price Configuration + x-ibm-ahub-byok: true put: description: Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. @@ -20036,6 +20556,7 @@ paths: summary: Upsert LLM model price tags: - LLM Price Configuration + x-ibm-ahub-byok: true /api/settings/llm-pricing/currency: get: description: Fetch the currency code used for LLM model pricing. @@ -20055,6 +20576,7 @@ paths: summary: Get currency for LLM model prices tags: - LLM Price Configuration + x-ibm-ahub-byok: true put: description: Set the currency code used for LLM model pricing. operationId: setLLMModelCurrency @@ -20078,6 +20600,7 @@ paths: summary: Set currency for LLM model prices tags: - LLM Price Configuration + x-ibm-ahub-byok: true /api/settings/llm-pricing/model/{modelName}: delete: description: Delete a tenant-specific price configuration for a model without @@ -20110,6 +20633,7 @@ paths: summary: Delete LLM model price without provider tags: - LLM Price Configuration + x-ibm-ahub-byok: true get: description: Fetch the price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. @@ -20144,6 +20668,7 @@ paths: summary: Get LLM model price without provider tags: - LLM Price Configuration + x-ibm-ahub-byok: true put: description: Create or update price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. @@ -20180,6 +20705,7 @@ paths: summary: Upsert LLM model price without provider tags: - LLM Price Configuration + x-ibm-ahub-byok: true /api/settings/llm-pricing/{provider}/{modelName}: delete: description: Delete a tenant-specific price configuration for a specific provider+model. @@ -20218,6 +20744,7 @@ paths: summary: Delete LLM model price tags: - LLM Price Configuration + x-ibm-ahub-byok: true get: description: Fetch the price for a specific provider+model. Optionally specify a platform for platform-specific pricing. @@ -20259,6 +20786,7 @@ paths: summary: Get LLM model price tags: - LLM Price Configuration + x-ibm-ahub-byok: true put: description: Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. @@ -20302,6 +20830,7 @@ paths: summary: Upsert LLM model price tags: - LLM Price Configuration + x-ibm-ahub-byok: true /api/settings/maintenance: get: deprecated: true @@ -20324,6 +20853,7 @@ paths: summary: All maintenance configurations tags: - Maintenance Configuration + x-ibm-ahub-byok: true /api/settings/maintenance/{id}: delete: deprecated: true @@ -20351,6 +20881,7 @@ paths: summary: Delete maintenance configuration tags: - Maintenance Configuration + x-ibm-ahub-byok: true get: deprecated: true description: |2- @@ -20378,6 +20909,7 @@ paths: summary: Maintenance configuration tags: - Maintenance Configuration + x-ibm-ahub-byok: true put: deprecated: true description: |2- @@ -20414,6 +20946,7 @@ paths: summary: Create or update maintenance configuration tags: - Maintenance Configuration + x-ibm-ahub-byok: true /api/settings/rbac/groups: get: description: |2- @@ -20453,6 +20986,7 @@ paths: tags: - Groups x-description: getGroups + x-ibm-ahub-byok: true post: description: |2- @@ -20560,6 +21094,7 @@ paths: tags: - Groups x-description: createGroup + x-ibm-ahub-byok: true /api/settings/rbac/groups/delete: put: description: |- @@ -20587,6 +21122,7 @@ paths: summary: Delete groups tags: - Groups + x-ibm-ahub-byok: true /api/settings/rbac/groups/user/{email}: get: description: |2- @@ -20664,6 +21200,7 @@ paths: tags: - Groups x-description: getGroupsByUser + x-ibm-ahub-byok: true /api/settings/rbac/groups/{groupId}/permissions: put: description: |2- @@ -20735,6 +21272,7 @@ paths: tags: - Groups x-description: updateGroup + x-ibm-ahub-byok: true /api/settings/rbac/groups/{groupId}/users: put: description: |2- @@ -20806,6 +21344,7 @@ paths: tags: - Groups x-description: addUsersToGroup + x-ibm-ahub-byok: true /api/settings/rbac/groups/{id}: delete: description: |- @@ -20838,6 +21377,7 @@ paths: summary: Delete group tags: - Groups + x-ibm-ahub-byok: true get: description: |2- @@ -20931,6 +21471,7 @@ paths: tags: - Groups x-description: getGroup + x-ibm-ahub-byok: true put: description: |2- @@ -21057,6 +21598,7 @@ paths: tags: - Groups x-description: updateGroup + x-ibm-ahub-byok: true /api/settings/rbac/groups/{id}/migrateToTeams: put: description: |- @@ -21100,6 +21642,7 @@ paths: tags: - Groups x-description: migrateGroup + x-ibm-ahub-byok: true /api/settings/rbac/groups/{id}/user/{userId}: delete: description: |- @@ -21133,6 +21676,7 @@ paths: summary: Remove user from group tags: - Groups + x-ibm-ahub-byok: true /api/settings/rbac/mappings: get: description: |2- @@ -21165,6 +21709,7 @@ paths: - Roles - Teams x-description: getMappings + x-ibm-ahub-byok: true post: description: |2- @@ -21215,6 +21760,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true /api/settings/rbac/mappings/identityProvider/restrictEmptyIdpGroups: get: description: |2- @@ -21240,6 +21786,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true put: description: |2- @@ -21264,6 +21811,7 @@ paths: summary: Allow/Restrict users with empty Idp group mapping tags: - Groups + x-ibm-ahub-byok: true /api/settings/rbac/mappings/overview: get: description: |2- @@ -21295,6 +21843,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true /api/settings/rbac/mappings/{id}: delete: description: |2- @@ -21323,6 +21872,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true get: description: |2- @@ -21357,6 +21907,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true put: description: |2- @@ -21415,6 +21966,7 @@ paths: - Groups - Roles - Teams + x-ibm-ahub-byok: true /api/settings/rbac/roles: get: description: Retrieve all roles for the current tenant unit. @@ -21466,6 +22018,7 @@ paths: summary: Get all roles tags: - Roles + x-ibm-ahub-byok: true post: description: Create a new role. operationId: createRole @@ -21512,6 +22065,7 @@ paths: summary: Create role tags: - Roles + x-ibm-ahub-byok: true /api/settings/rbac/roles/{id}: delete: description: Delete a role by ID. @@ -21544,6 +22098,7 @@ paths: summary: Delete role tags: - Roles + x-ibm-ahub-byok: true get: description: Retrieve a specific role by its ID. operationId: getRole @@ -21589,6 +22144,7 @@ paths: summary: Get role by ID tags: - Roles + x-ibm-ahub-byok: true put: description: Update an existing role by ID. operationId: updateRole @@ -21669,6 +22225,7 @@ paths: summary: Update role tags: - Roles + x-ibm-ahub-byok: true /api/settings/rbac/roles/{roleId}/mappings: get: description: Retrieve IdP role mappings applicable to a specific role @@ -21696,6 +22253,7 @@ paths: summary: Get role mappings tags: - Roles + x-ibm-ahub-byok: true /api/settings/rbac/teams: get: description: Retrieve all user teams for the current tenant unit. @@ -21808,6 +22366,7 @@ paths: summary: Get all teams tags: - Teams + x-ibm-ahub-byok: true post: description: Create a new team. operationId: createTeam @@ -21827,6 +22386,7 @@ paths: summary: Create team tags: - Teams + x-ibm-ahub-byok: true /api/settings/rbac/teams/{id}: delete: description: Delete the team data. @@ -21851,6 +22411,7 @@ paths: summary: Delete team tags: - Teams + x-ibm-ahub-byok: true get: description: Retrieve a specific team by its ID. operationId: getTeam @@ -21930,6 +22491,7 @@ paths: summary: Get team by ID tags: - Teams + x-ibm-ahub-byok: true put: description: Update an existing team by ID. operationId: updateTeam @@ -21961,6 +22523,7 @@ paths: summary: Update team tags: - Teams + x-ibm-ahub-byok: true /api/settings/rbac/teams/{teamId}/mappings: get: description: Retrieve IdP role mappings applicable to a specific team @@ -21988,6 +22551,7 @@ paths: summary: Get team role mappings tags: - Teams + x-ibm-ahub-byok: true /api/settings/session: delete: description: Delete tenant unit session settings. @@ -22004,6 +22568,7 @@ paths: summary: Delete session settings tags: - Session Settings + x-ibm-ahub-byok: true get: description: Get the tenant unit session settings operationId: getSessionSettings @@ -22025,6 +22590,7 @@ paths: summary: Get session settings tags: - Session Settings + x-ibm-ahub-byok: true put: description: Update individual tenant unit session settings. operationId: setSessionSettings @@ -22056,6 +22622,7 @@ paths: summary: Configure session settings tags: - Session Settings + x-ibm-ahub-byok: true /api/settings/sli: get: deprecated: true @@ -22090,6 +22657,7 @@ paths: summary: Get All SLI Configs tags: - SLI Settings + x-ibm-ahub-byok: true post: deprecated: true operationId: createSliConfig @@ -22140,6 +22708,7 @@ paths: tags: - SLI Settings x-description: createSliConfiguration + x-ibm-ahub-byok: true /api/settings/sli/{id}: delete: deprecated: true @@ -22164,6 +22733,7 @@ paths: summary: Delete SLI Config tags: - SLI Settings + x-ibm-ahub-byok: true get: deprecated: true operationId: getSliConfig @@ -22203,6 +22773,7 @@ paths: summary: Get SLI Config tags: - SLI Settings + x-ibm-ahub-byok: true put: deprecated: true operationId: updateSliConfig @@ -22263,6 +22834,7 @@ paths: summary: Update SLI Config tags: - SLI Settings + x-ibm-ahub-byok: true /api/settings/slo: get: operationId: getAllSloConfigs @@ -22521,6 +23093,7 @@ paths: summary: Get All SLO Configs tags: - SLO Configurations + x-ibm-ahub-byok: true post: operationId: createSloConfig requestBody: @@ -22607,6 +23180,7 @@ paths: tags: - SLO Configurations x-description: createSloConfiguration + x-ibm-ahub-byok: true /api/settings/slo/health-snapshot: get: operationId: getSloHealthSnapshot @@ -22781,6 +23355,7 @@ paths: summary: Get SLO Health Snapshot tags: - SLO Configurations + x-ibm-ahub-byok: true /api/settings/slo/tags: get: operationId: getAllSloConfigTags @@ -22848,6 +23423,7 @@ paths: summary: Get All SLO Config tags tags: - SLO Configurations + x-ibm-ahub-byok: true /api/settings/slo/{id}: delete: operationId: deleteSloConfig @@ -22868,6 +23444,7 @@ paths: summary: Delete an existing SLO Config tags: - SLO Configurations + x-ibm-ahub-byok: true get: operationId: getSloConfigById parameters: @@ -22936,6 +23513,7 @@ paths: summary: Get an existing SLO Config tags: - SLO Configurations + x-ibm-ahub-byok: true put: operationId: updateSloConfig parameters: @@ -23032,6 +23610,7 @@ paths: tags: - SLO Configurations x-description: updateSloConfiguration + x-ibm-ahub-byok: true /api/settings/synthetic-calls: delete: description: |- @@ -23055,6 +23634,7 @@ paths: summary: Delete synthetic call configurations tags: - Synthetic Calls + x-ibm-ahub-byok: true get: description: |- Use this API endpoint if one wants to get all custom synthetic call configurations. @@ -23078,6 +23658,7 @@ paths: summary: Synthetic call configurations tags: - Synthetic Calls + x-ibm-ahub-byok: true put: description: |- Use this API endpoint if one wants to get all custom synthetic call configurations. @@ -23107,6 +23688,7 @@ paths: summary: Update synthetic call configurations tags: - Synthetic Calls + x-ibm-ahub-byok: true /api/settings/trace-sampling: delete: description: Deletes the trace sampling configuration for the current tenant @@ -23124,6 +23706,7 @@ paths: - ApiKeyAuth: - ConfigureApplications summary: Delete trace sampling configuration + x-ibm-ahub-byok: true get: description: Retrieves the trace sampling configuration for the current tenant operationId: getTraceSamplingConfig @@ -23144,6 +23727,7 @@ paths: - ApiKeyAuth: - ConfigureApplications summary: Get trace sampling configuration + x-ibm-ahub-byok: true put: description: Creates or updates the trace sampling configuration for the current tenant @@ -23172,6 +23756,7 @@ paths: - ApiKeyAuth: - ConfigureApplications summary: Update trace sampling configuration + x-ibm-ahub-byok: true /api/settings/users: get: description: Retrieves all users with access to the tenant. The result will @@ -23205,6 +23790,7 @@ paths: summary: All users (without invitations) tags: - User + x-ibm-ahub-byok: true /api/settings/users/overview: get: description: Retrieves all users with access to the tenant. The result will @@ -23239,6 +23825,7 @@ paths: summary: All users (incl. invitations) tags: - User + x-ibm-ahub-byok: true /api/settings/users/{email}: put: description: Updates the full name of the user. @@ -23271,6 +23858,7 @@ paths: summary: Change user name of single user tags: - User + x-ibm-ahub-byok: true /api/settings/users/{userId}: delete: description: Remove the users access to the tenant. Removing a user from a tenant @@ -23297,6 +23885,7 @@ paths: summary: Remove user from tenant tags: - User + x-ibm-ahub-byok: true get: description: Retrieves the user with access to the tenant. operationId: getUserById @@ -23351,6 +23940,7 @@ paths: summary: Get single user tags: - User + x-ibm-ahub-byok: true /api/settings/users/{userId}/mappings: get: description: Retrieves all IdP role mappings applicable to the specified user. @@ -23382,6 +23972,7 @@ paths: summary: Get user role mappings tags: - User + x-ibm-ahub-byok: true /api/settings/users/{userId}/mergedPermissions: get: operationId: getMergedUserPermissions @@ -23400,6 +23991,7 @@ paths: security: - ApiKeyAuth: - CanConfigureUsers + x-ibm-ahub-byok: true /api/settings/v2/maintenance: get: description: |2- @@ -23507,6 +24099,7 @@ paths: tags: - Maintenance Configuration x-description: getMaintenanceConfigs + x-ibm-ahub-byok: true /api/settings/v2/maintenance/{id}: delete: description: |2- @@ -23534,6 +24127,7 @@ paths: tags: - Maintenance Configuration x-description: deleteMaintenanceConfig + x-ibm-ahub-byok: true get: description: |2- @@ -23578,6 +24172,7 @@ paths: tags: - Maintenance Configuration x-description: getMaintenanceConfig + x-ibm-ahub-byok: true put: description: |2- @@ -23661,6 +24256,7 @@ paths: tags: - Maintenance Configuration x-description: putMaintenanceConfig + x-ibm-ahub-byok: true /api/settings/v2/maintenance/{id}/pause: put: description: |2- @@ -23706,6 +24302,7 @@ paths: tags: - Maintenance Configuration x-description: pauseMaintenanceConfig + x-ibm-ahub-byok: true /api/settings/v2/maintenance/{id}/resume: put: description: |2- @@ -23751,6 +24348,7 @@ paths: tags: - Maintenance Configuration x-description: resumeMaintenanceConfig + x-ibm-ahub-byok: true /api/settings/v2/sli: get: operationId: getAllSliConfigsV2 @@ -23784,6 +24382,7 @@ paths: summary: Get All SLI Configs tags: - SLI Settings + x-ibm-ahub-byok: true post: operationId: createSliConfigV2 requestBody: @@ -23847,6 +24446,7 @@ paths: tags: - SLI Settings x-description: createSliConfiguration + x-ibm-ahub-byok: true /api/settings/v2/sli/{entityType}/{entityId}: get: operationId: getSliConfigsForEntityTypeAndIdV2 @@ -23897,6 +24497,7 @@ paths: summary: Get all SLI configs for entity type and entity id tags: - SLI Settings + x-ibm-ahub-byok: true /api/settings/v2/sli/{id}: delete: operationId: deleteSliConfigV2 @@ -23917,6 +24518,7 @@ paths: summary: Delete SLI Config tags: - SLI Settings + x-ibm-ahub-byok: true get: operationId: getSliConfigV2 parameters: @@ -23964,6 +24566,7 @@ paths: summary: Get SLI Config tags: - SLI Settings + x-ibm-ahub-byok: true /api/sli/report/{sliId}: get: operationId: getSli @@ -24037,6 +24640,7 @@ paths: are around one minute.)' tags: - SLI Report + x-ibm-ahub-byok: true /api/slo/catalog/metrics/mobile: get: description: API request to get mobile app SLI metric catalog filtered by golden @@ -24162,6 +24766,7 @@ paths: summary: Mobile app SLI metric catalog tags: - SLO Catalog for Mobile App + x-ibm-ahub-byok: true /api/slo/catalog/tags/mobile: get: operationId: getMobileAppSloTagCatalog @@ -24603,6 +25208,7 @@ paths: tags: - SLO Catalog for Mobile App x-description: getMobileAppSloTagCatalog + x-ibm-ahub-byok: true /api/slo/correction: get: operationId: getSloCorrection @@ -24737,6 +25343,7 @@ paths: summary: Generate SLO Correction Windows tags: - SLO Correction Windows + x-ibm-ahub-byok: true /api/slo/entities/{sloId}: get: operationId: entitiesSlo @@ -24821,6 +25428,7 @@ paths: summary: Get the entities monitored by a SLO (Service Level Objective) configuration tags: - Service Levels Objective(SLO) Report + x-ibm-ahub-byok: true /api/slo/explain/{sloId}: get: operationId: explainSlo @@ -24903,6 +25511,7 @@ paths: summary: Explain Service Levels objective with more details. tags: - Service Levels Objective(SLO) Report + x-ibm-ahub-byok: true /api/slo/report/{sloId}: get: operationId: getSlo @@ -25658,6 +26267,7 @@ paths: summary: Generate Service Levels report tags: - Service Levels Objective(SLO) Report + x-ibm-ahub-byok: true /api/slo/summarize/{sloId}: get: operationId: summarizeSlo @@ -25713,6 +26323,7 @@ paths: summary: Summarize Service Levels objective results. tags: - Service Levels Objective(SLO) Report + x-ibm-ahub-byok: true /api/synthetics/catalog: get: operationId: getSyntheticTagCatalog @@ -25902,6 +26513,7 @@ paths: tags: - Synthetic Catalog x-description: getSyntheticTagCatalog + x-ibm-ahub-byok: true /api/synthetics/catalog/metrics: get: description: API to get catalog of synthetic metrics. @@ -25942,6 +26554,7 @@ paths: tags: - Synthetic Catalog x-description: getSyntheticCatalogMetrics + x-ibm-ahub-byok: true /api/synthetics/metrics: post: description: |- @@ -26027,6 +26640,7 @@ paths: summary: Get Synthetic Metrics tags: - Synthetic Metrics + x-ibm-ahub-byok: true /api/synthetics/results: post: description: |- @@ -26094,6 +26708,7 @@ paths: summary: Get Synthetic test playback results tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/analytic: post: description: |- @@ -26226,6 +26841,7 @@ paths: summary: Get a list of Synthetic tests based on the specified analytic function tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/list: post: description: |- @@ -26357,6 +26973,7 @@ paths: summary: Get a list of Synthetic test playback results tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/locationsummarylist: post: description: |- @@ -26441,6 +27058,7 @@ paths: data tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/testsummarylist: post: description: |- @@ -26615,6 +27233,7 @@ paths: time data tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/{testid}/{testresultid}: get: description: |- @@ -26672,6 +27291,7 @@ paths: summary: Get Synthetic test playback detail result description(metadata) tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/{testid}/{testresultid}/detail: get: description: |- @@ -26759,6 +27379,7 @@ paths: summary: Get Synthetic test playback result detail data tags: - Synthetic Test Playback Results + x-ibm-ahub-byok: true /api/synthetics/results/{testid}/{testresultid}/file: get: description: |- @@ -26821,6 +27442,7 @@ paths: tags: - Synthetic Test Playback Results x-description: getSyntheticResultDetailDataFile + x-ibm-ahub-byok: true /api/synthetics/settings/credentials: get: description: |- @@ -26866,6 +27488,7 @@ paths: summary: All Synthetic credential names tags: - Synthetic Settings + x-ibm-ahub-byok: true post: description: |- API request to create a Synthetic Credential. @@ -26902,6 +27525,7 @@ paths: tags: - Synthetic Settings x-payload: createSyntheticCredential + x-ibm-ahub-byok: true /api/synthetics/settings/credentials/associations: get: description: |- @@ -26943,6 +27567,7 @@ paths: summary: All Synthetic credentials tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/credentials/associations/{name}: get: description: |- @@ -26987,6 +27612,7 @@ paths: summary: A Synthetic credential tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/credentials/{name}: delete: description: |- @@ -27016,6 +27642,7 @@ paths: summary: Delete a Synthetic credential tags: - Synthetic Settings + x-ibm-ahub-byok: true patch: description: |- API request to patch attributes of a Synthetic Credential. @@ -27062,6 +27689,7 @@ paths: tags: - Synthetic Settings x-description: patchSyntheticCredential + x-ibm-ahub-byok: true put: description: |- API request to update a Synthetic Credential. @@ -27108,6 +27736,7 @@ paths: tags: - Synthetic Settings x-payload: updateSyntheticCredential + x-ibm-ahub-byok: true /api/synthetics/settings/datacenters: get: description: |- @@ -27164,6 +27793,7 @@ paths: summary: All Synthetic datacenters tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/datacenters/{datacenterId}: get: description: |- @@ -27214,6 +27844,7 @@ paths: summary: A Synthetic datacenter tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/locations: get: description: |- @@ -27334,6 +27965,7 @@ paths: tags: - Synthetic Settings x-description: getSyntheticLocations + x-ibm-ahub-byok: true /api/synthetics/settings/locations/{id}: delete: description: |- @@ -27362,6 +27994,7 @@ paths: tags: - Synthetic Settings x-description: deleteSyntheticLocation + x-ibm-ahub-byok: true get: description: |- API request to retrieve a Synthetic Location with matching id. @@ -27424,6 +28057,7 @@ paths: summary: A Synthetic location tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/tests: get: description: |- @@ -27600,6 +28234,7 @@ paths: tags: - Synthetic Settings x-description: getSyntheticTests + x-ibm-ahub-byok: true post: description: |- API request to create a Synthetic Test. @@ -27679,6 +28314,7 @@ paths: tags: - Synthetic Settings x-description: createSyntheticTest + x-ibm-ahub-byok: true /api/synthetics/settings/tests/bulk-delete: post: description: API request to delete a list of Synthetic Tests. @@ -27727,6 +28363,7 @@ paths: summary: Delete Synthetic tests tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/tests/bulk-update: post: description: API request to update a list of Synthetic Tests. @@ -27793,6 +28430,7 @@ paths: summary: Update Synthetic tests tags: - Synthetic Settings + x-ibm-ahub-byok: true /api/synthetics/settings/tests/ci-cd: get: description: |- @@ -27875,6 +28513,7 @@ paths: tags: - Synthetic Settings x-description: getSyntheticTestCICDs + x-ibm-ahub-byok: true post: description: |- API request to create a Synthetic Test CI/CD. @@ -27930,6 +28569,7 @@ paths: tags: - Synthetic Settings x-description: createSyntheticTestCICD + x-ibm-ahub-byok: true /api/synthetics/settings/tests/ci-cd/{testResultId}: get: description: |- @@ -27979,6 +28619,7 @@ paths: tags: - Synthetic Settings x-description: getSyntheticTestCICD + x-ibm-ahub-byok: true /api/synthetics/settings/tests/{id}: delete: description: |- @@ -28008,6 +28649,7 @@ paths: summary: Delete a Synthetic test tags: - Synthetic Settings + x-ibm-ahub-byok: true get: description: |- API request to retrieve a Synthetic Test with matching id. @@ -28099,6 +28741,7 @@ paths: summary: A Synthetic test tags: - Synthetic Settings + x-ibm-ahub-byok: true patch: description: |- API request to update a Synthetic Test. @@ -28148,6 +28791,7 @@ paths: tags: - Synthetic Settings x-description: patchSyntheticTest + x-ibm-ahub-byok: true put: description: |- API request to update a Synthetic Test. @@ -28213,6 +28857,7 @@ paths: tags: - Synthetic Settings x-description: updateSyntheticTest + x-ibm-ahub-byok: true /api/tos-privacy-agreement: post: operationId: tosPrivacyAgreement @@ -28222,6 +28867,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/tos-privacy-agreement/checkUserAcceptance: get: operationId: get_2 @@ -28232,6 +28878,7 @@ paths: schema: type: boolean description: default response + x-ibm-ahub-byok: true /api/tos-privacy-agreement/latest: get: operationId: getLatestTosPrivacyAgreement @@ -28241,6 +28888,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/ui/settings: get: operationId: getUiSettings @@ -28250,6 +28898,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true put: operationId: putUiSettings responses: @@ -28258,6 +28907,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/ui/settings/{setting}: put: operationId: putUiSetting @@ -28273,6 +28923,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/user-settings: get: operationId: get_3 @@ -28282,6 +28933,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true put: operationId: put_1 responses: @@ -28290,6 +28942,7 @@ paths: application/json: { } description: default response + x-ibm-ahub-byok: true /api/website-monitoring/analyze/beacon-groups: post: description: |- @@ -28370,6 +29023,7 @@ paths: summary: Get grouped beacon metrics tags: - Website Analyze + x-ibm-ahub-byok: true /api/website-monitoring/analyze/beacons: post: description: |- @@ -28515,6 +29169,7 @@ paths: summary: Get all beacons tags: - Website Analyze + x-ibm-ahub-byok: true /api/website-monitoring/catalog: get: description: API to get website tag catalog for specified beaconType and useCase. @@ -28588,6 +29243,7 @@ paths: tags: - Website Catalog x-description: getWebsiteTagCatalog + x-ibm-ahub-byok: true /api/website-monitoring/catalog/metrics: get: description: API to get catalog of website metrics. @@ -28651,6 +29307,7 @@ paths: tags: - Website Catalog x-description: getWebsiteCatalogMetrics + x-ibm-ahub-byok: true /api/website-monitoring/catalog/tags: get: description: API to get all existing website tags. @@ -28682,6 +29339,7 @@ paths: tags: - Website Catalog x-description: getWebsiteCatalogTags + x-ibm-ahub-byok: true /api/website-monitoring/config: get: description: API request to get all configured websites details. @@ -28714,6 +29372,7 @@ paths: summary: Get configured websites tags: - Website Configuration + x-ibm-ahub-byok: true post: description: API request to add new website. operationId: createWebsite @@ -28771,6 +29430,7 @@ paths: summary: Configure new website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}: delete: description: API request to delete website. @@ -28798,6 +29458,7 @@ paths: summary: Remove website tags: - Website Configuration + x-ibm-ahub-byok: true get: description: API request to get configured website details for specified websiteId operationId: getWebsite @@ -28836,6 +29497,7 @@ paths: summary: Get configured website tags: - Website Configuration + x-ibm-ahub-byok: true put: description: API request to rename website. operationId: renameWebsite @@ -28877,6 +29539,7 @@ paths: summary: Rename website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/geo-location: get: description: API request to get geo-location configuration of a website specified @@ -28915,6 +29578,7 @@ paths: summary: Get geo location configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true put: description: API request to update geo location configuration for website. operationId: updateWebsiteGeoLocationConfiguration @@ -28952,6 +29616,7 @@ paths: summary: Update geo location configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/geo-mapping-rules: get: description: API request to get custom geo mapping rules for website. @@ -28984,6 +29649,7 @@ paths: summary: Get custom geo mapping rules for website tags: - Website Configuration + x-ibm-ahub-byok: true put: description: API request to set custom geo mapping rules for website. operationId: setWebsiteGeoMappingRules @@ -29022,6 +29688,7 @@ paths: summary: Set custom geo mapping rules for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/ip-masking: get: description: API request to get IP masking configuration of a website specified @@ -29058,6 +29725,7 @@ paths: summary: Get IP masking configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true put: description: API request to update IP masking configuration for website. operationId: updateWebsiteIpMaskingConfiguration @@ -29095,6 +29763,7 @@ paths: summary: Update IP masking configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/sourcemap-upload: get: description: API request to get all sourcemap upload configurations for website. @@ -29129,6 +29798,7 @@ paths: summary: Get all sourcemap upload configurations for website tags: - Website Configuration + x-ibm-ahub-byok: true post: description: API request to add sourcemap upload configuration for website. operationId: postWebsiteSourceMapUploadConfig @@ -29179,6 +29849,7 @@ paths: summary: Add new sourcemap upload configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId}: delete: description: API request to delete sourcemap upload configuration for website. @@ -29211,6 +29882,7 @@ paths: summary: Delete sourcemap upload configuration for website tags: - Website Configuration + x-ibm-ahub-byok: true get: description: API request to get sourcemap upload configuration for website. operationId: getWebsiteSourceMapUploadConfiguration @@ -29248,6 +29920,7 @@ paths: summary: Get sourcemap upload configurations for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId}/clear: put: description: API request to clear source map files for sourcemap upload configuration. @@ -29285,6 +29958,7 @@ paths: summary: Clear source map files for sourcemap upload configuration tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId}/form: put: description: API request to upload sourcemap file for website. @@ -29352,6 +30026,7 @@ paths: summary: Upload sourcemap file for website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/config/{websiteId}/teams: put: description: API request to update teams of a website. @@ -29398,6 +30073,7 @@ paths: summary: Update teams assigned to the website tags: - Website Configuration + x-ibm-ahub-byok: true /api/website-monitoring/metrics: post: deprecated: true @@ -29422,6 +30098,7 @@ paths: summary: Get beacon metrics tags: - Website Metrics + x-ibm-ahub-byok: true /api/website-monitoring/page-load;id={id};timestamp={timestamp}: get: description: API request to get website monitoring beacons for a page load. @@ -29564,6 +30241,7 @@ paths: summary: Get page load tags: - Website Metrics + x-ibm-ahub-byok: true /api/website-monitoring/v2/metrics: post: description: API request to get website monitoring beacon metrics. @@ -29625,6 +30303,7 @@ paths: summary: Get beacon metrics tags: - Website Metrics + x-ibm-ahub-byok: true components: schemas: AbstractIntegration: @@ -30175,13 +30854,38 @@ components: - $ref: '#/components/schemas/Threshold' - type: object properties: - deviationFactor: + adaptability: type: number format: double exclusiveMaximum: false exclusiveMinimum: false - maximum: 16.0 - minimum: 0.5 + maximum: 1.0 + minimum: 0 + deviationFactor: + type: number + format: double + minimumAbsoluteDelta: + type: number + format: double + minimum: 0 + seasonality: + type: string + enum: + - AUTO + - WEEKLY + - DAILY + - NONE + sensitivityMode: + type: string + enum: + - STANDARD_DEVIATIONS + - PERCENTAGE + - ABSOLUTE + sensitivityValue: + type: number + format: double + exclusiveMinimum: true + minimum: 0 required: - operator AdaptiveThresholdRule: @@ -30190,13 +30894,38 @@ components: - $ref: '#/components/schemas/ThresholdConfigRule' - type: object properties: - deviationFactor: + adaptability: type: number format: double exclusiveMaximum: false exclusiveMinimum: false - maximum: 16.0 - minimum: 0.5 + maximum: 1.0 + minimum: 0.01 + deviationFactor: + type: number + format: double + minimumAbsoluteDelta: + type: number + format: double + minimum: 0 + seasonality: + type: string + enum: + - AUTO + - WEEKLY + - DAILY + - NONE + sensitivityMode: + type: string + enum: + - STANDARD_DEVIATIONS + - PERCENTAGE + - ABSOLUTE + sensitivityValue: + type: number + format: double + exclusiveMinimum: true + minimum: 0 AdjustedTimeframe: type: object description: | @@ -35729,6 +36458,9 @@ components: dashboard to determine the entity grouping tag name. maxItems: 5 minItems: 0 + includeMemberIds: + type: boolean + description: Includes the IDs of each group’s member entities in the response metrics: type: array items: @@ -37905,6 +38637,13 @@ components: type: integer format: int64 description: number of entities in this group + memberIds: + type: array + description: Snapshot IDs of entities in this group + items: + type: string + description: Snapshot IDs of entities in this group + nullable: true metrics: type: object additionalProperties: @@ -41395,6 +42134,10 @@ components: description: Policy description. maxLength: 512 minLength: 0 + enabled: + type: boolean + default: true + description: Flag to enable or disable the policy. Enabled by default. id: type: string description: Policy identifier. @@ -44731,7 +45474,7 @@ components: minLength: 0 credentialName: type: string - maxLength: 128 + maxLength: 64 minLength: 1 credentialValue: type: string @@ -45013,6 +45756,7 @@ components: type: string enum: - CNP + - ESM - GitHub - PW syntheticType: @@ -45585,6 +46329,7 @@ components: - BIZOPS - BUSINESS_METRICS - SUBTRACE + - EVAL_RESULTS - UNKNOWN uniqueItems: true canApplyToDestination: diff --git a/pyproject.toml b/pyproject.toml index 16f1d4c0..07497c35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "instana_client" -version = "1.1.4" +version = "1.1.5" description = "Instana REST API documentation" authors = [ {name = "© Instana",email = "support@instana.com"}, diff --git a/requirements.txt b/requirements.txt index 867a4496..9e2d67a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 -pydantic >= 2 +pydantic >= 2.11 typing-extensions >= 4.7.1 -lazy-imports >= 1, < 2 diff --git a/sanity_test.sh b/sanity_test.sh index 074e4c60..9a7e228a 100755 --- a/sanity_test.sh +++ b/sanity_test.sh @@ -116,6 +116,10 @@ fi # Test 3: Install package print_status "Testing package installation..." +# Remove any previous (editable) install first; a leftover editable install +# breaks pip's isolated build step on re-runs +python3 -m pip uninstall --break-system-packages -y instana_client >/dev/null 2>&1 || \ + python3 -m pip uninstall -y instana_client >/dev/null 2>&1 || true # Use pip install instead of setup.py install (modern approach) if python3 -m pip install --break-system-packages -e . >/dev/null 2>&1; then print_success "Package installs successfully" diff --git a/setup.py b/setup.py index ba357f5e..9e70bd1e 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,9 @@ -# coding: utf-8 - """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.328.1128 + The version of the OpenAPI document: 1.329.1386 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,14 +20,13 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "instana-client" -VERSION = "1.1.4" -PYTHON_REQUIRES = ">= 3.9" +VERSION = "1.1.5" +PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", - "pydantic >= 2", + "pydantic >= 2.11", "typing-extensions >= 4.7.1", - "lazy-imports >= 1, < 2", ] setup( @@ -48,4 +45,4 @@ Documentation for INSTANA REST API """, # noqa: E501 package_data={"instana_client": ["py.typed"]}, -) \ No newline at end of file +)