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,1930 @@
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, StrictBool, StrictInt, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from instana_client.models.custom_dashboard import CustomDashboard
24
+ from instana_client.models.custom_dashboard_preview import CustomDashboardPreview
25
+ from instana_client.models.dashboard_api_token import DashboardApiToken
26
+ from instana_client.models.user_basic_result import UserBasicResult
27
+
28
+ from instana_client.api_client import ApiClient, RequestSerialized
29
+ from instana_client.api_response import ApiResponse
30
+ from instana_client.rest import RESTResponseType
31
+
32
+
33
+ class CustomDashboardsApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def add_custom_dashboard(
48
+ self,
49
+ custom_dashboard: Optional[CustomDashboard] = None,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> CustomDashboard:
63
+ """Add custom dashboard
64
+
65
+
66
+ :param custom_dashboard:
67
+ :type custom_dashboard: CustomDashboard
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._add_custom_dashboard_serialize(
91
+ custom_dashboard=custom_dashboard,
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': "CustomDashboard",
100
+ '403': None,
101
+ '422': None,
102
+ }
103
+ response_data = self.api_client.call_api(
104
+ *_param,
105
+ _request_timeout=_request_timeout
106
+ )
107
+ response_data.read()
108
+ return self.api_client.response_deserialize(
109
+ response_data=response_data,
110
+ response_types_map=_response_types_map,
111
+ ).data
112
+
113
+
114
+ @validate_call
115
+ def add_custom_dashboard_with_http_info(
116
+ self,
117
+ custom_dashboard: Optional[CustomDashboard] = None,
118
+ _request_timeout: Union[
119
+ None,
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Tuple[
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Annotated[StrictFloat, Field(gt=0)]
124
+ ]
125
+ ] = None,
126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
+ _content_type: Optional[StrictStr] = None,
128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
+ ) -> ApiResponse[CustomDashboard]:
131
+ """Add custom dashboard
132
+
133
+
134
+ :param custom_dashboard:
135
+ :type custom_dashboard: CustomDashboard
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._add_custom_dashboard_serialize(
159
+ custom_dashboard=custom_dashboard,
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': "CustomDashboard",
168
+ '403': None,
169
+ '422': None,
170
+ }
171
+ response_data = self.api_client.call_api(
172
+ *_param,
173
+ _request_timeout=_request_timeout
174
+ )
175
+ response_data.read()
176
+ return self.api_client.response_deserialize(
177
+ response_data=response_data,
178
+ response_types_map=_response_types_map,
179
+ )
180
+
181
+
182
+ @validate_call
183
+ def add_custom_dashboard_without_preload_content(
184
+ self,
185
+ custom_dashboard: Optional[CustomDashboard] = None,
186
+ _request_timeout: Union[
187
+ None,
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Tuple[
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Annotated[StrictFloat, Field(gt=0)]
192
+ ]
193
+ ] = None,
194
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
195
+ _content_type: Optional[StrictStr] = None,
196
+ _headers: Optional[Dict[StrictStr, Any]] = None,
197
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
198
+ ) -> RESTResponseType:
199
+ """Add custom dashboard
200
+
201
+
202
+ :param custom_dashboard:
203
+ :type custom_dashboard: CustomDashboard
204
+ :param _request_timeout: timeout setting for this request. If one
205
+ number provided, it will be total request
206
+ timeout. It can also be a pair (tuple) of
207
+ (connection, read) timeouts.
208
+ :type _request_timeout: int, tuple(int, int), optional
209
+ :param _request_auth: set to override the auth_settings for an a single
210
+ request; this effectively ignores the
211
+ authentication in the spec for a single request.
212
+ :type _request_auth: dict, optional
213
+ :param _content_type: force content-type for the request.
214
+ :type _content_type: str, Optional
215
+ :param _headers: set to override the headers for a single
216
+ request; this effectively ignores the headers
217
+ in the spec for a single request.
218
+ :type _headers: dict, optional
219
+ :param _host_index: set to override the host_index for a single
220
+ request; this effectively ignores the host_index
221
+ in the spec for a single request.
222
+ :type _host_index: int, optional
223
+ :return: Returns the result object.
224
+ """ # noqa: E501
225
+
226
+ _param = self._add_custom_dashboard_serialize(
227
+ custom_dashboard=custom_dashboard,
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': "CustomDashboard",
236
+ '403': None,
237
+ '422': None,
238
+ }
239
+ response_data = self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _add_custom_dashboard_serialize(
247
+ self,
248
+ custom_dashboard,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[
265
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266
+ ] = {}
267
+ _body_params: Optional[bytes] = None
268
+
269
+ # process the path parameters
270
+ # process the query parameters
271
+ # process the header parameters
272
+ # process the form parameters
273
+ # process the body parameter
274
+ if custom_dashboard is not None:
275
+ _body_params = custom_dashboard
276
+
277
+
278
+ # set the HTTP header `Accept`
279
+ if 'Accept' not in _header_params:
280
+ _header_params['Accept'] = self.api_client.select_header_accept(
281
+ [
282
+ 'application/json'
283
+ ]
284
+ )
285
+
286
+ # set the HTTP header `Content-Type`
287
+ if _content_type:
288
+ _header_params['Content-Type'] = _content_type
289
+ else:
290
+ _default_content_type = (
291
+ self.api_client.select_header_content_type(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+ )
297
+ if _default_content_type is not None:
298
+ _header_params['Content-Type'] = _default_content_type
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ 'ApiKeyAuth'
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='POST',
307
+ resource_path='/api/custom-dashboard',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+
321
+
322
+
323
+ @validate_call
324
+ def delete_custom_dashboard(
325
+ self,
326
+ custom_dashboard_id: StrictStr,
327
+ _request_timeout: Union[
328
+ None,
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Tuple[
331
+ Annotated[StrictFloat, Field(gt=0)],
332
+ Annotated[StrictFloat, Field(gt=0)]
333
+ ]
334
+ ] = None,
335
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
336
+ _content_type: Optional[StrictStr] = None,
337
+ _headers: Optional[Dict[StrictStr, Any]] = None,
338
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
339
+ ) -> None:
340
+ """Remove custom dashboard
341
+
342
+
343
+ :param custom_dashboard_id: (required)
344
+ :type custom_dashboard_id: str
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._delete_custom_dashboard_serialize(
368
+ custom_dashboard_id=custom_dashboard_id,
369
+ _request_auth=_request_auth,
370
+ _content_type=_content_type,
371
+ _headers=_headers,
372
+ _host_index=_host_index
373
+ )
374
+
375
+ _response_types_map: Dict[str, Optional[str]] = {
376
+ '204': None,
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 delete_custom_dashboard_with_http_info(
391
+ self,
392
+ custom_dashboard_id: StrictStr,
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[None]:
406
+ """Remove custom dashboard
407
+
408
+
409
+ :param custom_dashboard_id: (required)
410
+ :type custom_dashboard_id: str
411
+ :param _request_timeout: timeout setting for this request. If one
412
+ number provided, it will be total request
413
+ timeout. It can also be a pair (tuple) of
414
+ (connection, read) timeouts.
415
+ :type _request_timeout: int, tuple(int, int), optional
416
+ :param _request_auth: set to override the auth_settings for an a single
417
+ request; this effectively ignores the
418
+ authentication in the spec for a single request.
419
+ :type _request_auth: dict, optional
420
+ :param _content_type: force content-type for the request.
421
+ :type _content_type: str, Optional
422
+ :param _headers: set to override the headers for a single
423
+ request; this effectively ignores the headers
424
+ in the spec for a single request.
425
+ :type _headers: dict, optional
426
+ :param _host_index: set to override the host_index for a single
427
+ request; this effectively ignores the host_index
428
+ in the spec for a single request.
429
+ :type _host_index: int, optional
430
+ :return: Returns the result object.
431
+ """ # noqa: E501
432
+
433
+ _param = self._delete_custom_dashboard_serialize(
434
+ custom_dashboard_id=custom_dashboard_id,
435
+ _request_auth=_request_auth,
436
+ _content_type=_content_type,
437
+ _headers=_headers,
438
+ _host_index=_host_index
439
+ )
440
+
441
+ _response_types_map: Dict[str, Optional[str]] = {
442
+ '204': None,
443
+ }
444
+ response_data = self.api_client.call_api(
445
+ *_param,
446
+ _request_timeout=_request_timeout
447
+ )
448
+ response_data.read()
449
+ return self.api_client.response_deserialize(
450
+ response_data=response_data,
451
+ response_types_map=_response_types_map,
452
+ )
453
+
454
+
455
+ @validate_call
456
+ def delete_custom_dashboard_without_preload_content(
457
+ self,
458
+ custom_dashboard_id: StrictStr,
459
+ _request_timeout: Union[
460
+ None,
461
+ Annotated[StrictFloat, Field(gt=0)],
462
+ Tuple[
463
+ Annotated[StrictFloat, Field(gt=0)],
464
+ Annotated[StrictFloat, Field(gt=0)]
465
+ ]
466
+ ] = None,
467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
468
+ _content_type: Optional[StrictStr] = None,
469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
471
+ ) -> RESTResponseType:
472
+ """Remove custom dashboard
473
+
474
+
475
+ :param custom_dashboard_id: (required)
476
+ :type custom_dashboard_id: str
477
+ :param _request_timeout: timeout setting for this request. If one
478
+ number provided, it will be total request
479
+ timeout. It can also be a pair (tuple) of
480
+ (connection, read) timeouts.
481
+ :type _request_timeout: int, tuple(int, int), optional
482
+ :param _request_auth: set to override the auth_settings for an a single
483
+ request; this effectively ignores the
484
+ authentication in the spec for a single request.
485
+ :type _request_auth: dict, optional
486
+ :param _content_type: force content-type for the request.
487
+ :type _content_type: str, Optional
488
+ :param _headers: set to override the headers for a single
489
+ request; this effectively ignores the headers
490
+ in the spec for a single request.
491
+ :type _headers: dict, optional
492
+ :param _host_index: set to override the host_index for a single
493
+ request; this effectively ignores the host_index
494
+ in the spec for a single request.
495
+ :type _host_index: int, optional
496
+ :return: Returns the result object.
497
+ """ # noqa: E501
498
+
499
+ _param = self._delete_custom_dashboard_serialize(
500
+ custom_dashboard_id=custom_dashboard_id,
501
+ _request_auth=_request_auth,
502
+ _content_type=_content_type,
503
+ _headers=_headers,
504
+ _host_index=_host_index
505
+ )
506
+
507
+ _response_types_map: Dict[str, Optional[str]] = {
508
+ '204': None,
509
+ }
510
+ response_data = self.api_client.call_api(
511
+ *_param,
512
+ _request_timeout=_request_timeout
513
+ )
514
+ return response_data.response
515
+
516
+
517
+ def _delete_custom_dashboard_serialize(
518
+ self,
519
+ custom_dashboard_id,
520
+ _request_auth,
521
+ _content_type,
522
+ _headers,
523
+ _host_index,
524
+ ) -> RequestSerialized:
525
+
526
+ _host = None
527
+
528
+ _collection_formats: Dict[str, str] = {
529
+ }
530
+
531
+ _path_params: Dict[str, str] = {}
532
+ _query_params: List[Tuple[str, str]] = []
533
+ _header_params: Dict[str, Optional[str]] = _headers or {}
534
+ _form_params: List[Tuple[str, str]] = []
535
+ _files: Dict[
536
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
537
+ ] = {}
538
+ _body_params: Optional[bytes] = None
539
+
540
+ # process the path parameters
541
+ if custom_dashboard_id is not None:
542
+ _path_params['customDashboardId'] = custom_dashboard_id
543
+ # process the query parameters
544
+ # process the header parameters
545
+ # process the form parameters
546
+ # process the body parameter
547
+
548
+
549
+
550
+
551
+ # authentication setting
552
+ _auth_settings: List[str] = [
553
+ 'ApiKeyAuth'
554
+ ]
555
+
556
+ return self.api_client.param_serialize(
557
+ method='DELETE',
558
+ resource_path='/api/custom-dashboard/{customDashboardId}',
559
+ path_params=_path_params,
560
+ query_params=_query_params,
561
+ header_params=_header_params,
562
+ body=_body_params,
563
+ post_params=_form_params,
564
+ files=_files,
565
+ auth_settings=_auth_settings,
566
+ collection_formats=_collection_formats,
567
+ _host=_host,
568
+ _request_auth=_request_auth
569
+ )
570
+
571
+
572
+
573
+
574
+ @validate_call
575
+ def get_custom_dashboard(
576
+ self,
577
+ custom_dashboard_id: Annotated[StrictStr, Field(description="customDashboardId")],
578
+ _request_timeout: Union[
579
+ None,
580
+ Annotated[StrictFloat, Field(gt=0)],
581
+ Tuple[
582
+ Annotated[StrictFloat, Field(gt=0)],
583
+ Annotated[StrictFloat, Field(gt=0)]
584
+ ]
585
+ ] = None,
586
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
587
+ _content_type: Optional[StrictStr] = None,
588
+ _headers: Optional[Dict[StrictStr, Any]] = None,
589
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
590
+ ) -> CustomDashboard:
591
+ """Get custom dashboard
592
+
593
+ Get all Custom Dashboard Info for specified customDashboardId.
594
+
595
+ :param custom_dashboard_id: customDashboardId (required)
596
+ :type custom_dashboard_id: str
597
+ :param _request_timeout: timeout setting for this request. If one
598
+ number provided, it will be total request
599
+ timeout. It can also be a pair (tuple) of
600
+ (connection, read) timeouts.
601
+ :type _request_timeout: int, tuple(int, int), optional
602
+ :param _request_auth: set to override the auth_settings for an a single
603
+ request; this effectively ignores the
604
+ authentication in the spec for a single request.
605
+ :type _request_auth: dict, optional
606
+ :param _content_type: force content-type for the request.
607
+ :type _content_type: str, Optional
608
+ :param _headers: set to override the headers for a single
609
+ request; this effectively ignores the headers
610
+ in the spec for a single request.
611
+ :type _headers: dict, optional
612
+ :param _host_index: set to override the host_index for a single
613
+ request; this effectively ignores the host_index
614
+ in the spec for a single request.
615
+ :type _host_index: int, optional
616
+ :return: Returns the result object.
617
+ """ # noqa: E501
618
+
619
+ _param = self._get_custom_dashboard_serialize(
620
+ custom_dashboard_id=custom_dashboard_id,
621
+ _request_auth=_request_auth,
622
+ _content_type=_content_type,
623
+ _headers=_headers,
624
+ _host_index=_host_index
625
+ )
626
+
627
+ _response_types_map: Dict[str, Optional[str]] = {
628
+ '200': "CustomDashboard",
629
+ }
630
+ response_data = self.api_client.call_api(
631
+ *_param,
632
+ _request_timeout=_request_timeout
633
+ )
634
+ response_data.read()
635
+ return self.api_client.response_deserialize(
636
+ response_data=response_data,
637
+ response_types_map=_response_types_map,
638
+ ).data
639
+
640
+
641
+ @validate_call
642
+ def get_custom_dashboard_with_http_info(
643
+ self,
644
+ custom_dashboard_id: Annotated[StrictStr, Field(description="customDashboardId")],
645
+ _request_timeout: Union[
646
+ None,
647
+ Annotated[StrictFloat, Field(gt=0)],
648
+ Tuple[
649
+ Annotated[StrictFloat, Field(gt=0)],
650
+ Annotated[StrictFloat, Field(gt=0)]
651
+ ]
652
+ ] = None,
653
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
654
+ _content_type: Optional[StrictStr] = None,
655
+ _headers: Optional[Dict[StrictStr, Any]] = None,
656
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
657
+ ) -> ApiResponse[CustomDashboard]:
658
+ """Get custom dashboard
659
+
660
+ Get all Custom Dashboard Info for specified customDashboardId.
661
+
662
+ :param custom_dashboard_id: customDashboardId (required)
663
+ :type custom_dashboard_id: str
664
+ :param _request_timeout: timeout setting for this request. If one
665
+ number provided, it will be total request
666
+ timeout. It can also be a pair (tuple) of
667
+ (connection, read) timeouts.
668
+ :type _request_timeout: int, tuple(int, int), optional
669
+ :param _request_auth: set to override the auth_settings for an a single
670
+ request; this effectively ignores the
671
+ authentication in the spec for a single request.
672
+ :type _request_auth: dict, optional
673
+ :param _content_type: force content-type for the request.
674
+ :type _content_type: str, Optional
675
+ :param _headers: set to override the headers for a single
676
+ request; this effectively ignores the headers
677
+ in the spec for a single request.
678
+ :type _headers: dict, optional
679
+ :param _host_index: set to override the host_index for a single
680
+ request; this effectively ignores the host_index
681
+ in the spec for a single request.
682
+ :type _host_index: int, optional
683
+ :return: Returns the result object.
684
+ """ # noqa: E501
685
+
686
+ _param = self._get_custom_dashboard_serialize(
687
+ custom_dashboard_id=custom_dashboard_id,
688
+ _request_auth=_request_auth,
689
+ _content_type=_content_type,
690
+ _headers=_headers,
691
+ _host_index=_host_index
692
+ )
693
+
694
+ _response_types_map: Dict[str, Optional[str]] = {
695
+ '200': "CustomDashboard",
696
+ }
697
+ response_data = self.api_client.call_api(
698
+ *_param,
699
+ _request_timeout=_request_timeout
700
+ )
701
+ response_data.read()
702
+ return self.api_client.response_deserialize(
703
+ response_data=response_data,
704
+ response_types_map=_response_types_map,
705
+ )
706
+
707
+
708
+ @validate_call
709
+ def get_custom_dashboard_without_preload_content(
710
+ self,
711
+ custom_dashboard_id: Annotated[StrictStr, Field(description="customDashboardId")],
712
+ _request_timeout: Union[
713
+ None,
714
+ Annotated[StrictFloat, Field(gt=0)],
715
+ Tuple[
716
+ Annotated[StrictFloat, Field(gt=0)],
717
+ Annotated[StrictFloat, Field(gt=0)]
718
+ ]
719
+ ] = None,
720
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
721
+ _content_type: Optional[StrictStr] = None,
722
+ _headers: Optional[Dict[StrictStr, Any]] = None,
723
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
724
+ ) -> RESTResponseType:
725
+ """Get custom dashboard
726
+
727
+ Get all Custom Dashboard Info for specified customDashboardId.
728
+
729
+ :param custom_dashboard_id: customDashboardId (required)
730
+ :type custom_dashboard_id: str
731
+ :param _request_timeout: timeout setting for this request. If one
732
+ number provided, it will be total request
733
+ timeout. It can also be a pair (tuple) of
734
+ (connection, read) timeouts.
735
+ :type _request_timeout: int, tuple(int, int), optional
736
+ :param _request_auth: set to override the auth_settings for an a single
737
+ request; this effectively ignores the
738
+ authentication in the spec for a single request.
739
+ :type _request_auth: dict, optional
740
+ :param _content_type: force content-type for the request.
741
+ :type _content_type: str, Optional
742
+ :param _headers: set to override the headers for a single
743
+ request; this effectively ignores the headers
744
+ in the spec for a single request.
745
+ :type _headers: dict, optional
746
+ :param _host_index: set to override the host_index for a single
747
+ request; this effectively ignores the host_index
748
+ in the spec for a single request.
749
+ :type _host_index: int, optional
750
+ :return: Returns the result object.
751
+ """ # noqa: E501
752
+
753
+ _param = self._get_custom_dashboard_serialize(
754
+ custom_dashboard_id=custom_dashboard_id,
755
+ _request_auth=_request_auth,
756
+ _content_type=_content_type,
757
+ _headers=_headers,
758
+ _host_index=_host_index
759
+ )
760
+
761
+ _response_types_map: Dict[str, Optional[str]] = {
762
+ '200': "CustomDashboard",
763
+ }
764
+ response_data = self.api_client.call_api(
765
+ *_param,
766
+ _request_timeout=_request_timeout
767
+ )
768
+ return response_data.response
769
+
770
+
771
+ def _get_custom_dashboard_serialize(
772
+ self,
773
+ custom_dashboard_id,
774
+ _request_auth,
775
+ _content_type,
776
+ _headers,
777
+ _host_index,
778
+ ) -> RequestSerialized:
779
+
780
+ _host = None
781
+
782
+ _collection_formats: Dict[str, str] = {
783
+ }
784
+
785
+ _path_params: Dict[str, str] = {}
786
+ _query_params: List[Tuple[str, str]] = []
787
+ _header_params: Dict[str, Optional[str]] = _headers or {}
788
+ _form_params: List[Tuple[str, str]] = []
789
+ _files: Dict[
790
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
791
+ ] = {}
792
+ _body_params: Optional[bytes] = None
793
+
794
+ # process the path parameters
795
+ if custom_dashboard_id is not None:
796
+ _path_params['customDashboardId'] = custom_dashboard_id
797
+ # process the query parameters
798
+ # process the header parameters
799
+ # process the form parameters
800
+ # process the body parameter
801
+
802
+
803
+ # set the HTTP header `Accept`
804
+ if 'Accept' not in _header_params:
805
+ _header_params['Accept'] = self.api_client.select_header_accept(
806
+ [
807
+ 'application/json'
808
+ ]
809
+ )
810
+
811
+
812
+ # authentication setting
813
+ _auth_settings: List[str] = [
814
+ 'ApiKeyAuth'
815
+ ]
816
+
817
+ return self.api_client.param_serialize(
818
+ method='GET',
819
+ resource_path='/api/custom-dashboard/{customDashboardId}',
820
+ path_params=_path_params,
821
+ query_params=_query_params,
822
+ header_params=_header_params,
823
+ body=_body_params,
824
+ post_params=_form_params,
825
+ files=_files,
826
+ auth_settings=_auth_settings,
827
+ collection_formats=_collection_formats,
828
+ _host=_host,
829
+ _request_auth=_request_auth
830
+ )
831
+
832
+
833
+
834
+
835
+ @validate_call
836
+ def get_custom_dashboards(
837
+ self,
838
+ query: Annotated[Optional[StrictStr], Field(description="query")] = None,
839
+ page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None,
840
+ page: Annotated[Optional[StrictInt], Field(description="page")] = None,
841
+ with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None,
842
+ _request_timeout: Union[
843
+ None,
844
+ Annotated[StrictFloat, Field(gt=0)],
845
+ Tuple[
846
+ Annotated[StrictFloat, Field(gt=0)],
847
+ Annotated[StrictFloat, Field(gt=0)]
848
+ ]
849
+ ] = None,
850
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
851
+ _content_type: Optional[StrictStr] = None,
852
+ _headers: Optional[Dict[StrictStr, Any]] = None,
853
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
854
+ ) -> List[CustomDashboardPreview]:
855
+ """Get accessible custom dashboards
856
+
857
+ Get all accessible custom dashboards details.
858
+
859
+ :param query: query
860
+ :type query: str
861
+ :param page_size: pageSize
862
+ :type page_size: int
863
+ :param page: page
864
+ :type page: int
865
+ :param with_total_hits: withTotalHits
866
+ :type with_total_hits: bool
867
+ :param _request_timeout: timeout setting for this request. If one
868
+ number provided, it will be total request
869
+ timeout. It can also be a pair (tuple) of
870
+ (connection, read) timeouts.
871
+ :type _request_timeout: int, tuple(int, int), optional
872
+ :param _request_auth: set to override the auth_settings for an a single
873
+ request; this effectively ignores the
874
+ authentication in the spec for a single request.
875
+ :type _request_auth: dict, optional
876
+ :param _content_type: force content-type for the request.
877
+ :type _content_type: str, Optional
878
+ :param _headers: set to override the headers for a single
879
+ request; this effectively ignores the headers
880
+ in the spec for a single request.
881
+ :type _headers: dict, optional
882
+ :param _host_index: set to override the host_index for a single
883
+ request; this effectively ignores the host_index
884
+ in the spec for a single request.
885
+ :type _host_index: int, optional
886
+ :return: Returns the result object.
887
+ """ # noqa: E501
888
+
889
+ _param = self._get_custom_dashboards_serialize(
890
+ query=query,
891
+ page_size=page_size,
892
+ page=page,
893
+ with_total_hits=with_total_hits,
894
+ _request_auth=_request_auth,
895
+ _content_type=_content_type,
896
+ _headers=_headers,
897
+ _host_index=_host_index
898
+ )
899
+
900
+ _response_types_map: Dict[str, Optional[str]] = {
901
+ '200': "List[CustomDashboardPreview]",
902
+ }
903
+ response_data = self.api_client.call_api(
904
+ *_param,
905
+ _request_timeout=_request_timeout
906
+ )
907
+ response_data.read()
908
+ return self.api_client.response_deserialize(
909
+ response_data=response_data,
910
+ response_types_map=_response_types_map,
911
+ ).data
912
+
913
+
914
+ @validate_call
915
+ def get_custom_dashboards_with_http_info(
916
+ self,
917
+ query: Annotated[Optional[StrictStr], Field(description="query")] = None,
918
+ page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None,
919
+ page: Annotated[Optional[StrictInt], Field(description="page")] = None,
920
+ with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None,
921
+ _request_timeout: Union[
922
+ None,
923
+ Annotated[StrictFloat, Field(gt=0)],
924
+ Tuple[
925
+ Annotated[StrictFloat, Field(gt=0)],
926
+ Annotated[StrictFloat, Field(gt=0)]
927
+ ]
928
+ ] = None,
929
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
930
+ _content_type: Optional[StrictStr] = None,
931
+ _headers: Optional[Dict[StrictStr, Any]] = None,
932
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
933
+ ) -> ApiResponse[List[CustomDashboardPreview]]:
934
+ """Get accessible custom dashboards
935
+
936
+ Get all accessible custom dashboards details.
937
+
938
+ :param query: query
939
+ :type query: str
940
+ :param page_size: pageSize
941
+ :type page_size: int
942
+ :param page: page
943
+ :type page: int
944
+ :param with_total_hits: withTotalHits
945
+ :type with_total_hits: bool
946
+ :param _request_timeout: timeout setting for this request. If one
947
+ number provided, it will be total request
948
+ timeout. It can also be a pair (tuple) of
949
+ (connection, read) timeouts.
950
+ :type _request_timeout: int, tuple(int, int), optional
951
+ :param _request_auth: set to override the auth_settings for an a single
952
+ request; this effectively ignores the
953
+ authentication in the spec for a single request.
954
+ :type _request_auth: dict, optional
955
+ :param _content_type: force content-type for the request.
956
+ :type _content_type: str, Optional
957
+ :param _headers: set to override the headers for a single
958
+ request; this effectively ignores the headers
959
+ in the spec for a single request.
960
+ :type _headers: dict, optional
961
+ :param _host_index: set to override the host_index for a single
962
+ request; this effectively ignores the host_index
963
+ in the spec for a single request.
964
+ :type _host_index: int, optional
965
+ :return: Returns the result object.
966
+ """ # noqa: E501
967
+
968
+ _param = self._get_custom_dashboards_serialize(
969
+ query=query,
970
+ page_size=page_size,
971
+ page=page,
972
+ with_total_hits=with_total_hits,
973
+ _request_auth=_request_auth,
974
+ _content_type=_content_type,
975
+ _headers=_headers,
976
+ _host_index=_host_index
977
+ )
978
+
979
+ _response_types_map: Dict[str, Optional[str]] = {
980
+ '200': "List[CustomDashboardPreview]",
981
+ }
982
+ response_data = self.api_client.call_api(
983
+ *_param,
984
+ _request_timeout=_request_timeout
985
+ )
986
+ response_data.read()
987
+ return self.api_client.response_deserialize(
988
+ response_data=response_data,
989
+ response_types_map=_response_types_map,
990
+ )
991
+
992
+
993
+ @validate_call
994
+ def get_custom_dashboards_without_preload_content(
995
+ self,
996
+ query: Annotated[Optional[StrictStr], Field(description="query")] = None,
997
+ page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None,
998
+ page: Annotated[Optional[StrictInt], Field(description="page")] = None,
999
+ with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None,
1000
+ _request_timeout: Union[
1001
+ None,
1002
+ Annotated[StrictFloat, Field(gt=0)],
1003
+ Tuple[
1004
+ Annotated[StrictFloat, Field(gt=0)],
1005
+ Annotated[StrictFloat, Field(gt=0)]
1006
+ ]
1007
+ ] = None,
1008
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1009
+ _content_type: Optional[StrictStr] = None,
1010
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1011
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1012
+ ) -> RESTResponseType:
1013
+ """Get accessible custom dashboards
1014
+
1015
+ Get all accessible custom dashboards details.
1016
+
1017
+ :param query: query
1018
+ :type query: str
1019
+ :param page_size: pageSize
1020
+ :type page_size: int
1021
+ :param page: page
1022
+ :type page: int
1023
+ :param with_total_hits: withTotalHits
1024
+ :type with_total_hits: bool
1025
+ :param _request_timeout: timeout setting for this request. If one
1026
+ number provided, it will be total request
1027
+ timeout. It can also be a pair (tuple) of
1028
+ (connection, read) timeouts.
1029
+ :type _request_timeout: int, tuple(int, int), optional
1030
+ :param _request_auth: set to override the auth_settings for an a single
1031
+ request; this effectively ignores the
1032
+ authentication in the spec for a single request.
1033
+ :type _request_auth: dict, optional
1034
+ :param _content_type: force content-type for the request.
1035
+ :type _content_type: str, Optional
1036
+ :param _headers: set to override the headers for a single
1037
+ request; this effectively ignores the headers
1038
+ in the spec for a single request.
1039
+ :type _headers: dict, optional
1040
+ :param _host_index: set to override the host_index for a single
1041
+ request; this effectively ignores the host_index
1042
+ in the spec for a single request.
1043
+ :type _host_index: int, optional
1044
+ :return: Returns the result object.
1045
+ """ # noqa: E501
1046
+
1047
+ _param = self._get_custom_dashboards_serialize(
1048
+ query=query,
1049
+ page_size=page_size,
1050
+ page=page,
1051
+ with_total_hits=with_total_hits,
1052
+ _request_auth=_request_auth,
1053
+ _content_type=_content_type,
1054
+ _headers=_headers,
1055
+ _host_index=_host_index
1056
+ )
1057
+
1058
+ _response_types_map: Dict[str, Optional[str]] = {
1059
+ '200': "List[CustomDashboardPreview]",
1060
+ }
1061
+ response_data = self.api_client.call_api(
1062
+ *_param,
1063
+ _request_timeout=_request_timeout
1064
+ )
1065
+ return response_data.response
1066
+
1067
+
1068
+ def _get_custom_dashboards_serialize(
1069
+ self,
1070
+ query,
1071
+ page_size,
1072
+ page,
1073
+ with_total_hits,
1074
+ _request_auth,
1075
+ _content_type,
1076
+ _headers,
1077
+ _host_index,
1078
+ ) -> RequestSerialized:
1079
+
1080
+ _host = None
1081
+
1082
+ _collection_formats: Dict[str, str] = {
1083
+ }
1084
+
1085
+ _path_params: Dict[str, str] = {}
1086
+ _query_params: List[Tuple[str, str]] = []
1087
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1088
+ _form_params: List[Tuple[str, str]] = []
1089
+ _files: Dict[
1090
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1091
+ ] = {}
1092
+ _body_params: Optional[bytes] = None
1093
+
1094
+ # process the path parameters
1095
+ # process the query parameters
1096
+ if query is not None:
1097
+
1098
+ _query_params.append(('query', query))
1099
+
1100
+ if page_size is not None:
1101
+
1102
+ _query_params.append(('pageSize', page_size))
1103
+
1104
+ if page is not None:
1105
+
1106
+ _query_params.append(('page', page))
1107
+
1108
+ if with_total_hits is not None:
1109
+
1110
+ _query_params.append(('withTotalHits', with_total_hits))
1111
+
1112
+ # process the header parameters
1113
+ # process the form parameters
1114
+ # process the body parameter
1115
+
1116
+
1117
+ # set the HTTP header `Accept`
1118
+ if 'Accept' not in _header_params:
1119
+ _header_params['Accept'] = self.api_client.select_header_accept(
1120
+ [
1121
+ 'application/json'
1122
+ ]
1123
+ )
1124
+
1125
+
1126
+ # authentication setting
1127
+ _auth_settings: List[str] = [
1128
+ 'ApiKeyAuth'
1129
+ ]
1130
+
1131
+ return self.api_client.param_serialize(
1132
+ method='GET',
1133
+ resource_path='/api/custom-dashboard',
1134
+ path_params=_path_params,
1135
+ query_params=_query_params,
1136
+ header_params=_header_params,
1137
+ body=_body_params,
1138
+ post_params=_form_params,
1139
+ files=_files,
1140
+ auth_settings=_auth_settings,
1141
+ collection_formats=_collection_formats,
1142
+ _host=_host,
1143
+ _request_auth=_request_auth
1144
+ )
1145
+
1146
+
1147
+
1148
+
1149
+ @validate_call
1150
+ def get_shareable_api_tokens(
1151
+ self,
1152
+ _request_timeout: Union[
1153
+ None,
1154
+ Annotated[StrictFloat, Field(gt=0)],
1155
+ Tuple[
1156
+ Annotated[StrictFloat, Field(gt=0)],
1157
+ Annotated[StrictFloat, Field(gt=0)]
1158
+ ]
1159
+ ] = None,
1160
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1161
+ _content_type: Optional[StrictStr] = None,
1162
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1163
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1164
+ ) -> List[DashboardApiToken]:
1165
+ """Get all API tokens.
1166
+
1167
+ Get all API tokens that have access to shareable custom dashboards.
1168
+
1169
+ :param _request_timeout: timeout setting for this request. If one
1170
+ number provided, it will be total request
1171
+ timeout. It can also be a pair (tuple) of
1172
+ (connection, read) timeouts.
1173
+ :type _request_timeout: int, tuple(int, int), optional
1174
+ :param _request_auth: set to override the auth_settings for an a single
1175
+ request; this effectively ignores the
1176
+ authentication in the spec for a single request.
1177
+ :type _request_auth: dict, optional
1178
+ :param _content_type: force content-type for the request.
1179
+ :type _content_type: str, Optional
1180
+ :param _headers: set to override the headers for a single
1181
+ request; this effectively ignores the headers
1182
+ in the spec for a single request.
1183
+ :type _headers: dict, optional
1184
+ :param _host_index: set to override the host_index for a single
1185
+ request; this effectively ignores the host_index
1186
+ in the spec for a single request.
1187
+ :type _host_index: int, optional
1188
+ :return: Returns the result object.
1189
+ """ # noqa: E501
1190
+
1191
+ _param = self._get_shareable_api_tokens_serialize(
1192
+ _request_auth=_request_auth,
1193
+ _content_type=_content_type,
1194
+ _headers=_headers,
1195
+ _host_index=_host_index
1196
+ )
1197
+
1198
+ _response_types_map: Dict[str, Optional[str]] = {
1199
+ '200': "List[DashboardApiToken]",
1200
+ }
1201
+ response_data = self.api_client.call_api(
1202
+ *_param,
1203
+ _request_timeout=_request_timeout
1204
+ )
1205
+ response_data.read()
1206
+ return self.api_client.response_deserialize(
1207
+ response_data=response_data,
1208
+ response_types_map=_response_types_map,
1209
+ ).data
1210
+
1211
+
1212
+ @validate_call
1213
+ def get_shareable_api_tokens_with_http_info(
1214
+ self,
1215
+ _request_timeout: Union[
1216
+ None,
1217
+ Annotated[StrictFloat, Field(gt=0)],
1218
+ Tuple[
1219
+ Annotated[StrictFloat, Field(gt=0)],
1220
+ Annotated[StrictFloat, Field(gt=0)]
1221
+ ]
1222
+ ] = None,
1223
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1224
+ _content_type: Optional[StrictStr] = None,
1225
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1226
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1227
+ ) -> ApiResponse[List[DashboardApiToken]]:
1228
+ """Get all API tokens.
1229
+
1230
+ Get all API tokens that have access to shareable custom dashboards.
1231
+
1232
+ :param _request_timeout: timeout setting for this request. If one
1233
+ number provided, it will be total request
1234
+ timeout. It can also be a pair (tuple) of
1235
+ (connection, read) timeouts.
1236
+ :type _request_timeout: int, tuple(int, int), optional
1237
+ :param _request_auth: set to override the auth_settings for an a single
1238
+ request; this effectively ignores the
1239
+ authentication in the spec for a single request.
1240
+ :type _request_auth: dict, optional
1241
+ :param _content_type: force content-type for the request.
1242
+ :type _content_type: str, Optional
1243
+ :param _headers: set to override the headers for a single
1244
+ request; this effectively ignores the headers
1245
+ in the spec for a single request.
1246
+ :type _headers: dict, optional
1247
+ :param _host_index: set to override the host_index for a single
1248
+ request; this effectively ignores the host_index
1249
+ in the spec for a single request.
1250
+ :type _host_index: int, optional
1251
+ :return: Returns the result object.
1252
+ """ # noqa: E501
1253
+
1254
+ _param = self._get_shareable_api_tokens_serialize(
1255
+ _request_auth=_request_auth,
1256
+ _content_type=_content_type,
1257
+ _headers=_headers,
1258
+ _host_index=_host_index
1259
+ )
1260
+
1261
+ _response_types_map: Dict[str, Optional[str]] = {
1262
+ '200': "List[DashboardApiToken]",
1263
+ }
1264
+ response_data = self.api_client.call_api(
1265
+ *_param,
1266
+ _request_timeout=_request_timeout
1267
+ )
1268
+ response_data.read()
1269
+ return self.api_client.response_deserialize(
1270
+ response_data=response_data,
1271
+ response_types_map=_response_types_map,
1272
+ )
1273
+
1274
+
1275
+ @validate_call
1276
+ def get_shareable_api_tokens_without_preload_content(
1277
+ self,
1278
+ _request_timeout: Union[
1279
+ None,
1280
+ Annotated[StrictFloat, Field(gt=0)],
1281
+ Tuple[
1282
+ Annotated[StrictFloat, Field(gt=0)],
1283
+ Annotated[StrictFloat, Field(gt=0)]
1284
+ ]
1285
+ ] = None,
1286
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1287
+ _content_type: Optional[StrictStr] = None,
1288
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1289
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
+ ) -> RESTResponseType:
1291
+ """Get all API tokens.
1292
+
1293
+ Get all API tokens that have access to shareable custom dashboards.
1294
+
1295
+ :param _request_timeout: timeout setting for this request. If one
1296
+ number provided, it will be total request
1297
+ timeout. It can also be a pair (tuple) of
1298
+ (connection, read) timeouts.
1299
+ :type _request_timeout: int, tuple(int, int), optional
1300
+ :param _request_auth: set to override the auth_settings for an a single
1301
+ request; this effectively ignores the
1302
+ authentication in the spec for a single request.
1303
+ :type _request_auth: dict, optional
1304
+ :param _content_type: force content-type for the request.
1305
+ :type _content_type: str, Optional
1306
+ :param _headers: set to override the headers for a single
1307
+ request; this effectively ignores the headers
1308
+ in the spec for a single request.
1309
+ :type _headers: dict, optional
1310
+ :param _host_index: set to override the host_index for a single
1311
+ request; this effectively ignores the host_index
1312
+ in the spec for a single request.
1313
+ :type _host_index: int, optional
1314
+ :return: Returns the result object.
1315
+ """ # noqa: E501
1316
+
1317
+ _param = self._get_shareable_api_tokens_serialize(
1318
+ _request_auth=_request_auth,
1319
+ _content_type=_content_type,
1320
+ _headers=_headers,
1321
+ _host_index=_host_index
1322
+ )
1323
+
1324
+ _response_types_map: Dict[str, Optional[str]] = {
1325
+ '200': "List[DashboardApiToken]",
1326
+ }
1327
+ response_data = self.api_client.call_api(
1328
+ *_param,
1329
+ _request_timeout=_request_timeout
1330
+ )
1331
+ return response_data.response
1332
+
1333
+
1334
+ def _get_shareable_api_tokens_serialize(
1335
+ self,
1336
+ _request_auth,
1337
+ _content_type,
1338
+ _headers,
1339
+ _host_index,
1340
+ ) -> RequestSerialized:
1341
+
1342
+ _host = None
1343
+
1344
+ _collection_formats: Dict[str, str] = {
1345
+ }
1346
+
1347
+ _path_params: Dict[str, str] = {}
1348
+ _query_params: List[Tuple[str, str]] = []
1349
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1350
+ _form_params: List[Tuple[str, str]] = []
1351
+ _files: Dict[
1352
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1353
+ ] = {}
1354
+ _body_params: Optional[bytes] = None
1355
+
1356
+ # process the path parameters
1357
+ # process the query parameters
1358
+ # process the header parameters
1359
+ # process the form parameters
1360
+ # process the body parameter
1361
+
1362
+
1363
+ # set the HTTP header `Accept`
1364
+ if 'Accept' not in _header_params:
1365
+ _header_params['Accept'] = self.api_client.select_header_accept(
1366
+ [
1367
+ 'application/json'
1368
+ ]
1369
+ )
1370
+
1371
+
1372
+ # authentication setting
1373
+ _auth_settings: List[str] = [
1374
+ 'ApiKeyAuth'
1375
+ ]
1376
+
1377
+ return self.api_client.param_serialize(
1378
+ method='GET',
1379
+ resource_path='/api/custom-dashboard/shareable-api-tokens',
1380
+ path_params=_path_params,
1381
+ query_params=_query_params,
1382
+ header_params=_header_params,
1383
+ body=_body_params,
1384
+ post_params=_form_params,
1385
+ files=_files,
1386
+ auth_settings=_auth_settings,
1387
+ collection_formats=_collection_formats,
1388
+ _host=_host,
1389
+ _request_auth=_request_auth
1390
+ )
1391
+
1392
+
1393
+
1394
+
1395
+ @validate_call
1396
+ def get_shareable_users(
1397
+ self,
1398
+ _request_timeout: Union[
1399
+ None,
1400
+ Annotated[StrictFloat, Field(gt=0)],
1401
+ Tuple[
1402
+ Annotated[StrictFloat, Field(gt=0)],
1403
+ Annotated[StrictFloat, Field(gt=0)]
1404
+ ]
1405
+ ] = None,
1406
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1407
+ _content_type: Optional[StrictStr] = None,
1408
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1409
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1410
+ ) -> List[UserBasicResult]:
1411
+ """Get all users (without invitations).
1412
+
1413
+ Get all users (without invitations) that have access to shareable custom dashboards.
1414
+
1415
+ :param _request_timeout: timeout setting for this request. If one
1416
+ number provided, it will be total request
1417
+ timeout. It can also be a pair (tuple) of
1418
+ (connection, read) timeouts.
1419
+ :type _request_timeout: int, tuple(int, int), optional
1420
+ :param _request_auth: set to override the auth_settings for an a single
1421
+ request; this effectively ignores the
1422
+ authentication in the spec for a single request.
1423
+ :type _request_auth: dict, optional
1424
+ :param _content_type: force content-type for the request.
1425
+ :type _content_type: str, Optional
1426
+ :param _headers: set to override the headers for a single
1427
+ request; this effectively ignores the headers
1428
+ in the spec for a single request.
1429
+ :type _headers: dict, optional
1430
+ :param _host_index: set to override the host_index for a single
1431
+ request; this effectively ignores the host_index
1432
+ in the spec for a single request.
1433
+ :type _host_index: int, optional
1434
+ :return: Returns the result object.
1435
+ """ # noqa: E501
1436
+
1437
+ _param = self._get_shareable_users_serialize(
1438
+ _request_auth=_request_auth,
1439
+ _content_type=_content_type,
1440
+ _headers=_headers,
1441
+ _host_index=_host_index
1442
+ )
1443
+
1444
+ _response_types_map: Dict[str, Optional[str]] = {
1445
+ '200': "List[UserBasicResult]",
1446
+ }
1447
+ response_data = self.api_client.call_api(
1448
+ *_param,
1449
+ _request_timeout=_request_timeout
1450
+ )
1451
+ response_data.read()
1452
+ return self.api_client.response_deserialize(
1453
+ response_data=response_data,
1454
+ response_types_map=_response_types_map,
1455
+ ).data
1456
+
1457
+
1458
+ @validate_call
1459
+ def get_shareable_users_with_http_info(
1460
+ self,
1461
+ _request_timeout: Union[
1462
+ None,
1463
+ Annotated[StrictFloat, Field(gt=0)],
1464
+ Tuple[
1465
+ Annotated[StrictFloat, Field(gt=0)],
1466
+ Annotated[StrictFloat, Field(gt=0)]
1467
+ ]
1468
+ ] = None,
1469
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1470
+ _content_type: Optional[StrictStr] = None,
1471
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1472
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1473
+ ) -> ApiResponse[List[UserBasicResult]]:
1474
+ """Get all users (without invitations).
1475
+
1476
+ Get all users (without invitations) that have access to shareable custom dashboards.
1477
+
1478
+ :param _request_timeout: timeout setting for this request. If one
1479
+ number provided, it will be total request
1480
+ timeout. It can also be a pair (tuple) of
1481
+ (connection, read) timeouts.
1482
+ :type _request_timeout: int, tuple(int, int), optional
1483
+ :param _request_auth: set to override the auth_settings for an a single
1484
+ request; this effectively ignores the
1485
+ authentication in the spec for a single request.
1486
+ :type _request_auth: dict, optional
1487
+ :param _content_type: force content-type for the request.
1488
+ :type _content_type: str, Optional
1489
+ :param _headers: set to override the headers for a single
1490
+ request; this effectively ignores the headers
1491
+ in the spec for a single request.
1492
+ :type _headers: dict, optional
1493
+ :param _host_index: set to override the host_index for a single
1494
+ request; this effectively ignores the host_index
1495
+ in the spec for a single request.
1496
+ :type _host_index: int, optional
1497
+ :return: Returns the result object.
1498
+ """ # noqa: E501
1499
+
1500
+ _param = self._get_shareable_users_serialize(
1501
+ _request_auth=_request_auth,
1502
+ _content_type=_content_type,
1503
+ _headers=_headers,
1504
+ _host_index=_host_index
1505
+ )
1506
+
1507
+ _response_types_map: Dict[str, Optional[str]] = {
1508
+ '200': "List[UserBasicResult]",
1509
+ }
1510
+ response_data = self.api_client.call_api(
1511
+ *_param,
1512
+ _request_timeout=_request_timeout
1513
+ )
1514
+ response_data.read()
1515
+ return self.api_client.response_deserialize(
1516
+ response_data=response_data,
1517
+ response_types_map=_response_types_map,
1518
+ )
1519
+
1520
+
1521
+ @validate_call
1522
+ def get_shareable_users_without_preload_content(
1523
+ self,
1524
+ _request_timeout: Union[
1525
+ None,
1526
+ Annotated[StrictFloat, Field(gt=0)],
1527
+ Tuple[
1528
+ Annotated[StrictFloat, Field(gt=0)],
1529
+ Annotated[StrictFloat, Field(gt=0)]
1530
+ ]
1531
+ ] = None,
1532
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1533
+ _content_type: Optional[StrictStr] = None,
1534
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1535
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1536
+ ) -> RESTResponseType:
1537
+ """Get all users (without invitations).
1538
+
1539
+ Get all users (without invitations) that have access to shareable custom dashboards.
1540
+
1541
+ :param _request_timeout: timeout setting for this request. If one
1542
+ number provided, it will be total request
1543
+ timeout. It can also be a pair (tuple) of
1544
+ (connection, read) timeouts.
1545
+ :type _request_timeout: int, tuple(int, int), optional
1546
+ :param _request_auth: set to override the auth_settings for an a single
1547
+ request; this effectively ignores the
1548
+ authentication in the spec for a single request.
1549
+ :type _request_auth: dict, optional
1550
+ :param _content_type: force content-type for the request.
1551
+ :type _content_type: str, Optional
1552
+ :param _headers: set to override the headers for a single
1553
+ request; this effectively ignores the headers
1554
+ in the spec for a single request.
1555
+ :type _headers: dict, optional
1556
+ :param _host_index: set to override the host_index for a single
1557
+ request; this effectively ignores the host_index
1558
+ in the spec for a single request.
1559
+ :type _host_index: int, optional
1560
+ :return: Returns the result object.
1561
+ """ # noqa: E501
1562
+
1563
+ _param = self._get_shareable_users_serialize(
1564
+ _request_auth=_request_auth,
1565
+ _content_type=_content_type,
1566
+ _headers=_headers,
1567
+ _host_index=_host_index
1568
+ )
1569
+
1570
+ _response_types_map: Dict[str, Optional[str]] = {
1571
+ '200': "List[UserBasicResult]",
1572
+ }
1573
+ response_data = self.api_client.call_api(
1574
+ *_param,
1575
+ _request_timeout=_request_timeout
1576
+ )
1577
+ return response_data.response
1578
+
1579
+
1580
+ def _get_shareable_users_serialize(
1581
+ self,
1582
+ _request_auth,
1583
+ _content_type,
1584
+ _headers,
1585
+ _host_index,
1586
+ ) -> RequestSerialized:
1587
+
1588
+ _host = None
1589
+
1590
+ _collection_formats: Dict[str, str] = {
1591
+ }
1592
+
1593
+ _path_params: Dict[str, str] = {}
1594
+ _query_params: List[Tuple[str, str]] = []
1595
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1596
+ _form_params: List[Tuple[str, str]] = []
1597
+ _files: Dict[
1598
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1599
+ ] = {}
1600
+ _body_params: Optional[bytes] = None
1601
+
1602
+ # process the path parameters
1603
+ # process the query parameters
1604
+ # process the header parameters
1605
+ # process the form parameters
1606
+ # process the body parameter
1607
+
1608
+
1609
+ # set the HTTP header `Accept`
1610
+ if 'Accept' not in _header_params:
1611
+ _header_params['Accept'] = self.api_client.select_header_accept(
1612
+ [
1613
+ 'application/json'
1614
+ ]
1615
+ )
1616
+
1617
+
1618
+ # authentication setting
1619
+ _auth_settings: List[str] = [
1620
+ 'ApiKeyAuth'
1621
+ ]
1622
+
1623
+ return self.api_client.param_serialize(
1624
+ method='GET',
1625
+ resource_path='/api/custom-dashboard/shareable-users',
1626
+ path_params=_path_params,
1627
+ query_params=_query_params,
1628
+ header_params=_header_params,
1629
+ body=_body_params,
1630
+ post_params=_form_params,
1631
+ files=_files,
1632
+ auth_settings=_auth_settings,
1633
+ collection_formats=_collection_formats,
1634
+ _host=_host,
1635
+ _request_auth=_request_auth
1636
+ )
1637
+
1638
+
1639
+
1640
+
1641
+ @validate_call
1642
+ def update_custom_dashboard(
1643
+ self,
1644
+ custom_dashboard_id: StrictStr,
1645
+ custom_dashboard: Optional[CustomDashboard] = None,
1646
+ _request_timeout: Union[
1647
+ None,
1648
+ Annotated[StrictFloat, Field(gt=0)],
1649
+ Tuple[
1650
+ Annotated[StrictFloat, Field(gt=0)],
1651
+ Annotated[StrictFloat, Field(gt=0)]
1652
+ ]
1653
+ ] = None,
1654
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1655
+ _content_type: Optional[StrictStr] = None,
1656
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1657
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1658
+ ) -> CustomDashboard:
1659
+ """Update custom dashboard
1660
+
1661
+
1662
+ :param custom_dashboard_id: (required)
1663
+ :type custom_dashboard_id: str
1664
+ :param custom_dashboard:
1665
+ :type custom_dashboard: CustomDashboard
1666
+ :param _request_timeout: timeout setting for this request. If one
1667
+ number provided, it will be total request
1668
+ timeout. It can also be a pair (tuple) of
1669
+ (connection, read) timeouts.
1670
+ :type _request_timeout: int, tuple(int, int), optional
1671
+ :param _request_auth: set to override the auth_settings for an a single
1672
+ request; this effectively ignores the
1673
+ authentication in the spec for a single request.
1674
+ :type _request_auth: dict, optional
1675
+ :param _content_type: force content-type for the request.
1676
+ :type _content_type: str, Optional
1677
+ :param _headers: set to override the headers for a single
1678
+ request; this effectively ignores the headers
1679
+ in the spec for a single request.
1680
+ :type _headers: dict, optional
1681
+ :param _host_index: set to override the host_index for a single
1682
+ request; this effectively ignores the host_index
1683
+ in the spec for a single request.
1684
+ :type _host_index: int, optional
1685
+ :return: Returns the result object.
1686
+ """ # noqa: E501
1687
+
1688
+ _param = self._update_custom_dashboard_serialize(
1689
+ custom_dashboard_id=custom_dashboard_id,
1690
+ custom_dashboard=custom_dashboard,
1691
+ _request_auth=_request_auth,
1692
+ _content_type=_content_type,
1693
+ _headers=_headers,
1694
+ _host_index=_host_index
1695
+ )
1696
+
1697
+ _response_types_map: Dict[str, Optional[str]] = {
1698
+ '200': "CustomDashboard",
1699
+ '403': None,
1700
+ '422': None,
1701
+ }
1702
+ response_data = self.api_client.call_api(
1703
+ *_param,
1704
+ _request_timeout=_request_timeout
1705
+ )
1706
+ response_data.read()
1707
+ return self.api_client.response_deserialize(
1708
+ response_data=response_data,
1709
+ response_types_map=_response_types_map,
1710
+ ).data
1711
+
1712
+
1713
+ @validate_call
1714
+ def update_custom_dashboard_with_http_info(
1715
+ self,
1716
+ custom_dashboard_id: StrictStr,
1717
+ custom_dashboard: Optional[CustomDashboard] = None,
1718
+ _request_timeout: Union[
1719
+ None,
1720
+ Annotated[StrictFloat, Field(gt=0)],
1721
+ Tuple[
1722
+ Annotated[StrictFloat, Field(gt=0)],
1723
+ Annotated[StrictFloat, Field(gt=0)]
1724
+ ]
1725
+ ] = None,
1726
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1727
+ _content_type: Optional[StrictStr] = None,
1728
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1729
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1730
+ ) -> ApiResponse[CustomDashboard]:
1731
+ """Update custom dashboard
1732
+
1733
+
1734
+ :param custom_dashboard_id: (required)
1735
+ :type custom_dashboard_id: str
1736
+ :param custom_dashboard:
1737
+ :type custom_dashboard: CustomDashboard
1738
+ :param _request_timeout: timeout setting for this request. If one
1739
+ number provided, it will be total request
1740
+ timeout. It can also be a pair (tuple) of
1741
+ (connection, read) timeouts.
1742
+ :type _request_timeout: int, tuple(int, int), optional
1743
+ :param _request_auth: set to override the auth_settings for an a single
1744
+ request; this effectively ignores the
1745
+ authentication in the spec for a single request.
1746
+ :type _request_auth: dict, optional
1747
+ :param _content_type: force content-type for the request.
1748
+ :type _content_type: str, Optional
1749
+ :param _headers: set to override the headers for a single
1750
+ request; this effectively ignores the headers
1751
+ in the spec for a single request.
1752
+ :type _headers: dict, optional
1753
+ :param _host_index: set to override the host_index for a single
1754
+ request; this effectively ignores the host_index
1755
+ in the spec for a single request.
1756
+ :type _host_index: int, optional
1757
+ :return: Returns the result object.
1758
+ """ # noqa: E501
1759
+
1760
+ _param = self._update_custom_dashboard_serialize(
1761
+ custom_dashboard_id=custom_dashboard_id,
1762
+ custom_dashboard=custom_dashboard,
1763
+ _request_auth=_request_auth,
1764
+ _content_type=_content_type,
1765
+ _headers=_headers,
1766
+ _host_index=_host_index
1767
+ )
1768
+
1769
+ _response_types_map: Dict[str, Optional[str]] = {
1770
+ '200': "CustomDashboard",
1771
+ '403': None,
1772
+ '422': None,
1773
+ }
1774
+ response_data = self.api_client.call_api(
1775
+ *_param,
1776
+ _request_timeout=_request_timeout
1777
+ )
1778
+ response_data.read()
1779
+ return self.api_client.response_deserialize(
1780
+ response_data=response_data,
1781
+ response_types_map=_response_types_map,
1782
+ )
1783
+
1784
+
1785
+ @validate_call
1786
+ def update_custom_dashboard_without_preload_content(
1787
+ self,
1788
+ custom_dashboard_id: StrictStr,
1789
+ custom_dashboard: Optional[CustomDashboard] = None,
1790
+ _request_timeout: Union[
1791
+ None,
1792
+ Annotated[StrictFloat, Field(gt=0)],
1793
+ Tuple[
1794
+ Annotated[StrictFloat, Field(gt=0)],
1795
+ Annotated[StrictFloat, Field(gt=0)]
1796
+ ]
1797
+ ] = None,
1798
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1799
+ _content_type: Optional[StrictStr] = None,
1800
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1801
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1802
+ ) -> RESTResponseType:
1803
+ """Update custom dashboard
1804
+
1805
+
1806
+ :param custom_dashboard_id: (required)
1807
+ :type custom_dashboard_id: str
1808
+ :param custom_dashboard:
1809
+ :type custom_dashboard: CustomDashboard
1810
+ :param _request_timeout: timeout setting for this request. If one
1811
+ number provided, it will be total request
1812
+ timeout. It can also be a pair (tuple) of
1813
+ (connection, read) timeouts.
1814
+ :type _request_timeout: int, tuple(int, int), optional
1815
+ :param _request_auth: set to override the auth_settings for an a single
1816
+ request; this effectively ignores the
1817
+ authentication in the spec for a single request.
1818
+ :type _request_auth: dict, optional
1819
+ :param _content_type: force content-type for the request.
1820
+ :type _content_type: str, Optional
1821
+ :param _headers: set to override the headers for a single
1822
+ request; this effectively ignores the headers
1823
+ in the spec for a single request.
1824
+ :type _headers: dict, optional
1825
+ :param _host_index: set to override the host_index for a single
1826
+ request; this effectively ignores the host_index
1827
+ in the spec for a single request.
1828
+ :type _host_index: int, optional
1829
+ :return: Returns the result object.
1830
+ """ # noqa: E501
1831
+
1832
+ _param = self._update_custom_dashboard_serialize(
1833
+ custom_dashboard_id=custom_dashboard_id,
1834
+ custom_dashboard=custom_dashboard,
1835
+ _request_auth=_request_auth,
1836
+ _content_type=_content_type,
1837
+ _headers=_headers,
1838
+ _host_index=_host_index
1839
+ )
1840
+
1841
+ _response_types_map: Dict[str, Optional[str]] = {
1842
+ '200': "CustomDashboard",
1843
+ '403': None,
1844
+ '422': None,
1845
+ }
1846
+ response_data = self.api_client.call_api(
1847
+ *_param,
1848
+ _request_timeout=_request_timeout
1849
+ )
1850
+ return response_data.response
1851
+
1852
+
1853
+ def _update_custom_dashboard_serialize(
1854
+ self,
1855
+ custom_dashboard_id,
1856
+ custom_dashboard,
1857
+ _request_auth,
1858
+ _content_type,
1859
+ _headers,
1860
+ _host_index,
1861
+ ) -> RequestSerialized:
1862
+
1863
+ _host = None
1864
+
1865
+ _collection_formats: Dict[str, str] = {
1866
+ }
1867
+
1868
+ _path_params: Dict[str, str] = {}
1869
+ _query_params: List[Tuple[str, str]] = []
1870
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1871
+ _form_params: List[Tuple[str, str]] = []
1872
+ _files: Dict[
1873
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1874
+ ] = {}
1875
+ _body_params: Optional[bytes] = None
1876
+
1877
+ # process the path parameters
1878
+ if custom_dashboard_id is not None:
1879
+ _path_params['customDashboardId'] = custom_dashboard_id
1880
+ # process the query parameters
1881
+ # process the header parameters
1882
+ # process the form parameters
1883
+ # process the body parameter
1884
+ if custom_dashboard is not None:
1885
+ _body_params = custom_dashboard
1886
+
1887
+
1888
+ # set the HTTP header `Accept`
1889
+ if 'Accept' not in _header_params:
1890
+ _header_params['Accept'] = self.api_client.select_header_accept(
1891
+ [
1892
+ 'application/json'
1893
+ ]
1894
+ )
1895
+
1896
+ # set the HTTP header `Content-Type`
1897
+ if _content_type:
1898
+ _header_params['Content-Type'] = _content_type
1899
+ else:
1900
+ _default_content_type = (
1901
+ self.api_client.select_header_content_type(
1902
+ [
1903
+ 'application/json'
1904
+ ]
1905
+ )
1906
+ )
1907
+ if _default_content_type is not None:
1908
+ _header_params['Content-Type'] = _default_content_type
1909
+
1910
+ # authentication setting
1911
+ _auth_settings: List[str] = [
1912
+ 'ApiKeyAuth'
1913
+ ]
1914
+
1915
+ return self.api_client.param_serialize(
1916
+ method='PUT',
1917
+ resource_path='/api/custom-dashboard/{customDashboardId}',
1918
+ path_params=_path_params,
1919
+ query_params=_query_params,
1920
+ header_params=_header_params,
1921
+ body=_body_params,
1922
+ post_params=_form_params,
1923
+ files=_files,
1924
+ auth_settings=_auth_settings,
1925
+ collection_formats=_collection_formats,
1926
+ _host=_host,
1927
+ _request_auth=_request_auth
1928
+ )
1929
+
1930
+