instana-client 1.0.0__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.
Files changed (515) hide show
  1. instana_client/__init__.py +534 -0
  2. instana_client/api/__init__.py +58 -0
  3. instana_client/api/action_catalog_api.py +1380 -0
  4. instana_client/api/action_history_api.py +1793 -0
  5. instana_client/api/apdex_report_api.py +338 -0
  6. instana_client/api/apdex_settings_api.py +1353 -0
  7. instana_client/api/api_token_api.py +1370 -0
  8. instana_client/api/application_alert_configuration_api.py +2865 -0
  9. instana_client/api/application_analyze_api.py +2017 -0
  10. instana_client/api/application_catalog_api.py +885 -0
  11. instana_client/api/application_metrics_api.py +1211 -0
  12. instana_client/api/application_resources_api.py +1487 -0
  13. instana_client/api/application_settings_api.py +7261 -0
  14. instana_client/api/application_topology_api.py +354 -0
  15. instana_client/api/audit_log_api.py +635 -0
  16. instana_client/api/authentication_api.py +1008 -0
  17. instana_client/api/business_monitoring_api.py +2177 -0
  18. instana_client/api/custom_dashboards_api.py +1930 -0
  19. instana_client/api/event_settings_api.py +14613 -0
  20. instana_client/api/events_api.py +1654 -0
  21. instana_client/api/global_application_alert_configuration_api.py +2606 -0
  22. instana_client/api/groups_api.py +4078 -0
  23. instana_client/api/health_api.py +527 -0
  24. instana_client/api/host_agent_api.py +2120 -0
  25. instana_client/api/infrastructure_alert_configuration_api.py +2524 -0
  26. instana_client/api/infrastructure_analyze_api.py +1141 -0
  27. instana_client/api/infrastructure_catalog_api.py +1822 -0
  28. instana_client/api/infrastructure_metrics_api.py +331 -0
  29. instana_client/api/infrastructure_resources_api.py +1880 -0
  30. instana_client/api/infrastructure_topology_api.py +595 -0
  31. instana_client/api/log_alert_configuration_api.py +2524 -0
  32. instana_client/api/maintenance_configuration_api.py +2683 -0
  33. instana_client/api/mobile_app_analyze_api.py +613 -0
  34. instana_client/api/mobile_app_catalog_api.py +825 -0
  35. instana_client/api/mobile_app_configuration_api.py +2847 -0
  36. instana_client/api/mobile_app_metrics_api.py +892 -0
  37. instana_client/api/policies_api.py +1755 -0
  38. instana_client/api/releases_api.py +1408 -0
  39. instana_client/api/service_levels_alert_configuration_api.py +2577 -0
  40. instana_client/api/service_levels_objective_slo_configurations_api.py +1825 -0
  41. instana_client/api/service_levels_objective_slo_report_api.py +335 -0
  42. instana_client/api/session_settings_api.py +801 -0
  43. instana_client/api/sli_report_api.py +352 -0
  44. instana_client/api/sli_settings_api.py +2677 -0
  45. instana_client/api/synthetic_alert_configuration_api.py +2606 -0
  46. instana_client/api/synthetic_calls_api.py +789 -0
  47. instana_client/api/synthetic_catalog_api.py +543 -0
  48. instana_client/api/synthetic_metrics_api.py +322 -0
  49. instana_client/api/synthetic_settings_api.py +5144 -0
  50. instana_client/api/synthetic_test_playback_results_api.py +2142 -0
  51. instana_client/api/usage_api.py +1404 -0
  52. instana_client/api/user_api.py +2404 -0
  53. instana_client/api/website_analyze_api.py +619 -0
  54. instana_client/api/website_catalog_api.py +832 -0
  55. instana_client/api/website_configuration_api.py +3745 -0
  56. instana_client/api/website_metrics_api.py +889 -0
  57. instana_client/api_client.py +798 -0
  58. instana_client/api_response.py +21 -0
  59. instana_client/configuration.py +616 -0
  60. instana_client/exceptions.py +217 -0
  61. instana_client/models/__init__.py +464 -0
  62. instana_client/models/abstract_integration.py +155 -0
  63. instana_client/models/abstract_rule.py +124 -0
  64. instana_client/models/access_log_entry.py +105 -0
  65. instana_client/models/access_log_response.py +98 -0
  66. instana_client/models/access_rule.py +107 -0
  67. instana_client/models/action.py +135 -0
  68. instana_client/models/action_configuration.py +104 -0
  69. instana_client/models/action_instance.py +185 -0
  70. instana_client/models/action_instance_metadata_entry.py +90 -0
  71. instana_client/models/action_instance_parameter.py +94 -0
  72. instana_client/models/action_instance_request.py +108 -0
  73. instana_client/models/action_instance_request_parameters.py +92 -0
  74. instana_client/models/action_match.py +98 -0
  75. instana_client/models/action_search_space.py +94 -0
  76. instana_client/models/adaptive_baseline.py +92 -0
  77. instana_client/models/adaptive_threshold_rule.py +91 -0
  78. instana_client/models/adjusted_timeframe.py +91 -0
  79. instana_client/models/agent_configuration_update.py +93 -0
  80. instana_client/models/alerting_configuration.py +113 -0
  81. instana_client/models/alerting_configuration_with_last_updated.py +115 -0
  82. instana_client/models/alerting_time_window.py +109 -0
  83. instana_client/models/apdex_configuration.py +99 -0
  84. instana_client/models/apdex_configuration_input.py +95 -0
  85. instana_client/models/apdex_entity.py +119 -0
  86. instana_client/models/apdex_report.py +94 -0
  87. instana_client/models/api_create_group.py +104 -0
  88. instana_client/models/api_group.py +107 -0
  89. instana_client/models/api_member.py +90 -0
  90. instana_client/models/api_permission_set.py +178 -0
  91. instana_client/models/api_restricted_application_filter.py +108 -0
  92. instana_client/models/api_token.py +250 -0
  93. instana_client/models/app_data_metric_configuration.py +105 -0
  94. instana_client/models/application.py +104 -0
  95. instana_client/models/application_alert_config.py +203 -0
  96. instana_client/models/application_alert_config_with_metadata.py +213 -0
  97. instana_client/models/application_alert_rule.py +135 -0
  98. instana_client/models/application_apdex_entity.py +111 -0
  99. instana_client/models/application_config.py +131 -0
  100. instana_client/models/application_event_result.py +108 -0
  101. instana_client/models/application_item.py +94 -0
  102. instana_client/models/application_metric_result.py +109 -0
  103. instana_client/models/application_node.py +106 -0
  104. instana_client/models/application_result.py +102 -0
  105. instana_client/models/application_scope.py +89 -0
  106. instana_client/models/application_scope_with_metadata.py +90 -0
  107. instana_client/models/application_sli_entity.py +103 -0
  108. instana_client/models/application_slo_entity.py +112 -0
  109. instana_client/models/application_time_threshold.py +115 -0
  110. instana_client/models/audit_log_entry.py +102 -0
  111. instana_client/models/audit_log_ui_response.py +98 -0
  112. instana_client/models/author.py +100 -0
  113. instana_client/models/availability_blueprint_indicator.py +106 -0
  114. instana_client/models/availability_sli_entity.py +138 -0
  115. instana_client/models/available_metrics.py +96 -0
  116. instana_client/models/available_plugins.py +88 -0
  117. instana_client/models/backend_trace_reference.py +88 -0
  118. instana_client/models/binary_operator_dto.py +107 -0
  119. instana_client/models/browser_script_configuration.py +127 -0
  120. instana_client/models/built_in_event_specification.py +123 -0
  121. instana_client/models/built_in_event_specification_with_last_updated.py +125 -0
  122. instana_client/models/business_activity.py +132 -0
  123. instana_client/models/business_perspective_config.py +99 -0
  124. instana_client/models/call_groups_item.py +95 -0
  125. instana_client/models/call_groups_result.py +111 -0
  126. instana_client/models/call_relation.py +100 -0
  127. instana_client/models/change_summary.py +101 -0
  128. instana_client/models/cloudfoundry_physical_context.py +104 -0
  129. instana_client/models/condition.py +88 -0
  130. instana_client/models/config_version.py +101 -0
  131. instana_client/models/crash_mobile_app_alert_rule.py +90 -0
  132. instana_client/models/cursor_paginated_business_activity_item.py +96 -0
  133. instana_client/models/cursor_pagination.py +93 -0
  134. instana_client/models/cursor_pagination_infra_explore_cursor.py +90 -0
  135. instana_client/models/custom_blueprint_indicator.py +104 -0
  136. instana_client/models/custom_dashboard.py +111 -0
  137. instana_client/models/custom_dashboard_preview.py +103 -0
  138. instana_client/models/custom_email_subject_prefix.py +94 -0
  139. instana_client/models/custom_event_mobile_app_alert_rule.py +92 -0
  140. instana_client/models/custom_event_specification.py +133 -0
  141. instana_client/models/custom_event_specification_with_last_updated.py +143 -0
  142. instana_client/models/custom_event_website_alert_rule.py +92 -0
  143. instana_client/models/custom_payload_configuration.py +97 -0
  144. instana_client/models/custom_payload_field.py +112 -0
  145. instana_client/models/custom_payload_with_last_updated.py +99 -0
  146. instana_client/models/dashboard_api_token.py +90 -0
  147. instana_client/models/database_integration.py +90 -0
  148. instana_client/models/deprecated_tag_filter.py +111 -0
  149. instana_client/models/dns_action_configuration.py +134 -0
  150. instana_client/models/dns_action_filter_query_time.py +99 -0
  151. instana_client/models/dns_action_filter_target_value.py +106 -0
  152. instana_client/models/duration.py +98 -0
  153. instana_client/models/dynamic_field.py +95 -0
  154. instana_client/models/dynamic_field_value.py +90 -0
  155. instana_client/models/dynamic_parameter.py +94 -0
  156. instana_client/models/edit_user.py +88 -0
  157. instana_client/models/email_integration.py +98 -0
  158. instana_client/models/empty_configuration.py +92 -0
  159. instana_client/models/endpoint.py +131 -0
  160. instana_client/models/endpoint_config.py +112 -0
  161. instana_client/models/endpoint_event_result.py +112 -0
  162. instana_client/models/endpoint_item.py +94 -0
  163. instana_client/models/endpoint_metric_result.py +109 -0
  164. instana_client/models/endpoint_node.py +91 -0
  165. instana_client/models/endpoint_result.py +102 -0
  166. instana_client/models/endpoint_simple.py +102 -0
  167. instana_client/models/entity_count_rule.py +100 -0
  168. instana_client/models/entity_count_verification_rule.py +114 -0
  169. instana_client/models/entity_health_info.py +99 -0
  170. instana_client/models/entity_id.py +92 -0
  171. instana_client/models/entity_verification_rule.py +105 -0
  172. instana_client/models/error_budget_alert_rule.py +97 -0
  173. instana_client/models/errors_application_alert_rule.py +90 -0
  174. instana_client/models/event.py +127 -0
  175. instana_client/models/event_filtering_configuration.py +106 -0
  176. instana_client/models/event_result.py +145 -0
  177. instana_client/models/event_specification_info.py +114 -0
  178. instana_client/models/extended_service.py +123 -0
  179. instana_client/models/failure_synthetic_alert_rule.py +90 -0
  180. instana_client/models/fixed_http_path_segment_matching_rule.py +90 -0
  181. instana_client/models/fixed_time_window.py +93 -0
  182. instana_client/models/full_trace.py +97 -0
  183. instana_client/models/generic_infra_alert_rule.py +93 -0
  184. instana_client/models/geo_location_configuration.py +106 -0
  185. instana_client/models/geo_mapping_rule.py +120 -0
  186. instana_client/models/geo_subdivision.py +91 -0
  187. instana_client/models/get_activities.py +115 -0
  188. instana_client/models/get_application_metrics.py +112 -0
  189. instana_client/models/get_applications.py +150 -0
  190. instana_client/models/get_available_metrics_query.py +103 -0
  191. instana_client/models/get_available_plugins_query.py +98 -0
  192. instana_client/models/get_call_groups.py +141 -0
  193. instana_client/models/get_combined_metrics.py +103 -0
  194. instana_client/models/get_dynamic_parameter_values.py +100 -0
  195. instana_client/models/get_endpoints.py +150 -0
  196. instana_client/models/get_infrastructure_groups_query.py +127 -0
  197. instana_client/models/get_infrastructure_query.py +127 -0
  198. instana_client/models/get_metrics_result.py +128 -0
  199. instana_client/models/get_mobile_app_beacon_groups.py +146 -0
  200. instana_client/models/get_mobile_app_beacons.py +118 -0
  201. instana_client/models/get_mobile_app_metrics.py +122 -0
  202. instana_client/models/get_mobile_app_metrics_v2.py +118 -0
  203. instana_client/models/get_payload_keys_result.py +88 -0
  204. instana_client/models/get_services.py +147 -0
  205. instana_client/models/get_snapshots_query.py +95 -0
  206. instana_client/models/get_test_result.py +139 -0
  207. instana_client/models/get_test_result_base.py +120 -0
  208. instana_client/models/get_test_result_list.py +125 -0
  209. instana_client/models/get_test_summary_result.py +130 -0
  210. instana_client/models/get_trace_download_result_item.py +114 -0
  211. instana_client/models/get_trace_groups.py +141 -0
  212. instana_client/models/get_traces.py +125 -0
  213. instana_client/models/get_website_beacon_groups.py +146 -0
  214. instana_client/models/get_website_beacons.py +118 -0
  215. instana_client/models/get_website_metrics.py +122 -0
  216. instana_client/models/get_website_metrics_v2.py +118 -0
  217. instana_client/models/global_application_alert_config_with_metadata.py +205 -0
  218. instana_client/models/global_applications_alert_config.py +191 -0
  219. instana_client/models/google_chat_integration.py +92 -0
  220. instana_client/models/graph_edge.py +102 -0
  221. instana_client/models/graph_node.py +100 -0
  222. instana_client/models/group.py +100 -0
  223. instana_client/models/group_by_tag.py +90 -0
  224. instana_client/models/group_mapping.py +95 -0
  225. instana_client/models/health_state.py +100 -0
  226. instana_client/models/historic_baseline.py +105 -0
  227. instana_client/models/host_availability_rule.py +100 -0
  228. instana_client/models/http_action_configuration.py +127 -0
  229. instana_client/models/http_endpoint_config.py +103 -0
  230. instana_client/models/http_endpoint_rule.py +101 -0
  231. instana_client/models/http_path_segment_matching_rule.py +124 -0
  232. instana_client/models/http_script_configuration.py +113 -0
  233. instana_client/models/hyper_param.py +111 -0
  234. instana_client/models/identity_provider_patch.py +88 -0
  235. instana_client/models/infra_alert_config.py +166 -0
  236. instana_client/models/infra_alert_config_with_metadata.py +176 -0
  237. instana_client/models/infra_alert_rule.py +133 -0
  238. instana_client/models/infra_event_result.py +109 -0
  239. instana_client/models/infra_metric_configuration.py +115 -0
  240. instana_client/models/infra_time_threshold.py +109 -0
  241. instana_client/models/infrastructure_entities_result.py +109 -0
  242. instana_client/models/infrastructure_group.py +92 -0
  243. instana_client/models/infrastructure_groups_result.py +109 -0
  244. instana_client/models/infrastructure_item.py +104 -0
  245. instana_client/models/infrastructure_metric_result.py +96 -0
  246. instana_client/models/instana_version_info.py +92 -0
  247. instana_client/models/integration_overview.py +94 -0
  248. instana_client/models/invitation.py +94 -0
  249. instana_client/models/invitation_response.py +96 -0
  250. instana_client/models/invitation_result.py +100 -0
  251. instana_client/models/ip_masking_configuration.py +95 -0
  252. instana_client/models/js_stack_trace_line.py +99 -0
  253. instana_client/models/kubernetes_physical_context.py +107 -0
  254. instana_client/models/latency_blueprint_indicator.py +106 -0
  255. instana_client/models/location_status.py +96 -0
  256. instana_client/models/log_alert_config.py +154 -0
  257. instana_client/models/log_alert_config_with_metadata.py +164 -0
  258. instana_client/models/log_alert_rule.py +120 -0
  259. instana_client/models/log_count_alert_rule.py +90 -0
  260. instana_client/models/log_entry_actor.py +101 -0
  261. instana_client/models/log_event_result.py +107 -0
  262. instana_client/models/log_time_threshold.py +109 -0
  263. instana_client/models/logs_application_alert_rule.py +122 -0
  264. instana_client/models/maintenance_config.py +103 -0
  265. instana_client/models/maintenance_config_scheduling.py +118 -0
  266. instana_client/models/maintenance_config_v2.py +111 -0
  267. instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +131 -0
  268. instana_client/models/maintenance_config_with_last_updated.py +105 -0
  269. instana_client/models/maintenance_window.py +93 -0
  270. instana_client/models/manual_alerting_channel_configuration.py +99 -0
  271. instana_client/models/manual_close_info.py +99 -0
  272. instana_client/models/manual_service_config.py +103 -0
  273. instana_client/models/match_all_http_path_segment_matching_rule.py +88 -0
  274. instana_client/models/match_expression_dto.py +111 -0
  275. instana_client/models/meta_data.py +96 -0
  276. instana_client/models/metric_api_result.py +94 -0
  277. instana_client/models/metric_config.py +99 -0
  278. instana_client/models/metric_configuration.py +103 -0
  279. instana_client/models/metric_description.py +116 -0
  280. instana_client/models/metric_instance.py +105 -0
  281. instana_client/models/metric_item.py +102 -0
  282. instana_client/models/metric_metadata.py +132 -0
  283. instana_client/models/metric_pattern.py +101 -0
  284. instana_client/models/metrics_result.py +96 -0
  285. instana_client/models/metrics_result_item.py +100 -0
  286. instana_client/models/metrics_test_result_item.py +102 -0
  287. instana_client/models/mobile_app.py +91 -0
  288. instana_client/models/mobile_app_alert_config.py +162 -0
  289. instana_client/models/mobile_app_alert_rule.py +129 -0
  290. instana_client/models/mobile_app_beacon_groups_item.py +95 -0
  291. instana_client/models/mobile_app_beacon_groups_result.py +111 -0
  292. instana_client/models/mobile_app_beacon_result.py +111 -0
  293. instana_client/models/mobile_app_beacon_tag_group.py +100 -0
  294. instana_client/models/mobile_app_beacons_item.py +94 -0
  295. instana_client/models/mobile_app_event_result.py +108 -0
  296. instana_client/models/mobile_app_metric_result.py +88 -0
  297. instana_client/models/mobile_app_monitoring_beacon.py +259 -0
  298. instana_client/models/mobile_app_monitoring_metric_description.py +123 -0
  299. instana_client/models/mobile_app_monitoring_metrics_configuration.py +105 -0
  300. instana_client/models/mobile_app_time_threshold.py +115 -0
  301. instana_client/models/model_field.py +96 -0
  302. instana_client/models/monitoring_state.py +92 -0
  303. instana_client/models/multiple_scripts_configuration.py +90 -0
  304. instana_client/models/new_application_config.py +129 -0
  305. instana_client/models/new_business_perspective_config.py +97 -0
  306. instana_client/models/new_manual_service_config.py +100 -0
  307. instana_client/models/occurrence.py +91 -0
  308. instana_client/models/office365_integration.py +92 -0
  309. instana_client/models/one_time_maintenance_window.py +94 -0
  310. instana_client/models/opsgenie_integration.py +105 -0
  311. instana_client/models/order.py +99 -0
  312. instana_client/models/pagerduty_integration.py +92 -0
  313. instana_client/models/paginated_result.py +95 -0
  314. instana_client/models/pagination.py +91 -0
  315. instana_client/models/parameter.py +102 -0
  316. instana_client/models/parameter_value.py +90 -0
  317. instana_client/models/path_parameter_http_path_segment_matching_rule.py +90 -0
  318. instana_client/models/physical_context.py +119 -0
  319. instana_client/models/plugin_result.py +90 -0
  320. instana_client/models/policy.py +113 -0
  321. instana_client/models/policy_runnable.py +103 -0
  322. instana_client/models/post_snapshots_result.py +98 -0
  323. instana_client/models/problem.py +95 -0
  324. instana_client/models/prometheus_webhook_integration.py +94 -0
  325. instana_client/models/recurrent_maintenance_window.py +98 -0
  326. instana_client/models/release.py +111 -0
  327. instana_client/models/release_scope.py +94 -0
  328. instana_client/models/release_with_metadata.py +125 -0
  329. instana_client/models/rolling_time_window.py +90 -0
  330. instana_client/models/rule_input.py +98 -0
  331. instana_client/models/rule_with_threshold_application_alert_rule.py +116 -0
  332. instana_client/models/rule_with_threshold_infra_alert_rule.py +116 -0
  333. instana_client/models/rule_with_threshold_log_alert_rule.py +116 -0
  334. instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +116 -0
  335. instana_client/models/rule_with_threshold_website_alert_rule.py +116 -0
  336. instana_client/models/run_configuration.py +96 -0
  337. instana_client/models/salesforce_integration.py +98 -0
  338. instana_client/models/scope_binding.py +91 -0
  339. instana_client/models/search_field_result.py +116 -0
  340. instana_client/models/service.py +116 -0
  341. instana_client/models/service_config.py +107 -0
  342. instana_client/models/service_event_result.py +110 -0
  343. instana_client/models/service_item.py +94 -0
  344. instana_client/models/service_level_indicator.py +172 -0
  345. instana_client/models/service_level_objective_alert_rule.py +100 -0
  346. instana_client/models/service_level_objective_configuration.py +118 -0
  347. instana_client/models/service_levels_alert_config.py +133 -0
  348. instana_client/models/service_levels_alert_rule.py +111 -0
  349. instana_client/models/service_levels_burn_rate_time_windows.py +97 -0
  350. instana_client/models/service_levels_time_threshold.py +90 -0
  351. instana_client/models/service_levelse_alert_config_with_metadata.py +143 -0
  352. instana_client/models/service_map.py +106 -0
  353. instana_client/models/service_map_connection.py +97 -0
  354. instana_client/models/service_matching_rule.py +90 -0
  355. instana_client/models/service_metric_result.py +109 -0
  356. instana_client/models/service_node.py +106 -0
  357. instana_client/models/service_now_enhanced_integration.py +116 -0
  358. instana_client/models/service_now_integration.py +98 -0
  359. instana_client/models/service_result.py +102 -0
  360. instana_client/models/service_scope.py +95 -0
  361. instana_client/models/service_scope_with_metadata.py +96 -0
  362. instana_client/models/service_scoped_to.py +97 -0
  363. instana_client/models/service_scoped_to_with_metadata.py +97 -0
  364. instana_client/models/service_simple.py +90 -0
  365. instana_client/models/session_settings.py +91 -0
  366. instana_client/models/slack_integration.py +98 -0
  367. instana_client/models/sli_configuration.py +105 -0
  368. instana_client/models/sli_configuration_with_last_updated.py +107 -0
  369. instana_client/models/sli_entity.py +117 -0
  370. instana_client/models/sli_report.py +100 -0
  371. instana_client/models/slo_entity.py +119 -0
  372. instana_client/models/slo_report.py +112 -0
  373. instana_client/models/slowness_application_alert_rule.py +90 -0
  374. instana_client/models/slowness_website_alert_rule.py +90 -0
  375. instana_client/models/snapshot_item.py +102 -0
  376. instana_client/models/snapshot_preview.py +97 -0
  377. instana_client/models/snapshot_result.py +96 -0
  378. instana_client/models/software_user.py +94 -0
  379. instana_client/models/software_version.py +124 -0
  380. instana_client/models/source_map_file_blob.py +92 -0
  381. instana_client/models/source_map_file_meta.py +115 -0
  382. instana_client/models/source_map_upload_config.py +106 -0
  383. instana_client/models/span.py +156 -0
  384. instana_client/models/span_excerpt.py +132 -0
  385. instana_client/models/span_relation.py +114 -0
  386. instana_client/models/specific_js_errors_website_alert_rule.py +101 -0
  387. instana_client/models/splunk_integration.py +94 -0
  388. instana_client/models/ssl_certificate_configuration.py +99 -0
  389. instana_client/models/stack_trace_item.py +92 -0
  390. instana_client/models/stack_trace_line.py +99 -0
  391. instana_client/models/static_baseline_threshold_rule.py +102 -0
  392. instana_client/models/static_string_field.py +91 -0
  393. instana_client/models/static_threshold.py +94 -0
  394. instana_client/models/static_threshold_rule.py +91 -0
  395. instana_client/models/status_code_application_alert_rule.py +95 -0
  396. instana_client/models/status_code_mobile_app_alert_rule.py +101 -0
  397. instana_client/models/status_code_website_alert_rule.py +101 -0
  398. instana_client/models/synthetic_alert_config.py +127 -0
  399. instana_client/models/synthetic_alert_config_with_metadata.py +137 -0
  400. instana_client/models/synthetic_alert_rule.py +120 -0
  401. instana_client/models/synthetic_call_config.py +99 -0
  402. instana_client/models/synthetic_call_rule.py +99 -0
  403. instana_client/models/synthetic_call_with_defaults_config.py +108 -0
  404. instana_client/models/synthetic_credential.py +111 -0
  405. instana_client/models/synthetic_datacenter.py +117 -0
  406. instana_client/models/synthetic_datacenter_configuration.py +88 -0
  407. instana_client/models/synthetic_geo_point.py +94 -0
  408. instana_client/models/synthetic_location.py +129 -0
  409. instana_client/models/synthetic_location_configuration.py +102 -0
  410. instana_client/models/synthetic_metric_configuration.py +99 -0
  411. instana_client/models/synthetic_metric_tag_group.py +100 -0
  412. instana_client/models/synthetic_playback_capabilities.py +98 -0
  413. instana_client/models/synthetic_slo_entity.py +95 -0
  414. instana_client/models/synthetic_test.py +149 -0
  415. instana_client/models/synthetic_time_threshold.py +110 -0
  416. instana_client/models/synthetic_type_configuration.py +141 -0
  417. instana_client/models/synthetics_event_result.py +110 -0
  418. instana_client/models/system_rule.py +91 -0
  419. instana_client/models/system_rule_label.py +90 -0
  420. instana_client/models/tag.py +123 -0
  421. instana_client/models/tag_catalog.py +106 -0
  422. instana_client/models/tag_filter.py +113 -0
  423. instana_client/models/tag_filter_expression.py +106 -0
  424. instana_client/models/tag_filter_expression_element.py +111 -0
  425. instana_client/models/tag_matcher_dto.py +110 -0
  426. instana_client/models/tag_tree_level.py +109 -0
  427. instana_client/models/tag_tree_node.py +113 -0
  428. instana_client/models/tag_tree_tag.py +103 -0
  429. instana_client/models/test_common_properties.py +136 -0
  430. instana_client/models/test_result.py +105 -0
  431. instana_client/models/test_result_common_properties.py +108 -0
  432. instana_client/models/test_result_detail_data.py +112 -0
  433. instana_client/models/test_result_item.py +106 -0
  434. instana_client/models/test_result_list_item.py +94 -0
  435. instana_client/models/test_result_list_result.py +103 -0
  436. instana_client/models/test_result_metadata.py +94 -0
  437. instana_client/models/test_result_subtransaction.py +90 -0
  438. instana_client/models/threshold.py +122 -0
  439. instana_client/models/threshold_config_rule.py +114 -0
  440. instana_client/models/threshold_rule.py +125 -0
  441. instana_client/models/throughput_application_alert_rule.py +90 -0
  442. instana_client/models/throughput_mobile_app_alert_rule.py +90 -0
  443. instana_client/models/throughput_website_alert_rule.py +90 -0
  444. instana_client/models/time_frame.py +91 -0
  445. instana_client/models/time_window.py +120 -0
  446. instana_client/models/topology.py +106 -0
  447. instana_client/models/trace.py +109 -0
  448. instana_client/models/trace_activity_tree_node_details.py +139 -0
  449. instana_client/models/trace_download_result.py +111 -0
  450. instana_client/models/trace_groups_item.py +95 -0
  451. instana_client/models/trace_groups_result.py +111 -0
  452. instana_client/models/trace_impact_application_time_threshold.py +92 -0
  453. instana_client/models/trace_item.py +94 -0
  454. instana_client/models/trace_result.py +111 -0
  455. instana_client/models/traffic_blueprint_indicator.py +104 -0
  456. instana_client/models/trigger.py +99 -0
  457. instana_client/models/type_configuration.py +107 -0
  458. instana_client/models/unsupported_http_path_segment_matching_rule.py +90 -0
  459. instana_client/models/updated_business_perspective_config.py +97 -0
  460. instana_client/models/usage_result.py +98 -0
  461. instana_client/models/usage_result_items.py +90 -0
  462. instana_client/models/user_basic_result.py +92 -0
  463. instana_client/models/user_impact_mobile_app_time_threshold.py +103 -0
  464. instana_client/models/user_impact_website_time_threshold.py +103 -0
  465. instana_client/models/user_result.py +98 -0
  466. instana_client/models/users_result.py +106 -0
  467. instana_client/models/validated_alerting_channel_input_info.py +123 -0
  468. instana_client/models/validated_alerting_configuration.py +121 -0
  469. instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +135 -0
  470. instana_client/models/validated_maintenance_config_with_status.py +116 -0
  471. instana_client/models/victor_ops_integration.py +94 -0
  472. instana_client/models/violations_in_period_application_time_threshold.py +92 -0
  473. instana_client/models/violations_in_period_mobile_app_time_threshold.py +92 -0
  474. instana_client/models/violations_in_period_website_time_threshold.py +92 -0
  475. instana_client/models/violations_in_sequence_application_time_threshold.py +89 -0
  476. instana_client/models/violations_in_sequence_infra_time_threshold.py +89 -0
  477. instana_client/models/violations_in_sequence_log_time_threshold.py +89 -0
  478. instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +89 -0
  479. instana_client/models/violations_in_sequence_synthetic_time_threshold.py +89 -0
  480. instana_client/models/violations_in_sequence_website_time_threshold.py +89 -0
  481. instana_client/models/watson_ai_ops_webhook_integration.py +94 -0
  482. instana_client/models/webex_teams_webhook_integration.py +92 -0
  483. instana_client/models/webhook_integration.py +94 -0
  484. instana_client/models/webpage_action_configuration.py +109 -0
  485. instana_client/models/webpage_script_configuration.py +109 -0
  486. instana_client/models/website.py +92 -0
  487. instana_client/models/website_alert_config.py +166 -0
  488. instana_client/models/website_alert_config_with_metadata.py +176 -0
  489. instana_client/models/website_alert_rule.py +132 -0
  490. instana_client/models/website_apdex_entity.py +107 -0
  491. instana_client/models/website_beacon_groups_item.py +95 -0
  492. instana_client/models/website_beacon_groups_result.py +111 -0
  493. instana_client/models/website_beacon_result.py +111 -0
  494. instana_client/models/website_beacon_tag_group.py +100 -0
  495. instana_client/models/website_beacons_item.py +94 -0
  496. instana_client/models/website_event_based_sli_entity.py +110 -0
  497. instana_client/models/website_event_result.py +108 -0
  498. instana_client/models/website_metric_result.py +88 -0
  499. instana_client/models/website_monitoring_beacon.py +301 -0
  500. instana_client/models/website_monitoring_metric_description.py +123 -0
  501. instana_client/models/website_monitoring_metrics_configuration.py +99 -0
  502. instana_client/models/website_slo_entity.py +104 -0
  503. instana_client/models/website_time_based_sli_entity.py +105 -0
  504. instana_client/models/website_time_threshold.py +115 -0
  505. instana_client/models/widget.py +103 -0
  506. instana_client/models/with_metadata.py +172 -0
  507. instana_client/models/with_resolved_name.py +102 -0
  508. instana_client/models/z_chat_ops_integration.py +97 -0
  509. instana_client/py.typed +0 -0
  510. instana_client/rest.py +258 -0
  511. instana_client-1.0.0.dist-info/METADATA +25 -0
  512. instana_client-1.0.0.dist-info/RECORD +515 -0
  513. instana_client-1.0.0.dist-info/WHEEL +5 -0
  514. instana_client-1.0.0.dist-info/licenses/LICENSE +202 -0
  515. instana_client-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2677 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Instana REST API documentation
