instana-client 1.0.0__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- instana_client/__init__.py +91 -9
- instana_client/api/__init__.py +8 -0
- instana_client/api/action_catalog_api.py +329 -6
- instana_client/api/action_history_api.py +54 -2
- instana_client/api/ai_management_api.py +1973 -0
- instana_client/api/apdex_report_api.py +2 -2
- instana_client/api/apdex_settings_api.py +8 -9
- instana_client/api/api_token_api.py +23 -24
- instana_client/api/application_alert_configuration_api.py +79 -66
- instana_client/api/application_analyze_api.py +20 -282
- instana_client/api/application_catalog_api.py +11 -11
- instana_client/api/application_metrics_api.py +14 -14
- instana_client/api/application_resources_api.py +171 -44
- instana_client/api/application_settings_api.py +134 -104
- instana_client/api/application_topology_api.py +11 -2
- instana_client/api/audit_log_api.py +2 -2
- instana_client/api/authentication_api.py +14 -30
- instana_client/api/business_monitoring_api.py +2 -2
- instana_client/api/custom_dashboards_api.py +29 -19
- instana_client/api/custom_entities_api.py +1398 -0
- instana_client/api/end_user_monitoring_api.py +310 -0
- instana_client/api/event_settings_api.py +1365 -658
- instana_client/api/events_api.py +11 -26
- instana_client/api/global_application_alert_configuration_api.py +53 -56
- instana_client/api/groups_api.py +888 -87
- instana_client/api/health_api.py +8 -5
- instana_client/api/host_agent_api.py +274 -8
- instana_client/api/infrastructure_alert_configuration_api.py +50 -30
- instana_client/api/infrastructure_analyze_api.py +14 -14
- instana_client/api/infrastructure_catalog_api.py +44 -13
- instana_client/api/infrastructure_metrics_api.py +5 -5
- instana_client/api/infrastructure_resources_api.py +11 -11
- instana_client/api/infrastructure_topology_api.py +2 -2
- instana_client/api/log_alert_configuration_api.py +50 -30
- instana_client/api/logging_analyze_api.py +343 -0
- instana_client/api/maintenance_configuration_api.py +32 -20
- instana_client/api/mobile_app_analyze_api.py +2 -2
- instana_client/api/mobile_app_catalog_api.py +8 -2
- instana_client/api/mobile_app_configuration_api.py +3058 -334
- instana_client/api/mobile_app_metrics_api.py +3 -6
- instana_client/api/policies_api.py +14 -11
- instana_client/api/releases_api.py +8 -11
- instana_client/api/roles_api.py +1410 -0
- instana_client/api/service_levels_alert_configuration_api.py +2 -2
- instana_client/api/service_levels_objective_slo_configurations_api.py +211 -87
- instana_client/api/service_levels_objective_slo_report_api.py +38 -2
- instana_client/api/session_settings_api.py +2 -2
- instana_client/api/sli_report_api.py +2 -2
- instana_client/api/sli_settings_api.py +5 -8
- instana_client/api/slo_correction_configurations_api.py +1537 -0
- instana_client/api/slo_correction_windows_api.py +392 -0
- instana_client/api/synthetic_alert_configuration_api.py +53 -56
- instana_client/api/synthetic_calls_api.py +20 -9
- instana_client/api/synthetic_catalog_api.py +20 -2
- instana_client/api/synthetic_metrics_api.py +5 -5
- instana_client/api/synthetic_settings_api.py +1915 -477
- instana_client/api/synthetic_test_playback_results_api.py +307 -20
- instana_client/api/teams_api.py +1380 -0
- instana_client/api/usage_api.py +2 -2
- instana_client/api/user_api.py +41 -28
- instana_client/api/website_analyze_api.py +8 -8
- instana_client/api/website_catalog_api.py +11 -8
- instana_client/api/website_configuration_api.py +1801 -336
- instana_client/api/website_metrics_api.py +3 -3
- instana_client/api_client.py +3 -3
- instana_client/configuration.py +14 -7
- instana_client/exceptions.py +2 -2
- instana_client/models/__init__.py +626 -11
- instana_client/models/abstract_integration.py +11 -5
- instana_client/models/abstract_rule.py +2 -2
- instana_client/models/access_log_entry.py +12 -7
- instana_client/models/access_log_response.py +2 -2
- instana_client/models/access_rule.py +2 -2
- instana_client/models/action.py +2 -2
- instana_client/models/action_configuration.py +2 -2
- instana_client/models/action_instance.py +2 -2
- instana_client/models/action_instance_metadata_entry.py +2 -2
- instana_client/models/action_instance_parameter.py +2 -2
- instana_client/models/action_instance_request.py +2 -2
- instana_client/models/action_instance_request_parameters.py +2 -2
- instana_client/models/action_match.py +19 -6
- instana_client/models/action_search_space.py +2 -2
- instana_client/models/adaptive_baseline.py +3 -3
- instana_client/models/adaptive_threshold_rule.py +3 -3
- instana_client/models/addition.py +97 -0
- instana_client/models/adjusted_timeframe.py +2 -2
- instana_client/models/agent_configuration_update.py +2 -2
- instana_client/models/alerting_configuration.py +2 -2
- instana_client/models/alerting_configuration_with_last_updated.py +2 -2
- instana_client/models/alerting_time_window.py +2 -2
- instana_client/models/apdex_configuration.py +2 -2
- instana_client/models/apdex_configuration_input.py +2 -2
- instana_client/models/apdex_entity.py +2 -2
- instana_client/models/apdex_report.py +2 -2
- instana_client/models/api_create_group.py +2 -2
- instana_client/models/api_create_role.py +101 -0
- instana_client/models/api_group.py +2 -2
- instana_client/models/api_member.py +5 -3
- instana_client/models/api_permission_set.py +12 -3
- instana_client/models/api_restricted_application_filter.py +2 -2
- instana_client/models/api_role.py +102 -0
- instana_client/models/api_tag.py +91 -0
- instana_client/models/api_team.py +113 -0
- instana_client/models/api_team_info.py +89 -0
- instana_client/models/api_team_member.py +102 -0
- instana_client/models/api_team_role.py +92 -0
- instana_client/models/api_team_scope.py +131 -0
- instana_client/models/api_token.py +35 -5
- instana_client/models/app_data_metric_configuration.py +2 -2
- instana_client/models/application.py +2 -2
- instana_client/models/application_alert_config.py +2 -2
- instana_client/models/application_alert_config_with_metadata.py +2 -2
- instana_client/models/application_alert_rule.py +2 -2
- instana_client/models/application_apdex_entity.py +2 -2
- instana_client/models/application_config.py +2 -2
- instana_client/models/application_event_result.py +6 -7
- instana_client/models/application_item.py +2 -2
- instana_client/models/application_metric_result.py +2 -2
- instana_client/models/application_node.py +2 -2
- instana_client/models/application_result.py +2 -2
- instana_client/models/application_scope.py +4 -4
- instana_client/models/application_scope_with_metadata.py +6 -6
- instana_client/models/application_sli_entity.py +2 -2
- instana_client/models/application_slo_entity.py +2 -2
- instana_client/models/application_time_threshold.py +2 -2
- instana_client/models/arithmetic_configuration.py +123 -0
- instana_client/models/arithmetic_operand.py +154 -0
- instana_client/models/arithmetic_operation.py +128 -0
- instana_client/models/audit_log_entry.py +2 -2
- instana_client/models/audit_log_ui_response.py +2 -2
- instana_client/models/author.py +2 -2
- instana_client/models/availability_blueprint_indicator.py +5 -16
- instana_client/models/availability_sli_entity.py +2 -2
- instana_client/models/available_metrics.py +2 -2
- instana_client/models/available_plugins.py +2 -2
- instana_client/models/backend_trace_reference.py +2 -2
- instana_client/models/bidirectional_ms_teams_app_integration.py +108 -0
- instana_client/models/bidirectional_slack_app_integration.py +104 -0
- instana_client/models/binary_operator_dto.py +2 -2
- instana_client/models/browser_script_configuration.py +5 -3
- instana_client/models/browser_script_configuration_update.py +129 -0
- instana_client/models/built_in_event_specification.py +2 -2
- instana_client/models/built_in_event_specification_with_last_updated.py +2 -2
- instana_client/models/business_activity.py +5 -3
- instana_client/models/business_perspective_config.py +2 -2
- instana_client/models/call_groups_item.py +2 -2
- instana_client/models/call_groups_result.py +2 -2
- instana_client/models/call_relation.py +2 -2
- instana_client/models/change_summary.py +2 -2
- instana_client/models/cloudfoundry_physical_context.py +4 -4
- instana_client/models/condition.py +2 -2
- instana_client/models/config_version.py +2 -2
- instana_client/models/correction.py +105 -0
- instana_client/models/correction_configuration.py +110 -0
- instana_client/models/correction_scheduling.py +105 -0
- instana_client/models/correction_window.py +95 -0
- instana_client/models/crash_mobile_app_alert_rule.py +2 -2
- instana_client/models/create_website_request_inner.py +90 -0
- instana_client/models/cursor_paginated_business_activity_item.py +2 -2
- instana_client/models/cursor_pagination.py +2 -2
- instana_client/models/cursor_pagination_infra_explore_cursor.py +2 -2
- instana_client/models/custom_blueprint_indicator.py +8 -4
- instana_client/models/custom_dashboard.py +2 -2
- instana_client/models/custom_dashboard_preview.py +2 -2
- instana_client/models/custom_dashboard_with_user_specific_information.py +115 -0
- instana_client/models/custom_dependency.py +119 -0
- instana_client/models/custom_email_subject_prefix.py +2 -2
- instana_client/models/custom_entity_model.py +126 -0
- instana_client/models/custom_entity_with_metadata.py +98 -0
- instana_client/models/custom_event_mobile_app_alert_rule.py +2 -2
- instana_client/models/custom_event_specification.py +9 -3
- instana_client/models/custom_event_specification_with_last_updated.py +9 -3
- instana_client/models/custom_event_website_alert_rule.py +2 -2
- instana_client/models/custom_metric.py +134 -0
- instana_client/models/custom_payload_configuration.py +2 -2
- instana_client/models/custom_payload_field.py +2 -2
- instana_client/models/custom_payload_with_last_updated.py +2 -2
- instana_client/models/custom_payload_with_version.py +101 -0
- instana_client/models/dashboard_api_token.py +2 -2
- instana_client/models/database_integration.py +2 -2
- instana_client/models/deprecated_tag_filter.py +4 -4
- instana_client/models/division.py +97 -0
- instana_client/models/dns_configuration.py +146 -0
- instana_client/models/dns_configuration_update.py +143 -0
- instana_client/models/dns_filter_query_time.py +99 -0
- instana_client/models/dns_filter_target_value.py +106 -0
- instana_client/models/duration.py +2 -2
- instana_client/models/dynamic_field.py +2 -2
- instana_client/models/dynamic_field_value.py +2 -2
- instana_client/models/dynamic_parameter.py +2 -2
- instana_client/models/edit_user.py +2 -2
- instana_client/models/email_integration.py +2 -2
- instana_client/models/empty_configuration.py +2 -2
- instana_client/models/endpoint.py +4 -4
- instana_client/models/endpoint_config.py +2 -2
- instana_client/models/endpoint_event_result.py +8 -9
- instana_client/models/endpoint_item.py +2 -2
- instana_client/models/endpoint_metric_result.py +2 -2
- instana_client/models/endpoint_node.py +2 -2
- instana_client/models/endpoint_result.py +3 -3
- instana_client/models/endpoint_simple.py +3 -3
- instana_client/models/entity_count_rule.py +2 -2
- instana_client/models/entity_count_verification_rule.py +3 -3
- instana_client/models/entity_health_info.py +2 -2
- instana_client/models/entity_id.py +2 -2
- instana_client/models/entity_verification_rule.py +3 -3
- instana_client/models/error_budget_alert_rule.py +5 -5
- instana_client/models/errors_application_alert_rule.py +2 -2
- instana_client/models/event.py +11 -3
- instana_client/models/event_filtering_configuration.py +2 -2
- instana_client/models/event_result.py +4 -3
- instana_client/models/event_specification_info.py +2 -2
- instana_client/models/extended_service.py +2 -2
- instana_client/models/failure_synthetic_alert_rule.py +2 -2
- instana_client/models/fixed_http_path_segment_matching_rule.py +2 -2
- instana_client/models/fixed_time_window.py +4 -3
- instana_client/models/generic_infra_alert_rule.py +12 -4
- instana_client/models/geo_location_configuration.py +2 -2
- instana_client/models/geo_mapping_rule.py +2 -2
- instana_client/models/geo_subdivision.py +2 -2
- instana_client/models/get_activities.py +2 -2
- instana_client/models/get_application_metrics.py +2 -2
- instana_client/models/get_applications.py +2 -2
- instana_client/models/get_available_metrics_query.py +2 -2
- instana_client/models/get_available_plugins_query.py +2 -2
- instana_client/models/get_call_groups.py +2 -2
- instana_client/models/get_combined_metrics.py +2 -2
- instana_client/models/get_dynamic_parameter_values.py +2 -2
- instana_client/models/get_endpoints.py +2 -2
- instana_client/models/get_infrastructure_groups_query.py +2 -2
- instana_client/models/get_infrastructure_query.py +2 -2
- instana_client/models/get_metrics_result.py +2 -2
- instana_client/models/get_mobile_app_beacon_groups.py +2 -2
- instana_client/models/get_mobile_app_beacons.py +2 -2
- instana_client/models/get_mobile_app_metrics.py +2 -2
- instana_client/models/get_mobile_app_metrics_v2.py +2 -2
- instana_client/models/get_payload_keys_result.py +2 -2
- instana_client/models/get_services.py +2 -2
- instana_client/models/get_snapshots_query.py +2 -2
- instana_client/models/get_test_result.py +2 -2
- instana_client/models/get_test_result_analytic.py +126 -0
- instana_client/models/get_test_result_base.py +2 -2
- instana_client/models/get_test_result_list.py +2 -2
- instana_client/models/get_test_summary_result.py +2 -2
- instana_client/models/get_trace_download_result_item.py +3 -3
- instana_client/models/get_trace_groups.py +2 -2
- instana_client/models/get_traces.py +4 -4
- instana_client/models/get_website_beacon_groups.py +2 -2
- instana_client/models/get_website_beacons.py +2 -2
- instana_client/models/get_website_metrics.py +2 -2
- instana_client/models/get_website_metrics_v2.py +2 -2
- instana_client/models/global_application_alert_config_with_metadata.py +2 -2
- instana_client/models/global_applications_alert_config.py +2 -2
- instana_client/models/google_chat_integration.py +2 -2
- instana_client/models/graph_edge.py +2 -2
- instana_client/models/graph_node.py +2 -2
- instana_client/models/group.py +2 -2
- instana_client/models/group_by_tag.py +2 -2
- instana_client/models/group_mapping.py +5 -3
- instana_client/models/group_mapping_overview.py +96 -0
- instana_client/models/health_state.py +2 -2
- instana_client/models/historic_baseline.py +3 -3
- instana_client/models/host_availability_rule.py +2 -2
- instana_client/models/http_action_configuration.py +2 -2
- instana_client/models/http_action_configuration_update.py +138 -0
- instana_client/models/http_endpoint_config.py +2 -2
- instana_client/models/http_endpoint_rule.py +2 -2
- instana_client/models/http_path_segment_matching_rule.py +2 -2
- instana_client/models/http_script_configuration.py +5 -3
- instana_client/models/http_script_configuration_update.py +115 -0
- instana_client/models/hyper_param.py +2 -2
- instana_client/models/identity_provider_patch.py +2 -2
- instana_client/models/impacted_beacon_info.py +96 -0
- instana_client/models/infra_alert_config.py +8 -6
- instana_client/models/infra_alert_config_with_metadata.py +7 -5
- instana_client/models/infra_alert_rule.py +9 -3
- instana_client/models/infra_event_result.py +7 -8
- instana_client/models/infra_metric_configuration.py +103 -80
- instana_client/models/infra_slo_entity.py +95 -0
- instana_client/models/infra_time_threshold.py +2 -2
- instana_client/models/infrastructure_entities_result.py +2 -2
- instana_client/models/infrastructure_group.py +5 -3
- instana_client/models/infrastructure_groups_result.py +2 -2
- instana_client/models/infrastructure_item.py +2 -2
- instana_client/models/infrastructure_metric_result.py +2 -2
- instana_client/models/instana_version_info.py +2 -2
- instana_client/models/integration_overview.py +14 -4
- instana_client/models/invitation.py +6 -4
- instana_client/models/invitation_response.py +2 -2
- instana_client/models/invitation_result.py +2 -2
- instana_client/models/ip_masking_configuration.py +2 -2
- instana_client/models/js_stack_trace_line.py +2 -2
- instana_client/models/kubernetes_physical_context.py +3 -3
- instana_client/models/latency_blueprint_indicator.py +5 -16
- instana_client/models/llm_egress_gateway.py +124 -0
- instana_client/models/location_status.py +2 -2
- instana_client/models/log_alert_config.py +8 -6
- instana_client/models/log_alert_config_with_metadata.py +8 -6
- instana_client/models/log_alert_rule.py +2 -2
- instana_client/models/log_count_alert_rule.py +2 -2
- instana_client/models/log_entry_actor.py +2 -2
- instana_client/models/log_event_result.py +6 -7
- instana_client/models/log_time_threshold.py +2 -2
- instana_client/models/log_volume_group.py +91 -0
- instana_client/models/log_volume_usage_item.py +101 -0
- instana_client/models/log_volume_usage_result.py +96 -0
- instana_client/models/logs_application_alert_rule.py +4 -4
- instana_client/models/maintenance_config.py +2 -2
- instana_client/models/maintenance_config_scheduling.py +2 -2
- instana_client/models/maintenance_config_v2.py +2 -2
- instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +2 -2
- instana_client/models/maintenance_config_with_last_updated.py +2 -2
- instana_client/models/maintenance_window.py +2 -2
- instana_client/models/manual_alerting_channel_configuration.py +2 -2
- instana_client/models/manual_close_info.py +2 -2
- instana_client/models/manual_service_config.py +2 -2
- instana_client/models/match_all_http_path_segment_matching_rule.py +2 -2
- instana_client/models/match_expression_dto.py +3 -3
- instana_client/models/meta_data.py +2 -2
- instana_client/models/metric_api_result.py +2 -2
- instana_client/models/metric_config.py +2 -2
- instana_client/models/metric_configuration.py +3 -3
- instana_client/models/metric_description.py +2 -2
- instana_client/models/metric_instance.py +2 -2
- instana_client/models/metric_item.py +2 -2
- instana_client/models/metric_metadata.py +4 -4
- instana_client/models/metric_pattern.py +2 -2
- instana_client/models/metric_query.py +128 -0
- instana_client/models/metrics_result.py +2 -2
- instana_client/models/metrics_result_item.py +5 -3
- instana_client/models/metrics_test_result_item.py +2 -2
- instana_client/models/mobile_app.py +2 -2
- instana_client/models/mobile_app_alert_config.py +2 -2
- instana_client/models/mobile_app_alert_rule.py +8 -5
- instana_client/models/mobile_app_beacon_groups_item.py +2 -2
- instana_client/models/mobile_app_beacon_groups_result.py +2 -2
- instana_client/models/mobile_app_beacon_result.py +2 -2
- instana_client/models/mobile_app_beacon_tag_group.py +2 -2
- instana_client/models/mobile_app_beacons_item.py +11 -5
- instana_client/models/mobile_app_event_result.py +6 -7
- instana_client/models/mobile_app_metric_result.py +2 -2
- instana_client/models/mobile_app_monitoring_beacon.py +22 -4
- instana_client/models/mobile_app_monitoring_metric_description.py +5 -3
- instana_client/models/mobile_app_monitoring_metrics_configuration.py +2 -2
- instana_client/models/mobile_app_time_threshold.py +2 -2
- instana_client/models/model_field.py +2 -2
- instana_client/models/monitored_entities_stats.py +92 -0
- instana_client/models/monitoring_state.py +11 -3
- instana_client/models/multiple_scripts_configuration.py +2 -2
- instana_client/models/multiplication.py +97 -0
- instana_client/models/nested_operation.py +128 -0
- instana_client/models/new_application_config.py +2 -2
- instana_client/models/new_business_perspective_config.py +2 -2
- instana_client/models/new_manual_service_config.py +2 -2
- instana_client/models/o_auth_config.py +110 -0
- instana_client/models/o_auth_integration.py +98 -0
- instana_client/models/o_auth_token.py +111 -0
- instana_client/models/occurrence.py +2 -2
- instana_client/models/office365_integration.py +2 -2
- instana_client/models/one_time_maintenance_window.py +2 -2
- instana_client/models/opsgenie_integration.py +2 -2
- instana_client/models/order.py +2 -2
- instana_client/models/pagerduty_integration.py +2 -2
- instana_client/models/paginated_result.py +2 -2
- instana_client/models/pagination.py +2 -2
- instana_client/models/parameter.py +2 -2
- instana_client/models/parameter_value.py +2 -2
- instana_client/models/path_parameter_http_path_segment_matching_rule.py +2 -2
- instana_client/models/physical_context.py +3 -3
- instana_client/models/plugin_result.py +2 -2
- instana_client/models/policy.py +2 -2
- instana_client/models/policy_runnable.py +2 -2
- instana_client/models/policy_scheduling.py +91 -0
- instana_client/models/post_mobile_app_source_map_config_request.py +88 -0
- instana_client/models/post_snapshots_result.py +2 -2
- instana_client/models/problem.py +2 -2
- instana_client/models/prometheus_webhook_integration.py +2 -2
- instana_client/models/recurrent_maintenance_window.py +2 -2
- instana_client/models/release.py +6 -6
- instana_client/models/release_scope.py +2 -2
- instana_client/models/release_with_metadata.py +8 -8
- instana_client/models/retention_period.py +101 -0
- instana_client/models/rolling_time_window.py +4 -3
- instana_client/models/rule_input.py +2 -2
- instana_client/models/rule_with_threshold_application_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_infra_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_log_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_website_alert_rule.py +2 -2
- instana_client/models/run_configuration.py +2 -2
- instana_client/models/salesforce_integration.py +2 -2
- instana_client/models/saturation_blueprint_indicator.py +97 -0
- instana_client/models/scope_binding.py +2 -2
- instana_client/models/search_field_result.py +2 -2
- instana_client/models/service.py +3 -3
- instana_client/models/service_config.py +2 -2
- instana_client/models/service_event_result.py +6 -7
- instana_client/models/service_item.py +2 -2
- instana_client/models/service_level_indicator.py +10 -7
- instana_client/models/service_level_objective_alert_rule.py +2 -2
- instana_client/models/service_level_objective_configuration.py +3 -3
- instana_client/models/service_levels_alert_config.py +15 -5
- instana_client/models/service_levels_alert_rule.py +2 -2
- instana_client/models/service_levels_burn_rate_config.py +115 -0
- instana_client/models/service_levels_burn_rate_time_windows.py +2 -2
- instana_client/models/service_levels_static_threshold_config.py +100 -0
- instana_client/models/service_levels_time_threshold.py +5 -5
- instana_client/models/service_levelse_alert_config_with_metadata.py +15 -5
- instana_client/models/service_map.py +2 -2
- instana_client/models/service_map_connection.py +2 -2
- instana_client/models/service_matching_rule.py +2 -2
- instana_client/models/service_metric_result.py +2 -2
- instana_client/models/service_node.py +2 -2
- instana_client/models/service_now_enhanced_integration.py +2 -2
- instana_client/models/service_now_integration.py +2 -2
- instana_client/models/service_result.py +3 -3
- instana_client/models/service_scope.py +4 -4
- instana_client/models/service_scope_with_metadata.py +5 -5
- instana_client/models/service_scoped_to.py +3 -3
- instana_client/models/service_scoped_to_with_metadata.py +4 -4
- instana_client/models/service_simple.py +2 -2
- instana_client/models/session_settings.py +4 -4
- instana_client/models/simple_metric_configuration.py +123 -0
- instana_client/models/single_value.py +128 -0
- instana_client/models/slack_integration.py +2 -2
- instana_client/models/sli_configuration.py +2 -2
- instana_client/models/sli_configuration_with_last_updated.py +2 -2
- instana_client/models/sli_entity.py +2 -2
- instana_client/models/sli_report.py +2 -2
- instana_client/models/slo_config_with_rbac_tag.py +128 -0
- instana_client/models/slo_entity.py +8 -5
- instana_client/models/slo_report.py +2 -2
- instana_client/models/slowness_application_alert_rule.py +2 -2
- instana_client/models/slowness_mobile_app_alert_rule.py +90 -0
- instana_client/models/slowness_website_alert_rule.py +2 -2
- instana_client/models/snapshot_item.py +2 -2
- instana_client/models/snapshot_preview.py +7 -7
- instana_client/models/snapshot_result.py +2 -2
- instana_client/models/software_user.py +2 -2
- instana_client/models/software_version.py +2 -2
- instana_client/models/source_map_file_blob.py +2 -2
- instana_client/models/source_map_file_meta.py +2 -2
- instana_client/models/source_map_upload_config.py +2 -2
- instana_client/models/source_map_upload_configs.py +106 -0
- instana_client/models/span_excerpt.py +12 -12
- instana_client/models/span_relation.py +3 -3
- instana_client/models/specific_js_errors_website_alert_rule.py +4 -4
- instana_client/models/splunk_integration.py +2 -2
- instana_client/models/ssl_certificate_configuration.py +17 -5
- instana_client/models/ssl_certificate_configuration_update.py +107 -0
- instana_client/models/ssl_certificate_validation.py +99 -0
- instana_client/models/stack_trace_item.py +7 -7
- instana_client/models/stack_trace_line.py +2 -2
- instana_client/models/static_baseline_threshold_rule.py +3 -3
- instana_client/models/static_string_field.py +2 -2
- instana_client/models/static_threshold.py +2 -2
- instana_client/models/static_threshold_rule.py +2 -2
- instana_client/models/status_code_application_alert_rule.py +2 -2
- instana_client/models/status_code_mobile_app_alert_rule.py +4 -4
- instana_client/models/status_code_website_alert_rule.py +4 -4
- instana_client/models/subtraction.py +97 -0
- instana_client/models/synthetic_alert_config.py +2 -2
- instana_client/models/synthetic_alert_config_with_metadata.py +2 -2
- instana_client/models/synthetic_alert_rule.py +2 -2
- instana_client/models/synthetic_bulk_response.py +92 -0
- instana_client/models/synthetic_call_config.py +4 -4
- instana_client/models/synthetic_call_rule.py +6 -6
- instana_client/models/synthetic_call_with_defaults_config.py +4 -4
- instana_client/models/synthetic_configuration.py +93 -0
- instana_client/models/synthetic_configuration_update.py +95 -0
- instana_client/models/synthetic_credential.py +23 -3
- instana_client/models/synthetic_datacenter.py +2 -2
- instana_client/models/synthetic_datacenter_configuration.py +2 -2
- instana_client/models/synthetic_geo_point.py +2 -2
- instana_client/models/synthetic_location.py +2 -2
- instana_client/models/synthetic_location_configuration.py +2 -2
- instana_client/models/synthetic_metric_configuration.py +2 -2
- instana_client/models/synthetic_metric_tag_group.py +18 -5
- instana_client/models/synthetic_playback_capabilities.py +17 -4
- instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py +105 -0
- instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py +105 -0
- instana_client/models/synthetic_resource_update_list_string_list_string.py +90 -0
- instana_client/models/synthetic_resource_update_map_string_string_list_string.py +90 -0
- instana_client/models/synthetic_slo_entity.py +7 -5
- instana_client/models/synthetic_test.py +27 -3
- instana_client/models/synthetic_test_cicd.py +96 -0
- instana_client/models/synthetic_test_cicd_customization.py +96 -0
- instana_client/models/synthetic_test_cicd_item.py +114 -0
- instana_client/models/synthetic_test_cicd_response.py +92 -0
- instana_client/models/synthetic_test_deep_update.py +122 -0
- instana_client/models/synthetic_test_shallow_update.py +122 -0
- instana_client/models/synthetic_test_update.py +147 -0
- instana_client/models/synthetic_time_threshold.py +2 -2
- instana_client/models/synthetic_type_configuration.py +11 -11
- instana_client/models/synthetic_type_configuration_update.py +152 -0
- instana_client/models/synthetics_event_result.py +6 -7
- instana_client/models/system_rule.py +2 -2
- instana_client/models/system_rule_label.py +2 -2
- instana_client/models/tag.py +6 -6
- instana_client/models/tag_catalog.py +2 -2
- instana_client/models/tag_filter.py +22 -10
- instana_client/models/tag_filter_all_of_value.py +195 -0
- instana_client/models/tag_filter_expression.py +2 -2
- instana_client/models/tag_filter_expression_element.py +2 -2
- instana_client/models/tag_matcher_dto.py +2 -2
- instana_client/models/tag_tree_level.py +2 -2
- instana_client/models/tag_tree_node.py +2 -2
- instana_client/models/tag_tree_tag.py +2 -2
- instana_client/models/test_common_properties.py +2 -2
- instana_client/models/test_last_error.py +90 -0
- instana_client/models/test_result.py +2 -2
- instana_client/models/test_result_common_properties.py +24 -3
- instana_client/models/test_result_detail_data.py +2 -2
- instana_client/models/test_result_item.py +2 -2
- instana_client/models/test_result_list_item.py +2 -2
- instana_client/models/test_result_list_result.py +2 -2
- instana_client/models/test_result_metadata.py +2 -2
- instana_client/models/test_result_subtransaction.py +2 -2
- instana_client/models/threshold.py +2 -2
- instana_client/models/threshold_config_rule.py +2 -2
- instana_client/models/threshold_rule.py +2 -2
- instana_client/models/throughput_application_alert_rule.py +2 -2
- instana_client/models/throughput_mobile_app_alert_rule.py +2 -2
- instana_client/models/throughput_website_alert_rule.py +2 -2
- instana_client/models/time_frame.py +2 -2
- instana_client/models/time_window.py +5 -4
- instana_client/models/topology.py +2 -2
- instana_client/models/trace.py +8 -8
- instana_client/models/trace_activity_tree_node_details.py +27 -15
- instana_client/models/trace_download_result.py +2 -2
- instana_client/models/trace_groups_item.py +2 -2
- instana_client/models/trace_groups_result.py +2 -2
- instana_client/models/trace_impact_application_time_threshold.py +2 -2
- instana_client/models/trace_item.py +2 -2
- instana_client/models/trace_result.py +2 -2
- instana_client/models/traffic_blueprint_indicator.py +3 -3
- instana_client/models/trigger.py +15 -7
- instana_client/models/type_configuration.py +2 -2
- instana_client/models/unsupported_http_path_segment_matching_rule.py +2 -2
- instana_client/models/updated_business_perspective_config.py +2 -2
- instana_client/models/usage_result.py +2 -2
- instana_client/models/usage_result_items.py +2 -2
- instana_client/models/user_basic_result.py +2 -2
- instana_client/models/user_impact_mobile_app_time_threshold.py +3 -3
- instana_client/models/user_impact_website_time_threshold.py +3 -3
- instana_client/models/user_result.py +2 -2
- instana_client/models/users_result.py +2 -2
- instana_client/models/validated_alerting_channel_input_info.py +4 -4
- instana_client/models/validated_alerting_configuration.py +2 -2
- instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +2 -2
- instana_client/models/validated_maintenance_config_with_status.py +2 -2
- instana_client/models/victor_ops_integration.py +2 -2
- instana_client/models/violations_in_period_application_time_threshold.py +2 -2
- instana_client/models/violations_in_period_mobile_app_time_threshold.py +2 -2
- instana_client/models/violations_in_period_website_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_application_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_infra_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_log_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_synthetic_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_website_time_threshold.py +2 -2
- instana_client/models/watson_ai_ops_webhook_integration.py +2 -2
- instana_client/models/webex_teams_webhook_integration.py +2 -2
- instana_client/models/webhook_integration.py +14 -4
- instana_client/models/webpage_action_configuration.py +2 -2
- instana_client/models/webpage_action_configuration_update.py +109 -0
- instana_client/models/webpage_script_configuration.py +5 -3
- instana_client/models/webpage_script_configuration_update.py +111 -0
- instana_client/models/website.py +2 -2
- instana_client/models/website_alert_config.py +2 -2
- instana_client/models/website_alert_config_with_metadata.py +2 -2
- instana_client/models/website_alert_rule.py +2 -2
- instana_client/models/website_apdex_entity.py +2 -2
- instana_client/models/website_beacon_groups_item.py +2 -2
- instana_client/models/website_beacon_groups_result.py +2 -2
- instana_client/models/website_beacon_result.py +2 -2
- instana_client/models/website_beacon_tag_group.py +2 -2
- instana_client/models/website_beacons_item.py +11 -5
- instana_client/models/website_event_based_sli_entity.py +2 -2
- instana_client/models/website_event_result.py +5 -6
- instana_client/models/website_metric_result.py +2 -2
- instana_client/models/website_monitoring_beacon.py +7 -3
- instana_client/models/website_monitoring_metric_description.py +2 -2
- instana_client/models/website_monitoring_metrics_configuration.py +2 -2
- instana_client/models/website_slo_entity.py +2 -2
- instana_client/models/website_time_based_sli_entity.py +2 -2
- instana_client/models/website_time_threshold.py +2 -2
- instana_client/models/widget.py +2 -2
- instana_client/models/with_metadata.py +2 -2
- instana_client/models/with_resolved_name.py +2 -2
- instana_client/models/z_chat_ops_integration.py +2 -2
- instana_client/rest.py +3 -2
- instana_client-1.0.3.dist-info/METADATA +1097 -0
- instana_client-1.0.3.dist-info/RECORD +599 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/WHEEL +1 -1
- instana_client/models/dns_action_configuration.py +0 -134
- instana_client/models/dns_action_filter_query_time.py +0 -99
- instana_client/models/dns_action_filter_target_value.py +0 -106
- instana_client/models/full_trace.py +0 -97
- instana_client/models/span.py +0 -156
- instana_client-1.0.0.dist-info/METADATA +0 -25
- instana_client-1.0.0.dist-info/RECORD +0 -515
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1537 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Instana REST API documentation
|
|
5
|
+
|
|
6
|
+
Documentation for INSTANA REST API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.309.1268
|
|
9
|
+
Contact: support@instana.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import StrictBool, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from instana_client.models.correction_configuration import CorrectionConfiguration
|
|
23
|
+
from instana_client.models.paginated_result import PaginatedResult
|
|
24
|
+
|
|
25
|
+
from instana_client.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from instana_client.api_response import ApiResponse
|
|
27
|
+
from instana_client.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class SLOCorrectionConfigurationsApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def create_slo_correction_window_config(
|
|
45
|
+
self,
|
|
46
|
+
correction_configuration: CorrectionConfiguration,
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> CorrectionConfiguration:
|
|
60
|
+
"""Create a new SLO Correction Window Config
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:param correction_configuration: (required)
|
|
64
|
+
:type correction_configuration: CorrectionConfiguration
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._create_slo_correction_window_config_serialize(
|
|
88
|
+
correction_configuration=correction_configuration,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': "CorrectionConfiguration",
|
|
97
|
+
'400': "str",
|
|
98
|
+
'500': None,
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def create_slo_correction_window_config_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
correction_configuration: CorrectionConfiguration,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[CorrectionConfiguration]:
|
|
128
|
+
"""Create a new SLO Correction Window Config
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param correction_configuration: (required)
|
|
132
|
+
:type correction_configuration: CorrectionConfiguration
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._create_slo_correction_window_config_serialize(
|
|
156
|
+
correction_configuration=correction_configuration,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "CorrectionConfiguration",
|
|
165
|
+
'400': "str",
|
|
166
|
+
'500': None,
|
|
167
|
+
}
|
|
168
|
+
response_data = self.api_client.call_api(
|
|
169
|
+
*_param,
|
|
170
|
+
_request_timeout=_request_timeout
|
|
171
|
+
)
|
|
172
|
+
response_data.read()
|
|
173
|
+
return self.api_client.response_deserialize(
|
|
174
|
+
response_data=response_data,
|
|
175
|
+
response_types_map=_response_types_map,
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@validate_call
|
|
180
|
+
def create_slo_correction_window_config_without_preload_content(
|
|
181
|
+
self,
|
|
182
|
+
correction_configuration: CorrectionConfiguration,
|
|
183
|
+
_request_timeout: Union[
|
|
184
|
+
None,
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Tuple[
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
189
|
+
]
|
|
190
|
+
] = None,
|
|
191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_content_type: Optional[StrictStr] = None,
|
|
193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
195
|
+
) -> RESTResponseType:
|
|
196
|
+
"""Create a new SLO Correction Window Config
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param correction_configuration: (required)
|
|
200
|
+
:type correction_configuration: CorrectionConfiguration
|
|
201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
202
|
+
number provided, it will be total request
|
|
203
|
+
timeout. It can also be a pair (tuple) of
|
|
204
|
+
(connection, read) timeouts.
|
|
205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
207
|
+
request; this effectively ignores the
|
|
208
|
+
authentication in the spec for a single request.
|
|
209
|
+
:type _request_auth: dict, optional
|
|
210
|
+
:param _content_type: force content-type for the request.
|
|
211
|
+
:type _content_type: str, Optional
|
|
212
|
+
:param _headers: set to override the headers for a single
|
|
213
|
+
request; this effectively ignores the headers
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _headers: dict, optional
|
|
216
|
+
:param _host_index: set to override the host_index for a single
|
|
217
|
+
request; this effectively ignores the host_index
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _host_index: int, optional
|
|
220
|
+
:return: Returns the result object.
|
|
221
|
+
""" # noqa: E501
|
|
222
|
+
|
|
223
|
+
_param = self._create_slo_correction_window_config_serialize(
|
|
224
|
+
correction_configuration=correction_configuration,
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'200': "CorrectionConfiguration",
|
|
233
|
+
'400': "str",
|
|
234
|
+
'500': None,
|
|
235
|
+
}
|
|
236
|
+
response_data = self.api_client.call_api(
|
|
237
|
+
*_param,
|
|
238
|
+
_request_timeout=_request_timeout
|
|
239
|
+
)
|
|
240
|
+
return response_data.response
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def _create_slo_correction_window_config_serialize(
|
|
244
|
+
self,
|
|
245
|
+
correction_configuration,
|
|
246
|
+
_request_auth,
|
|
247
|
+
_content_type,
|
|
248
|
+
_headers,
|
|
249
|
+
_host_index,
|
|
250
|
+
) -> RequestSerialized:
|
|
251
|
+
|
|
252
|
+
_host = None
|
|
253
|
+
|
|
254
|
+
_collection_formats: Dict[str, str] = {
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
_path_params: Dict[str, str] = {}
|
|
258
|
+
_query_params: List[Tuple[str, str]] = []
|
|
259
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
260
|
+
_form_params: List[Tuple[str, str]] = []
|
|
261
|
+
_files: Dict[
|
|
262
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
263
|
+
] = {}
|
|
264
|
+
_body_params: Optional[bytes] = None
|
|
265
|
+
|
|
266
|
+
# process the path parameters
|
|
267
|
+
# process the query parameters
|
|
268
|
+
# process the header parameters
|
|
269
|
+
# process the form parameters
|
|
270
|
+
# process the body parameter
|
|
271
|
+
if correction_configuration is not None:
|
|
272
|
+
_body_params = correction_configuration
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# set the HTTP header `Accept`
|
|
276
|
+
if 'Accept' not in _header_params:
|
|
277
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
278
|
+
[
|
|
279
|
+
'application/json'
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
# set the HTTP header `Content-Type`
|
|
284
|
+
if _content_type:
|
|
285
|
+
_header_params['Content-Type'] = _content_type
|
|
286
|
+
else:
|
|
287
|
+
_default_content_type = (
|
|
288
|
+
self.api_client.select_header_content_type(
|
|
289
|
+
[
|
|
290
|
+
'application/json'
|
|
291
|
+
]
|
|
292
|
+
)
|
|
293
|
+
)
|
|
294
|
+
if _default_content_type is not None:
|
|
295
|
+
_header_params['Content-Type'] = _default_content_type
|
|
296
|
+
|
|
297
|
+
# authentication setting
|
|
298
|
+
_auth_settings: List[str] = [
|
|
299
|
+
'ApiKeyAuth'
|
|
300
|
+
]
|
|
301
|
+
|
|
302
|
+
return self.api_client.param_serialize(
|
|
303
|
+
method='POST',
|
|
304
|
+
resource_path='/api/settings/correction',
|
|
305
|
+
path_params=_path_params,
|
|
306
|
+
query_params=_query_params,
|
|
307
|
+
header_params=_header_params,
|
|
308
|
+
body=_body_params,
|
|
309
|
+
post_params=_form_params,
|
|
310
|
+
files=_files,
|
|
311
|
+
auth_settings=_auth_settings,
|
|
312
|
+
collection_formats=_collection_formats,
|
|
313
|
+
_host=_host,
|
|
314
|
+
_request_auth=_request_auth
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
@validate_call
|
|
321
|
+
def delete_slo_correction_window_config(
|
|
322
|
+
self,
|
|
323
|
+
id: StrictStr,
|
|
324
|
+
_request_timeout: Union[
|
|
325
|
+
None,
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
327
|
+
Tuple[
|
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
329
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
330
|
+
]
|
|
331
|
+
] = None,
|
|
332
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
333
|
+
_content_type: Optional[StrictStr] = None,
|
|
334
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
335
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
336
|
+
) -> None:
|
|
337
|
+
"""Delete an existing SLO Correction Window Configuration
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
:param id: (required)
|
|
341
|
+
:type id: str
|
|
342
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
343
|
+
number provided, it will be total request
|
|
344
|
+
timeout. It can also be a pair (tuple) of
|
|
345
|
+
(connection, read) timeouts.
|
|
346
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
347
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
348
|
+
request; this effectively ignores the
|
|
349
|
+
authentication in the spec for a single request.
|
|
350
|
+
:type _request_auth: dict, optional
|
|
351
|
+
:param _content_type: force content-type for the request.
|
|
352
|
+
:type _content_type: str, Optional
|
|
353
|
+
:param _headers: set to override the headers for a single
|
|
354
|
+
request; this effectively ignores the headers
|
|
355
|
+
in the spec for a single request.
|
|
356
|
+
:type _headers: dict, optional
|
|
357
|
+
:param _host_index: set to override the host_index for a single
|
|
358
|
+
request; this effectively ignores the host_index
|
|
359
|
+
in the spec for a single request.
|
|
360
|
+
:type _host_index: int, optional
|
|
361
|
+
:return: Returns the result object.
|
|
362
|
+
""" # noqa: E501
|
|
363
|
+
|
|
364
|
+
_param = self._delete_slo_correction_window_config_serialize(
|
|
365
|
+
id=id,
|
|
366
|
+
_request_auth=_request_auth,
|
|
367
|
+
_content_type=_content_type,
|
|
368
|
+
_headers=_headers,
|
|
369
|
+
_host_index=_host_index
|
|
370
|
+
)
|
|
371
|
+
|
|
372
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
373
|
+
'204': None,
|
|
374
|
+
}
|
|
375
|
+
response_data = self.api_client.call_api(
|
|
376
|
+
*_param,
|
|
377
|
+
_request_timeout=_request_timeout
|
|
378
|
+
)
|
|
379
|
+
response_data.read()
|
|
380
|
+
return self.api_client.response_deserialize(
|
|
381
|
+
response_data=response_data,
|
|
382
|
+
response_types_map=_response_types_map,
|
|
383
|
+
).data
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
@validate_call
|
|
387
|
+
def delete_slo_correction_window_config_with_http_info(
|
|
388
|
+
self,
|
|
389
|
+
id: StrictStr,
|
|
390
|
+
_request_timeout: Union[
|
|
391
|
+
None,
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Tuple[
|
|
394
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
395
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
396
|
+
]
|
|
397
|
+
] = None,
|
|
398
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
399
|
+
_content_type: Optional[StrictStr] = None,
|
|
400
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
401
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
402
|
+
) -> ApiResponse[None]:
|
|
403
|
+
"""Delete an existing SLO Correction Window Configuration
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
:param id: (required)
|
|
407
|
+
:type id: str
|
|
408
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
409
|
+
number provided, it will be total request
|
|
410
|
+
timeout. It can also be a pair (tuple) of
|
|
411
|
+
(connection, read) timeouts.
|
|
412
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
413
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
414
|
+
request; this effectively ignores the
|
|
415
|
+
authentication in the spec for a single request.
|
|
416
|
+
:type _request_auth: dict, optional
|
|
417
|
+
:param _content_type: force content-type for the request.
|
|
418
|
+
:type _content_type: str, Optional
|
|
419
|
+
:param _headers: set to override the headers for a single
|
|
420
|
+
request; this effectively ignores the headers
|
|
421
|
+
in the spec for a single request.
|
|
422
|
+
:type _headers: dict, optional
|
|
423
|
+
:param _host_index: set to override the host_index for a single
|
|
424
|
+
request; this effectively ignores the host_index
|
|
425
|
+
in the spec for a single request.
|
|
426
|
+
:type _host_index: int, optional
|
|
427
|
+
:return: Returns the result object.
|
|
428
|
+
""" # noqa: E501
|
|
429
|
+
|
|
430
|
+
_param = self._delete_slo_correction_window_config_serialize(
|
|
431
|
+
id=id,
|
|
432
|
+
_request_auth=_request_auth,
|
|
433
|
+
_content_type=_content_type,
|
|
434
|
+
_headers=_headers,
|
|
435
|
+
_host_index=_host_index
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
439
|
+
'204': None,
|
|
440
|
+
}
|
|
441
|
+
response_data = self.api_client.call_api(
|
|
442
|
+
*_param,
|
|
443
|
+
_request_timeout=_request_timeout
|
|
444
|
+
)
|
|
445
|
+
response_data.read()
|
|
446
|
+
return self.api_client.response_deserialize(
|
|
447
|
+
response_data=response_data,
|
|
448
|
+
response_types_map=_response_types_map,
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
@validate_call
|
|
453
|
+
def delete_slo_correction_window_config_without_preload_content(
|
|
454
|
+
self,
|
|
455
|
+
id: StrictStr,
|
|
456
|
+
_request_timeout: Union[
|
|
457
|
+
None,
|
|
458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
459
|
+
Tuple[
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
462
|
+
]
|
|
463
|
+
] = None,
|
|
464
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
465
|
+
_content_type: Optional[StrictStr] = None,
|
|
466
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
468
|
+
) -> RESTResponseType:
|
|
469
|
+
"""Delete an existing SLO Correction Window Configuration
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
:param id: (required)
|
|
473
|
+
:type id: str
|
|
474
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
475
|
+
number provided, it will be total request
|
|
476
|
+
timeout. It can also be a pair (tuple) of
|
|
477
|
+
(connection, read) timeouts.
|
|
478
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
479
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
480
|
+
request; this effectively ignores the
|
|
481
|
+
authentication in the spec for a single request.
|
|
482
|
+
:type _request_auth: dict, optional
|
|
483
|
+
:param _content_type: force content-type for the request.
|
|
484
|
+
:type _content_type: str, Optional
|
|
485
|
+
:param _headers: set to override the headers for a single
|
|
486
|
+
request; this effectively ignores the headers
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _headers: dict, optional
|
|
489
|
+
:param _host_index: set to override the host_index for a single
|
|
490
|
+
request; this effectively ignores the host_index
|
|
491
|
+
in the spec for a single request.
|
|
492
|
+
:type _host_index: int, optional
|
|
493
|
+
:return: Returns the result object.
|
|
494
|
+
""" # noqa: E501
|
|
495
|
+
|
|
496
|
+
_param = self._delete_slo_correction_window_config_serialize(
|
|
497
|
+
id=id,
|
|
498
|
+
_request_auth=_request_auth,
|
|
499
|
+
_content_type=_content_type,
|
|
500
|
+
_headers=_headers,
|
|
501
|
+
_host_index=_host_index
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
505
|
+
'204': None,
|
|
506
|
+
}
|
|
507
|
+
response_data = self.api_client.call_api(
|
|
508
|
+
*_param,
|
|
509
|
+
_request_timeout=_request_timeout
|
|
510
|
+
)
|
|
511
|
+
return response_data.response
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
def _delete_slo_correction_window_config_serialize(
|
|
515
|
+
self,
|
|
516
|
+
id,
|
|
517
|
+
_request_auth,
|
|
518
|
+
_content_type,
|
|
519
|
+
_headers,
|
|
520
|
+
_host_index,
|
|
521
|
+
) -> RequestSerialized:
|
|
522
|
+
|
|
523
|
+
_host = None
|
|
524
|
+
|
|
525
|
+
_collection_formats: Dict[str, str] = {
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
_path_params: Dict[str, str] = {}
|
|
529
|
+
_query_params: List[Tuple[str, str]] = []
|
|
530
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
531
|
+
_form_params: List[Tuple[str, str]] = []
|
|
532
|
+
_files: Dict[
|
|
533
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
534
|
+
] = {}
|
|
535
|
+
_body_params: Optional[bytes] = None
|
|
536
|
+
|
|
537
|
+
# process the path parameters
|
|
538
|
+
if id is not None:
|
|
539
|
+
_path_params['id'] = id
|
|
540
|
+
# process the query parameters
|
|
541
|
+
# process the header parameters
|
|
542
|
+
# process the form parameters
|
|
543
|
+
# process the body parameter
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
# authentication setting
|
|
549
|
+
_auth_settings: List[str] = [
|
|
550
|
+
'ApiKeyAuth'
|
|
551
|
+
]
|
|
552
|
+
|
|
553
|
+
return self.api_client.param_serialize(
|
|
554
|
+
method='DELETE',
|
|
555
|
+
resource_path='/api/settings/correction/{id}',
|
|
556
|
+
path_params=_path_params,
|
|
557
|
+
query_params=_query_params,
|
|
558
|
+
header_params=_header_params,
|
|
559
|
+
body=_body_params,
|
|
560
|
+
post_params=_form_params,
|
|
561
|
+
files=_files,
|
|
562
|
+
auth_settings=_auth_settings,
|
|
563
|
+
collection_formats=_collection_formats,
|
|
564
|
+
_host=_host,
|
|
565
|
+
_request_auth=_request_auth
|
|
566
|
+
)
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
@validate_call
|
|
572
|
+
def get_all_slo_correction_window_configs(
|
|
573
|
+
self,
|
|
574
|
+
page_size: Optional[StrictInt] = None,
|
|
575
|
+
page: Optional[StrictInt] = None,
|
|
576
|
+
order_by: Optional[StrictStr] = None,
|
|
577
|
+
order_direction: Optional[StrictStr] = None,
|
|
578
|
+
query: Optional[StrictStr] = None,
|
|
579
|
+
tag: Optional[List[StrictStr]] = None,
|
|
580
|
+
id: Optional[List[StrictStr]] = None,
|
|
581
|
+
slo_id: Optional[List[StrictStr]] = None,
|
|
582
|
+
refresh: Optional[StrictBool] = None,
|
|
583
|
+
_request_timeout: Union[
|
|
584
|
+
None,
|
|
585
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
586
|
+
Tuple[
|
|
587
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
588
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
589
|
+
]
|
|
590
|
+
] = None,
|
|
591
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
592
|
+
_content_type: Optional[StrictStr] = None,
|
|
593
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
594
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
595
|
+
) -> PaginatedResult:
|
|
596
|
+
"""Get All SLO Correction Window Configs
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
:param page_size:
|
|
600
|
+
:type page_size: int
|
|
601
|
+
:param page:
|
|
602
|
+
:type page: int
|
|
603
|
+
:param order_by:
|
|
604
|
+
:type order_by: str
|
|
605
|
+
:param order_direction:
|
|
606
|
+
:type order_direction: str
|
|
607
|
+
:param query:
|
|
608
|
+
:type query: str
|
|
609
|
+
:param tag:
|
|
610
|
+
:type tag: List[str]
|
|
611
|
+
:param id:
|
|
612
|
+
:type id: List[str]
|
|
613
|
+
:param slo_id:
|
|
614
|
+
:type slo_id: List[str]
|
|
615
|
+
:param refresh:
|
|
616
|
+
:type refresh: bool
|
|
617
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
618
|
+
number provided, it will be total request
|
|
619
|
+
timeout. It can also be a pair (tuple) of
|
|
620
|
+
(connection, read) timeouts.
|
|
621
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
622
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
623
|
+
request; this effectively ignores the
|
|
624
|
+
authentication in the spec for a single request.
|
|
625
|
+
:type _request_auth: dict, optional
|
|
626
|
+
:param _content_type: force content-type for the request.
|
|
627
|
+
:type _content_type: str, Optional
|
|
628
|
+
:param _headers: set to override the headers for a single
|
|
629
|
+
request; this effectively ignores the headers
|
|
630
|
+
in the spec for a single request.
|
|
631
|
+
:type _headers: dict, optional
|
|
632
|
+
:param _host_index: set to override the host_index for a single
|
|
633
|
+
request; this effectively ignores the host_index
|
|
634
|
+
in the spec for a single request.
|
|
635
|
+
:type _host_index: int, optional
|
|
636
|
+
:return: Returns the result object.
|
|
637
|
+
""" # noqa: E501
|
|
638
|
+
|
|
639
|
+
_param = self._get_all_slo_correction_window_configs_serialize(
|
|
640
|
+
page_size=page_size,
|
|
641
|
+
page=page,
|
|
642
|
+
order_by=order_by,
|
|
643
|
+
order_direction=order_direction,
|
|
644
|
+
query=query,
|
|
645
|
+
tag=tag,
|
|
646
|
+
id=id,
|
|
647
|
+
slo_id=slo_id,
|
|
648
|
+
refresh=refresh,
|
|
649
|
+
_request_auth=_request_auth,
|
|
650
|
+
_content_type=_content_type,
|
|
651
|
+
_headers=_headers,
|
|
652
|
+
_host_index=_host_index
|
|
653
|
+
)
|
|
654
|
+
|
|
655
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
656
|
+
'200': "PaginatedResult",
|
|
657
|
+
}
|
|
658
|
+
response_data = self.api_client.call_api(
|
|
659
|
+
*_param,
|
|
660
|
+
_request_timeout=_request_timeout
|
|
661
|
+
)
|
|
662
|
+
response_data.read()
|
|
663
|
+
return self.api_client.response_deserialize(
|
|
664
|
+
response_data=response_data,
|
|
665
|
+
response_types_map=_response_types_map,
|
|
666
|
+
).data
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
@validate_call
|
|
670
|
+
def get_all_slo_correction_window_configs_with_http_info(
|
|
671
|
+
self,
|
|
672
|
+
page_size: Optional[StrictInt] = None,
|
|
673
|
+
page: Optional[StrictInt] = None,
|
|
674
|
+
order_by: Optional[StrictStr] = None,
|
|
675
|
+
order_direction: Optional[StrictStr] = None,
|
|
676
|
+
query: Optional[StrictStr] = None,
|
|
677
|
+
tag: Optional[List[StrictStr]] = None,
|
|
678
|
+
id: Optional[List[StrictStr]] = None,
|
|
679
|
+
slo_id: Optional[List[StrictStr]] = None,
|
|
680
|
+
refresh: Optional[StrictBool] = None,
|
|
681
|
+
_request_timeout: Union[
|
|
682
|
+
None,
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Tuple[
|
|
685
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
686
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
687
|
+
]
|
|
688
|
+
] = None,
|
|
689
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
+
_content_type: Optional[StrictStr] = None,
|
|
691
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
692
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
693
|
+
) -> ApiResponse[PaginatedResult]:
|
|
694
|
+
"""Get All SLO Correction Window Configs
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
:param page_size:
|
|
698
|
+
:type page_size: int
|
|
699
|
+
:param page:
|
|
700
|
+
:type page: int
|
|
701
|
+
:param order_by:
|
|
702
|
+
:type order_by: str
|
|
703
|
+
:param order_direction:
|
|
704
|
+
:type order_direction: str
|
|
705
|
+
:param query:
|
|
706
|
+
:type query: str
|
|
707
|
+
:param tag:
|
|
708
|
+
:type tag: List[str]
|
|
709
|
+
:param id:
|
|
710
|
+
:type id: List[str]
|
|
711
|
+
:param slo_id:
|
|
712
|
+
:type slo_id: List[str]
|
|
713
|
+
:param refresh:
|
|
714
|
+
:type refresh: bool
|
|
715
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
716
|
+
number provided, it will be total request
|
|
717
|
+
timeout. It can also be a pair (tuple) of
|
|
718
|
+
(connection, read) timeouts.
|
|
719
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
720
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
721
|
+
request; this effectively ignores the
|
|
722
|
+
authentication in the spec for a single request.
|
|
723
|
+
:type _request_auth: dict, optional
|
|
724
|
+
:param _content_type: force content-type for the request.
|
|
725
|
+
:type _content_type: str, Optional
|
|
726
|
+
:param _headers: set to override the headers for a single
|
|
727
|
+
request; this effectively ignores the headers
|
|
728
|
+
in the spec for a single request.
|
|
729
|
+
:type _headers: dict, optional
|
|
730
|
+
:param _host_index: set to override the host_index for a single
|
|
731
|
+
request; this effectively ignores the host_index
|
|
732
|
+
in the spec for a single request.
|
|
733
|
+
:type _host_index: int, optional
|
|
734
|
+
:return: Returns the result object.
|
|
735
|
+
""" # noqa: E501
|
|
736
|
+
|
|
737
|
+
_param = self._get_all_slo_correction_window_configs_serialize(
|
|
738
|
+
page_size=page_size,
|
|
739
|
+
page=page,
|
|
740
|
+
order_by=order_by,
|
|
741
|
+
order_direction=order_direction,
|
|
742
|
+
query=query,
|
|
743
|
+
tag=tag,
|
|
744
|
+
id=id,
|
|
745
|
+
slo_id=slo_id,
|
|
746
|
+
refresh=refresh,
|
|
747
|
+
_request_auth=_request_auth,
|
|
748
|
+
_content_type=_content_type,
|
|
749
|
+
_headers=_headers,
|
|
750
|
+
_host_index=_host_index
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
754
|
+
'200': "PaginatedResult",
|
|
755
|
+
}
|
|
756
|
+
response_data = self.api_client.call_api(
|
|
757
|
+
*_param,
|
|
758
|
+
_request_timeout=_request_timeout
|
|
759
|
+
)
|
|
760
|
+
response_data.read()
|
|
761
|
+
return self.api_client.response_deserialize(
|
|
762
|
+
response_data=response_data,
|
|
763
|
+
response_types_map=_response_types_map,
|
|
764
|
+
)
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
@validate_call
|
|
768
|
+
def get_all_slo_correction_window_configs_without_preload_content(
|
|
769
|
+
self,
|
|
770
|
+
page_size: Optional[StrictInt] = None,
|
|
771
|
+
page: Optional[StrictInt] = None,
|
|
772
|
+
order_by: Optional[StrictStr] = None,
|
|
773
|
+
order_direction: Optional[StrictStr] = None,
|
|
774
|
+
query: Optional[StrictStr] = None,
|
|
775
|
+
tag: Optional[List[StrictStr]] = None,
|
|
776
|
+
id: Optional[List[StrictStr]] = None,
|
|
777
|
+
slo_id: Optional[List[StrictStr]] = None,
|
|
778
|
+
refresh: Optional[StrictBool] = None,
|
|
779
|
+
_request_timeout: Union[
|
|
780
|
+
None,
|
|
781
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
782
|
+
Tuple[
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
784
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
785
|
+
]
|
|
786
|
+
] = None,
|
|
787
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
788
|
+
_content_type: Optional[StrictStr] = None,
|
|
789
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
790
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
791
|
+
) -> RESTResponseType:
|
|
792
|
+
"""Get All SLO Correction Window Configs
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
:param page_size:
|
|
796
|
+
:type page_size: int
|
|
797
|
+
:param page:
|
|
798
|
+
:type page: int
|
|
799
|
+
:param order_by:
|
|
800
|
+
:type order_by: str
|
|
801
|
+
:param order_direction:
|
|
802
|
+
:type order_direction: str
|
|
803
|
+
:param query:
|
|
804
|
+
:type query: str
|
|
805
|
+
:param tag:
|
|
806
|
+
:type tag: List[str]
|
|
807
|
+
:param id:
|
|
808
|
+
:type id: List[str]
|
|
809
|
+
:param slo_id:
|
|
810
|
+
:type slo_id: List[str]
|
|
811
|
+
:param refresh:
|
|
812
|
+
:type refresh: bool
|
|
813
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
814
|
+
number provided, it will be total request
|
|
815
|
+
timeout. It can also be a pair (tuple) of
|
|
816
|
+
(connection, read) timeouts.
|
|
817
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
818
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
819
|
+
request; this effectively ignores the
|
|
820
|
+
authentication in the spec for a single request.
|
|
821
|
+
:type _request_auth: dict, optional
|
|
822
|
+
:param _content_type: force content-type for the request.
|
|
823
|
+
:type _content_type: str, Optional
|
|
824
|
+
:param _headers: set to override the headers for a single
|
|
825
|
+
request; this effectively ignores the headers
|
|
826
|
+
in the spec for a single request.
|
|
827
|
+
:type _headers: dict, optional
|
|
828
|
+
:param _host_index: set to override the host_index for a single
|
|
829
|
+
request; this effectively ignores the host_index
|
|
830
|
+
in the spec for a single request.
|
|
831
|
+
:type _host_index: int, optional
|
|
832
|
+
:return: Returns the result object.
|
|
833
|
+
""" # noqa: E501
|
|
834
|
+
|
|
835
|
+
_param = self._get_all_slo_correction_window_configs_serialize(
|
|
836
|
+
page_size=page_size,
|
|
837
|
+
page=page,
|
|
838
|
+
order_by=order_by,
|
|
839
|
+
order_direction=order_direction,
|
|
840
|
+
query=query,
|
|
841
|
+
tag=tag,
|
|
842
|
+
id=id,
|
|
843
|
+
slo_id=slo_id,
|
|
844
|
+
refresh=refresh,
|
|
845
|
+
_request_auth=_request_auth,
|
|
846
|
+
_content_type=_content_type,
|
|
847
|
+
_headers=_headers,
|
|
848
|
+
_host_index=_host_index
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
852
|
+
'200': "PaginatedResult",
|
|
853
|
+
}
|
|
854
|
+
response_data = self.api_client.call_api(
|
|
855
|
+
*_param,
|
|
856
|
+
_request_timeout=_request_timeout
|
|
857
|
+
)
|
|
858
|
+
return response_data.response
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
def _get_all_slo_correction_window_configs_serialize(
|
|
862
|
+
self,
|
|
863
|
+
page_size,
|
|
864
|
+
page,
|
|
865
|
+
order_by,
|
|
866
|
+
order_direction,
|
|
867
|
+
query,
|
|
868
|
+
tag,
|
|
869
|
+
id,
|
|
870
|
+
slo_id,
|
|
871
|
+
refresh,
|
|
872
|
+
_request_auth,
|
|
873
|
+
_content_type,
|
|
874
|
+
_headers,
|
|
875
|
+
_host_index,
|
|
876
|
+
) -> RequestSerialized:
|
|
877
|
+
|
|
878
|
+
_host = None
|
|
879
|
+
|
|
880
|
+
_collection_formats: Dict[str, str] = {
|
|
881
|
+
'tag': 'multi',
|
|
882
|
+
'id': 'multi',
|
|
883
|
+
'sloId': 'multi',
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
_path_params: Dict[str, str] = {}
|
|
887
|
+
_query_params: List[Tuple[str, str]] = []
|
|
888
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
889
|
+
_form_params: List[Tuple[str, str]] = []
|
|
890
|
+
_files: Dict[
|
|
891
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
892
|
+
] = {}
|
|
893
|
+
_body_params: Optional[bytes] = None
|
|
894
|
+
|
|
895
|
+
# process the path parameters
|
|
896
|
+
# process the query parameters
|
|
897
|
+
if page_size is not None:
|
|
898
|
+
|
|
899
|
+
_query_params.append(('pageSize', page_size))
|
|
900
|
+
|
|
901
|
+
if page is not None:
|
|
902
|
+
|
|
903
|
+
_query_params.append(('page', page))
|
|
904
|
+
|
|
905
|
+
if order_by is not None:
|
|
906
|
+
|
|
907
|
+
_query_params.append(('orderBy', order_by))
|
|
908
|
+
|
|
909
|
+
if order_direction is not None:
|
|
910
|
+
|
|
911
|
+
_query_params.append(('orderDirection', order_direction))
|
|
912
|
+
|
|
913
|
+
if query is not None:
|
|
914
|
+
|
|
915
|
+
_query_params.append(('query', query))
|
|
916
|
+
|
|
917
|
+
if tag is not None:
|
|
918
|
+
|
|
919
|
+
_query_params.append(('tag', tag))
|
|
920
|
+
|
|
921
|
+
if id is not None:
|
|
922
|
+
|
|
923
|
+
_query_params.append(('id', id))
|
|
924
|
+
|
|
925
|
+
if slo_id is not None:
|
|
926
|
+
|
|
927
|
+
_query_params.append(('sloId', slo_id))
|
|
928
|
+
|
|
929
|
+
if refresh is not None:
|
|
930
|
+
|
|
931
|
+
_query_params.append(('refresh', refresh))
|
|
932
|
+
|
|
933
|
+
# process the header parameters
|
|
934
|
+
# process the form parameters
|
|
935
|
+
# process the body parameter
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
# set the HTTP header `Accept`
|
|
939
|
+
if 'Accept' not in _header_params:
|
|
940
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
941
|
+
[
|
|
942
|
+
'application/json'
|
|
943
|
+
]
|
|
944
|
+
)
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
# authentication setting
|
|
948
|
+
_auth_settings: List[str] = [
|
|
949
|
+
'ApiKeyAuth'
|
|
950
|
+
]
|
|
951
|
+
|
|
952
|
+
return self.api_client.param_serialize(
|
|
953
|
+
method='GET',
|
|
954
|
+
resource_path='/api/settings/correction',
|
|
955
|
+
path_params=_path_params,
|
|
956
|
+
query_params=_query_params,
|
|
957
|
+
header_params=_header_params,
|
|
958
|
+
body=_body_params,
|
|
959
|
+
post_params=_form_params,
|
|
960
|
+
files=_files,
|
|
961
|
+
auth_settings=_auth_settings,
|
|
962
|
+
collection_formats=_collection_formats,
|
|
963
|
+
_host=_host,
|
|
964
|
+
_request_auth=_request_auth
|
|
965
|
+
)
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
@validate_call
|
|
971
|
+
def get_slo_correction_window_config_by_id(
|
|
972
|
+
self,
|
|
973
|
+
id: StrictStr,
|
|
974
|
+
refresh: Optional[StrictBool] = None,
|
|
975
|
+
_request_timeout: Union[
|
|
976
|
+
None,
|
|
977
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
978
|
+
Tuple[
|
|
979
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
980
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
981
|
+
]
|
|
982
|
+
] = None,
|
|
983
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
984
|
+
_content_type: Optional[StrictStr] = None,
|
|
985
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
986
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
987
|
+
) -> CorrectionConfiguration:
|
|
988
|
+
"""Get an existing SLO Correction Window Config
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
:param id: (required)
|
|
992
|
+
:type id: str
|
|
993
|
+
:param refresh:
|
|
994
|
+
:type refresh: bool
|
|
995
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
996
|
+
number provided, it will be total request
|
|
997
|
+
timeout. It can also be a pair (tuple) of
|
|
998
|
+
(connection, read) timeouts.
|
|
999
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1000
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1001
|
+
request; this effectively ignores the
|
|
1002
|
+
authentication in the spec for a single request.
|
|
1003
|
+
:type _request_auth: dict, optional
|
|
1004
|
+
:param _content_type: force content-type for the request.
|
|
1005
|
+
:type _content_type: str, Optional
|
|
1006
|
+
:param _headers: set to override the headers for a single
|
|
1007
|
+
request; this effectively ignores the headers
|
|
1008
|
+
in the spec for a single request.
|
|
1009
|
+
:type _headers: dict, optional
|
|
1010
|
+
:param _host_index: set to override the host_index for a single
|
|
1011
|
+
request; this effectively ignores the host_index
|
|
1012
|
+
in the spec for a single request.
|
|
1013
|
+
:type _host_index: int, optional
|
|
1014
|
+
:return: Returns the result object.
|
|
1015
|
+
""" # noqa: E501
|
|
1016
|
+
|
|
1017
|
+
_param = self._get_slo_correction_window_config_by_id_serialize(
|
|
1018
|
+
id=id,
|
|
1019
|
+
refresh=refresh,
|
|
1020
|
+
_request_auth=_request_auth,
|
|
1021
|
+
_content_type=_content_type,
|
|
1022
|
+
_headers=_headers,
|
|
1023
|
+
_host_index=_host_index
|
|
1024
|
+
)
|
|
1025
|
+
|
|
1026
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1027
|
+
'200': "CorrectionConfiguration",
|
|
1028
|
+
'404': "str",
|
|
1029
|
+
}
|
|
1030
|
+
response_data = self.api_client.call_api(
|
|
1031
|
+
*_param,
|
|
1032
|
+
_request_timeout=_request_timeout
|
|
1033
|
+
)
|
|
1034
|
+
response_data.read()
|
|
1035
|
+
return self.api_client.response_deserialize(
|
|
1036
|
+
response_data=response_data,
|
|
1037
|
+
response_types_map=_response_types_map,
|
|
1038
|
+
).data
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
@validate_call
|
|
1042
|
+
def get_slo_correction_window_config_by_id_with_http_info(
|
|
1043
|
+
self,
|
|
1044
|
+
id: StrictStr,
|
|
1045
|
+
refresh: Optional[StrictBool] = None,
|
|
1046
|
+
_request_timeout: Union[
|
|
1047
|
+
None,
|
|
1048
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1049
|
+
Tuple[
|
|
1050
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1051
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1052
|
+
]
|
|
1053
|
+
] = None,
|
|
1054
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1055
|
+
_content_type: Optional[StrictStr] = None,
|
|
1056
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1057
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1058
|
+
) -> ApiResponse[CorrectionConfiguration]:
|
|
1059
|
+
"""Get an existing SLO Correction Window Config
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
:param id: (required)
|
|
1063
|
+
:type id: str
|
|
1064
|
+
:param refresh:
|
|
1065
|
+
:type refresh: bool
|
|
1066
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1067
|
+
number provided, it will be total request
|
|
1068
|
+
timeout. It can also be a pair (tuple) of
|
|
1069
|
+
(connection, read) timeouts.
|
|
1070
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1071
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1072
|
+
request; this effectively ignores the
|
|
1073
|
+
authentication in the spec for a single request.
|
|
1074
|
+
:type _request_auth: dict, optional
|
|
1075
|
+
:param _content_type: force content-type for the request.
|
|
1076
|
+
:type _content_type: str, Optional
|
|
1077
|
+
:param _headers: set to override the headers for a single
|
|
1078
|
+
request; this effectively ignores the headers
|
|
1079
|
+
in the spec for a single request.
|
|
1080
|
+
:type _headers: dict, optional
|
|
1081
|
+
:param _host_index: set to override the host_index for a single
|
|
1082
|
+
request; this effectively ignores the host_index
|
|
1083
|
+
in the spec for a single request.
|
|
1084
|
+
:type _host_index: int, optional
|
|
1085
|
+
:return: Returns the result object.
|
|
1086
|
+
""" # noqa: E501
|
|
1087
|
+
|
|
1088
|
+
_param = self._get_slo_correction_window_config_by_id_serialize(
|
|
1089
|
+
id=id,
|
|
1090
|
+
refresh=refresh,
|
|
1091
|
+
_request_auth=_request_auth,
|
|
1092
|
+
_content_type=_content_type,
|
|
1093
|
+
_headers=_headers,
|
|
1094
|
+
_host_index=_host_index
|
|
1095
|
+
)
|
|
1096
|
+
|
|
1097
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1098
|
+
'200': "CorrectionConfiguration",
|
|
1099
|
+
'404': "str",
|
|
1100
|
+
}
|
|
1101
|
+
response_data = self.api_client.call_api(
|
|
1102
|
+
*_param,
|
|
1103
|
+
_request_timeout=_request_timeout
|
|
1104
|
+
)
|
|
1105
|
+
response_data.read()
|
|
1106
|
+
return self.api_client.response_deserialize(
|
|
1107
|
+
response_data=response_data,
|
|
1108
|
+
response_types_map=_response_types_map,
|
|
1109
|
+
)
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
@validate_call
|
|
1113
|
+
def get_slo_correction_window_config_by_id_without_preload_content(
|
|
1114
|
+
self,
|
|
1115
|
+
id: StrictStr,
|
|
1116
|
+
refresh: Optional[StrictBool] = None,
|
|
1117
|
+
_request_timeout: Union[
|
|
1118
|
+
None,
|
|
1119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1120
|
+
Tuple[
|
|
1121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1123
|
+
]
|
|
1124
|
+
] = None,
|
|
1125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1126
|
+
_content_type: Optional[StrictStr] = None,
|
|
1127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1129
|
+
) -> RESTResponseType:
|
|
1130
|
+
"""Get an existing SLO Correction Window Config
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
:param id: (required)
|
|
1134
|
+
:type id: str
|
|
1135
|
+
:param refresh:
|
|
1136
|
+
:type refresh: bool
|
|
1137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1138
|
+
number provided, it will be total request
|
|
1139
|
+
timeout. It can also be a pair (tuple) of
|
|
1140
|
+
(connection, read) timeouts.
|
|
1141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1143
|
+
request; this effectively ignores the
|
|
1144
|
+
authentication in the spec for a single request.
|
|
1145
|
+
:type _request_auth: dict, optional
|
|
1146
|
+
:param _content_type: force content-type for the request.
|
|
1147
|
+
:type _content_type: str, Optional
|
|
1148
|
+
:param _headers: set to override the headers for a single
|
|
1149
|
+
request; this effectively ignores the headers
|
|
1150
|
+
in the spec for a single request.
|
|
1151
|
+
:type _headers: dict, optional
|
|
1152
|
+
:param _host_index: set to override the host_index for a single
|
|
1153
|
+
request; this effectively ignores the host_index
|
|
1154
|
+
in the spec for a single request.
|
|
1155
|
+
:type _host_index: int, optional
|
|
1156
|
+
:return: Returns the result object.
|
|
1157
|
+
""" # noqa: E501
|
|
1158
|
+
|
|
1159
|
+
_param = self._get_slo_correction_window_config_by_id_serialize(
|
|
1160
|
+
id=id,
|
|
1161
|
+
refresh=refresh,
|
|
1162
|
+
_request_auth=_request_auth,
|
|
1163
|
+
_content_type=_content_type,
|
|
1164
|
+
_headers=_headers,
|
|
1165
|
+
_host_index=_host_index
|
|
1166
|
+
)
|
|
1167
|
+
|
|
1168
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1169
|
+
'200': "CorrectionConfiguration",
|
|
1170
|
+
'404': "str",
|
|
1171
|
+
}
|
|
1172
|
+
response_data = self.api_client.call_api(
|
|
1173
|
+
*_param,
|
|
1174
|
+
_request_timeout=_request_timeout
|
|
1175
|
+
)
|
|
1176
|
+
return response_data.response
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
def _get_slo_correction_window_config_by_id_serialize(
|
|
1180
|
+
self,
|
|
1181
|
+
id,
|
|
1182
|
+
refresh,
|
|
1183
|
+
_request_auth,
|
|
1184
|
+
_content_type,
|
|
1185
|
+
_headers,
|
|
1186
|
+
_host_index,
|
|
1187
|
+
) -> RequestSerialized:
|
|
1188
|
+
|
|
1189
|
+
_host = None
|
|
1190
|
+
|
|
1191
|
+
_collection_formats: Dict[str, str] = {
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
_path_params: Dict[str, str] = {}
|
|
1195
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1196
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1197
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1198
|
+
_files: Dict[
|
|
1199
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1200
|
+
] = {}
|
|
1201
|
+
_body_params: Optional[bytes] = None
|
|
1202
|
+
|
|
1203
|
+
# process the path parameters
|
|
1204
|
+
if id is not None:
|
|
1205
|
+
_path_params['id'] = id
|
|
1206
|
+
# process the query parameters
|
|
1207
|
+
if refresh is not None:
|
|
1208
|
+
|
|
1209
|
+
_query_params.append(('refresh', refresh))
|
|
1210
|
+
|
|
1211
|
+
# process the header parameters
|
|
1212
|
+
# process the form parameters
|
|
1213
|
+
# process the body parameter
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
# set the HTTP header `Accept`
|
|
1217
|
+
if 'Accept' not in _header_params:
|
|
1218
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1219
|
+
[
|
|
1220
|
+
'application/json'
|
|
1221
|
+
]
|
|
1222
|
+
)
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
# authentication setting
|
|
1226
|
+
_auth_settings: List[str] = [
|
|
1227
|
+
'ApiKeyAuth'
|
|
1228
|
+
]
|
|
1229
|
+
|
|
1230
|
+
return self.api_client.param_serialize(
|
|
1231
|
+
method='GET',
|
|
1232
|
+
resource_path='/api/settings/correction/{id}',
|
|
1233
|
+
path_params=_path_params,
|
|
1234
|
+
query_params=_query_params,
|
|
1235
|
+
header_params=_header_params,
|
|
1236
|
+
body=_body_params,
|
|
1237
|
+
post_params=_form_params,
|
|
1238
|
+
files=_files,
|
|
1239
|
+
auth_settings=_auth_settings,
|
|
1240
|
+
collection_formats=_collection_formats,
|
|
1241
|
+
_host=_host,
|
|
1242
|
+
_request_auth=_request_auth
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
@validate_call
|
|
1249
|
+
def update_slo_correction_window_config(
|
|
1250
|
+
self,
|
|
1251
|
+
id: StrictStr,
|
|
1252
|
+
correction_configuration: CorrectionConfiguration,
|
|
1253
|
+
_request_timeout: Union[
|
|
1254
|
+
None,
|
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1256
|
+
Tuple[
|
|
1257
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1258
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1259
|
+
]
|
|
1260
|
+
] = None,
|
|
1261
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1262
|
+
_content_type: Optional[StrictStr] = None,
|
|
1263
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1264
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1265
|
+
) -> CorrectionConfiguration:
|
|
1266
|
+
"""Update an existing SLO Correction Window Config
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
:param id: (required)
|
|
1270
|
+
:type id: str
|
|
1271
|
+
:param correction_configuration: (required)
|
|
1272
|
+
:type correction_configuration: CorrectionConfiguration
|
|
1273
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1274
|
+
number provided, it will be total request
|
|
1275
|
+
timeout. It can also be a pair (tuple) of
|
|
1276
|
+
(connection, read) timeouts.
|
|
1277
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1278
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1279
|
+
request; this effectively ignores the
|
|
1280
|
+
authentication in the spec for a single request.
|
|
1281
|
+
:type _request_auth: dict, optional
|
|
1282
|
+
:param _content_type: force content-type for the request.
|
|
1283
|
+
:type _content_type: str, Optional
|
|
1284
|
+
:param _headers: set to override the headers for a single
|
|
1285
|
+
request; this effectively ignores the headers
|
|
1286
|
+
in the spec for a single request.
|
|
1287
|
+
:type _headers: dict, optional
|
|
1288
|
+
:param _host_index: set to override the host_index for a single
|
|
1289
|
+
request; this effectively ignores the host_index
|
|
1290
|
+
in the spec for a single request.
|
|
1291
|
+
:type _host_index: int, optional
|
|
1292
|
+
:return: Returns the result object.
|
|
1293
|
+
""" # noqa: E501
|
|
1294
|
+
|
|
1295
|
+
_param = self._update_slo_correction_window_config_serialize(
|
|
1296
|
+
id=id,
|
|
1297
|
+
correction_configuration=correction_configuration,
|
|
1298
|
+
_request_auth=_request_auth,
|
|
1299
|
+
_content_type=_content_type,
|
|
1300
|
+
_headers=_headers,
|
|
1301
|
+
_host_index=_host_index
|
|
1302
|
+
)
|
|
1303
|
+
|
|
1304
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1305
|
+
'200': "CorrectionConfiguration",
|
|
1306
|
+
'400': "str",
|
|
1307
|
+
'500': None,
|
|
1308
|
+
}
|
|
1309
|
+
response_data = self.api_client.call_api(
|
|
1310
|
+
*_param,
|
|
1311
|
+
_request_timeout=_request_timeout
|
|
1312
|
+
)
|
|
1313
|
+
response_data.read()
|
|
1314
|
+
return self.api_client.response_deserialize(
|
|
1315
|
+
response_data=response_data,
|
|
1316
|
+
response_types_map=_response_types_map,
|
|
1317
|
+
).data
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
@validate_call
|
|
1321
|
+
def update_slo_correction_window_config_with_http_info(
|
|
1322
|
+
self,
|
|
1323
|
+
id: StrictStr,
|
|
1324
|
+
correction_configuration: CorrectionConfiguration,
|
|
1325
|
+
_request_timeout: Union[
|
|
1326
|
+
None,
|
|
1327
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1328
|
+
Tuple[
|
|
1329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1330
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1331
|
+
]
|
|
1332
|
+
] = None,
|
|
1333
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1334
|
+
_content_type: Optional[StrictStr] = None,
|
|
1335
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1336
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1337
|
+
) -> ApiResponse[CorrectionConfiguration]:
|
|
1338
|
+
"""Update an existing SLO Correction Window Config
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
:param id: (required)
|
|
1342
|
+
:type id: str
|
|
1343
|
+
:param correction_configuration: (required)
|
|
1344
|
+
:type correction_configuration: CorrectionConfiguration
|
|
1345
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1346
|
+
number provided, it will be total request
|
|
1347
|
+
timeout. It can also be a pair (tuple) of
|
|
1348
|
+
(connection, read) timeouts.
|
|
1349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1351
|
+
request; this effectively ignores the
|
|
1352
|
+
authentication in the spec for a single request.
|
|
1353
|
+
:type _request_auth: dict, optional
|
|
1354
|
+
:param _content_type: force content-type for the request.
|
|
1355
|
+
:type _content_type: str, Optional
|
|
1356
|
+
:param _headers: set to override the headers for a single
|
|
1357
|
+
request; this effectively ignores the headers
|
|
1358
|
+
in the spec for a single request.
|
|
1359
|
+
:type _headers: dict, optional
|
|
1360
|
+
:param _host_index: set to override the host_index for a single
|
|
1361
|
+
request; this effectively ignores the host_index
|
|
1362
|
+
in the spec for a single request.
|
|
1363
|
+
:type _host_index: int, optional
|
|
1364
|
+
:return: Returns the result object.
|
|
1365
|
+
""" # noqa: E501
|
|
1366
|
+
|
|
1367
|
+
_param = self._update_slo_correction_window_config_serialize(
|
|
1368
|
+
id=id,
|
|
1369
|
+
correction_configuration=correction_configuration,
|
|
1370
|
+
_request_auth=_request_auth,
|
|
1371
|
+
_content_type=_content_type,
|
|
1372
|
+
_headers=_headers,
|
|
1373
|
+
_host_index=_host_index
|
|
1374
|
+
)
|
|
1375
|
+
|
|
1376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1377
|
+
'200': "CorrectionConfiguration",
|
|
1378
|
+
'400': "str",
|
|
1379
|
+
'500': None,
|
|
1380
|
+
}
|
|
1381
|
+
response_data = self.api_client.call_api(
|
|
1382
|
+
*_param,
|
|
1383
|
+
_request_timeout=_request_timeout
|
|
1384
|
+
)
|
|
1385
|
+
response_data.read()
|
|
1386
|
+
return self.api_client.response_deserialize(
|
|
1387
|
+
response_data=response_data,
|
|
1388
|
+
response_types_map=_response_types_map,
|
|
1389
|
+
)
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
@validate_call
|
|
1393
|
+
def update_slo_correction_window_config_without_preload_content(
|
|
1394
|
+
self,
|
|
1395
|
+
id: StrictStr,
|
|
1396
|
+
correction_configuration: CorrectionConfiguration,
|
|
1397
|
+
_request_timeout: Union[
|
|
1398
|
+
None,
|
|
1399
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1400
|
+
Tuple[
|
|
1401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1402
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1403
|
+
]
|
|
1404
|
+
] = None,
|
|
1405
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1406
|
+
_content_type: Optional[StrictStr] = None,
|
|
1407
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1408
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1409
|
+
) -> RESTResponseType:
|
|
1410
|
+
"""Update an existing SLO Correction Window Config
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
:param id: (required)
|
|
1414
|
+
:type id: str
|
|
1415
|
+
:param correction_configuration: (required)
|
|
1416
|
+
:type correction_configuration: CorrectionConfiguration
|
|
1417
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1418
|
+
number provided, it will be total request
|
|
1419
|
+
timeout. It can also be a pair (tuple) of
|
|
1420
|
+
(connection, read) timeouts.
|
|
1421
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1422
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1423
|
+
request; this effectively ignores the
|
|
1424
|
+
authentication in the spec for a single request.
|
|
1425
|
+
:type _request_auth: dict, optional
|
|
1426
|
+
:param _content_type: force content-type for the request.
|
|
1427
|
+
:type _content_type: str, Optional
|
|
1428
|
+
:param _headers: set to override the headers for a single
|
|
1429
|
+
request; this effectively ignores the headers
|
|
1430
|
+
in the spec for a single request.
|
|
1431
|
+
:type _headers: dict, optional
|
|
1432
|
+
:param _host_index: set to override the host_index for a single
|
|
1433
|
+
request; this effectively ignores the host_index
|
|
1434
|
+
in the spec for a single request.
|
|
1435
|
+
:type _host_index: int, optional
|
|
1436
|
+
:return: Returns the result object.
|
|
1437
|
+
""" # noqa: E501
|
|
1438
|
+
|
|
1439
|
+
_param = self._update_slo_correction_window_config_serialize(
|
|
1440
|
+
id=id,
|
|
1441
|
+
correction_configuration=correction_configuration,
|
|
1442
|
+
_request_auth=_request_auth,
|
|
1443
|
+
_content_type=_content_type,
|
|
1444
|
+
_headers=_headers,
|
|
1445
|
+
_host_index=_host_index
|
|
1446
|
+
)
|
|
1447
|
+
|
|
1448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1449
|
+
'200': "CorrectionConfiguration",
|
|
1450
|
+
'400': "str",
|
|
1451
|
+
'500': None,
|
|
1452
|
+
}
|
|
1453
|
+
response_data = self.api_client.call_api(
|
|
1454
|
+
*_param,
|
|
1455
|
+
_request_timeout=_request_timeout
|
|
1456
|
+
)
|
|
1457
|
+
return response_data.response
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
def _update_slo_correction_window_config_serialize(
|
|
1461
|
+
self,
|
|
1462
|
+
id,
|
|
1463
|
+
correction_configuration,
|
|
1464
|
+
_request_auth,
|
|
1465
|
+
_content_type,
|
|
1466
|
+
_headers,
|
|
1467
|
+
_host_index,
|
|
1468
|
+
) -> RequestSerialized:
|
|
1469
|
+
|
|
1470
|
+
_host = None
|
|
1471
|
+
|
|
1472
|
+
_collection_formats: Dict[str, str] = {
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
_path_params: Dict[str, str] = {}
|
|
1476
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1477
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1478
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1479
|
+
_files: Dict[
|
|
1480
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1481
|
+
] = {}
|
|
1482
|
+
_body_params: Optional[bytes] = None
|
|
1483
|
+
|
|
1484
|
+
# process the path parameters
|
|
1485
|
+
if id is not None:
|
|
1486
|
+
_path_params['id'] = id
|
|
1487
|
+
# process the query parameters
|
|
1488
|
+
# process the header parameters
|
|
1489
|
+
# process the form parameters
|
|
1490
|
+
# process the body parameter
|
|
1491
|
+
if correction_configuration is not None:
|
|
1492
|
+
_body_params = correction_configuration
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
# set the HTTP header `Accept`
|
|
1496
|
+
if 'Accept' not in _header_params:
|
|
1497
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1498
|
+
[
|
|
1499
|
+
'application/json'
|
|
1500
|
+
]
|
|
1501
|
+
)
|
|
1502
|
+
|
|
1503
|
+
# set the HTTP header `Content-Type`
|
|
1504
|
+
if _content_type:
|
|
1505
|
+
_header_params['Content-Type'] = _content_type
|
|
1506
|
+
else:
|
|
1507
|
+
_default_content_type = (
|
|
1508
|
+
self.api_client.select_header_content_type(
|
|
1509
|
+
[
|
|
1510
|
+
'application/json'
|
|
1511
|
+
]
|
|
1512
|
+
)
|
|
1513
|
+
)
|
|
1514
|
+
if _default_content_type is not None:
|
|
1515
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1516
|
+
|
|
1517
|
+
# authentication setting
|
|
1518
|
+
_auth_settings: List[str] = [
|
|
1519
|
+
'ApiKeyAuth'
|
|
1520
|
+
]
|
|
1521
|
+
|
|
1522
|
+
return self.api_client.param_serialize(
|
|
1523
|
+
method='PUT',
|
|
1524
|
+
resource_path='/api/settings/correction/{id}',
|
|
1525
|
+
path_params=_path_params,
|
|
1526
|
+
query_params=_query_params,
|
|
1527
|
+
header_params=_header_params,
|
|
1528
|
+
body=_body_params,
|
|
1529
|
+
post_params=_form_params,
|
|
1530
|
+
files=_files,
|
|
1531
|
+
auth_settings=_auth_settings,
|
|
1532
|
+
collection_formats=_collection_formats,
|
|
1533
|
+
_host=_host,
|
|
1534
|
+
_request_auth=_request_auth
|
|
1535
|
+
)
|
|
1536
|
+
|
|
1537
|
+
|