5
+
6
+ Searching for answers and best pratices? Check our [IBM Instana Community](https://community.ibm.com/community/user/aiops/communities/community-home?CommunityKey=58f324a3-3104-41be-9510-5b7c413cc48f). ## Overview The Instana REST API provides programmatic access to the Instana platform. It can be used to retrieve data available through the Instana UI Dashboard -- metrics, events, traces, etc -- and also to automate configuration tasks such as user management. ### Navigating the API documentation The API endpoints are grouped by product area and functionality. This generally maps to how our UI Dashboard is organized, hopefully making it easier to locate which endpoints you'd use to fetch the data you see visualized in our UI. The [UI sections](https://www.ibm.com/docs/en/instana-observability/current?topic=working-user-interface#navigation-menu) include: - Websites & Mobile Apps - Applications - Infrastructure - Synthetic Monitoring - Events - Automation - Service Levels - Settings - etc ### Rate Limiting A rate limit is applied to API usage. Up to 5,000 calls per hour can be made. How many remaining calls can be made and when this call limit resets, can inspected via three headers that are part of the responses of the API server. - **X-RateLimit-Limit:** Shows the maximum number of calls that may be executed per hour. - **X-RateLimit-Remaining:** How many calls may still be executed within the current hour. - **X-RateLimit-Reset:** Time when the remaining calls will be reset to the limit. For compatibility reasons with other rate limited APIs, this date is not the date in milliseconds, but instead in seconds since 1970-01-01T00:00:00+00:00. ### Further Reading We provide additional documentation for our REST API in our [product documentation](https://www.ibm.com/docs/en/instana-observability/current?topic=apis-web-rest-api). Here you'll also find some common queries for retrieving data and configuring Instana. ## Getting Started with the REST API ### API base URL The base URL for an specific instance of Instana can be determined using the tenant and unit information. - `base`: This is the base URL of a tenant unit, e.g. `https://test-example.instana.io`. This is the same URL that is used to access the Instana user interface. - `apiToken`: Requests against the Instana API require valid API tokens. An initial API token can be generated via the Instana user interface. Any additional API tokens can be generated via the API itself. ### Curl Example Here is an Example to use the REST API with Curl. First lets get all the available metrics with possible aggregations with a GET call. ```bash curl --request GET \\ --url https://test-instana.instana.io/api/application-monitoring/catalog/metrics \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' ``` Next we can get every call grouped by the endpoint name that has an error count greater then zero. As a metric we could get the mean error rate for example. ```bash curl --request POST \\ --url https://test-instana.instana.io/api/application-monitoring/analyze/call-groups \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' \\ --header 'content-type: application/json' \\ --data '{ \"group\":{ \"groupbyTag\":\"endpoint.name\" }, \"tagFilters\":[ { \"name\":\"call.error.count\", \"value\":\"0\", \"operator\":\"GREATER_THAN\" } ], \"metrics\":[ { \"metric\":\"errors\", \"aggregation\":\"MEAN\" } ] }' ``` ### Generating REST API clients The API is specified using the [OpenAPI v3](https://github.com/OAI/OpenAPI-Specification) (previously known as Swagger) format. You can download the current specification at our [GitHub API documentation](https://instana.github.io/openapi/openapi.yaml). OpenAPI tries to solve the issue of ever-evolving APIs and clients lagging behind. Please make sure that you always use the latest version of the generator, as a number of improvements are regularly made. To generate a client library for your language, you can use the [OpenAPI client generators](https://github.com/OpenAPITools/openapi-generator). #### Go For example, to generate a client library for Go to interact with our backend, you can use the following script; mind replacing the values of the `UNIT_NAME` and `TENANT_NAME` environment variables using those for your tenant unit: ```bash #!/bin/bash ### This script assumes you have the `java` and `wget` commands on the path export UNIT_NAME='myunit' # for example: prod export TENANT_NAME='mytenant' # for example: awesomecompany //Download the generator to your current working directory: wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar -O openapi-generator-cli.jar --server-variables \"tenant=${TENANT_NAME},unit=${UNIT_NAME}\" //generate a client library that you can vendor into your repository java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g go \\ -o pkg/instana/openapi \\ --skip-validate-spec //(optional) format the Go code according to the Go code standard gofmt -s -w pkg/instana/openapi ``` The generated clients contain comprehensive READMEs, and you can start right away using the client from the example above: ```go import instana \"./pkg/instana/openapi\" // readTags will read all available application monitoring tags along with their type and category func readTags() { configuration := instana.NewConfiguration() configuration.Host = \"tenant-unit.instana.io\" configuration.BasePath = \"https://tenant-unit.instana.io\" client := instana.NewAPIClient(configuration) auth := context.WithValue(context.Background(), instana.ContextAPIKey, instana.APIKey{ Key: apiKey, Prefix: \"apiToken\", }) tags, _, err := client.ApplicationCatalogApi.GetApplicationTagCatalog(auth) if err != nil { fmt.Fatalf(\"Error calling the API, aborting.\") } for _, tag := range tags { fmt.Printf(\"%s (%s): %s\\n\", tag.Category, tag.Type, tag.Name) } } ``` #### Java Follow the instructions provided in the official documentation from [OpenAPI Tools](https://github.com/OpenAPITools) to download the [openapi-generator-cli.jar](https://github.com/OpenAPITools/openapi-generator?tab=readme-ov-file#13---download-jar). Depending on your environment, use one of the following java http client implementations which will create a valid client for our OpenAPI specification: ``` //Nativ Java HTTP Client java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8 --library native //Spring WebClient java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library webclient //Spring RestTemplate java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library resttemplate ```
7
+
8
+ The version of the OpenAPI document: 1.291.1002
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 Field, StrictStr, field_validator
21
+ from typing import List
22
+ from typing_extensions import Annotated
23
+ from instana_client.models.sli_configuration import SliConfiguration
24
+ from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated
25
+
26
+ from instana_client.api_client import ApiClient, RequestSerialized
27
+ from instana_client.api_response import ApiResponse
28
+ from instana_client.rest import RESTResponseType
29
+
30
+
31
+ class SLISettingsApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def create_sli_config(
46
+ self,
47
+ sli_configuration: SliConfiguration,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> SliConfigurationWithLastUpdated:
61
+ """(Deprecated) Create SLI Config
62
+
63
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
64
+
65
+ :param sli_configuration: (required)
66
+ :type sli_configuration: SliConfiguration
67
+ :param _request_timeout: timeout setting for this request. If one
68
+ number provided, it will be total request
69
+ timeout. It can also be a pair (tuple) of
70
+ (connection, read) timeouts.
71
+ :type _request_timeout: int, tuple(int, int), optional
72
+ :param _request_auth: set to override the auth_settings for an a single
73
+ request; this effectively ignores the
74
+ authentication in the spec for a single request.
75
+ :type _request_auth: dict, optional
76
+ :param _content_type: force content-type for the request.
77
+ :type _content_type: str, Optional
78
+ :param _headers: set to override the headers for a single
79
+ request; this effectively ignores the headers
80
+ in the spec for a single request.
81
+ :type _headers: dict, optional
82
+ :param _host_index: set to override the host_index for a single
83
+ request; this effectively ignores the host_index
84
+ in the spec for a single request.
85
+ :type _host_index: int, optional
86
+ :return: Returns the result object.
87
+ """ # noqa: E501
88
+ warnings.warn("POST /api/settings/sli is deprecated.", DeprecationWarning)
89
+
90
+ _param = self._create_sli_config_serialize(
91
+ sli_configuration=sli_configuration,
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index
96
+ )
97
+
98
+ _response_types_map: Dict[str, Optional[str]] = {
99
+ '200': "SliConfigurationWithLastUpdated",
100
+ }
101
+ response_data = self.api_client.call_api(
102
+ *_param,
103
+ _request_timeout=_request_timeout
104
+ )
105
+ response_data.read()
106
+ return self.api_client.response_deserialize(
107
+ response_data=response_data,
108
+ response_types_map=_response_types_map,
109
+ ).data
110
+
111
+
112
+ @validate_call
113
+ def create_sli_config_with_http_info(
114
+ self,
115
+ sli_configuration: SliConfiguration,
116
+ _request_timeout: Union[
117
+ None,
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Tuple[
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Annotated[StrictFloat, Field(gt=0)]
122
+ ]
123
+ ] = None,
124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
+ _content_type: Optional[StrictStr] = None,
126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
+ ) -> ApiResponse[SliConfigurationWithLastUpdated]:
129
+ """(Deprecated) Create SLI Config
130
+
131
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
132
+
133
+ :param sli_configuration: (required)
134
+ :type sli_configuration: SliConfiguration
135
+ :param _request_timeout: timeout setting for this request. If one
136
+ number provided, it will be total request
137
+ timeout. It can also be a pair (tuple) of
138
+ (connection, read) timeouts.
139
+ :type _request_timeout: int, tuple(int, int), optional
140
+ :param _request_auth: set to override the auth_settings for an a single
141
+ request; this effectively ignores the
142
+ authentication in the spec for a single request.
143
+ :type _request_auth: dict, optional
144
+ :param _content_type: force content-type for the request.
145
+ :type _content_type: str, Optional
146
+ :param _headers: set to override the headers for a single
147
+ request; this effectively ignores the headers
148
+ in the spec for a single request.
149
+ :type _headers: dict, optional
150
+ :param _host_index: set to override the host_index for a single
151
+ request; this effectively ignores the host_index
152
+ in the spec for a single request.
153
+ :type _host_index: int, optional
154
+ :return: Returns the result object.
155
+ """ # noqa: E501
156
+ warnings.warn("POST /api/settings/sli is deprecated.", DeprecationWarning)
157
+
158
+ _param = self._create_sli_config_serialize(
159
+ sli_configuration=sli_configuration,
160
+ _request_auth=_request_auth,
161
+ _content_type=_content_type,
162
+ _headers=_headers,
163
+ _host_index=_host_index
164
+ )
165
+
166
+ _response_types_map: Dict[str, Optional[str]] = {
167
+ '200': "SliConfigurationWithLastUpdated",
168
+ }
169
+ response_data = self.api_client.call_api(
170
+ *_param,
171
+ _request_timeout=_request_timeout
172
+ )
173
+ response_data.read()
174
+ return self.api_client.response_deserialize(
175
+ response_data=response_data,
176
+ response_types_map=_response_types_map,
177
+ )
178
+
179
+
180
+ @validate_call
181
+ def create_sli_config_without_preload_content(
182
+ self,
183
+ sli_configuration: SliConfiguration,
184
+ _request_timeout: Union[
185
+ None,
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Tuple[
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Annotated[StrictFloat, Field(gt=0)]
190
+ ]
191
+ ] = None,
192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
+ _content_type: Optional[StrictStr] = None,
194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
+ ) -> RESTResponseType:
197
+ """(Deprecated) Create SLI Config
198
+
199
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
200
+
201
+ :param sli_configuration: (required)
202
+ :type sli_configuration: SliConfiguration
203
+ :param _request_timeout: timeout setting for this request. If one
204
+ number provided, it will be total request
205
+ timeout. It can also be a pair (tuple) of
206
+ (connection, read) timeouts.
207
+ :type _request_timeout: int, tuple(int, int), optional
208
+ :param _request_auth: set to override the auth_settings for an a single
209
+ request; this effectively ignores the
210
+ authentication in the spec for a single request.
211
+ :type _request_auth: dict, optional
212
+ :param _content_type: force content-type for the request.
213
+ :type _content_type: str, Optional
214
+ :param _headers: set to override the headers for a single
215
+ request; this effectively ignores the headers
216
+ in the spec for a single request.
217
+ :type _headers: dict, optional
218
+ :param _host_index: set to override the host_index for a single
219
+ request; this effectively ignores the host_index
220
+ in the spec for a single request.
221
+ :type _host_index: int, optional
222
+ :return: Returns the result object.
223
+ """ # noqa: E501
224
+ warnings.warn("POST /api/settings/sli is deprecated.", DeprecationWarning)
225
+
226
+ _param = self._create_sli_config_serialize(
227
+ sli_configuration=sli_configuration,
228
+ _request_auth=_request_auth,
229
+ _content_type=_content_type,
230
+ _headers=_headers,
231
+ _host_index=_host_index
232
+ )
233
+
234
+ _response_types_map: Dict[str, Optional[str]] = {
235
+ '200': "SliConfigurationWithLastUpdated",
236
+ }
237
+ response_data = self.api_client.call_api(
238
+ *_param,
239
+ _request_timeout=_request_timeout
240
+ )
241
+ return response_data.response
242
+
243
+
244
+ def _create_sli_config_serialize(
245
+ self,
246
+ sli_configuration,
247
+ _request_auth,
248
+ _content_type,
249
+ _headers,
250
+ _host_index,
251
+ ) -> RequestSerialized:
252
+
253
+ _host = None
254
+
255
+ _collection_formats: Dict[str, str] = {
256
+ }
257
+
258
+ _path_params: Dict[str, str] = {}
259
+ _query_params: List[Tuple[str, str]] = []
260
+ _header_params: Dict[str, Optional[str]] = _headers or {}
261
+ _form_params: List[Tuple[str, str]] = []
262
+ _files: Dict[
263
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
264
+ ] = {}
265
+ _body_params: Optional[bytes] = None
266
+
267
+ # process the path parameters
268
+ # process the query parameters
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+ if sli_configuration is not None:
273
+ _body_params = sli_configuration
274
+
275
+
276
+ # set the HTTP header `Accept`
277
+ if 'Accept' not in _header_params:
278
+ _header_params['Accept'] = self.api_client.select_header_accept(
279
+ [
280
+ 'application/json'
281
+ ]
282
+ )
283
+
284
+ # set the HTTP header `Content-Type`
285
+ if _content_type:
286
+ _header_params['Content-Type'] = _content_type
287
+ else:
288
+ _default_content_type = (
289
+ self.api_client.select_header_content_type(
290
+ [
291
+ 'application/json'
292
+ ]
293
+ )
294
+ )
295
+ if _default_content_type is not None:
296
+ _header_params['Content-Type'] = _default_content_type
297
+
298
+ # authentication setting
299
+ _auth_settings: List[str] = [
300
+ 'ApiKeyAuth'
301
+ ]
302
+
303
+ return self.api_client.param_serialize(
304
+ method='POST',
305
+ resource_path='/api/settings/sli',
306
+ path_params=_path_params,
307
+ query_params=_query_params,
308
+ header_params=_header_params,
309
+ body=_body_params,
310
+ post_params=_form_params,
311
+ files=_files,
312
+ auth_settings=_auth_settings,
313
+ collection_formats=_collection_formats,
314
+ _host=_host,
315
+ _request_auth=_request_auth
316
+ )
317
+
318
+
319
+
320
+
321
+ @validate_call
322
+ def create_sli_config_v2(
323
+ self,
324
+ sli_configuration: SliConfiguration,
325
+ _request_timeout: Union[
326
+ None,
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Tuple[
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Annotated[StrictFloat, Field(gt=0)]
331
+ ]
332
+ ] = None,
333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
334
+ _content_type: Optional[StrictStr] = None,
335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
337
+ ) -> SliConfigurationWithLastUpdated:
338
+ """Create SLI Config
339
+
340
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
341
+
342
+ :param sli_configuration: (required)
343
+ :type sli_configuration: SliConfiguration
344
+ :param _request_timeout: timeout setting for this request. If one
345
+ number provided, it will be total request
346
+ timeout. It can also be a pair (tuple) of
347
+ (connection, read) timeouts.
348
+ :type _request_timeout: int, tuple(int, int), optional
349
+ :param _request_auth: set to override the auth_settings for an a single
350
+ request; this effectively ignores the
351
+ authentication in the spec for a single request.
352
+ :type _request_auth: dict, optional
353
+ :param _content_type: force content-type for the request.
354
+ :type _content_type: str, Optional
355
+ :param _headers: set to override the headers for a single
356
+ request; this effectively ignores the headers
357
+ in the spec for a single request.
358
+ :type _headers: dict, optional
359
+ :param _host_index: set to override the host_index for a single
360
+ request; this effectively ignores the host_index
361
+ in the spec for a single request.
362
+ :type _host_index: int, optional
363
+ :return: Returns the result object.
364
+ """ # noqa: E501
365
+
366
+ _param = self._create_sli_config_v2_serialize(
367
+ sli_configuration=sli_configuration,
368
+ _request_auth=_request_auth,
369
+ _content_type=_content_type,
370
+ _headers=_headers,
371
+ _host_index=_host_index
372
+ )
373
+
374
+ _response_types_map: Dict[str, Optional[str]] = {
375
+ '200': "SliConfigurationWithLastUpdated",
376
+ '400': "str",
377
+ }
378
+ response_data = self.api_client.call_api(
379
+ *_param,
380
+ _request_timeout=_request_timeout
381
+ )
382
+ response_data.read()
383
+ return self.api_client.response_deserialize(
384
+ response_data=response_data,
385
+ response_types_map=_response_types_map,
386
+ ).data
387
+
388
+
389
+ @validate_call
390
+ def create_sli_config_v2_with_http_info(
391
+ self,
392
+ sli_configuration: SliConfiguration,
393
+ _request_timeout: Union[
394
+ None,
395
+ Annotated[StrictFloat, Field(gt=0)],
396
+ Tuple[
397
+ Annotated[StrictFloat, Field(gt=0)],
398
+ Annotated[StrictFloat, Field(gt=0)]
399
+ ]
400
+ ] = None,
401
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
402
+ _content_type: Optional[StrictStr] = None,
403
+ _headers: Optional[Dict[StrictStr, Any]] = None,
404
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
405
+ ) -> ApiResponse[SliConfigurationWithLastUpdated]:
406
+ """Create SLI Config
407
+
408
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
409
+
410
+ :param sli_configuration: (required)
411
+ :type sli_configuration: SliConfiguration
412
+ :param _request_timeout: timeout setting for this request. If one
413
+ number provided, it will be total request
414
+ timeout. It can also be a pair (tuple) of
415
+ (connection, read) timeouts.
416
+ :type _request_timeout: int, tuple(int, int), optional
417
+ :param _request_auth: set to override the auth_settings for an a single
418
+ request; this effectively ignores the
419
+ authentication in the spec for a single request.
420
+ :type _request_auth: dict, optional
421
+ :param _content_type: force content-type for the request.
422
+ :type _content_type: str, Optional
423
+ :param _headers: set to override the headers for a single
424
+ request; this effectively ignores the headers
425
+ in the spec for a single request.
426
+ :type _headers: dict, optional
427
+ :param _host_index: set to override the host_index for a single
428
+ request; this effectively ignores the host_index
429
+ in the spec for a single request.
430
+ :type _host_index: int, optional
431
+ :return: Returns the result object.
432
+ """ # noqa: E501
433
+
434
+ _param = self._create_sli_config_v2_serialize(
435
+ sli_configuration=sli_configuration,
436
+ _request_auth=_request_auth,
437
+ _content_type=_content_type,
438
+ _headers=_headers,
439
+ _host_index=_host_index
440
+ )
441
+
442
+ _response_types_map: Dict[str, Optional[str]] = {
443
+ '200': "SliConfigurationWithLastUpdated",
444
+ '400': "str",
445
+ }
446
+ response_data = self.api_client.call_api(
447
+ *_param,
448
+ _request_timeout=_request_timeout
449
+ )
450
+ response_data.read()
451
+ return self.api_client.response_deserialize(
452
+ response_data=response_data,
453
+ response_types_map=_response_types_map,
454
+ )
455
+
456
+
457
+ @validate_call
458
+ def create_sli_config_v2_without_preload_content(
459
+ self,
460
+ sli_configuration: SliConfiguration,
461
+ _request_timeout: Union[
462
+ None,
463
+ Annotated[StrictFloat, Field(gt=0)],
464
+ Tuple[
465
+ Annotated[StrictFloat, Field(gt=0)],
466
+ Annotated[StrictFloat, Field(gt=0)]
467
+ ]
468
+ ] = None,
469
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
470
+ _content_type: Optional[StrictStr] = None,
471
+ _headers: Optional[Dict[StrictStr, Any]] = None,
472
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
473
+ ) -> RESTResponseType:
474
+ """Create SLI Config
475
+
476
+ This endpoint creates the Service Level Indicator Configuration ## Mandatory Parameters: - **id** A unique identifier for each SLI configuration - **sliName:** Name for the SLI configuration - **sliEntity:** Entity of the SLI configuration ### SLI Entity specific parameters Depending on the chosen `sliType` in the `sliEntity`, there are further required parameters: #### Application SLI entity This option can be used to create a Time-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective - **metricConfiguration.metricName:** The metric name on which to compute the SLI - **metricConfiguration.metricAggregation:** The aggregation of the metric - **metricConfiguration.threshold:** Threshold for the metric #### Availability SLI entity This opetion can be used to create an Event-Based SLI - **sliEntity.applicationId:** The Id of the Application Perspective - **sliEntity.boundaryScope:** Boundary scope of the Application Perspective ## Deprecated Parameters for Availability SLI entity: - **sliEntity.serviceId:** The ID if the Service in he context of an Application Perspective - **sliEntity.endpointId:** The ID of an Endpoint belonging to a Service - **sliEntity.goodEventFilters:** The list of TagFilters to match good events / calls - **sliEntity.badEventFilters:** The list of TagFilters to match bad events / calls All of these filters can be included using the list of TagFilterExpressions via **sliEntity.goodEventFilterExpression** and **sliEntity.badEventFilterExpression**. These parameters will be removed in the upcoming releases.
477
+
478
+ :param sli_configuration: (required)
479
+ :type sli_configuration: SliConfiguration
480
+ :param _request_timeout: timeout setting for this request. If one
481
+ number provided, it will be total request
482
+ timeout. It can also be a pair (tuple) of
483
+ (connection, read) timeouts.
484
+ :type _request_timeout: int, tuple(int, int), optional
485
+ :param _request_auth: set to override the auth_settings for an a single
486
+ request; this effectively ignores the
487
+ authentication in the spec for a single request.
488
+ :type _request_auth: dict, optional
489
+ :param _content_type: force content-type for the request.
490
+ :type _content_type: str, Optional
491
+ :param _headers: set to override the headers for a single
492
+ request; this effectively ignores the headers
493
+ in the spec for a single request.
494
+ :type _headers: dict, optional
495
+ :param _host_index: set to override the host_index for a single
496
+ request; this effectively ignores the host_index
497
+ in the spec for a single request.
498
+ :type _host_index: int, optional
499
+ :return: Returns the result object.
500
+ """ # noqa: E501
501
+
502
+ _param = self._create_sli_config_v2_serialize(
503
+ sli_configuration=sli_configuration,
504
+ _request_auth=_request_auth,
505
+ _content_type=_content_type,
506
+ _headers=_headers,
507
+ _host_index=_host_index
508
+ )
509
+
510
+ _response_types_map: Dict[str, Optional[str]] = {
511
+ '200': "SliConfigurationWithLastUpdated",
512
+ '400': "str",
513
+ }
514
+ response_data = self.api_client.call_api(
515
+ *_param,
516
+ _request_timeout=_request_timeout
517
+ )
518
+ return response_data.response
519
+
520
+
521
+ def _create_sli_config_v2_serialize(
522
+ self,
523
+ sli_configuration,
524
+ _request_auth,
525
+ _content_type,
526
+ _headers,
527
+ _host_index,
528
+ ) -> RequestSerialized:
529
+
530
+ _host = None
531
+
532
+ _collection_formats: Dict[str, str] = {
533
+ }
534
+
535
+ _path_params: Dict[str, str] = {}
536
+ _query_params: List[Tuple[str, str]] = []
537
+ _header_params: Dict[str, Optional[str]] = _headers or {}
538
+ _form_params: List[Tuple[str, str]] = []
539
+ _files: Dict[
540
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
541
+ ] = {}
542
+ _body_params: Optional[bytes] = None
543
+
544
+ # process the path parameters
545
+ # process the query parameters
546
+ # process the header parameters
547
+ # process the form parameters
548
+ # process the body parameter
549
+ if sli_configuration is not None:
550
+ _body_params = sli_configuration
551
+
552
+
553
+ # set the HTTP header `Accept`
554
+ if 'Accept' not in _header_params:
555
+ _header_params['Accept'] = self.api_client.select_header_accept(
556
+ [
557
+ 'application/json'
558
+ ]
559
+ )
560
+
561
+ # set the HTTP header `Content-Type`
562
+ if _content_type:
563
+ _header_params['Content-Type'] = _content_type
564
+ else:
565
+ _default_content_type = (
566
+ self.api_client.select_header_content_type(
567
+ [
568
+ 'application/json'
569
+ ]
570
+ )
571
+ )
572
+ if _default_content_type is not None:
573
+ _header_params['Content-Type'] = _default_content_type
574
+
575
+ # authentication setting
576
+ _auth_settings: List[str] = [
577
+ 'ApiKeyAuth'
578
+ ]
579
+
580
+ return self.api_client.param_serialize(
581
+ method='POST',
582
+ resource_path='/api/settings/v2/sli',
583
+ path_params=_path_params,
584
+ query_params=_query_params,
585
+ header_params=_header_params,
586
+ body=_body_params,
587
+ post_params=_form_params,
588
+ files=_files,
589
+ auth_settings=_auth_settings,
590
+ collection_formats=_collection_formats,
591
+ _host=_host,
592
+ _request_auth=_request_auth
593
+ )
594
+
595
+
596
+
597
+
598
+ @validate_call
599
+ def delete_sli_config(
600
+ self,
601
+ id: StrictStr,
602
+ _request_timeout: Union[
603
+ None,
604
+ Annotated[StrictFloat, Field(gt=0)],
605
+ Tuple[
606
+ Annotated[StrictFloat, Field(gt=0)],
607
+ Annotated[StrictFloat, Field(gt=0)]
608
+ ]
609
+ ] = None,
610
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
611
+ _content_type: Optional[StrictStr] = None,
612
+ _headers: Optional[Dict[StrictStr, Any]] = None,
613
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
614
+ ) -> None:
615
+ """(Deprecated) Delete SLI Config
616
+
617
+
618
+ :param id: (required)
619
+ :type id: str
620
+ :param _request_timeout: timeout setting for this request. If one
621
+ number provided, it will be total request
622
+ timeout. It can also be a pair (tuple) of
623
+ (connection, read) timeouts.
624
+ :type _request_timeout: int, tuple(int, int), optional
625
+ :param _request_auth: set to override the auth_settings for an a single
626
+ request; this effectively ignores the
627
+ authentication in the spec for a single request.
628
+ :type _request_auth: dict, optional
629
+ :param _content_type: force content-type for the request.
630
+ :type _content_type: str, Optional
631
+ :param _headers: set to override the headers for a single
632
+ request; this effectively ignores the headers
633
+ in the spec for a single request.
634
+ :type _headers: dict, optional
635
+ :param _host_index: set to override the host_index for a single
636
+ request; this effectively ignores the host_index
637
+ in the spec for a single request.
638
+ :type _host_index: int, optional
639
+ :return: Returns the result object.
640
+ """ # noqa: E501
641
+ warnings.warn("DELETE /api/settings/sli/{id} is deprecated.", DeprecationWarning)
642
+
643
+ _param = self._delete_sli_config_serialize(
644
+ id=id,
645
+ _request_auth=_request_auth,
646
+ _content_type=_content_type,
647
+ _headers=_headers,
648
+ _host_index=_host_index
649
+ )
650
+
651
+ _response_types_map: Dict[str, Optional[str]] = {
652
+ }
653
+ response_data = self.api_client.call_api(
654
+ *_param,
655
+ _request_timeout=_request_timeout
656
+ )
657
+ response_data.read()
658
+ return self.api_client.response_deserialize(
659
+ response_data=response_data,
660
+ response_types_map=_response_types_map,
661
+ ).data
662
+
663
+
664
+ @validate_call
665
+ def delete_sli_config_with_http_info(
666
+ self,
667
+ id: StrictStr,
668
+ _request_timeout: Union[
669
+ None,
670
+ Annotated[StrictFloat, Field(gt=0)],
671
+ Tuple[
672
+ Annotated[StrictFloat, Field(gt=0)],
673
+ Annotated[StrictFloat, Field(gt=0)]
674
+ ]
675
+ ] = None,
676
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
677
+ _content_type: Optional[StrictStr] = None,
678
+ _headers: Optional[Dict[StrictStr, Any]] = None,
679
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
680
+ ) -> ApiResponse[None]:
681
+ """(Deprecated) Delete SLI Config
682
+
683
+
684
+ :param id: (required)
685
+ :type id: str
686
+ :param _request_timeout: timeout setting for this request. If one
687
+ number provided, it will be total request
688
+ timeout. It can also be a pair (tuple) of
689
+ (connection, read) timeouts.
690
+ :type _request_timeout: int, tuple(int, int), optional
691
+ :param _request_auth: set to override the auth_settings for an a single
692
+ request; this effectively ignores the
693
+ authentication in the spec for a single request.
694
+ :type _request_auth: dict, optional
695
+ :param _content_type: force content-type for the request.
696
+ :type _content_type: str, Optional
697
+ :param _headers: set to override the headers for a single
698
+ request; this effectively ignores the headers
699
+ in the spec for a single request.
700
+ :type _headers: dict, optional
701
+ :param _host_index: set to override the host_index for a single
702
+ request; this effectively ignores the host_index
703
+ in the spec for a single request.
704
+ :type _host_index: int, optional
705
+ :return: Returns the result object.
706
+ """ # noqa: E501
707
+ warnings.warn("DELETE /api/settings/sli/{id} is deprecated.", DeprecationWarning)
708
+
709
+ _param = self._delete_sli_config_serialize(
710
+ id=id,
711
+ _request_auth=_request_auth,
712
+ _content_type=_content_type,
713
+ _headers=_headers,
714
+ _host_index=_host_index
715
+ )
716
+
717
+ _response_types_map: Dict[str, Optional[str]] = {
718
+ }
719
+ response_data = self.api_client.call_api(
720
+ *_param,
721
+ _request_timeout=_request_timeout
722
+ )
723
+ response_data.read()
724
+ return self.api_client.response_deserialize(
725
+ response_data=response_data,
726
+ response_types_map=_response_types_map,
727
+ )
728
+
729
+
730
+ @validate_call
731
+ def delete_sli_config_without_preload_content(
732
+ self,
733
+ id: StrictStr,
734
+ _request_timeout: Union[
735
+ None,
736
+ Annotated[StrictFloat, Field(gt=0)],
737
+ Tuple[
738
+ Annotated[StrictFloat, Field(gt=0)],
739
+ Annotated[StrictFloat, Field(gt=0)]
740
+ ]
741
+ ] = None,
742
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
743
+ _content_type: Optional[StrictStr] = None,
744
+ _headers: Optional[Dict[StrictStr, Any]] = None,
745
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
746
+ ) -> RESTResponseType:
747
+ """(Deprecated) Delete SLI Config
748
+
749
+
750
+ :param id: (required)
751
+ :type id: str
752
+ :param _request_timeout: timeout setting for this request. If one
753
+ number provided, it will be total request
754
+ timeout. It can also be a pair (tuple) of
755
+ (connection, read) timeouts.
756
+ :type _request_timeout: int, tuple(int, int), optional
757
+ :param _request_auth: set to override the auth_settings for an a single
758
+ request; this effectively ignores the
759
+ authentication in the spec for a single request.
760
+ :type _request_auth: dict, optional
761
+ :param _content_type: force content-type for the request.
762
+ :type _content_type: str, Optional
763
+ :param _headers: set to override the headers for a single
764
+ request; this effectively ignores the headers
765
+ in the spec for a single request.
766
+ :type _headers: dict, optional
767
+ :param _host_index: set to override the host_index for a single
768
+ request; this effectively ignores the host_index
769
+ in the spec for a single request.
770
+ :type _host_index: int, optional
771
+ :return: Returns the result object.
772
+ """ # noqa: E501
773
+ warnings.warn("DELETE /api/settings/sli/{id} is deprecated.", DeprecationWarning)
774
+
775
+ _param = self._delete_sli_config_serialize(
776
+ id=id,
777
+ _request_auth=_request_auth,
778
+ _content_type=_content_type,
779
+ _headers=_headers,
780
+ _host_index=_host_index
781
+ )
782
+
783
+ _response_types_map: Dict[str, Optional[str]] = {
784
+ }
785
+ response_data = self.api_client.call_api(
786
+ *_param,
787
+ _request_timeout=_request_timeout
788
+ )
789
+ return response_data.response
790
+
791
+
792
+ def _delete_sli_config_serialize(
793
+ self,
794
+ id,
795
+ _request_auth,
796
+ _content_type,
797
+ _headers,
798
+ _host_index,
799
+ ) -> RequestSerialized:
800
+
801
+ _host = None
802
+
803
+ _collection_formats: Dict[str, str] = {
804
+ }
805
+
806
+ _path_params: Dict[str, str] = {}
807
+ _query_params: List[Tuple[str, str]] = []
808
+ _header_params: Dict[str, Optional[str]] = _headers or {}
809
+ _form_params: List[Tuple[str, str]] = []
810
+ _files: Dict[
811
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
812
+ ] = {}
813
+ _body_params: Optional[bytes] = None
814
+
815
+ # process the path parameters
816
+ if id is not None:
817
+ _path_params['id'] = id
818
+ # process the query parameters
819
+ # process the header parameters
820
+ # process the form parameters
821
+ # process the body parameter
822
+
823
+
824
+ # set the HTTP header `Accept`
825
+ if 'Accept' not in _header_params:
826
+ _header_params['Accept'] = self.api_client.select_header_accept(
827
+ [
828
+ 'application/json'
829
+ ]
830
+ )
831
+
832
+
833
+ # authentication setting
834
+ _auth_settings: List[str] = [
835
+ 'ApiKeyAuth'
836
+ ]
837
+
838
+ return self.api_client.param_serialize(
839
+ method='DELETE',
840
+ resource_path='/api/settings/sli/{id}',
841
+ path_params=_path_params,
842
+ query_params=_query_params,
843
+ header_params=_header_params,
844
+ body=_body_params,
845
+ post_params=_form_params,
846
+ files=_files,
847
+ auth_settings=_auth_settings,
848
+ collection_formats=_collection_formats,
849
+ _host=_host,
850
+ _request_auth=_request_auth
851
+ )
852
+
853
+
854
+
855
+
856
+ @validate_call
857
+ def delete_sli_config_v2(
858
+ self,
859
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
860
+ _request_timeout: Union[
861
+ None,
862
+ Annotated[StrictFloat, Field(gt=0)],
863
+ Tuple[
864
+ Annotated[StrictFloat, Field(gt=0)],
865
+ Annotated[StrictFloat, Field(gt=0)]
866
+ ]
867
+ ] = None,
868
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
869
+ _content_type: Optional[StrictStr] = None,
870
+ _headers: Optional[Dict[StrictStr, Any]] = None,
871
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
872
+ ) -> None:
873
+ """Delete SLI Config
874
+
875
+
876
+ :param id: ID of the Service Level Indicator (SLI) (required)
877
+ :type id: str
878
+ :param _request_timeout: timeout setting for this request. If one
879
+ number provided, it will be total request
880
+ timeout. It can also be a pair (tuple) of
881
+ (connection, read) timeouts.
882
+ :type _request_timeout: int, tuple(int, int), optional
883
+ :param _request_auth: set to override the auth_settings for an a single
884
+ request; this effectively ignores the
885
+ authentication in the spec for a single request.
886
+ :type _request_auth: dict, optional
887
+ :param _content_type: force content-type for the request.
888
+ :type _content_type: str, Optional
889
+ :param _headers: set to override the headers for a single
890
+ request; this effectively ignores the headers
891
+ in the spec for a single request.
892
+ :type _headers: dict, optional
893
+ :param _host_index: set to override the host_index for a single
894
+ request; this effectively ignores the host_index
895
+ in the spec for a single request.
896
+ :type _host_index: int, optional
897
+ :return: Returns the result object.
898
+ """ # noqa: E501
899
+
900
+ _param = self._delete_sli_config_v2_serialize(
901
+ id=id,
902
+ _request_auth=_request_auth,
903
+ _content_type=_content_type,
904
+ _headers=_headers,
905
+ _host_index=_host_index
906
+ )
907
+
908
+ _response_types_map: Dict[str, Optional[str]] = {
909
+ '204': None,
910
+ }
911
+ response_data = self.api_client.call_api(
912
+ *_param,
913
+ _request_timeout=_request_timeout
914
+ )
915
+ response_data.read()
916
+ return self.api_client.response_deserialize(
917
+ response_data=response_data,
918
+ response_types_map=_response_types_map,
919
+ ).data
920
+
921
+
922
+ @validate_call
923
+ def delete_sli_config_v2_with_http_info(
924
+ self,
925
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
926
+ _request_timeout: Union[
927
+ None,
928
+ Annotated[StrictFloat, Field(gt=0)],
929
+ Tuple[
930
+ Annotated[StrictFloat, Field(gt=0)],
931
+ Annotated[StrictFloat, Field(gt=0)]
932
+ ]
933
+ ] = None,
934
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
935
+ _content_type: Optional[StrictStr] = None,
936
+ _headers: Optional[Dict[StrictStr, Any]] = None,
937
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
938
+ ) -> ApiResponse[None]:
939
+ """Delete SLI Config
940
+
941
+
942
+ :param id: ID of the Service Level Indicator (SLI) (required)
943
+ :type id: str
944
+ :param _request_timeout: timeout setting for this request. If one
945
+ number provided, it will be total request
946
+ timeout. It can also be a pair (tuple) of
947
+ (connection, read) timeouts.
948
+ :type _request_timeout: int, tuple(int, int), optional
949
+ :param _request_auth: set to override the auth_settings for an a single
950
+ request; this effectively ignores the
951
+ authentication in the spec for a single request.
952
+ :type _request_auth: dict, optional
953
+ :param _content_type: force content-type for the request.
954
+ :type _content_type: str, Optional
955
+ :param _headers: set to override the headers for a single
956
+ request; this effectively ignores the headers
957
+ in the spec for a single request.
958
+ :type _headers: dict, optional
959
+ :param _host_index: set to override the host_index for a single
960
+ request; this effectively ignores the host_index
961
+ in the spec for a single request.
962
+ :type _host_index: int, optional
963
+ :return: Returns the result object.
964
+ """ # noqa: E501
965
+
966
+ _param = self._delete_sli_config_v2_serialize(
967
+ id=id,
968
+ _request_auth=_request_auth,
969
+ _content_type=_content_type,
970
+ _headers=_headers,
971
+ _host_index=_host_index
972
+ )
973
+
974
+ _response_types_map: Dict[str, Optional[str]] = {
975
+ '204': None,
976
+ }
977
+ response_data = self.api_client.call_api(
978
+ *_param,
979
+ _request_timeout=_request_timeout
980
+ )
981
+ response_data.read()
982
+ return self.api_client.response_deserialize(
983
+ response_data=response_data,
984
+ response_types_map=_response_types_map,
985
+ )
986
+
987
+
988
+ @validate_call
989
+ def delete_sli_config_v2_without_preload_content(
990
+ self,
991
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
992
+ _request_timeout: Union[
993
+ None,
994
+ Annotated[StrictFloat, Field(gt=0)],
995
+ Tuple[
996
+ Annotated[StrictFloat, Field(gt=0)],
997
+ Annotated[StrictFloat, Field(gt=0)]
998
+ ]
999
+ ] = None,
1000
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1001
+ _content_type: Optional[StrictStr] = None,
1002
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1003
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1004
+ ) -> RESTResponseType:
1005
+ """Delete SLI Config
1006
+
1007
+
1008
+ :param id: ID of the Service Level Indicator (SLI) (required)
1009
+ :type id: str
1010
+ :param _request_timeout: timeout setting for this request. If one
1011
+ number provided, it will be total request
1012
+ timeout. It can also be a pair (tuple) of
1013
+ (connection, read) timeouts.
1014
+ :type _request_timeout: int, tuple(int, int), optional
1015
+ :param _request_auth: set to override the auth_settings for an a single
1016
+ request; this effectively ignores the
1017
+ authentication in the spec for a single request.
1018
+ :type _request_auth: dict, optional
1019
+ :param _content_type: force content-type for the request.
1020
+ :type _content_type: str, Optional
1021
+ :param _headers: set to override the headers for a single
1022
+ request; this effectively ignores the headers
1023
+ in the spec for a single request.
1024
+ :type _headers: dict, optional
1025
+ :param _host_index: set to override the host_index for a single
1026
+ request; this effectively ignores the host_index
1027
+ in the spec for a single request.
1028
+ :type _host_index: int, optional
1029
+ :return: Returns the result object.
1030
+ """ # noqa: E501
1031
+
1032
+ _param = self._delete_sli_config_v2_serialize(
1033
+ id=id,
1034
+ _request_auth=_request_auth,
1035
+ _content_type=_content_type,
1036
+ _headers=_headers,
1037
+ _host_index=_host_index
1038
+ )
1039
+
1040
+ _response_types_map: Dict[str, Optional[str]] = {
1041
+ '204': None,
1042
+ }
1043
+ response_data = self.api_client.call_api(
1044
+ *_param,
1045
+ _request_timeout=_request_timeout
1046
+ )
1047
+ return response_data.response
1048
+
1049
+
1050
+ def _delete_sli_config_v2_serialize(
1051
+ self,
1052
+ id,
1053
+ _request_auth,
1054
+ _content_type,
1055
+ _headers,
1056
+ _host_index,
1057
+ ) -> RequestSerialized:
1058
+
1059
+ _host = None
1060
+
1061
+ _collection_formats: Dict[str, str] = {
1062
+ }
1063
+
1064
+ _path_params: Dict[str, str] = {}
1065
+ _query_params: List[Tuple[str, str]] = []
1066
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1067
+ _form_params: List[Tuple[str, str]] = []
1068
+ _files: Dict[
1069
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1070
+ ] = {}
1071
+ _body_params: Optional[bytes] = None
1072
+
1073
+ # process the path parameters
1074
+ if id is not None:
1075
+ _path_params['id'] = id
1076
+ # process the query parameters
1077
+ # process the header parameters
1078
+ # process the form parameters
1079
+ # process the body parameter
1080
+
1081
+
1082
+
1083
+
1084
+ # authentication setting
1085
+ _auth_settings: List[str] = [
1086
+ 'ApiKeyAuth'
1087
+ ]
1088
+
1089
+ return self.api_client.param_serialize(
1090
+ method='DELETE',
1091
+ resource_path='/api/settings/v2/sli/{id}',
1092
+ path_params=_path_params,
1093
+ query_params=_query_params,
1094
+ header_params=_header_params,
1095
+ body=_body_params,
1096
+ post_params=_form_params,
1097
+ files=_files,
1098
+ auth_settings=_auth_settings,
1099
+ collection_formats=_collection_formats,
1100
+ _host=_host,
1101
+ _request_auth=_request_auth
1102
+ )
1103
+
1104
+
1105
+
1106
+
1107
+ @validate_call
1108
+ def get_all_sli_configs(
1109
+ self,
1110
+ _request_timeout: Union[
1111
+ None,
1112
+ Annotated[StrictFloat, Field(gt=0)],
1113
+ Tuple[
1114
+ Annotated[StrictFloat, Field(gt=0)],
1115
+ Annotated[StrictFloat, Field(gt=0)]
1116
+ ]
1117
+ ] = None,
1118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1119
+ _content_type: Optional[StrictStr] = None,
1120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1122
+ ) -> List[SliConfigurationWithLastUpdated]:
1123
+ """(Deprecated) Get All SLI Configs
1124
+
1125
+
1126
+ :param _request_timeout: timeout setting for this request. If one
1127
+ number provided, it will be total request
1128
+ timeout. It can also be a pair (tuple) of
1129
+ (connection, read) timeouts.
1130
+ :type _request_timeout: int, tuple(int, int), optional
1131
+ :param _request_auth: set to override the auth_settings for an a single
1132
+ request; this effectively ignores the
1133
+ authentication in the spec for a single request.
1134
+ :type _request_auth: dict, optional
1135
+ :param _content_type: force content-type for the request.
1136
+ :type _content_type: str, Optional
1137
+ :param _headers: set to override the headers for a single
1138
+ request; this effectively ignores the headers
1139
+ in the spec for a single request.
1140
+ :type _headers: dict, optional
1141
+ :param _host_index: set to override the host_index for a single
1142
+ request; this effectively ignores the host_index
1143
+ in the spec for a single request.
1144
+ :type _host_index: int, optional
1145
+ :return: Returns the result object.
1146
+ """ # noqa: E501
1147
+ warnings.warn("GET /api/settings/sli is deprecated.", DeprecationWarning)
1148
+
1149
+ _param = self._get_all_sli_configs_serialize(
1150
+ _request_auth=_request_auth,
1151
+ _content_type=_content_type,
1152
+ _headers=_headers,
1153
+ _host_index=_host_index
1154
+ )
1155
+
1156
+ _response_types_map: Dict[str, Optional[str]] = {
1157
+ '200': "List[SliConfigurationWithLastUpdated]",
1158
+ }
1159
+ response_data = self.api_client.call_api(
1160
+ *_param,
1161
+ _request_timeout=_request_timeout
1162
+ )
1163
+ response_data.read()
1164
+ return self.api_client.response_deserialize(
1165
+ response_data=response_data,
1166
+ response_types_map=_response_types_map,
1167
+ ).data
1168
+
1169
+
1170
+ @validate_call
1171
+ def get_all_sli_configs_with_http_info(
1172
+ self,
1173
+ _request_timeout: Union[
1174
+ None,
1175
+ Annotated[StrictFloat, Field(gt=0)],
1176
+ Tuple[
1177
+ Annotated[StrictFloat, Field(gt=0)],
1178
+ Annotated[StrictFloat, Field(gt=0)]
1179
+ ]
1180
+ ] = None,
1181
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1182
+ _content_type: Optional[StrictStr] = None,
1183
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1184
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1185
+ ) -> ApiResponse[List[SliConfigurationWithLastUpdated]]:
1186
+ """(Deprecated) Get All SLI Configs
1187
+
1188
+
1189
+ :param _request_timeout: timeout setting for this request. If one
1190
+ number provided, it will be total request
1191
+ timeout. It can also be a pair (tuple) of
1192
+ (connection, read) timeouts.
1193
+ :type _request_timeout: int, tuple(int, int), optional
1194
+ :param _request_auth: set to override the auth_settings for an a single
1195
+ request; this effectively ignores the
1196
+ authentication in the spec for a single request.
1197
+ :type _request_auth: dict, optional
1198
+ :param _content_type: force content-type for the request.
1199
+ :type _content_type: str, Optional
1200
+ :param _headers: set to override the headers for a single
1201
+ request; this effectively ignores the headers
1202
+ in the spec for a single request.
1203
+ :type _headers: dict, optional
1204
+ :param _host_index: set to override the host_index for a single
1205
+ request; this effectively ignores the host_index
1206
+ in the spec for a single request.
1207
+ :type _host_index: int, optional
1208
+ :return: Returns the result object.
1209
+ """ # noqa: E501
1210
+ warnings.warn("GET /api/settings/sli is deprecated.", DeprecationWarning)
1211
+
1212
+ _param = self._get_all_sli_configs_serialize(
1213
+ _request_auth=_request_auth,
1214
+ _content_type=_content_type,
1215
+ _headers=_headers,
1216
+ _host_index=_host_index
1217
+ )
1218
+
1219
+ _response_types_map: Dict[str, Optional[str]] = {
1220
+ '200': "List[SliConfigurationWithLastUpdated]",
1221
+ }
1222
+ response_data = self.api_client.call_api(
1223
+ *_param,
1224
+ _request_timeout=_request_timeout
1225
+ )
1226
+ response_data.read()
1227
+ return self.api_client.response_deserialize(
1228
+ response_data=response_data,
1229
+ response_types_map=_response_types_map,
1230
+ )
1231
+
1232
+
1233
+ @validate_call
1234
+ def get_all_sli_configs_without_preload_content(
1235
+ self,
1236
+ _request_timeout: Union[
1237
+ None,
1238
+ Annotated[StrictFloat, Field(gt=0)],
1239
+ Tuple[
1240
+ Annotated[StrictFloat, Field(gt=0)],
1241
+ Annotated[StrictFloat, Field(gt=0)]
1242
+ ]
1243
+ ] = None,
1244
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1245
+ _content_type: Optional[StrictStr] = None,
1246
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1247
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1248
+ ) -> RESTResponseType:
1249
+ """(Deprecated) Get All SLI Configs
1250
+
1251
+
1252
+ :param _request_timeout: timeout setting for this request. If one
1253
+ number provided, it will be total request
1254
+ timeout. It can also be a pair (tuple) of
1255
+ (connection, read) timeouts.
1256
+ :type _request_timeout: int, tuple(int, int), optional
1257
+ :param _request_auth: set to override the auth_settings for an a single
1258
+ request; this effectively ignores the
1259
+ authentication in the spec for a single request.
1260
+ :type _request_auth: dict, optional
1261
+ :param _content_type: force content-type for the request.
1262
+ :type _content_type: str, Optional
1263
+ :param _headers: set to override the headers for a single
1264
+ request; this effectively ignores the headers
1265
+ in the spec for a single request.
1266
+ :type _headers: dict, optional
1267
+ :param _host_index: set to override the host_index for a single
1268
+ request; this effectively ignores the host_index
1269
+ in the spec for a single request.
1270
+ :type _host_index: int, optional
1271
+ :return: Returns the result object.
1272
+ """ # noqa: E501
1273
+ warnings.warn("GET /api/settings/sli is deprecated.", DeprecationWarning)
1274
+
1275
+ _param = self._get_all_sli_configs_serialize(
1276
+ _request_auth=_request_auth,
1277
+ _content_type=_content_type,
1278
+ _headers=_headers,
1279
+ _host_index=_host_index
1280
+ )
1281
+
1282
+ _response_types_map: Dict[str, Optional[str]] = {
1283
+ '200': "List[SliConfigurationWithLastUpdated]",
1284
+ }
1285
+ response_data = self.api_client.call_api(
1286
+ *_param,
1287
+ _request_timeout=_request_timeout
1288
+ )
1289
+ return response_data.response
1290
+
1291
+
1292
+ def _get_all_sli_configs_serialize(
1293
+ self,
1294
+ _request_auth,
1295
+ _content_type,
1296
+ _headers,
1297
+ _host_index,
1298
+ ) -> RequestSerialized:
1299
+
1300
+ _host = None
1301
+
1302
+ _collection_formats: Dict[str, str] = {
1303
+ }
1304
+
1305
+ _path_params: Dict[str, str] = {}
1306
+ _query_params: List[Tuple[str, str]] = []
1307
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1308
+ _form_params: List[Tuple[str, str]] = []
1309
+ _files: Dict[
1310
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1311
+ ] = {}
1312
+ _body_params: Optional[bytes] = None
1313
+
1314
+ # process the path parameters
1315
+ # process the query parameters
1316
+ # process the header parameters
1317
+ # process the form parameters
1318
+ # process the body parameter
1319
+
1320
+
1321
+ # set the HTTP header `Accept`
1322
+ if 'Accept' not in _header_params:
1323
+ _header_params['Accept'] = self.api_client.select_header_accept(
1324
+ [
1325
+ 'application/json'
1326
+ ]
1327
+ )
1328
+
1329
+
1330
+ # authentication setting
1331
+ _auth_settings: List[str] = [
1332
+ 'ApiKeyAuth'
1333
+ ]
1334
+
1335
+ return self.api_client.param_serialize(
1336
+ method='GET',
1337
+ resource_path='/api/settings/sli',
1338
+ path_params=_path_params,
1339
+ query_params=_query_params,
1340
+ header_params=_header_params,
1341
+ body=_body_params,
1342
+ post_params=_form_params,
1343
+ files=_files,
1344
+ auth_settings=_auth_settings,
1345
+ collection_formats=_collection_formats,
1346
+ _host=_host,
1347
+ _request_auth=_request_auth
1348
+ )
1349
+
1350
+
1351
+
1352
+
1353
+ @validate_call
1354
+ def get_all_sli_configs_v2(
1355
+ self,
1356
+ _request_timeout: Union[
1357
+ None,
1358
+ Annotated[StrictFloat, Field(gt=0)],
1359
+ Tuple[
1360
+ Annotated[StrictFloat, Field(gt=0)],
1361
+ Annotated[StrictFloat, Field(gt=0)]
1362
+ ]
1363
+ ] = None,
1364
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1365
+ _content_type: Optional[StrictStr] = None,
1366
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1367
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1368
+ ) -> List[SliConfigurationWithLastUpdated]:
1369
+ """Get All SLI Configs
1370
+
1371
+
1372
+ :param _request_timeout: timeout setting for this request. If one
1373
+ number provided, it will be total request
1374
+ timeout. It can also be a pair (tuple) of
1375
+ (connection, read) timeouts.
1376
+ :type _request_timeout: int, tuple(int, int), optional
1377
+ :param _request_auth: set to override the auth_settings for an a single
1378
+ request; this effectively ignores the
1379
+ authentication in the spec for a single request.
1380
+ :type _request_auth: dict, optional
1381
+ :param _content_type: force content-type for the request.
1382
+ :type _content_type: str, Optional
1383
+ :param _headers: set to override the headers for a single
1384
+ request; this effectively ignores the headers
1385
+ in the spec for a single request.
1386
+ :type _headers: dict, optional
1387
+ :param _host_index: set to override the host_index for a single
1388
+ request; this effectively ignores the host_index
1389
+ in the spec for a single request.
1390
+ :type _host_index: int, optional
1391
+ :return: Returns the result object.
1392
+ """ # noqa: E501
1393
+
1394
+ _param = self._get_all_sli_configs_v2_serialize(
1395
+ _request_auth=_request_auth,
1396
+ _content_type=_content_type,
1397
+ _headers=_headers,
1398
+ _host_index=_host_index
1399
+ )
1400
+
1401
+ _response_types_map: Dict[str, Optional[str]] = {
1402
+ '200': "List[SliConfigurationWithLastUpdated]",
1403
+ }
1404
+ response_data = self.api_client.call_api(
1405
+ *_param,
1406
+ _request_timeout=_request_timeout
1407
+ )
1408
+ response_data.read()
1409
+ return self.api_client.response_deserialize(
1410
+ response_data=response_data,
1411
+ response_types_map=_response_types_map,
1412
+ ).data
1413
+
1414
+
1415
+ @validate_call
1416
+ def get_all_sli_configs_v2_with_http_info(
1417
+ self,
1418
+ _request_timeout: Union[
1419
+ None,
1420
+ Annotated[StrictFloat, Field(gt=0)],
1421
+ Tuple[
1422
+ Annotated[StrictFloat, Field(gt=0)],
1423
+ Annotated[StrictFloat, Field(gt=0)]
1424
+ ]
1425
+ ] = None,
1426
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1427
+ _content_type: Optional[StrictStr] = None,
1428
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1429
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1430
+ ) -> ApiResponse[List[SliConfigurationWithLastUpdated]]:
1431
+ """Get All SLI Configs
1432
+
1433
+
1434
+ :param _request_timeout: timeout setting for this request. If one
1435
+ number provided, it will be total request
1436
+ timeout. It can also be a pair (tuple) of
1437
+ (connection, read) timeouts.
1438
+ :type _request_timeout: int, tuple(int, int), optional
1439
+ :param _request_auth: set to override the auth_settings for an a single
1440
+ request; this effectively ignores the
1441
+ authentication in the spec for a single request.
1442
+ :type _request_auth: dict, optional
1443
+ :param _content_type: force content-type for the request.
1444
+ :type _content_type: str, Optional
1445
+ :param _headers: set to override the headers for a single
1446
+ request; this effectively ignores the headers
1447
+ in the spec for a single request.
1448
+ :type _headers: dict, optional
1449
+ :param _host_index: set to override the host_index for a single
1450
+ request; this effectively ignores the host_index
1451
+ in the spec for a single request.
1452
+ :type _host_index: int, optional
1453
+ :return: Returns the result object.
1454
+ """ # noqa: E501
1455
+
1456
+ _param = self._get_all_sli_configs_v2_serialize(
1457
+ _request_auth=_request_auth,
1458
+ _content_type=_content_type,
1459
+ _headers=_headers,
1460
+ _host_index=_host_index
1461
+ )
1462
+
1463
+ _response_types_map: Dict[str, Optional[str]] = {
1464
+ '200': "List[SliConfigurationWithLastUpdated]",
1465
+ }
1466
+ response_data = self.api_client.call_api(
1467
+ *_param,
1468
+ _request_timeout=_request_timeout
1469
+ )
1470
+ response_data.read()
1471
+ return self.api_client.response_deserialize(
1472
+ response_data=response_data,
1473
+ response_types_map=_response_types_map,
1474
+ )
1475
+
1476
+
1477
+ @validate_call
1478
+ def get_all_sli_configs_v2_without_preload_content(
1479
+ self,
1480
+ _request_timeout: Union[
1481
+ None,
1482
+ Annotated[StrictFloat, Field(gt=0)],
1483
+ Tuple[
1484
+ Annotated[StrictFloat, Field(gt=0)],
1485
+ Annotated[StrictFloat, Field(gt=0)]
1486
+ ]
1487
+ ] = None,
1488
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1489
+ _content_type: Optional[StrictStr] = None,
1490
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1491
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1492
+ ) -> RESTResponseType:
1493
+ """Get All SLI Configs
1494
+
1495
+
1496
+ :param _request_timeout: timeout setting for this request. If one
1497
+ number provided, it will be total request
1498
+ timeout. It can also be a pair (tuple) of
1499
+ (connection, read) timeouts.
1500
+ :type _request_timeout: int, tuple(int, int), optional
1501
+ :param _request_auth: set to override the auth_settings for an a single
1502
+ request; this effectively ignores the
1503
+ authentication in the spec for a single request.
1504
+ :type _request_auth: dict, optional
1505
+ :param _content_type: force content-type for the request.
1506
+ :type _content_type: str, Optional
1507
+ :param _headers: set to override the headers for a single
1508
+ request; this effectively ignores the headers
1509
+ in the spec for a single request.
1510
+ :type _headers: dict, optional
1511
+ :param _host_index: set to override the host_index for a single
1512
+ request; this effectively ignores the host_index
1513
+ in the spec for a single request.
1514
+ :type _host_index: int, optional
1515
+ :return: Returns the result object.
1516
+ """ # noqa: E501
1517
+
1518
+ _param = self._get_all_sli_configs_v2_serialize(
1519
+ _request_auth=_request_auth,
1520
+ _content_type=_content_type,
1521
+ _headers=_headers,
1522
+ _host_index=_host_index
1523
+ )
1524
+
1525
+ _response_types_map: Dict[str, Optional[str]] = {
1526
+ '200': "List[SliConfigurationWithLastUpdated]",
1527
+ }
1528
+ response_data = self.api_client.call_api(
1529
+ *_param,
1530
+ _request_timeout=_request_timeout
1531
+ )
1532
+ return response_data.response
1533
+
1534
+
1535
+ def _get_all_sli_configs_v2_serialize(
1536
+ self,
1537
+ _request_auth,
1538
+ _content_type,
1539
+ _headers,
1540
+ _host_index,
1541
+ ) -> RequestSerialized:
1542
+
1543
+ _host = None
1544
+
1545
+ _collection_formats: Dict[str, str] = {
1546
+ }
1547
+
1548
+ _path_params: Dict[str, str] = {}
1549
+ _query_params: List[Tuple[str, str]] = []
1550
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1551
+ _form_params: List[Tuple[str, str]] = []
1552
+ _files: Dict[
1553
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1554
+ ] = {}
1555
+ _body_params: Optional[bytes] = None
1556
+
1557
+ # process the path parameters
1558
+ # process the query parameters
1559
+ # process the header parameters
1560
+ # process the form parameters
1561
+ # process the body parameter
1562
+
1563
+
1564
+ # set the HTTP header `Accept`
1565
+ if 'Accept' not in _header_params:
1566
+ _header_params['Accept'] = self.api_client.select_header_accept(
1567
+ [
1568
+ 'application/json'
1569
+ ]
1570
+ )
1571
+
1572
+
1573
+ # authentication setting
1574
+ _auth_settings: List[str] = [
1575
+ 'ApiKeyAuth'
1576
+ ]
1577
+
1578
+ return self.api_client.param_serialize(
1579
+ method='GET',
1580
+ resource_path='/api/settings/v2/sli',
1581
+ path_params=_path_params,
1582
+ query_params=_query_params,
1583
+ header_params=_header_params,
1584
+ body=_body_params,
1585
+ post_params=_form_params,
1586
+ files=_files,
1587
+ auth_settings=_auth_settings,
1588
+ collection_formats=_collection_formats,
1589
+ _host=_host,
1590
+ _request_auth=_request_auth
1591
+ )
1592
+
1593
+
1594
+
1595
+
1596
+ @validate_call
1597
+ def get_sli_config(
1598
+ self,
1599
+ id: StrictStr,
1600
+ _request_timeout: Union[
1601
+ None,
1602
+ Annotated[StrictFloat, Field(gt=0)],
1603
+ Tuple[
1604
+ Annotated[StrictFloat, Field(gt=0)],
1605
+ Annotated[StrictFloat, Field(gt=0)]
1606
+ ]
1607
+ ] = None,
1608
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1609
+ _content_type: Optional[StrictStr] = None,
1610
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1611
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1612
+ ) -> SliConfigurationWithLastUpdated:
1613
+ """(Deprecated) Get SLI Config
1614
+
1615
+
1616
+ :param id: (required)
1617
+ :type id: str
1618
+ :param _request_timeout: timeout setting for this request. If one
1619
+ number provided, it will be total request
1620
+ timeout. It can also be a pair (tuple) of
1621
+ (connection, read) timeouts.
1622
+ :type _request_timeout: int, tuple(int, int), optional
1623
+ :param _request_auth: set to override the auth_settings for an a single
1624
+ request; this effectively ignores the
1625
+ authentication in the spec for a single request.
1626
+ :type _request_auth: dict, optional
1627
+ :param _content_type: force content-type for the request.
1628
+ :type _content_type: str, Optional
1629
+ :param _headers: set to override the headers for a single
1630
+ request; this effectively ignores the headers
1631
+ in the spec for a single request.
1632
+ :type _headers: dict, optional
1633
+ :param _host_index: set to override the host_index for a single
1634
+ request; this effectively ignores the host_index
1635
+ in the spec for a single request.
1636
+ :type _host_index: int, optional
1637
+ :return: Returns the result object.
1638
+ """ # noqa: E501
1639
+ warnings.warn("GET /api/settings/sli/{id} is deprecated.", DeprecationWarning)
1640
+
1641
+ _param = self._get_sli_config_serialize(
1642
+ id=id,
1643
+ _request_auth=_request_auth,
1644
+ _content_type=_content_type,
1645
+ _headers=_headers,
1646
+ _host_index=_host_index
1647
+ )
1648
+
1649
+ _response_types_map: Dict[str, Optional[str]] = {
1650
+ '200': "SliConfigurationWithLastUpdated",
1651
+ }
1652
+ response_data = self.api_client.call_api(
1653
+ *_param,
1654
+ _request_timeout=_request_timeout
1655
+ )
1656
+ response_data.read()
1657
+ return self.api_client.response_deserialize(
1658
+ response_data=response_data,
1659
+ response_types_map=_response_types_map,
1660
+ ).data
1661
+
1662
+
1663
+ @validate_call
1664
+ def get_sli_config_with_http_info(
1665
+ self,
1666
+ id: StrictStr,
1667
+ _request_timeout: Union[
1668
+ None,
1669
+ Annotated[StrictFloat, Field(gt=0)],
1670
+ Tuple[
1671
+ Annotated[StrictFloat, Field(gt=0)],
1672
+ Annotated[StrictFloat, Field(gt=0)]
1673
+ ]
1674
+ ] = None,
1675
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1676
+ _content_type: Optional[StrictStr] = None,
1677
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1678
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1679
+ ) -> ApiResponse[SliConfigurationWithLastUpdated]:
1680
+ """(Deprecated) Get SLI Config
1681
+
1682
+
1683
+ :param id: (required)
1684
+ :type id: str
1685
+ :param _request_timeout: timeout setting for this request. If one
1686
+ number provided, it will be total request
1687
+ timeout. It can also be a pair (tuple) of
1688
+ (connection, read) timeouts.
1689
+ :type _request_timeout: int, tuple(int, int), optional
1690
+ :param _request_auth: set to override the auth_settings for an a single
1691
+ request; this effectively ignores the
1692
+ authentication in the spec for a single request.
1693
+ :type _request_auth: dict, optional
1694
+ :param _content_type: force content-type for the request.
1695
+ :type _content_type: str, Optional
1696
+ :param _headers: set to override the headers for a single
1697
+ request; this effectively ignores the headers
1698
+ in the spec for a single request.
1699
+ :type _headers: dict, optional
1700
+ :param _host_index: set to override the host_index for a single
1701
+ request; this effectively ignores the host_index
1702
+ in the spec for a single request.
1703
+ :type _host_index: int, optional
1704
+ :return: Returns the result object.
1705
+ """ # noqa: E501
1706
+ warnings.warn("GET /api/settings/sli/{id} is deprecated.", DeprecationWarning)
1707
+
1708
+ _param = self._get_sli_config_serialize(
1709
+ id=id,
1710
+ _request_auth=_request_auth,
1711
+ _content_type=_content_type,
1712
+ _headers=_headers,
1713
+ _host_index=_host_index
1714
+ )
1715
+
1716
+ _response_types_map: Dict[str, Optional[str]] = {
1717
+ '200': "SliConfigurationWithLastUpdated",
1718
+ }
1719
+ response_data = self.api_client.call_api(
1720
+ *_param,
1721
+ _request_timeout=_request_timeout
1722
+ )
1723
+ response_data.read()
1724
+ return self.api_client.response_deserialize(
1725
+ response_data=response_data,
1726
+ response_types_map=_response_types_map,
1727
+ )
1728
+
1729
+
1730
+ @validate_call
1731
+ def get_sli_config_without_preload_content(
1732
+ self,
1733
+ id: StrictStr,
1734
+ _request_timeout: Union[
1735
+ None,
1736
+ Annotated[StrictFloat, Field(gt=0)],
1737
+ Tuple[
1738
+ Annotated[StrictFloat, Field(gt=0)],
1739
+ Annotated[StrictFloat, Field(gt=0)]
1740
+ ]
1741
+ ] = None,
1742
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1743
+ _content_type: Optional[StrictStr] = None,
1744
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1745
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1746
+ ) -> RESTResponseType:
1747
+ """(Deprecated) Get SLI Config
1748
+
1749
+
1750
+ :param id: (required)
1751
+ :type id: str
1752
+ :param _request_timeout: timeout setting for this request. If one
1753
+ number provided, it will be total request
1754
+ timeout. It can also be a pair (tuple) of
1755
+ (connection, read) timeouts.
1756
+ :type _request_timeout: int, tuple(int, int), optional
1757
+ :param _request_auth: set to override the auth_settings for an a single
1758
+ request; this effectively ignores the
1759
+ authentication in the spec for a single request.
1760
+ :type _request_auth: dict, optional
1761
+ :param _content_type: force content-type for the request.
1762
+ :type _content_type: str, Optional
1763
+ :param _headers: set to override the headers for a single
1764
+ request; this effectively ignores the headers
1765
+ in the spec for a single request.
1766
+ :type _headers: dict, optional
1767
+ :param _host_index: set to override the host_index for a single
1768
+ request; this effectively ignores the host_index
1769
+ in the spec for a single request.
1770
+ :type _host_index: int, optional
1771
+ :return: Returns the result object.
1772
+ """ # noqa: E501
1773
+ warnings.warn("GET /api/settings/sli/{id} is deprecated.", DeprecationWarning)
1774
+
1775
+ _param = self._get_sli_config_serialize(
1776
+ id=id,
1777
+ _request_auth=_request_auth,
1778
+ _content_type=_content_type,
1779
+ _headers=_headers,
1780
+ _host_index=_host_index
1781
+ )
1782
+
1783
+ _response_types_map: Dict[str, Optional[str]] = {
1784
+ '200': "SliConfigurationWithLastUpdated",
1785
+ }
1786
+ response_data = self.api_client.call_api(
1787
+ *_param,
1788
+ _request_timeout=_request_timeout
1789
+ )
1790
+ return response_data.response
1791
+
1792
+
1793
+ def _get_sli_config_serialize(
1794
+ self,
1795
+ id,
1796
+ _request_auth,
1797
+ _content_type,
1798
+ _headers,
1799
+ _host_index,
1800
+ ) -> RequestSerialized:
1801
+
1802
+ _host = None
1803
+
1804
+ _collection_formats: Dict[str, str] = {
1805
+ }
1806
+
1807
+ _path_params: Dict[str, str] = {}
1808
+ _query_params: List[Tuple[str, str]] = []
1809
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1810
+ _form_params: List[Tuple[str, str]] = []
1811
+ _files: Dict[
1812
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1813
+ ] = {}
1814
+ _body_params: Optional[bytes] = None
1815
+
1816
+ # process the path parameters
1817
+ if id is not None:
1818
+ _path_params['id'] = id
1819
+ # process the query parameters
1820
+ # process the header parameters
1821
+ # process the form parameters
1822
+ # process the body parameter
1823
+
1824
+
1825
+ # set the HTTP header `Accept`
1826
+ if 'Accept' not in _header_params:
1827
+ _header_params['Accept'] = self.api_client.select_header_accept(
1828
+ [
1829
+ 'application/json'
1830
+ ]
1831
+ )
1832
+
1833
+
1834
+ # authentication setting
1835
+ _auth_settings: List[str] = [
1836
+ 'ApiKeyAuth'
1837
+ ]
1838
+
1839
+ return self.api_client.param_serialize(
1840
+ method='GET',
1841
+ resource_path='/api/settings/sli/{id}',
1842
+ path_params=_path_params,
1843
+ query_params=_query_params,
1844
+ header_params=_header_params,
1845
+ body=_body_params,
1846
+ post_params=_form_params,
1847
+ files=_files,
1848
+ auth_settings=_auth_settings,
1849
+ collection_formats=_collection_formats,
1850
+ _host=_host,
1851
+ _request_auth=_request_auth
1852
+ )
1853
+
1854
+
1855
+
1856
+
1857
+ @validate_call
1858
+ def get_sli_config_v2(
1859
+ self,
1860
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
1861
+ _request_timeout: Union[
1862
+ None,
1863
+ Annotated[StrictFloat, Field(gt=0)],
1864
+ Tuple[
1865
+ Annotated[StrictFloat, Field(gt=0)],
1866
+ Annotated[StrictFloat, Field(gt=0)]
1867
+ ]
1868
+ ] = None,
1869
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1870
+ _content_type: Optional[StrictStr] = None,
1871
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1872
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1873
+ ) -> SliConfigurationWithLastUpdated:
1874
+ """Get SLI Config
1875
+
1876
+
1877
+ :param id: ID of the Service Level Indicator (SLI) (required)
1878
+ :type id: str
1879
+ :param _request_timeout: timeout setting for this request. If one
1880
+ number provided, it will be total request
1881
+ timeout. It can also be a pair (tuple) of
1882
+ (connection, read) timeouts.
1883
+ :type _request_timeout: int, tuple(int, int), optional
1884
+ :param _request_auth: set to override the auth_settings for an a single
1885
+ request; this effectively ignores the
1886
+ authentication in the spec for a single request.
1887
+ :type _request_auth: dict, optional
1888
+ :param _content_type: force content-type for the request.
1889
+ :type _content_type: str, Optional
1890
+ :param _headers: set to override the headers for a single
1891
+ request; this effectively ignores the headers
1892
+ in the spec for a single request.
1893
+ :type _headers: dict, optional
1894
+ :param _host_index: set to override the host_index for a single
1895
+ request; this effectively ignores the host_index
1896
+ in the spec for a single request.
1897
+ :type _host_index: int, optional
1898
+ :return: Returns the result object.
1899
+ """ # noqa: E501
1900
+
1901
+ _param = self._get_sli_config_v2_serialize(
1902
+ id=id,
1903
+ _request_auth=_request_auth,
1904
+ _content_type=_content_type,
1905
+ _headers=_headers,
1906
+ _host_index=_host_index
1907
+ )
1908
+
1909
+ _response_types_map: Dict[str, Optional[str]] = {
1910
+ '200': "SliConfigurationWithLastUpdated",
1911
+ '404': "str",
1912
+ }
1913
+ response_data = self.api_client.call_api(
1914
+ *_param,
1915
+ _request_timeout=_request_timeout
1916
+ )
1917
+ response_data.read()
1918
+ return self.api_client.response_deserialize(
1919
+ response_data=response_data,
1920
+ response_types_map=_response_types_map,
1921
+ ).data
1922
+
1923
+
1924
+ @validate_call
1925
+ def get_sli_config_v2_with_http_info(
1926
+ self,
1927
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
1928
+ _request_timeout: Union[
1929
+ None,
1930
+ Annotated[StrictFloat, Field(gt=0)],
1931
+ Tuple[
1932
+ Annotated[StrictFloat, Field(gt=0)],
1933
+ Annotated[StrictFloat, Field(gt=0)]
1934
+ ]
1935
+ ] = None,
1936
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1937
+ _content_type: Optional[StrictStr] = None,
1938
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1939
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1940
+ ) -> ApiResponse[SliConfigurationWithLastUpdated]:
1941
+ """Get SLI Config
1942
+
1943
+
1944
+ :param id: ID of the Service Level Indicator (SLI) (required)
1945
+ :type id: str
1946
+ :param _request_timeout: timeout setting for this request. If one
1947
+ number provided, it will be total request
1948
+ timeout. It can also be a pair (tuple) of
1949
+ (connection, read) timeouts.
1950
+ :type _request_timeout: int, tuple(int, int), optional
1951
+ :param _request_auth: set to override the auth_settings for an a single
1952
+ request; this effectively ignores the
1953
+ authentication in the spec for a single request.
1954
+ :type _request_auth: dict, optional
1955
+ :param _content_type: force content-type for the request.
1956
+ :type _content_type: str, Optional
1957
+ :param _headers: set to override the headers for a single
1958
+ request; this effectively ignores the headers
1959
+ in the spec for a single request.
1960
+ :type _headers: dict, optional
1961
+ :param _host_index: set to override the host_index for a single
1962
+ request; this effectively ignores the host_index
1963
+ in the spec for a single request.
1964
+ :type _host_index: int, optional
1965
+ :return: Returns the result object.
1966
+ """ # noqa: E501
1967
+
1968
+ _param = self._get_sli_config_v2_serialize(
1969
+ id=id,
1970
+ _request_auth=_request_auth,
1971
+ _content_type=_content_type,
1972
+ _headers=_headers,
1973
+ _host_index=_host_index
1974
+ )
1975
+
1976
+ _response_types_map: Dict[str, Optional[str]] = {
1977
+ '200': "SliConfigurationWithLastUpdated",
1978
+ '404': "str",
1979
+ }
1980
+ response_data = self.api_client.call_api(
1981
+ *_param,
1982
+ _request_timeout=_request_timeout
1983
+ )
1984
+ response_data.read()
1985
+ return self.api_client.response_deserialize(
1986
+ response_data=response_data,
1987
+ response_types_map=_response_types_map,
1988
+ )
1989
+
1990
+
1991
+ @validate_call
1992
+ def get_sli_config_v2_without_preload_content(
1993
+ self,
1994
+ id: Annotated[StrictStr, Field(description="ID of the Service Level Indicator (SLI)")],
1995
+ _request_timeout: Union[
1996
+ None,
1997
+ Annotated[StrictFloat, Field(gt=0)],
1998
+ Tuple[
1999
+ Annotated[StrictFloat, Field(gt=0)],
2000
+ Annotated[StrictFloat, Field(gt=0)]
2001
+ ]
2002
+ ] = None,
2003
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2004
+ _content_type: Optional[StrictStr] = None,
2005
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2006
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2007
+ ) -> RESTResponseType:
2008
+ """Get SLI Config
2009
+
2010
+
2011
+ :param id: ID of the Service Level Indicator (SLI) (required)
2012
+ :type id: str
2013
+ :param _request_timeout: timeout setting for this request. If one
2014
+ number provided, it will be total request
2015
+ timeout. It can also be a pair (tuple) of
2016
+ (connection, read) timeouts.
2017
+ :type _request_timeout: int, tuple(int, int), optional
2018
+ :param _request_auth: set to override the auth_settings for an a single
2019
+ request; this effectively ignores the
2020
+ authentication in the spec for a single request.
2021
+ :type _request_auth: dict, optional
2022
+ :param _content_type: force content-type for the request.
2023
+ :type _content_type: str, Optional
2024
+ :param _headers: set to override the headers for a single
2025
+ request; this effectively ignores the headers
2026
+ in the spec for a single request.
2027
+ :type _headers: dict, optional
2028
+ :param _host_index: set to override the host_index for a single
2029
+ request; this effectively ignores the host_index
2030
+ in the spec for a single request.
2031
+ :type _host_index: int, optional
2032
+ :return: Returns the result object.
2033
+ """ # noqa: E501
2034
+
2035
+ _param = self._get_sli_config_v2_serialize(
2036
+ id=id,
2037
+ _request_auth=_request_auth,
2038
+ _content_type=_content_type,
2039
+ _headers=_headers,
2040
+ _host_index=_host_index
2041
+ )
2042
+
2043
+ _response_types_map: Dict[str, Optional[str]] = {
2044
+ '200': "SliConfigurationWithLastUpdated",
2045
+ '404': "str",
2046
+ }
2047
+ response_data = self.api_client.call_api(
2048
+ *_param,
2049
+ _request_timeout=_request_timeout
2050
+ )
2051
+ return response_data.response
2052
+
2053
+
2054
+ def _get_sli_config_v2_serialize(
2055
+ self,
2056
+ id,
2057
+ _request_auth,
2058
+ _content_type,
2059
+ _headers,
2060
+ _host_index,
2061
+ ) -> RequestSerialized:
2062
+
2063
+ _host = None
2064
+
2065
+ _collection_formats: Dict[str, str] = {
2066
+ }
2067
+
2068
+ _path_params: Dict[str, str] = {}
2069
+ _query_params: List[Tuple[str, str]] = []
2070
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2071
+ _form_params: List[Tuple[str, str]] = []
2072
+ _files: Dict[
2073
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2074
+ ] = {}
2075
+ _body_params: Optional[bytes] = None
2076
+
2077
+ # process the path parameters
2078
+ if id is not None:
2079
+ _path_params['id'] = id
2080
+ # process the query parameters
2081
+ # process the header parameters
2082
+ # process the form parameters
2083
+ # process the body parameter
2084
+
2085
+
2086
+ # set the HTTP header `Accept`
2087
+ if 'Accept' not in _header_params:
2088
+ _header_params['Accept'] = self.api_client.select_header_accept(
2089
+ [
2090
+ 'application/json'
2091
+ ]
2092
+ )
2093
+
2094
+
2095
+ # authentication setting
2096
+ _auth_settings: List[str] = [
2097
+ 'ApiKeyAuth'
2098
+ ]
2099
+
2100
+ return self.api_client.param_serialize(
2101
+ method='GET',
2102
+ resource_path='/api/settings/v2/sli/{id}',
2103
+ path_params=_path_params,
2104
+ query_params=_query_params,
2105
+ header_params=_header_params,
2106
+ body=_body_params,
2107
+ post_params=_form_params,
2108
+ files=_files,
2109
+ auth_settings=_auth_settings,
2110
+ collection_formats=_collection_formats,
2111
+ _host=_host,
2112
+ _request_auth=_request_auth
2113
+ )
2114
+
2115
+
2116
+
2117
+
2118
+ @validate_call
2119
+ def get_sli_configs_for_entity_type_and_id_v2(
2120
+ self,
2121
+ entity_type: Annotated[StrictStr, Field(description="Type of the Entity, whether it is an application or website")],
2122
+ entity_id: Annotated[StrictStr, Field(description="Unique ID of the Entity")],
2123
+ _request_timeout: Union[
2124
+ None,
2125
+ Annotated[StrictFloat, Field(gt=0)],
2126
+ Tuple[
2127
+ Annotated[StrictFloat, Field(gt=0)],
2128
+ Annotated[StrictFloat, Field(gt=0)]
2129
+ ]
2130
+ ] = None,
2131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2132
+ _content_type: Optional[StrictStr] = None,
2133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2135
+ ) -> List[SliConfigurationWithLastUpdated]:
2136
+ """Get all SLI configs for entity type and entity id
2137
+
2138
+
2139
+ :param entity_type: Type of the Entity, whether it is an application or website (required)
2140
+ :type entity_type: str
2141
+ :param entity_id: Unique ID of the Entity (required)
2142
+ :type entity_id: str
2143
+ :param _request_timeout: timeout setting for this request. If one
2144
+ number provided, it will be total request
2145
+ timeout. It can also be a pair (tuple) of
2146
+ (connection, read) timeouts.
2147
+ :type _request_timeout: int, tuple(int, int), optional
2148
+ :param _request_auth: set to override the auth_settings for an a single
2149
+ request; this effectively ignores the
2150
+ authentication in the spec for a single request.
2151
+ :type _request_auth: dict, optional
2152
+ :param _content_type: force content-type for the request.
2153
+ :type _content_type: str, Optional
2154
+ :param _headers: set to override the headers for a single
2155
+ request; this effectively ignores the headers
2156
+ in the spec for a single request.
2157
+ :type _headers: dict, optional
2158
+ :param _host_index: set to override the host_index for a single
2159
+ request; this effectively ignores the host_index
2160
+ in the spec for a single request.
2161
+ :type _host_index: int, optional
2162
+ :return: Returns the result object.
2163
+ """ # noqa: E501
2164
+
2165
+ _param = self._get_sli_configs_for_entity_type_and_id_v2_serialize(
2166
+ entity_type=entity_type,
2167
+ entity_id=entity_id,
2168
+ _request_auth=_request_auth,
2169
+ _content_type=_content_type,
2170
+ _headers=_headers,
2171
+ _host_index=_host_index
2172
+ )
2173
+
2174
+ _response_types_map: Dict[str, Optional[str]] = {
2175
+ '200': "List[SliConfigurationWithLastUpdated]",
2176
+ }
2177
+ response_data = self.api_client.call_api(
2178
+ *_param,
2179
+ _request_timeout=_request_timeout
2180
+ )
2181
+ response_data.read()
2182
+ return self.api_client.response_deserialize(
2183
+ response_data=response_data,
2184
+ response_types_map=_response_types_map,
2185
+ ).data
2186
+
2187
+
2188
+ @validate_call
2189
+ def get_sli_configs_for_entity_type_and_id_v2_with_http_info(
2190
+ self,
2191
+ entity_type: Annotated[StrictStr, Field(description="Type of the Entity, whether it is an application or website")],
2192
+ entity_id: Annotated[StrictStr, Field(description="Unique ID of the Entity")],
2193
+ _request_timeout: Union[
2194
+ None,
2195
+ Annotated[StrictFloat, Field(gt=0)],
2196
+ Tuple[
2197
+ Annotated[StrictFloat, Field(gt=0)],
2198
+ Annotated[StrictFloat, Field(gt=0)]
2199
+ ]
2200
+ ] = None,
2201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2202
+ _content_type: Optional[StrictStr] = None,
2203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2205
+ ) -> ApiResponse[List[SliConfigurationWithLastUpdated]]:
2206
+ """Get all SLI configs for entity type and entity id
2207
+
2208
+
2209
+ :param entity_type: Type of the Entity, whether it is an application or website (required)
2210
+ :type entity_type: str
2211
+ :param entity_id: Unique ID of the Entity (required)
2212
+ :type entity_id: str
2213
+ :param _request_timeout: timeout setting for this request. If one
2214
+ number provided, it will be total request
2215
+ timeout. It can also be a pair (tuple) of
2216
+ (connection, read) timeouts.
2217
+ :type _request_timeout: int, tuple(int, int), optional
2218
+ :param _request_auth: set to override the auth_settings for an a single
2219
+ request; this effectively ignores the
2220
+ authentication in the spec for a single request.
2221
+ :type _request_auth: dict, optional
2222
+ :param _content_type: force content-type for the request.
2223
+ :type _content_type: str, Optional
2224
+ :param _headers: set to override the headers for a single
2225
+ request; this effectively ignores the headers
2226
+ in the spec for a single request.
2227
+ :type _headers: dict, optional
2228
+ :param _host_index: set to override the host_index for a single
2229
+ request; this effectively ignores the host_index
2230
+ in the spec for a single request.
2231
+ :type _host_index: int, optional
2232
+ :return: Returns the result object.
2233
+ """ # noqa: E501
2234
+
2235
+ _param = self._get_sli_configs_for_entity_type_and_id_v2_serialize(
2236
+ entity_type=entity_type,
2237
+ entity_id=entity_id,
2238
+ _request_auth=_request_auth,
2239
+ _content_type=_content_type,
2240
+ _headers=_headers,
2241
+ _host_index=_host_index
2242
+ )
2243
+
2244
+ _response_types_map: Dict[str, Optional[str]] = {
2245
+ '200': "List[SliConfigurationWithLastUpdated]",
2246
+ }
2247
+ response_data = self.api_client.call_api(
2248
+ *_param,
2249
+ _request_timeout=_request_timeout
2250
+ )
2251
+ response_data.read()
2252
+ return self.api_client.response_deserialize(
2253
+ response_data=response_data,
2254
+ response_types_map=_response_types_map,
2255
+ )
2256
+
2257
+
2258
+ @validate_call
2259
+ def get_sli_configs_for_entity_type_and_id_v2_without_preload_content(
2260
+ self,
2261
+ entity_type: Annotated[StrictStr, Field(description="Type of the Entity, whether it is an application or website")],
2262
+ entity_id: Annotated[StrictStr, Field(description="Unique ID of the Entity")],
2263
+ _request_timeout: Union[
2264
+ None,
2265
+ Annotated[StrictFloat, Field(gt=0)],
2266
+ Tuple[
2267
+ Annotated[StrictFloat, Field(gt=0)],
2268
+ Annotated[StrictFloat, Field(gt=0)]
2269
+ ]
2270
+ ] = None,
2271
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2272
+ _content_type: Optional[StrictStr] = None,
2273
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2274
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2275
+ ) -> RESTResponseType:
2276
+ """Get all SLI configs for entity type and entity id
2277
+
2278
+
2279
+ :param entity_type: Type of the Entity, whether it is an application or website (required)
2280
+ :type entity_type: str
2281
+ :param entity_id: Unique ID of the Entity (required)
2282
+ :type entity_id: str
2283
+ :param _request_timeout: timeout setting for this request. If one
2284
+ number provided, it will be total request
2285
+ timeout. It can also be a pair (tuple) of
2286
+ (connection, read) timeouts.
2287
+ :type _request_timeout: int, tuple(int, int), optional
2288
+ :param _request_auth: set to override the auth_settings for an a single
2289
+ request; this effectively ignores the
2290
+ authentication in the spec for a single request.
2291
+ :type _request_auth: dict, optional
2292
+ :param _content_type: force content-type for the request.
2293
+ :type _content_type: str, Optional
2294
+ :param _headers: set to override the headers for a single
2295
+ request; this effectively ignores the headers
2296
+ in the spec for a single request.
2297
+ :type _headers: dict, optional
2298
+ :param _host_index: set to override the host_index for a single
2299
+ request; this effectively ignores the host_index
2300
+ in the spec for a single request.
2301
+ :type _host_index: int, optional
2302
+ :return: Returns the result object.
2303
+ """ # noqa: E501
2304
+
2305
+ _param = self._get_sli_configs_for_entity_type_and_id_v2_serialize(
2306
+ entity_type=entity_type,
2307
+ entity_id=entity_id,
2308
+ _request_auth=_request_auth,
2309
+ _content_type=_content_type,
2310
+ _headers=_headers,
2311
+ _host_index=_host_index
2312
+ )
2313
+
2314
+ _response_types_map: Dict[str, Optional[str]] = {
2315
+ '200': "List[SliConfigurationWithLastUpdated]",
2316
+ }
2317
+ response_data = self.api_client.call_api(
2318
+ *_param,
2319
+ _request_timeout=_request_timeout
2320
+ )
2321
+ return response_data.response
2322
+
2323
+
2324
+ def _get_sli_configs_for_entity_type_and_id_v2_serialize(
2325
+ self,
2326
+ entity_type,
2327
+ entity_id,
2328
+ _request_auth,
2329
+ _content_type,
2330
+ _headers,
2331
+ _host_index,
2332
+ ) -> RequestSerialized:
2333
+
2334
+ _host = None
2335
+
2336
+ _collection_formats: Dict[str, str] = {
2337
+ }
2338
+
2339
+ _path_params: Dict[str, str] = {}
2340
+ _query_params: List[Tuple[str, str]] = []
2341
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2342
+ _form_params: List[Tuple[str, str]] = []
2343
+ _files: Dict[
2344
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2345
+ ] = {}
2346
+ _body_params: Optional[bytes] = None
2347
+
2348
+ # process the path parameters
2349
+ if entity_type is not None:
2350
+ _path_params['entityType'] = entity_type
2351
+ if entity_id is not None:
2352
+ _path_params['entityId'] = entity_id
2353
+ # process the query parameters
2354
+ # process the header parameters
2355
+ # process the form parameters
2356
+ # process the body parameter
2357
+
2358
+
2359
+ # set the HTTP header `Accept`
2360
+ if 'Accept' not in _header_params:
2361
+ _header_params['Accept'] = self.api_client.select_header_accept(
2362
+ [
2363
+ 'application/json'
2364
+ ]
2365
+ )
2366
+
2367
+
2368
+ # authentication setting
2369
+ _auth_settings: List[str] = [
2370
+ 'ApiKeyAuth'
2371
+ ]
2372
+
2373
+ return self.api_client.param_serialize(
2374
+ method='GET',
2375
+ resource_path='/api/settings/v2/sli/{entityType}/{entityId}',
2376
+ path_params=_path_params,
2377
+ query_params=_query_params,
2378
+ header_params=_header_params,
2379
+ body=_body_params,
2380
+ post_params=_form_params,
2381
+ files=_files,
2382
+ auth_settings=_auth_settings,
2383
+ collection_formats=_collection_formats,
2384
+ _host=_host,
2385
+ _request_auth=_request_auth
2386
+ )
2387
+
2388
+
2389
+
2390
+
2391
+ @validate_call
2392
+ def update_sli_config(
2393
+ self,
2394
+ id: StrictStr,
2395
+ sli_configuration: SliConfiguration,
2396
+ _request_timeout: Union[
2397
+ None,
2398
+ Annotated[StrictFloat, Field(gt=0)],
2399
+ Tuple[
2400
+ Annotated[StrictFloat, Field(gt=0)],
2401
+ Annotated[StrictFloat, Field(gt=0)]
2402
+ ]
2403
+ ] = None,
2404
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2405
+ _content_type: Optional[StrictStr] = None,
2406
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2407
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2408
+ ) -> SliConfigurationWithLastUpdated:
2409
+ """(Deprecated) Update SLI Config
2410
+
2411
+
2412
+ :param id: (required)
2413
+ :type id: str
2414
+ :param sli_configuration: (required)
2415
+ :type sli_configuration: SliConfiguration
2416
+ :param _request_timeout: timeout setting for this request. If one
2417
+ number provided, it will be total request
2418
+ timeout. It can also be a pair (tuple) of
2419
+ (connection, read) timeouts.
2420
+ :type _request_timeout: int, tuple(int, int), optional
2421
+ :param _request_auth: set to override the auth_settings for an a single
2422
+ request; this effectively ignores the
2423
+ authentication in the spec for a single request.
2424
+ :type _request_auth: dict, optional
2425
+ :param _content_type: force content-type for the request.
2426
+ :type _content_type: str, Optional
2427
+ :param _headers: set to override the headers for a single
2428
+ request; this effectively ignores the headers
2429
+ in the spec for a single request.
2430
+ :type _headers: dict, optional
2431
+ :param _host_index: set to override the host_index for a single
2432
+ request; this effectively ignores the host_index
2433
+ in the spec for a single request.
2434
+ :type _host_index: int, optional
2435
+ :return: Returns the result object.
2436
+ """ # noqa: E501
2437
+ warnings.warn("PUT /api/settings/sli/{id} is deprecated.", DeprecationWarning)
2438
+
2439
+ _param = self._update_sli_config_serialize(
2440
+ id=id,
2441
+ sli_configuration=sli_configuration,
2442
+ _request_auth=_request_auth,
2443
+ _content_type=_content_type,
2444
+ _headers=_headers,
2445
+ _host_index=_host_index
2446
+ )
2447
+
2448
+ _response_types_map: Dict[str, Optional[str]] = {
2449
+ '200': "SliConfigurationWithLastUpdated",
2450
+ }
2451
+ response_data = self.api_client.call_api(
2452
+ *_param,
2453
+ _request_timeout=_request_timeout
2454
+ )
2455
+ response_data.read()
2456
+ return self.api_client.response_deserialize(
2457
+ response_data=response_data,
2458
+ response_types_map=_response_types_map,
2459
+ ).data
2460
+
2461
+
2462
+ @validate_call
2463
+ def update_sli_config_with_http_info(
2464
+ self,
2465
+ id: StrictStr,
2466
+ sli_configuration: SliConfiguration,
2467
+ _request_timeout: Union[
2468
+ None,
2469
+ Annotated[StrictFloat, Field(gt=0)],
2470
+ Tuple[
2471
+ Annotated[StrictFloat, Field(gt=0)],
2472
+ Annotated[StrictFloat, Field(gt=0)]
2473
+ ]
2474
+ ] = None,
2475
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2476
+ _content_type: Optional[StrictStr] = None,
2477
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2478
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2479
+ ) -> ApiResponse[SliConfigurationWithLastUpdated]:
2480
+ """(Deprecated) Update SLI Config
2481
+
2482
+
2483
+ :param id: (required)
2484
+ :type id: str
2485
+ :param sli_configuration: (required)
2486
+ :type sli_configuration: SliConfiguration
2487
+ :param _request_timeout: timeout setting for this request. If one
2488
+ number provided, it will be total request
2489
+ timeout. It can also be a pair (tuple) of
2490
+ (connection, read) timeouts.
2491
+ :type _request_timeout: int, tuple(int, int), optional
2492
+ :param _request_auth: set to override the auth_settings for an a single
2493
+ request; this effectively ignores the
2494
+ authentication in the spec for a single request.
2495
+ :type _request_auth: dict, optional
2496
+ :param _content_type: force content-type for the request.
2497
+ :type _content_type: str, Optional
2498
+ :param _headers: set to override the headers for a single
2499
+ request; this effectively ignores the headers
2500
+ in the spec for a single request.
2501
+ :type _headers: dict, optional
2502
+ :param _host_index: set to override the host_index for a single
2503
+ request; this effectively ignores the host_index
2504
+ in the spec for a single request.
2505
+ :type _host_index: int, optional
2506
+ :return: Returns the result object.
2507
+ """ # noqa: E501
2508
+ warnings.warn("PUT /api/settings/sli/{id} is deprecated.", DeprecationWarning)
2509
+
2510
+ _param = self._update_sli_config_serialize(
2511
+ id=id,
2512
+ sli_configuration=sli_configuration,
2513
+ _request_auth=_request_auth,
2514
+ _content_type=_content_type,
2515
+ _headers=_headers,
2516
+ _host_index=_host_index
2517
+ )
2518
+
2519
+ _response_types_map: Dict[str, Optional[str]] = {
2520
+ '200': "SliConfigurationWithLastUpdated",
2521
+ }
2522
+ response_data = self.api_client.call_api(
2523
+ *_param,
2524
+ _request_timeout=_request_timeout
2525
+ )
2526
+ response_data.read()
2527
+ return self.api_client.response_deserialize(
2528
+ response_data=response_data,
2529
+ response_types_map=_response_types_map,
2530
+ )
2531
+
2532
+
2533
+ @validate_call
2534
+ def update_sli_config_without_preload_content(
2535
+ self,
2536
+ id: StrictStr,
2537
+ sli_configuration: SliConfiguration,
2538
+ _request_timeout: Union[
2539
+ None,
2540
+ Annotated[StrictFloat, Field(gt=0)],
2541
+ Tuple[
2542
+ Annotated[StrictFloat, Field(gt=0)],
2543
+ Annotated[StrictFloat, Field(gt=0)]
2544
+ ]
2545
+ ] = None,
2546
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2547
+ _content_type: Optional[StrictStr] = None,
2548
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2549
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2550
+ ) -> RESTResponseType:
2551
+ """(Deprecated) Update SLI Config
2552
+
2553
+
2554
+ :param id: (required)
2555
+ :type id: str
2556
+ :param sli_configuration: (required)
2557
+ :type sli_configuration: SliConfiguration
2558
+ :param _request_timeout: timeout setting for this request. If one
2559
+ number provided, it will be total request
2560
+ timeout. It can also be a pair (tuple) of
2561
+ (connection, read) timeouts.
2562
+ :type _request_timeout: int, tuple(int, int), optional
2563
+ :param _request_auth: set to override the auth_settings for an a single
2564
+ request; this effectively ignores the
2565
+ authentication in the spec for a single request.
2566
+ :type _request_auth: dict, optional
2567
+ :param _content_type: force content-type for the request.
2568
+ :type _content_type: str, Optional
2569
+ :param _headers: set to override the headers for a single
2570
+ request; this effectively ignores the headers
2571
+ in the spec for a single request.
2572
+ :type _headers: dict, optional
2573
+ :param _host_index: set to override the host_index for a single
2574
+ request; this effectively ignores the host_index
2575
+ in the spec for a single request.
2576
+ :type _host_index: int, optional
2577
+ :return: Returns the result object.
2578
+ """ # noqa: E501
2579
+ warnings.warn("PUT /api/settings/sli/{id} is deprecated.", DeprecationWarning)
2580
+
2581
+ _param = self._update_sli_config_serialize(
2582
+ id=id,
2583
+ sli_configuration=sli_configuration,
2584
+ _request_auth=_request_auth,
2585
+ _content_type=_content_type,
2586
+ _headers=_headers,
2587
+ _host_index=_host_index
2588
+ )
2589
+
2590
+ _response_types_map: Dict[str, Optional[str]] = {
2591
+ '200': "SliConfigurationWithLastUpdated",
2592
+ }
2593
+ response_data = self.api_client.call_api(
2594
+ *_param,
2595
+ _request_timeout=_request_timeout
2596
+ )
2597
+ return response_data.response
2598
+
2599
+
2600
+ def _update_sli_config_serialize(
2601
+ self,
2602
+ id,
2603
+ sli_configuration,
2604
+ _request_auth,
2605
+ _content_type,
2606
+ _headers,
2607
+ _host_index,
2608
+ ) -> RequestSerialized:
2609
+
2610
+ _host = None
2611
+
2612
+ _collection_formats: Dict[str, str] = {
2613
+ }
2614
+
2615
+ _path_params: Dict[str, str] = {}
2616
+ _query_params: List[Tuple[str, str]] = []
2617
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2618
+ _form_params: List[Tuple[str, str]] = []
2619
+ _files: Dict[
2620
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2621
+ ] = {}
2622
+ _body_params: Optional[bytes] = None
2623
+
2624
+ # process the path parameters
2625
+ if id is not None:
2626
+ _path_params['id'] = id
2627
+ # process the query parameters
2628
+ # process the header parameters
2629
+ # process the form parameters
2630
+ # process the body parameter
2631
+ if sli_configuration is not None:
2632
+ _body_params = sli_configuration
2633
+
2634
+
2635
+ # set the HTTP header `Accept`
2636
+ if 'Accept' not in _header_params:
2637
+ _header_params['Accept'] = self.api_client.select_header_accept(
2638
+ [
2639
+ 'application/json'
2640
+ ]
2641
+ )
2642
+
2643
+ # set the HTTP header `Content-Type`
2644
+ if _content_type:
2645
+ _header_params['Content-Type'] = _content_type
2646
+ else:
2647
+ _default_content_type = (
2648
+ self.api_client.select_header_content_type(
2649
+ [
2650
+ 'application/json'
2651
+ ]
2652
+ )
2653
+ )
2654
+ if _default_content_type is not None:
2655
+ _header_params['Content-Type'] = _default_content_type
2656
+
2657
+ # authentication setting
2658
+ _auth_settings: List[str] = [
2659
+ 'ApiKeyAuth'
2660
+ ]
2661
+
2662
+ return self.api_client.param_serialize(
2663
+ method='PUT',
2664
+ resource_path='/api/settings/sli/{id}',
2665
+ path_params=_path_params,
2666
+ query_params=_query_params,
2667
+ header_params=_header_params,
2668
+ body=_body_params,
2669
+ post_params=_form_params,
2670
+ files=_files,
2671
+ auth_settings=_auth_settings,
2672
+ collection_formats=_collection_formats,
2673
+ _host=_host,
2674
+ _request_auth=_request_auth
2675
+ )
2676
+
2677
+