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,2847 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Instana REST API documentation
5
+
6
+ Searching for answers and best pratices? Check our [IBM Instana Community](https://community.ibm.com/community/user/aiops/communities/community-home?CommunityKey=58f324a3-3104-41be-9510-5b7c413cc48f). ## Overview The Instana REST API provides programmatic access to the Instana platform. It can be used to retrieve data available through the Instana UI Dashboard -- metrics, events, traces, etc -- and also to automate configuration tasks such as user management. ### Navigating the API documentation The API endpoints are grouped by product area and functionality. This generally maps to how our UI Dashboard is organized, hopefully making it easier to locate which endpoints you'd use to fetch the data you see visualized in our UI. The [UI sections](https://www.ibm.com/docs/en/instana-observability/current?topic=working-user-interface#navigation-menu) include: - Websites & Mobile Apps - Applications - Infrastructure - Synthetic Monitoring - Events - Automation - Service Levels - Settings - etc ### Rate Limiting A rate limit is applied to API usage. Up to 5,000 calls per hour can be made. How many remaining calls can be made and when this call limit resets, can inspected via three headers that are part of the responses of the API server. - **X-RateLimit-Limit:** Shows the maximum number of calls that may be executed per hour. - **X-RateLimit-Remaining:** How many calls may still be executed within the current hour. - **X-RateLimit-Reset:** Time when the remaining calls will be reset to the limit. For compatibility reasons with other rate limited APIs, this date is not the date in milliseconds, but instead in seconds since 1970-01-01T00:00:00+00:00. ### Further Reading We provide additional documentation for our REST API in our [product documentation](https://www.ibm.com/docs/en/instana-observability/current?topic=apis-web-rest-api). Here you'll also find some common queries for retrieving data and configuring Instana. ## Getting Started with the REST API ### API base URL The base URL for an specific instance of Instana can be determined using the tenant and unit information. - `base`: This is the base URL of a tenant unit, e.g. `https://test-example.instana.io`. This is the same URL that is used to access the Instana user interface. - `apiToken`: Requests against the Instana API require valid API tokens. An initial API token can be generated via the Instana user interface. Any additional API tokens can be generated via the API itself. ### Curl Example Here is an Example to use the REST API with Curl. First lets get all the available metrics with possible aggregations with a GET call. ```bash curl --request GET \\ --url https://test-instana.instana.io/api/application-monitoring/catalog/metrics \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' ``` Next we can get every call grouped by the endpoint name that has an error count greater then zero. As a metric we could get the mean error rate for example. ```bash curl --request POST \\ --url https://test-instana.instana.io/api/application-monitoring/analyze/call-groups \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' \\ --header 'content-type: application/json' \\ --data '{ \"group\":{ \"groupbyTag\":\"endpoint.name\" }, \"tagFilters\":[ { \"name\":\"call.error.count\", \"value\":\"0\", \"operator\":\"GREATER_THAN\" } ], \"metrics\":[ { \"metric\":\"errors\", \"aggregation\":\"MEAN\" } ] }' ``` ### Generating REST API clients The API is specified using the [OpenAPI v3](https://github.com/OAI/OpenAPI-Specification) (previously known as Swagger) format. You can download the current specification at our [GitHub API documentation](https://instana.github.io/openapi/openapi.yaml). OpenAPI tries to solve the issue of ever-evolving APIs and clients lagging behind. Please make sure that you always use the latest version of the generator, as a number of improvements are regularly made. To generate a client library for your language, you can use the [OpenAPI client generators](https://github.com/OpenAPITools/openapi-generator). #### Go For example, to generate a client library for Go to interact with our backend, you can use the following script; mind replacing the values of the `UNIT_NAME` and `TENANT_NAME` environment variables using those for your tenant unit: ```bash #!/bin/bash ### This script assumes you have the `java` and `wget` commands on the path export UNIT_NAME='myunit' # for example: prod export TENANT_NAME='mytenant' # for example: awesomecompany //Download the generator to your current working directory: wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar -O openapi-generator-cli.jar --server-variables \"tenant=${TENANT_NAME},unit=${UNIT_NAME}\" //generate a client library that you can vendor into your repository java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g go \\ -o pkg/instana/openapi \\ --skip-validate-spec //(optional) format the Go code according to the Go code standard gofmt -s -w pkg/instana/openapi ``` The generated clients contain comprehensive READMEs, and you can start right away using the client from the example above: ```go import instana \"./pkg/instana/openapi\" // readTags will read all available application monitoring tags along with their type and category func readTags() { configuration := instana.NewConfiguration() configuration.Host = \"tenant-unit.instana.io\" configuration.BasePath = \"https://tenant-unit.instana.io\" client := instana.NewAPIClient(configuration) auth := context.WithValue(context.Background(), instana.ContextAPIKey, instana.APIKey{ Key: apiKey, Prefix: \"apiToken\", }) tags, _, err := client.ApplicationCatalogApi.GetApplicationTagCatalog(auth) if err != nil { fmt.Fatalf(\"Error calling the API, aborting.\") } for _, tag := range tags { fmt.Printf(\"%s (%s): %s\\n\", tag.Category, tag.Type, tag.Name) } } ``` #### Java Follow the instructions provided in the official documentation from [OpenAPI Tools](https://github.com/OpenAPITools) to download the [openapi-generator-cli.jar](https://github.com/OpenAPITools/openapi-generator?tab=readme-ov-file#13---download-jar). Depending on your environment, use one of the following java http client implementations which will create a valid client for our OpenAPI specification: ``` //Nativ Java HTTP Client java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8 --library native //Spring WebClient java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library webclient //Spring RestTemplate java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library resttemplate ```
7
+
8
+ The version of the OpenAPI document: 1.291.1002
9
+ Contact: support@instana.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from instana_client.models.geo_location_configuration import GeoLocationConfiguration
24
+ from instana_client.models.ip_masking_configuration import IpMaskingConfiguration
25
+ from instana_client.models.mobile_app import MobileApp
26
+
27
+ from instana_client.api_client import ApiClient, RequestSerialized
28
+ from instana_client.api_response import ApiResponse
29
+ from instana_client.rest import RESTResponseType
30
+
31
+
32
+ class MobileAppConfigurationApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ def delete_mobile_app_config(
47
+ self,
48
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> None:
62
+ """Remove mobile app
63
+
64
+ API request to remove mobile app.
65
+
66
+ :param mobile_app_id: Mobile App ID (required)
67
+ :type mobile_app_id: str
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._delete_mobile_app_config_serialize(
91
+ mobile_app_id=mobile_app_id,
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
+ '204': None,
100
+ '401': None,
101
+ '403': None,
102
+ '500': None,
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def delete_mobile_app_config_with_http_info(
117
+ self,
118
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Annotated[StrictFloat, Field(gt=0)]
125
+ ]
126
+ ] = None,
127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
+ _content_type: Optional[StrictStr] = None,
129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
+ ) -> ApiResponse[None]:
132
+ """Remove mobile app
133
+
134
+ API request to remove mobile app.
135
+
136
+ :param mobile_app_id: Mobile App ID (required)
137
+ :type mobile_app_id: str
138
+ :param _request_timeout: timeout setting for this request. If one
139
+ number provided, it will be total request
140
+ timeout. It can also be a pair (tuple) of
141
+ (connection, read) timeouts.
142
+ :type _request_timeout: int, tuple(int, int), optional
143
+ :param _request_auth: set to override the auth_settings for an a single
144
+ request; this effectively ignores the
145
+ authentication in the spec for a single request.
146
+ :type _request_auth: dict, optional
147
+ :param _content_type: force content-type for the request.
148
+ :type _content_type: str, Optional
149
+ :param _headers: set to override the headers for a single
150
+ request; this effectively ignores the headers
151
+ in the spec for a single request.
152
+ :type _headers: dict, optional
153
+ :param _host_index: set to override the host_index for a single
154
+ request; this effectively ignores the host_index
155
+ in the spec for a single request.
156
+ :type _host_index: int, optional
157
+ :return: Returns the result object.
158
+ """ # noqa: E501
159
+
160
+ _param = self._delete_mobile_app_config_serialize(
161
+ mobile_app_id=mobile_app_id,
162
+ _request_auth=_request_auth,
163
+ _content_type=_content_type,
164
+ _headers=_headers,
165
+ _host_index=_host_index
166
+ )
167
+
168
+ _response_types_map: Dict[str, Optional[str]] = {
169
+ '204': None,
170
+ '401': None,
171
+ '403': None,
172
+ '500': None,
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def delete_mobile_app_config_without_preload_content(
187
+ self,
188
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """Remove mobile app
203
+
204
+ API request to remove mobile app.
205
+
206
+ :param mobile_app_id: Mobile App ID (required)
207
+ :type mobile_app_id: str
208
+ :param _request_timeout: timeout setting for this request. If one
209
+ number provided, it will be total request
210
+ timeout. It can also be a pair (tuple) of
211
+ (connection, read) timeouts.
212
+ :type _request_timeout: int, tuple(int, int), optional
213
+ :param _request_auth: set to override the auth_settings for an a single
214
+ request; this effectively ignores the
215
+ authentication in the spec for a single request.
216
+ :type _request_auth: dict, optional
217
+ :param _content_type: force content-type for the request.
218
+ :type _content_type: str, Optional
219
+ :param _headers: set to override the headers for a single
220
+ request; this effectively ignores the headers
221
+ in the spec for a single request.
222
+ :type _headers: dict, optional
223
+ :param _host_index: set to override the host_index for a single
224
+ request; this effectively ignores the host_index
225
+ in the spec for a single request.
226
+ :type _host_index: int, optional
227
+ :return: Returns the result object.
228
+ """ # noqa: E501
229
+
230
+ _param = self._delete_mobile_app_config_serialize(
231
+ mobile_app_id=mobile_app_id,
232
+ _request_auth=_request_auth,
233
+ _content_type=_content_type,
234
+ _headers=_headers,
235
+ _host_index=_host_index
236
+ )
237
+
238
+ _response_types_map: Dict[str, Optional[str]] = {
239
+ '204': None,
240
+ '401': None,
241
+ '403': None,
242
+ '500': None,
243
+ }
244
+ response_data = self.api_client.call_api(
245
+ *_param,
246
+ _request_timeout=_request_timeout
247
+ )
248
+ return response_data.response
249
+
250
+
251
+ def _delete_mobile_app_config_serialize(
252
+ self,
253
+ mobile_app_id,
254
+ _request_auth,
255
+ _content_type,
256
+ _headers,
257
+ _host_index,
258
+ ) -> RequestSerialized:
259
+
260
+ _host = None
261
+
262
+ _collection_formats: Dict[str, str] = {
263
+ }
264
+
265
+ _path_params: Dict[str, str] = {}
266
+ _query_params: List[Tuple[str, str]] = []
267
+ _header_params: Dict[str, Optional[str]] = _headers or {}
268
+ _form_params: List[Tuple[str, str]] = []
269
+ _files: Dict[
270
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
271
+ ] = {}
272
+ _body_params: Optional[bytes] = None
273
+
274
+ # process the path parameters
275
+ if mobile_app_id is not None:
276
+ _path_params['mobileAppId'] = mobile_app_id
277
+ # process the query parameters
278
+ # process the header parameters
279
+ # process the form parameters
280
+ # process the body parameter
281
+
282
+
283
+
284
+
285
+ # authentication setting
286
+ _auth_settings: List[str] = [
287
+ 'ApiKeyAuth'
288
+ ]
289
+
290
+ return self.api_client.param_serialize(
291
+ method='DELETE',
292
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}',
293
+ path_params=_path_params,
294
+ query_params=_query_params,
295
+ header_params=_header_params,
296
+ body=_body_params,
297
+ post_params=_form_params,
298
+ files=_files,
299
+ auth_settings=_auth_settings,
300
+ collection_formats=_collection_formats,
301
+ _host=_host,
302
+ _request_auth=_request_auth
303
+ )
304
+
305
+
306
+
307
+
308
+ @validate_call
309
+ def get_mobile_app_config(
310
+ self,
311
+ _request_timeout: Union[
312
+ None,
313
+ Annotated[StrictFloat, Field(gt=0)],
314
+ Tuple[
315
+ Annotated[StrictFloat, Field(gt=0)],
316
+ Annotated[StrictFloat, Field(gt=0)]
317
+ ]
318
+ ] = None,
319
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
320
+ _content_type: Optional[StrictStr] = None,
321
+ _headers: Optional[Dict[StrictStr, Any]] = None,
322
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
323
+ ) -> List[MobileApp]:
324
+ """Get configured mobile apps
325
+
326
+ API request to get configured mobile apps.
327
+
328
+ :param _request_timeout: timeout setting for this request. If one
329
+ number provided, it will be total request
330
+ timeout. It can also be a pair (tuple) of
331
+ (connection, read) timeouts.
332
+ :type _request_timeout: int, tuple(int, int), optional
333
+ :param _request_auth: set to override the auth_settings for an a single
334
+ request; this effectively ignores the
335
+ authentication in the spec for a single request.
336
+ :type _request_auth: dict, optional
337
+ :param _content_type: force content-type for the request.
338
+ :type _content_type: str, Optional
339
+ :param _headers: set to override the headers for a single
340
+ request; this effectively ignores the headers
341
+ in the spec for a single request.
342
+ :type _headers: dict, optional
343
+ :param _host_index: set to override the host_index for a single
344
+ request; this effectively ignores the host_index
345
+ in the spec for a single request.
346
+ :type _host_index: int, optional
347
+ :return: Returns the result object.
348
+ """ # noqa: E501
349
+
350
+ _param = self._get_mobile_app_config_serialize(
351
+ _request_auth=_request_auth,
352
+ _content_type=_content_type,
353
+ _headers=_headers,
354
+ _host_index=_host_index
355
+ )
356
+
357
+ _response_types_map: Dict[str, Optional[str]] = {
358
+ '200': "List[MobileApp]",
359
+ '401': None,
360
+ '500': None,
361
+ }
362
+ response_data = self.api_client.call_api(
363
+ *_param,
364
+ _request_timeout=_request_timeout
365
+ )
366
+ response_data.read()
367
+ return self.api_client.response_deserialize(
368
+ response_data=response_data,
369
+ response_types_map=_response_types_map,
370
+ ).data
371
+
372
+
373
+ @validate_call
374
+ def get_mobile_app_config_with_http_info(
375
+ self,
376
+ _request_timeout: Union[
377
+ None,
378
+ Annotated[StrictFloat, Field(gt=0)],
379
+ Tuple[
380
+ Annotated[StrictFloat, Field(gt=0)],
381
+ Annotated[StrictFloat, Field(gt=0)]
382
+ ]
383
+ ] = None,
384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
385
+ _content_type: Optional[StrictStr] = None,
386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
388
+ ) -> ApiResponse[List[MobileApp]]:
389
+ """Get configured mobile apps
390
+
391
+ API request to get configured mobile apps.
392
+
393
+ :param _request_timeout: timeout setting for this request. If one
394
+ number provided, it will be total request
395
+ timeout. It can also be a pair (tuple) of
396
+ (connection, read) timeouts.
397
+ :type _request_timeout: int, tuple(int, int), optional
398
+ :param _request_auth: set to override the auth_settings for an a single
399
+ request; this effectively ignores the
400
+ authentication in the spec for a single request.
401
+ :type _request_auth: dict, optional
402
+ :param _content_type: force content-type for the request.
403
+ :type _content_type: str, Optional
404
+ :param _headers: set to override the headers for a single
405
+ request; this effectively ignores the headers
406
+ in the spec for a single request.
407
+ :type _headers: dict, optional
408
+ :param _host_index: set to override the host_index for a single
409
+ request; this effectively ignores the host_index
410
+ in the spec for a single request.
411
+ :type _host_index: int, optional
412
+ :return: Returns the result object.
413
+ """ # noqa: E501
414
+
415
+ _param = self._get_mobile_app_config_serialize(
416
+ _request_auth=_request_auth,
417
+ _content_type=_content_type,
418
+ _headers=_headers,
419
+ _host_index=_host_index
420
+ )
421
+
422
+ _response_types_map: Dict[str, Optional[str]] = {
423
+ '200': "List[MobileApp]",
424
+ '401': None,
425
+ '500': None,
426
+ }
427
+ response_data = self.api_client.call_api(
428
+ *_param,
429
+ _request_timeout=_request_timeout
430
+ )
431
+ response_data.read()
432
+ return self.api_client.response_deserialize(
433
+ response_data=response_data,
434
+ response_types_map=_response_types_map,
435
+ )
436
+
437
+
438
+ @validate_call
439
+ def get_mobile_app_config_without_preload_content(
440
+ self,
441
+ _request_timeout: Union[
442
+ None,
443
+ Annotated[StrictFloat, Field(gt=0)],
444
+ Tuple[
445
+ Annotated[StrictFloat, Field(gt=0)],
446
+ Annotated[StrictFloat, Field(gt=0)]
447
+ ]
448
+ ] = None,
449
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
450
+ _content_type: Optional[StrictStr] = None,
451
+ _headers: Optional[Dict[StrictStr, Any]] = None,
452
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
453
+ ) -> RESTResponseType:
454
+ """Get configured mobile apps
455
+
456
+ API request to get configured mobile apps.
457
+
458
+ :param _request_timeout: timeout setting for this request. If one
459
+ number provided, it will be total request
460
+ timeout. It can also be a pair (tuple) of
461
+ (connection, read) timeouts.
462
+ :type _request_timeout: int, tuple(int, int), optional
463
+ :param _request_auth: set to override the auth_settings for an a single
464
+ request; this effectively ignores the
465
+ authentication in the spec for a single request.
466
+ :type _request_auth: dict, optional
467
+ :param _content_type: force content-type for the request.
468
+ :type _content_type: str, Optional
469
+ :param _headers: set to override the headers for a single
470
+ request; this effectively ignores the headers
471
+ in the spec for a single request.
472
+ :type _headers: dict, optional
473
+ :param _host_index: set to override the host_index for a single
474
+ request; this effectively ignores the host_index
475
+ in the spec for a single request.
476
+ :type _host_index: int, optional
477
+ :return: Returns the result object.
478
+ """ # noqa: E501
479
+
480
+ _param = self._get_mobile_app_config_serialize(
481
+ _request_auth=_request_auth,
482
+ _content_type=_content_type,
483
+ _headers=_headers,
484
+ _host_index=_host_index
485
+ )
486
+
487
+ _response_types_map: Dict[str, Optional[str]] = {
488
+ '200': "List[MobileApp]",
489
+ '401': None,
490
+ '500': None,
491
+ }
492
+ response_data = self.api_client.call_api(
493
+ *_param,
494
+ _request_timeout=_request_timeout
495
+ )
496
+ return response_data.response
497
+
498
+
499
+ def _get_mobile_app_config_serialize(
500
+ self,
501
+ _request_auth,
502
+ _content_type,
503
+ _headers,
504
+ _host_index,
505
+ ) -> RequestSerialized:
506
+
507
+ _host = None
508
+
509
+ _collection_formats: Dict[str, str] = {
510
+ }
511
+
512
+ _path_params: Dict[str, str] = {}
513
+ _query_params: List[Tuple[str, str]] = []
514
+ _header_params: Dict[str, Optional[str]] = _headers or {}
515
+ _form_params: List[Tuple[str, str]] = []
516
+ _files: Dict[
517
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
518
+ ] = {}
519
+ _body_params: Optional[bytes] = None
520
+
521
+ # process the path parameters
522
+ # process the query parameters
523
+ # process the header parameters
524
+ # process the form parameters
525
+ # process the body parameter
526
+
527
+
528
+ # set the HTTP header `Accept`
529
+ if 'Accept' not in _header_params:
530
+ _header_params['Accept'] = self.api_client.select_header_accept(
531
+ [
532
+ 'application/json'
533
+ ]
534
+ )
535
+
536
+
537
+ # authentication setting
538
+ _auth_settings: List[str] = [
539
+ 'ApiKeyAuth'
540
+ ]
541
+
542
+ return self.api_client.param_serialize(
543
+ method='GET',
544
+ resource_path='/api/mobile-app-monitoring/config',
545
+ path_params=_path_params,
546
+ query_params=_query_params,
547
+ header_params=_header_params,
548
+ body=_body_params,
549
+ post_params=_form_params,
550
+ files=_files,
551
+ auth_settings=_auth_settings,
552
+ collection_formats=_collection_formats,
553
+ _host=_host,
554
+ _request_auth=_request_auth
555
+ )
556
+
557
+
558
+
559
+
560
+ @validate_call
561
+ def get_mobile_app_geo_location_configuration(
562
+ self,
563
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
564
+ _request_timeout: Union[
565
+ None,
566
+ Annotated[StrictFloat, Field(gt=0)],
567
+ Tuple[
568
+ Annotated[StrictFloat, Field(gt=0)],
569
+ Annotated[StrictFloat, Field(gt=0)]
570
+ ]
571
+ ] = None,
572
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
573
+ _content_type: Optional[StrictStr] = None,
574
+ _headers: Optional[Dict[StrictStr, Any]] = None,
575
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
576
+ ) -> GeoLocationConfiguration:
577
+ """Get geo location configuration for mobile app
578
+
579
+ API request to get geo location configuration for mobile app.
580
+
581
+ :param mobile_app_id: Mobile App ID (required)
582
+ :type mobile_app_id: str
583
+ :param _request_timeout: timeout setting for this request. If one
584
+ number provided, it will be total request
585
+ timeout. It can also be a pair (tuple) of
586
+ (connection, read) timeouts.
587
+ :type _request_timeout: int, tuple(int, int), optional
588
+ :param _request_auth: set to override the auth_settings for an a single
589
+ request; this effectively ignores the
590
+ authentication in the spec for a single request.
591
+ :type _request_auth: dict, optional
592
+ :param _content_type: force content-type for the request.
593
+ :type _content_type: str, Optional
594
+ :param _headers: set to override the headers for a single
595
+ request; this effectively ignores the headers
596
+ in the spec for a single request.
597
+ :type _headers: dict, optional
598
+ :param _host_index: set to override the host_index for a single
599
+ request; this effectively ignores the host_index
600
+ in the spec for a single request.
601
+ :type _host_index: int, optional
602
+ :return: Returns the result object.
603
+ """ # noqa: E501
604
+
605
+ _param = self._get_mobile_app_geo_location_configuration_serialize(
606
+ mobile_app_id=mobile_app_id,
607
+ _request_auth=_request_auth,
608
+ _content_type=_content_type,
609
+ _headers=_headers,
610
+ _host_index=_host_index
611
+ )
612
+
613
+ _response_types_map: Dict[str, Optional[str]] = {
614
+ '200': "GeoLocationConfiguration",
615
+ '401': None,
616
+ '403': None,
617
+ '404': None,
618
+ '500': None,
619
+ }
620
+ response_data = self.api_client.call_api(
621
+ *_param,
622
+ _request_timeout=_request_timeout
623
+ )
624
+ response_data.read()
625
+ return self.api_client.response_deserialize(
626
+ response_data=response_data,
627
+ response_types_map=_response_types_map,
628
+ ).data
629
+
630
+
631
+ @validate_call
632
+ def get_mobile_app_geo_location_configuration_with_http_info(
633
+ self,
634
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
635
+ _request_timeout: Union[
636
+ None,
637
+ Annotated[StrictFloat, Field(gt=0)],
638
+ Tuple[
639
+ Annotated[StrictFloat, Field(gt=0)],
640
+ Annotated[StrictFloat, Field(gt=0)]
641
+ ]
642
+ ] = None,
643
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
644
+ _content_type: Optional[StrictStr] = None,
645
+ _headers: Optional[Dict[StrictStr, Any]] = None,
646
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
647
+ ) -> ApiResponse[GeoLocationConfiguration]:
648
+ """Get geo location configuration for mobile app
649
+
650
+ API request to get geo location configuration for mobile app.
651
+
652
+ :param mobile_app_id: Mobile App ID (required)
653
+ :type mobile_app_id: str
654
+ :param _request_timeout: timeout setting for this request. If one
655
+ number provided, it will be total request
656
+ timeout. It can also be a pair (tuple) of
657
+ (connection, read) timeouts.
658
+ :type _request_timeout: int, tuple(int, int), optional
659
+ :param _request_auth: set to override the auth_settings for an a single
660
+ request; this effectively ignores the
661
+ authentication in the spec for a single request.
662
+ :type _request_auth: dict, optional
663
+ :param _content_type: force content-type for the request.
664
+ :type _content_type: str, Optional
665
+ :param _headers: set to override the headers for a single
666
+ request; this effectively ignores the headers
667
+ in the spec for a single request.
668
+ :type _headers: dict, optional
669
+ :param _host_index: set to override the host_index for a single
670
+ request; this effectively ignores the host_index
671
+ in the spec for a single request.
672
+ :type _host_index: int, optional
673
+ :return: Returns the result object.
674
+ """ # noqa: E501
675
+
676
+ _param = self._get_mobile_app_geo_location_configuration_serialize(
677
+ mobile_app_id=mobile_app_id,
678
+ _request_auth=_request_auth,
679
+ _content_type=_content_type,
680
+ _headers=_headers,
681
+ _host_index=_host_index
682
+ )
683
+
684
+ _response_types_map: Dict[str, Optional[str]] = {
685
+ '200': "GeoLocationConfiguration",
686
+ '401': None,
687
+ '403': None,
688
+ '404': None,
689
+ '500': None,
690
+ }
691
+ response_data = self.api_client.call_api(
692
+ *_param,
693
+ _request_timeout=_request_timeout
694
+ )
695
+ response_data.read()
696
+ return self.api_client.response_deserialize(
697
+ response_data=response_data,
698
+ response_types_map=_response_types_map,
699
+ )
700
+
701
+
702
+ @validate_call
703
+ def get_mobile_app_geo_location_configuration_without_preload_content(
704
+ self,
705
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
706
+ _request_timeout: Union[
707
+ None,
708
+ Annotated[StrictFloat, Field(gt=0)],
709
+ Tuple[
710
+ Annotated[StrictFloat, Field(gt=0)],
711
+ Annotated[StrictFloat, Field(gt=0)]
712
+ ]
713
+ ] = None,
714
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
715
+ _content_type: Optional[StrictStr] = None,
716
+ _headers: Optional[Dict[StrictStr, Any]] = None,
717
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
718
+ ) -> RESTResponseType:
719
+ """Get geo location configuration for mobile app
720
+
721
+ API request to get geo location configuration for mobile app.
722
+
723
+ :param mobile_app_id: Mobile App ID (required)
724
+ :type mobile_app_id: str
725
+ :param _request_timeout: timeout setting for this request. If one
726
+ number provided, it will be total request
727
+ timeout. It can also be a pair (tuple) of
728
+ (connection, read) timeouts.
729
+ :type _request_timeout: int, tuple(int, int), optional
730
+ :param _request_auth: set to override the auth_settings for an a single
731
+ request; this effectively ignores the
732
+ authentication in the spec for a single request.
733
+ :type _request_auth: dict, optional
734
+ :param _content_type: force content-type for the request.
735
+ :type _content_type: str, Optional
736
+ :param _headers: set to override the headers for a single
737
+ request; this effectively ignores the headers
738
+ in the spec for a single request.
739
+ :type _headers: dict, optional
740
+ :param _host_index: set to override the host_index for a single
741
+ request; this effectively ignores the host_index
742
+ in the spec for a single request.
743
+ :type _host_index: int, optional
744
+ :return: Returns the result object.
745
+ """ # noqa: E501
746
+
747
+ _param = self._get_mobile_app_geo_location_configuration_serialize(
748
+ mobile_app_id=mobile_app_id,
749
+ _request_auth=_request_auth,
750
+ _content_type=_content_type,
751
+ _headers=_headers,
752
+ _host_index=_host_index
753
+ )
754
+
755
+ _response_types_map: Dict[str, Optional[str]] = {
756
+ '200': "GeoLocationConfiguration",
757
+ '401': None,
758
+ '403': None,
759
+ '404': None,
760
+ '500': None,
761
+ }
762
+ response_data = self.api_client.call_api(
763
+ *_param,
764
+ _request_timeout=_request_timeout
765
+ )
766
+ return response_data.response
767
+
768
+
769
+ def _get_mobile_app_geo_location_configuration_serialize(
770
+ self,
771
+ mobile_app_id,
772
+ _request_auth,
773
+ _content_type,
774
+ _headers,
775
+ _host_index,
776
+ ) -> RequestSerialized:
777
+
778
+ _host = None
779
+
780
+ _collection_formats: Dict[str, str] = {
781
+ }
782
+
783
+ _path_params: Dict[str, str] = {}
784
+ _query_params: List[Tuple[str, str]] = []
785
+ _header_params: Dict[str, Optional[str]] = _headers or {}
786
+ _form_params: List[Tuple[str, str]] = []
787
+ _files: Dict[
788
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
789
+ ] = {}
790
+ _body_params: Optional[bytes] = None
791
+
792
+ # process the path parameters
793
+ if mobile_app_id is not None:
794
+ _path_params['mobileAppId'] = mobile_app_id
795
+ # process the query parameters
796
+ # process the header parameters
797
+ # process the form parameters
798
+ # process the body parameter
799
+
800
+
801
+ # set the HTTP header `Accept`
802
+ if 'Accept' not in _header_params:
803
+ _header_params['Accept'] = self.api_client.select_header_accept(
804
+ [
805
+ 'application/json'
806
+ ]
807
+ )
808
+
809
+
810
+ # authentication setting
811
+ _auth_settings: List[str] = [
812
+ 'ApiKeyAuth'
813
+ ]
814
+
815
+ return self.api_client.param_serialize(
816
+ method='GET',
817
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/geo-location',
818
+ path_params=_path_params,
819
+ query_params=_query_params,
820
+ header_params=_header_params,
821
+ body=_body_params,
822
+ post_params=_form_params,
823
+ files=_files,
824
+ auth_settings=_auth_settings,
825
+ collection_formats=_collection_formats,
826
+ _host=_host,
827
+ _request_auth=_request_auth
828
+ )
829
+
830
+
831
+
832
+
833
+ @validate_call
834
+ def get_mobile_app_geo_mapping_rules(
835
+ self,
836
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
837
+ _request_timeout: Union[
838
+ None,
839
+ Annotated[StrictFloat, Field(gt=0)],
840
+ Tuple[
841
+ Annotated[StrictFloat, Field(gt=0)],
842
+ Annotated[StrictFloat, Field(gt=0)]
843
+ ]
844
+ ] = None,
845
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
846
+ _content_type: Optional[StrictStr] = None,
847
+ _headers: Optional[Dict[StrictStr, Any]] = None,
848
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
849
+ ) -> None:
850
+ """Get custom geo mapping rules for mobile app
851
+
852
+ API request to get custom geo mapping rules for mobile app.
853
+
854
+ :param mobile_app_id: Mobile App ID (required)
855
+ :type mobile_app_id: str
856
+ :param _request_timeout: timeout setting for this request. If one
857
+ number provided, it will be total request
858
+ timeout. It can also be a pair (tuple) of
859
+ (connection, read) timeouts.
860
+ :type _request_timeout: int, tuple(int, int), optional
861
+ :param _request_auth: set to override the auth_settings for an a single
862
+ request; this effectively ignores the
863
+ authentication in the spec for a single request.
864
+ :type _request_auth: dict, optional
865
+ :param _content_type: force content-type for the request.
866
+ :type _content_type: str, Optional
867
+ :param _headers: set to override the headers for a single
868
+ request; this effectively ignores the headers
869
+ in the spec for a single request.
870
+ :type _headers: dict, optional
871
+ :param _host_index: set to override the host_index for a single
872
+ request; this effectively ignores the host_index
873
+ in the spec for a single request.
874
+ :type _host_index: int, optional
875
+ :return: Returns the result object.
876
+ """ # noqa: E501
877
+
878
+ _param = self._get_mobile_app_geo_mapping_rules_serialize(
879
+ mobile_app_id=mobile_app_id,
880
+ _request_auth=_request_auth,
881
+ _content_type=_content_type,
882
+ _headers=_headers,
883
+ _host_index=_host_index
884
+ )
885
+
886
+ _response_types_map: Dict[str, Optional[str]] = {
887
+ '200': None,
888
+ '401': None,
889
+ '403': None,
890
+ '404': None,
891
+ '500': None,
892
+ }
893
+ response_data = self.api_client.call_api(
894
+ *_param,
895
+ _request_timeout=_request_timeout
896
+ )
897
+ response_data.read()
898
+ return self.api_client.response_deserialize(
899
+ response_data=response_data,
900
+ response_types_map=_response_types_map,
901
+ ).data
902
+
903
+
904
+ @validate_call
905
+ def get_mobile_app_geo_mapping_rules_with_http_info(
906
+ self,
907
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
908
+ _request_timeout: Union[
909
+ None,
910
+ Annotated[StrictFloat, Field(gt=0)],
911
+ Tuple[
912
+ Annotated[StrictFloat, Field(gt=0)],
913
+ Annotated[StrictFloat, Field(gt=0)]
914
+ ]
915
+ ] = None,
916
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
917
+ _content_type: Optional[StrictStr] = None,
918
+ _headers: Optional[Dict[StrictStr, Any]] = None,
919
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
920
+ ) -> ApiResponse[None]:
921
+ """Get custom geo mapping rules for mobile app
922
+
923
+ API request to get custom geo mapping rules for mobile app.
924
+
925
+ :param mobile_app_id: Mobile App ID (required)
926
+ :type mobile_app_id: str
927
+ :param _request_timeout: timeout setting for this request. If one
928
+ number provided, it will be total request
929
+ timeout. It can also be a pair (tuple) of
930
+ (connection, read) timeouts.
931
+ :type _request_timeout: int, tuple(int, int), optional
932
+ :param _request_auth: set to override the auth_settings for an a single
933
+ request; this effectively ignores the
934
+ authentication in the spec for a single request.
935
+ :type _request_auth: dict, optional
936
+ :param _content_type: force content-type for the request.
937
+ :type _content_type: str, Optional
938
+ :param _headers: set to override the headers for a single
939
+ request; this effectively ignores the headers
940
+ in the spec for a single request.
941
+ :type _headers: dict, optional
942
+ :param _host_index: set to override the host_index for a single
943
+ request; this effectively ignores the host_index
944
+ in the spec for a single request.
945
+ :type _host_index: int, optional
946
+ :return: Returns the result object.
947
+ """ # noqa: E501
948
+
949
+ _param = self._get_mobile_app_geo_mapping_rules_serialize(
950
+ mobile_app_id=mobile_app_id,
951
+ _request_auth=_request_auth,
952
+ _content_type=_content_type,
953
+ _headers=_headers,
954
+ _host_index=_host_index
955
+ )
956
+
957
+ _response_types_map: Dict[str, Optional[str]] = {
958
+ '200': None,
959
+ '401': None,
960
+ '403': None,
961
+ '404': None,
962
+ '500': None,
963
+ }
964
+ response_data = self.api_client.call_api(
965
+ *_param,
966
+ _request_timeout=_request_timeout
967
+ )
968
+ response_data.read()
969
+ return self.api_client.response_deserialize(
970
+ response_data=response_data,
971
+ response_types_map=_response_types_map,
972
+ )
973
+
974
+
975
+ @validate_call
976
+ def get_mobile_app_geo_mapping_rules_without_preload_content(
977
+ self,
978
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
979
+ _request_timeout: Union[
980
+ None,
981
+ Annotated[StrictFloat, Field(gt=0)],
982
+ Tuple[
983
+ Annotated[StrictFloat, Field(gt=0)],
984
+ Annotated[StrictFloat, Field(gt=0)]
985
+ ]
986
+ ] = None,
987
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
988
+ _content_type: Optional[StrictStr] = None,
989
+ _headers: Optional[Dict[StrictStr, Any]] = None,
990
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
991
+ ) -> RESTResponseType:
992
+ """Get custom geo mapping rules for mobile app
993
+
994
+ API request to get custom geo mapping rules for mobile app.
995
+
996
+ :param mobile_app_id: Mobile App ID (required)
997
+ :type mobile_app_id: str
998
+ :param _request_timeout: timeout setting for this request. If one
999
+ number provided, it will be total request
1000
+ timeout. It can also be a pair (tuple) of
1001
+ (connection, read) timeouts.
1002
+ :type _request_timeout: int, tuple(int, int), optional
1003
+ :param _request_auth: set to override the auth_settings for an a single
1004
+ request; this effectively ignores the
1005
+ authentication in the spec for a single request.
1006
+ :type _request_auth: dict, optional
1007
+ :param _content_type: force content-type for the request.
1008
+ :type _content_type: str, Optional
1009
+ :param _headers: set to override the headers for a single
1010
+ request; this effectively ignores the headers
1011
+ in the spec for a single request.
1012
+ :type _headers: dict, optional
1013
+ :param _host_index: set to override the host_index for a single
1014
+ request; this effectively ignores the host_index
1015
+ in the spec for a single request.
1016
+ :type _host_index: int, optional
1017
+ :return: Returns the result object.
1018
+ """ # noqa: E501
1019
+
1020
+ _param = self._get_mobile_app_geo_mapping_rules_serialize(
1021
+ mobile_app_id=mobile_app_id,
1022
+ _request_auth=_request_auth,
1023
+ _content_type=_content_type,
1024
+ _headers=_headers,
1025
+ _host_index=_host_index
1026
+ )
1027
+
1028
+ _response_types_map: Dict[str, Optional[str]] = {
1029
+ '200': None,
1030
+ '401': None,
1031
+ '403': None,
1032
+ '404': None,
1033
+ '500': None,
1034
+ }
1035
+ response_data = self.api_client.call_api(
1036
+ *_param,
1037
+ _request_timeout=_request_timeout
1038
+ )
1039
+ return response_data.response
1040
+
1041
+
1042
+ def _get_mobile_app_geo_mapping_rules_serialize(
1043
+ self,
1044
+ mobile_app_id,
1045
+ _request_auth,
1046
+ _content_type,
1047
+ _headers,
1048
+ _host_index,
1049
+ ) -> RequestSerialized:
1050
+
1051
+ _host = None
1052
+
1053
+ _collection_formats: Dict[str, str] = {
1054
+ }
1055
+
1056
+ _path_params: Dict[str, str] = {}
1057
+ _query_params: List[Tuple[str, str]] = []
1058
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1059
+ _form_params: List[Tuple[str, str]] = []
1060
+ _files: Dict[
1061
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1062
+ ] = {}
1063
+ _body_params: Optional[bytes] = None
1064
+
1065
+ # process the path parameters
1066
+ if mobile_app_id is not None:
1067
+ _path_params['mobileAppId'] = mobile_app_id
1068
+ # process the query parameters
1069
+ # process the header parameters
1070
+ # process the form parameters
1071
+ # process the body parameter
1072
+
1073
+
1074
+ # set the HTTP header `Accept`
1075
+ if 'Accept' not in _header_params:
1076
+ _header_params['Accept'] = self.api_client.select_header_accept(
1077
+ [
1078
+ 'text/csv'
1079
+ ]
1080
+ )
1081
+
1082
+
1083
+ # authentication setting
1084
+ _auth_settings: List[str] = [
1085
+ 'ApiKeyAuth'
1086
+ ]
1087
+
1088
+ return self.api_client.param_serialize(
1089
+ method='GET',
1090
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/geo-mapping-rules',
1091
+ path_params=_path_params,
1092
+ query_params=_query_params,
1093
+ header_params=_header_params,
1094
+ body=_body_params,
1095
+ post_params=_form_params,
1096
+ files=_files,
1097
+ auth_settings=_auth_settings,
1098
+ collection_formats=_collection_formats,
1099
+ _host=_host,
1100
+ _request_auth=_request_auth
1101
+ )
1102
+
1103
+
1104
+
1105
+
1106
+ @validate_call
1107
+ def get_mobile_app_ip_masking_configuration(
1108
+ self,
1109
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1110
+ _request_timeout: Union[
1111
+ None,
1112
+ Annotated[StrictFloat, Field(gt=0)],
1113
+ Tuple[
1114
+ Annotated[StrictFloat, Field(gt=0)],
1115
+ Annotated[StrictFloat, Field(gt=0)]
1116
+ ]
1117
+ ] = None,
1118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1119
+ _content_type: Optional[StrictStr] = None,
1120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1122
+ ) -> IpMaskingConfiguration:
1123
+ """Get IP masking configuration for mobile app
1124
+
1125
+ API request to get IP masking configuration for mobile app.
1126
+
1127
+ :param mobile_app_id: Mobile App ID (required)
1128
+ :type mobile_app_id: str
1129
+ :param _request_timeout: timeout setting for this request. If one
1130
+ number provided, it will be total request
1131
+ timeout. It can also be a pair (tuple) of
1132
+ (connection, read) timeouts.
1133
+ :type _request_timeout: int, tuple(int, int), optional
1134
+ :param _request_auth: set to override the auth_settings for an a single
1135
+ request; this effectively ignores the
1136
+ authentication in the spec for a single request.
1137
+ :type _request_auth: dict, optional
1138
+ :param _content_type: force content-type for the request.
1139
+ :type _content_type: str, Optional
1140
+ :param _headers: set to override the headers for a single
1141
+ request; this effectively ignores the headers
1142
+ in the spec for a single request.
1143
+ :type _headers: dict, optional
1144
+ :param _host_index: set to override the host_index for a single
1145
+ request; this effectively ignores the host_index
1146
+ in the spec for a single request.
1147
+ :type _host_index: int, optional
1148
+ :return: Returns the result object.
1149
+ """ # noqa: E501
1150
+
1151
+ _param = self._get_mobile_app_ip_masking_configuration_serialize(
1152
+ mobile_app_id=mobile_app_id,
1153
+ _request_auth=_request_auth,
1154
+ _content_type=_content_type,
1155
+ _headers=_headers,
1156
+ _host_index=_host_index
1157
+ )
1158
+
1159
+ _response_types_map: Dict[str, Optional[str]] = {
1160
+ '200': "IpMaskingConfiguration",
1161
+ '401': None,
1162
+ '403': None,
1163
+ '404': None,
1164
+ '500': None,
1165
+ }
1166
+ response_data = self.api_client.call_api(
1167
+ *_param,
1168
+ _request_timeout=_request_timeout
1169
+ )
1170
+ response_data.read()
1171
+ return self.api_client.response_deserialize(
1172
+ response_data=response_data,
1173
+ response_types_map=_response_types_map,
1174
+ ).data
1175
+
1176
+
1177
+ @validate_call
1178
+ def get_mobile_app_ip_masking_configuration_with_http_info(
1179
+ self,
1180
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1181
+ _request_timeout: Union[
1182
+ None,
1183
+ Annotated[StrictFloat, Field(gt=0)],
1184
+ Tuple[
1185
+ Annotated[StrictFloat, Field(gt=0)],
1186
+ Annotated[StrictFloat, Field(gt=0)]
1187
+ ]
1188
+ ] = None,
1189
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1190
+ _content_type: Optional[StrictStr] = None,
1191
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1192
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1193
+ ) -> ApiResponse[IpMaskingConfiguration]:
1194
+ """Get IP masking configuration for mobile app
1195
+
1196
+ API request to get IP masking configuration for mobile app.
1197
+
1198
+ :param mobile_app_id: Mobile App ID (required)
1199
+ :type mobile_app_id: str
1200
+ :param _request_timeout: timeout setting for this request. If one
1201
+ number provided, it will be total request
1202
+ timeout. It can also be a pair (tuple) of
1203
+ (connection, read) timeouts.
1204
+ :type _request_timeout: int, tuple(int, int), optional
1205
+ :param _request_auth: set to override the auth_settings for an a single
1206
+ request; this effectively ignores the
1207
+ authentication in the spec for a single request.
1208
+ :type _request_auth: dict, optional
1209
+ :param _content_type: force content-type for the request.
1210
+ :type _content_type: str, Optional
1211
+ :param _headers: set to override the headers for a single
1212
+ request; this effectively ignores the headers
1213
+ in the spec for a single request.
1214
+ :type _headers: dict, optional
1215
+ :param _host_index: set to override the host_index for a single
1216
+ request; this effectively ignores the host_index
1217
+ in the spec for a single request.
1218
+ :type _host_index: int, optional
1219
+ :return: Returns the result object.
1220
+ """ # noqa: E501
1221
+
1222
+ _param = self._get_mobile_app_ip_masking_configuration_serialize(
1223
+ mobile_app_id=mobile_app_id,
1224
+ _request_auth=_request_auth,
1225
+ _content_type=_content_type,
1226
+ _headers=_headers,
1227
+ _host_index=_host_index
1228
+ )
1229
+
1230
+ _response_types_map: Dict[str, Optional[str]] = {
1231
+ '200': "IpMaskingConfiguration",
1232
+ '401': None,
1233
+ '403': None,
1234
+ '404': None,
1235
+ '500': None,
1236
+ }
1237
+ response_data = self.api_client.call_api(
1238
+ *_param,
1239
+ _request_timeout=_request_timeout
1240
+ )
1241
+ response_data.read()
1242
+ return self.api_client.response_deserialize(
1243
+ response_data=response_data,
1244
+ response_types_map=_response_types_map,
1245
+ )
1246
+
1247
+
1248
+ @validate_call
1249
+ def get_mobile_app_ip_masking_configuration_without_preload_content(
1250
+ self,
1251
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1252
+ _request_timeout: Union[
1253
+ None,
1254
+ Annotated[StrictFloat, Field(gt=0)],
1255
+ Tuple[
1256
+ Annotated[StrictFloat, Field(gt=0)],
1257
+ Annotated[StrictFloat, Field(gt=0)]
1258
+ ]
1259
+ ] = None,
1260
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1261
+ _content_type: Optional[StrictStr] = None,
1262
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1263
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1264
+ ) -> RESTResponseType:
1265
+ """Get IP masking configuration for mobile app
1266
+
1267
+ API request to get IP masking configuration for mobile app.
1268
+
1269
+ :param mobile_app_id: Mobile App ID (required)
1270
+ :type mobile_app_id: str
1271
+ :param _request_timeout: timeout setting for this request. If one
1272
+ number provided, it will be total request
1273
+ timeout. It can also be a pair (tuple) of
1274
+ (connection, read) timeouts.
1275
+ :type _request_timeout: int, tuple(int, int), optional
1276
+ :param _request_auth: set to override the auth_settings for an a single
1277
+ request; this effectively ignores the
1278
+ authentication in the spec for a single request.
1279
+ :type _request_auth: dict, optional
1280
+ :param _content_type: force content-type for the request.
1281
+ :type _content_type: str, Optional
1282
+ :param _headers: set to override the headers for a single
1283
+ request; this effectively ignores the headers
1284
+ in the spec for a single request.
1285
+ :type _headers: dict, optional
1286
+ :param _host_index: set to override the host_index for a single
1287
+ request; this effectively ignores the host_index
1288
+ in the spec for a single request.
1289
+ :type _host_index: int, optional
1290
+ :return: Returns the result object.
1291
+ """ # noqa: E501
1292
+
1293
+ _param = self._get_mobile_app_ip_masking_configuration_serialize(
1294
+ mobile_app_id=mobile_app_id,
1295
+ _request_auth=_request_auth,
1296
+ _content_type=_content_type,
1297
+ _headers=_headers,
1298
+ _host_index=_host_index
1299
+ )
1300
+
1301
+ _response_types_map: Dict[str, Optional[str]] = {
1302
+ '200': "IpMaskingConfiguration",
1303
+ '401': None,
1304
+ '403': None,
1305
+ '404': None,
1306
+ '500': None,
1307
+ }
1308
+ response_data = self.api_client.call_api(
1309
+ *_param,
1310
+ _request_timeout=_request_timeout
1311
+ )
1312
+ return response_data.response
1313
+
1314
+
1315
+ def _get_mobile_app_ip_masking_configuration_serialize(
1316
+ self,
1317
+ mobile_app_id,
1318
+ _request_auth,
1319
+ _content_type,
1320
+ _headers,
1321
+ _host_index,
1322
+ ) -> RequestSerialized:
1323
+
1324
+ _host = None
1325
+
1326
+ _collection_formats: Dict[str, str] = {
1327
+ }
1328
+
1329
+ _path_params: Dict[str, str] = {}
1330
+ _query_params: List[Tuple[str, str]] = []
1331
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1332
+ _form_params: List[Tuple[str, str]] = []
1333
+ _files: Dict[
1334
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1335
+ ] = {}
1336
+ _body_params: Optional[bytes] = None
1337
+
1338
+ # process the path parameters
1339
+ if mobile_app_id is not None:
1340
+ _path_params['mobileAppId'] = mobile_app_id
1341
+ # process the query parameters
1342
+ # process the header parameters
1343
+ # process the form parameters
1344
+ # process the body parameter
1345
+
1346
+
1347
+ # set the HTTP header `Accept`
1348
+ if 'Accept' not in _header_params:
1349
+ _header_params['Accept'] = self.api_client.select_header_accept(
1350
+ [
1351
+ 'application/json'
1352
+ ]
1353
+ )
1354
+
1355
+
1356
+ # authentication setting
1357
+ _auth_settings: List[str] = [
1358
+ 'ApiKeyAuth'
1359
+ ]
1360
+
1361
+ return self.api_client.param_serialize(
1362
+ method='GET',
1363
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/ip-masking',
1364
+ path_params=_path_params,
1365
+ query_params=_query_params,
1366
+ header_params=_header_params,
1367
+ body=_body_params,
1368
+ post_params=_form_params,
1369
+ files=_files,
1370
+ auth_settings=_auth_settings,
1371
+ collection_formats=_collection_formats,
1372
+ _host=_host,
1373
+ _request_auth=_request_auth
1374
+ )
1375
+
1376
+
1377
+
1378
+
1379
+ @validate_call
1380
+ def post_mobile_app_config(
1381
+ self,
1382
+ name: Annotated[Optional[StrictStr], Field(description="Name of the mobile app")] = None,
1383
+ _request_timeout: Union[
1384
+ None,
1385
+ Annotated[StrictFloat, Field(gt=0)],
1386
+ Tuple[
1387
+ Annotated[StrictFloat, Field(gt=0)],
1388
+ Annotated[StrictFloat, Field(gt=0)]
1389
+ ]
1390
+ ] = None,
1391
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1392
+ _content_type: Optional[StrictStr] = None,
1393
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1394
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1395
+ ) -> MobileApp:
1396
+ """Configure new mobile app
1397
+
1398
+ API request to add new mobile app.
1399
+
1400
+ :param name: Name of the mobile app
1401
+ :type name: str
1402
+ :param _request_timeout: timeout setting for this request. If one
1403
+ number provided, it will be total request
1404
+ timeout. It can also be a pair (tuple) of
1405
+ (connection, read) timeouts.
1406
+ :type _request_timeout: int, tuple(int, int), optional
1407
+ :param _request_auth: set to override the auth_settings for an a single
1408
+ request; this effectively ignores the
1409
+ authentication in the spec for a single request.
1410
+ :type _request_auth: dict, optional
1411
+ :param _content_type: force content-type for the request.
1412
+ :type _content_type: str, Optional
1413
+ :param _headers: set to override the headers for a single
1414
+ request; this effectively ignores the headers
1415
+ in the spec for a single request.
1416
+ :type _headers: dict, optional
1417
+ :param _host_index: set to override the host_index for a single
1418
+ request; this effectively ignores the host_index
1419
+ in the spec for a single request.
1420
+ :type _host_index: int, optional
1421
+ :return: Returns the result object.
1422
+ """ # noqa: E501
1423
+
1424
+ _param = self._post_mobile_app_config_serialize(
1425
+ name=name,
1426
+ _request_auth=_request_auth,
1427
+ _content_type=_content_type,
1428
+ _headers=_headers,
1429
+ _host_index=_host_index
1430
+ )
1431
+
1432
+ _response_types_map: Dict[str, Optional[str]] = {
1433
+ '200': "MobileApp",
1434
+ '400': None,
1435
+ '401': None,
1436
+ '403': None,
1437
+ '500': None,
1438
+ }
1439
+ response_data = self.api_client.call_api(
1440
+ *_param,
1441
+ _request_timeout=_request_timeout
1442
+ )
1443
+ response_data.read()
1444
+ return self.api_client.response_deserialize(
1445
+ response_data=response_data,
1446
+ response_types_map=_response_types_map,
1447
+ ).data
1448
+
1449
+
1450
+ @validate_call
1451
+ def post_mobile_app_config_with_http_info(
1452
+ self,
1453
+ name: Annotated[Optional[StrictStr], Field(description="Name of the mobile app")] = None,
1454
+ _request_timeout: Union[
1455
+ None,
1456
+ Annotated[StrictFloat, Field(gt=0)],
1457
+ Tuple[
1458
+ Annotated[StrictFloat, Field(gt=0)],
1459
+ Annotated[StrictFloat, Field(gt=0)]
1460
+ ]
1461
+ ] = None,
1462
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1463
+ _content_type: Optional[StrictStr] = None,
1464
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1465
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1466
+ ) -> ApiResponse[MobileApp]:
1467
+ """Configure new mobile app
1468
+
1469
+ API request to add new mobile app.
1470
+
1471
+ :param name: Name of the mobile app
1472
+ :type name: str
1473
+ :param _request_timeout: timeout setting for this request. If one
1474
+ number provided, it will be total request
1475
+ timeout. It can also be a pair (tuple) of
1476
+ (connection, read) timeouts.
1477
+ :type _request_timeout: int, tuple(int, int), optional
1478
+ :param _request_auth: set to override the auth_settings for an a single
1479
+ request; this effectively ignores the
1480
+ authentication in the spec for a single request.
1481
+ :type _request_auth: dict, optional
1482
+ :param _content_type: force content-type for the request.
1483
+ :type _content_type: str, Optional
1484
+ :param _headers: set to override the headers for a single
1485
+ request; this effectively ignores the headers
1486
+ in the spec for a single request.
1487
+ :type _headers: dict, optional
1488
+ :param _host_index: set to override the host_index for a single
1489
+ request; this effectively ignores the host_index
1490
+ in the spec for a single request.
1491
+ :type _host_index: int, optional
1492
+ :return: Returns the result object.
1493
+ """ # noqa: E501
1494
+
1495
+ _param = self._post_mobile_app_config_serialize(
1496
+ name=name,
1497
+ _request_auth=_request_auth,
1498
+ _content_type=_content_type,
1499
+ _headers=_headers,
1500
+ _host_index=_host_index
1501
+ )
1502
+
1503
+ _response_types_map: Dict[str, Optional[str]] = {
1504
+ '200': "MobileApp",
1505
+ '400': None,
1506
+ '401': None,
1507
+ '403': None,
1508
+ '500': None,
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 post_mobile_app_config_without_preload_content(
1523
+ self,
1524
+ name: Annotated[Optional[StrictStr], Field(description="Name of the mobile app")] = None,
1525
+ _request_timeout: Union[
1526
+ None,
1527
+ Annotated[StrictFloat, Field(gt=0)],
1528
+ Tuple[
1529
+ Annotated[StrictFloat, Field(gt=0)],
1530
+ Annotated[StrictFloat, Field(gt=0)]
1531
+ ]
1532
+ ] = None,
1533
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1534
+ _content_type: Optional[StrictStr] = None,
1535
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1536
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1537
+ ) -> RESTResponseType:
1538
+ """Configure new mobile app
1539
+
1540
+ API request to add new mobile app.
1541
+
1542
+ :param name: Name of the mobile app
1543
+ :type name: str
1544
+ :param _request_timeout: timeout setting for this request. If one
1545
+ number provided, it will be total request
1546
+ timeout. It can also be a pair (tuple) of
1547
+ (connection, read) timeouts.
1548
+ :type _request_timeout: int, tuple(int, int), optional
1549
+ :param _request_auth: set to override the auth_settings for an a single
1550
+ request; this effectively ignores the
1551
+ authentication in the spec for a single request.
1552
+ :type _request_auth: dict, optional
1553
+ :param _content_type: force content-type for the request.
1554
+ :type _content_type: str, Optional
1555
+ :param _headers: set to override the headers for a single
1556
+ request; this effectively ignores the headers
1557
+ in the spec for a single request.
1558
+ :type _headers: dict, optional
1559
+ :param _host_index: set to override the host_index for a single
1560
+ request; this effectively ignores the host_index
1561
+ in the spec for a single request.
1562
+ :type _host_index: int, optional
1563
+ :return: Returns the result object.
1564
+ """ # noqa: E501
1565
+
1566
+ _param = self._post_mobile_app_config_serialize(
1567
+ name=name,
1568
+ _request_auth=_request_auth,
1569
+ _content_type=_content_type,
1570
+ _headers=_headers,
1571
+ _host_index=_host_index
1572
+ )
1573
+
1574
+ _response_types_map: Dict[str, Optional[str]] = {
1575
+ '200': "MobileApp",
1576
+ '400': None,
1577
+ '401': None,
1578
+ '403': None,
1579
+ '500': None,
1580
+ }
1581
+ response_data = self.api_client.call_api(
1582
+ *_param,
1583
+ _request_timeout=_request_timeout
1584
+ )
1585
+ return response_data.response
1586
+
1587
+
1588
+ def _post_mobile_app_config_serialize(
1589
+ self,
1590
+ name,
1591
+ _request_auth,
1592
+ _content_type,
1593
+ _headers,
1594
+ _host_index,
1595
+ ) -> RequestSerialized:
1596
+
1597
+ _host = None
1598
+
1599
+ _collection_formats: Dict[str, str] = {
1600
+ }
1601
+
1602
+ _path_params: Dict[str, str] = {}
1603
+ _query_params: List[Tuple[str, str]] = []
1604
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1605
+ _form_params: List[Tuple[str, str]] = []
1606
+ _files: Dict[
1607
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1608
+ ] = {}
1609
+ _body_params: Optional[bytes] = None
1610
+
1611
+ # process the path parameters
1612
+ # process the query parameters
1613
+ if name is not None:
1614
+
1615
+ _query_params.append(('name', name))
1616
+
1617
+ # process the header parameters
1618
+ # process the form parameters
1619
+ # process the body parameter
1620
+
1621
+
1622
+ # set the HTTP header `Accept`
1623
+ if 'Accept' not in _header_params:
1624
+ _header_params['Accept'] = self.api_client.select_header_accept(
1625
+ [
1626
+ 'application/json'
1627
+ ]
1628
+ )
1629
+
1630
+
1631
+ # authentication setting
1632
+ _auth_settings: List[str] = [
1633
+ 'ApiKeyAuth'
1634
+ ]
1635
+
1636
+ return self.api_client.param_serialize(
1637
+ method='POST',
1638
+ resource_path='/api/mobile-app-monitoring/config',
1639
+ path_params=_path_params,
1640
+ query_params=_query_params,
1641
+ header_params=_header_params,
1642
+ body=_body_params,
1643
+ post_params=_form_params,
1644
+ files=_files,
1645
+ auth_settings=_auth_settings,
1646
+ collection_formats=_collection_formats,
1647
+ _host=_host,
1648
+ _request_auth=_request_auth
1649
+ )
1650
+
1651
+
1652
+
1653
+
1654
+ @validate_call
1655
+ def rename_mobile_app_config(
1656
+ self,
1657
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1658
+ name: Annotated[Optional[StrictStr], Field(description="New name of the mobile app")] = None,
1659
+ _request_timeout: Union[
1660
+ None,
1661
+ Annotated[StrictFloat, Field(gt=0)],
1662
+ Tuple[
1663
+ Annotated[StrictFloat, Field(gt=0)],
1664
+ Annotated[StrictFloat, Field(gt=0)]
1665
+ ]
1666
+ ] = None,
1667
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1668
+ _content_type: Optional[StrictStr] = None,
1669
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1670
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1671
+ ) -> MobileApp:
1672
+ """Rename mobile app
1673
+
1674
+ API request to rename mobile app.
1675
+
1676
+ :param mobile_app_id: Mobile App ID (required)
1677
+ :type mobile_app_id: str
1678
+ :param name: New name of the mobile app
1679
+ :type name: str
1680
+ :param _request_timeout: timeout setting for this request. If one
1681
+ number provided, it will be total request
1682
+ timeout. It can also be a pair (tuple) of
1683
+ (connection, read) timeouts.
1684
+ :type _request_timeout: int, tuple(int, int), optional
1685
+ :param _request_auth: set to override the auth_settings for an a single
1686
+ request; this effectively ignores the
1687
+ authentication in the spec for a single request.
1688
+ :type _request_auth: dict, optional
1689
+ :param _content_type: force content-type for the request.
1690
+ :type _content_type: str, Optional
1691
+ :param _headers: set to override the headers for a single
1692
+ request; this effectively ignores the headers
1693
+ in the spec for a single request.
1694
+ :type _headers: dict, optional
1695
+ :param _host_index: set to override the host_index for a single
1696
+ request; this effectively ignores the host_index
1697
+ in the spec for a single request.
1698
+ :type _host_index: int, optional
1699
+ :return: Returns the result object.
1700
+ """ # noqa: E501
1701
+
1702
+ _param = self._rename_mobile_app_config_serialize(
1703
+ mobile_app_id=mobile_app_id,
1704
+ name=name,
1705
+ _request_auth=_request_auth,
1706
+ _content_type=_content_type,
1707
+ _headers=_headers,
1708
+ _host_index=_host_index
1709
+ )
1710
+
1711
+ _response_types_map: Dict[str, Optional[str]] = {
1712
+ '200': "MobileApp",
1713
+ '400': None,
1714
+ '401': None,
1715
+ '403': None,
1716
+ '500': None,
1717
+ }
1718
+ response_data = self.api_client.call_api(
1719
+ *_param,
1720
+ _request_timeout=_request_timeout
1721
+ )
1722
+ response_data.read()
1723
+ return self.api_client.response_deserialize(
1724
+ response_data=response_data,
1725
+ response_types_map=_response_types_map,
1726
+ ).data
1727
+
1728
+
1729
+ @validate_call
1730
+ def rename_mobile_app_config_with_http_info(
1731
+ self,
1732
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1733
+ name: Annotated[Optional[StrictStr], Field(description="New name of the mobile app")] = None,
1734
+ _request_timeout: Union[
1735
+ None,
1736
+ Annotated[StrictFloat, Field(gt=0)],
1737
+ Tuple[
1738
+ Annotated[StrictFloat, Field(gt=0)],
1739
+ Annotated[StrictFloat, Field(gt=0)]
1740
+ ]
1741
+ ] = None,
1742
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1743
+ _content_type: Optional[StrictStr] = None,
1744
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1745
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1746
+ ) -> ApiResponse[MobileApp]:
1747
+ """Rename mobile app
1748
+
1749
+ API request to rename mobile app.
1750
+
1751
+ :param mobile_app_id: Mobile App ID (required)
1752
+ :type mobile_app_id: str
1753
+ :param name: New name of the mobile app
1754
+ :type name: str
1755
+ :param _request_timeout: timeout setting for this request. If one
1756
+ number provided, it will be total request
1757
+ timeout. It can also be a pair (tuple) of
1758
+ (connection, read) timeouts.
1759
+ :type _request_timeout: int, tuple(int, int), optional
1760
+ :param _request_auth: set to override the auth_settings for an a single
1761
+ request; this effectively ignores the
1762
+ authentication in the spec for a single request.
1763
+ :type _request_auth: dict, optional
1764
+ :param _content_type: force content-type for the request.
1765
+ :type _content_type: str, Optional
1766
+ :param _headers: set to override the headers for a single
1767
+ request; this effectively ignores the headers
1768
+ in the spec for a single request.
1769
+ :type _headers: dict, optional
1770
+ :param _host_index: set to override the host_index for a single
1771
+ request; this effectively ignores the host_index
1772
+ in the spec for a single request.
1773
+ :type _host_index: int, optional
1774
+ :return: Returns the result object.
1775
+ """ # noqa: E501
1776
+
1777
+ _param = self._rename_mobile_app_config_serialize(
1778
+ mobile_app_id=mobile_app_id,
1779
+ name=name,
1780
+ _request_auth=_request_auth,
1781
+ _content_type=_content_type,
1782
+ _headers=_headers,
1783
+ _host_index=_host_index
1784
+ )
1785
+
1786
+ _response_types_map: Dict[str, Optional[str]] = {
1787
+ '200': "MobileApp",
1788
+ '400': None,
1789
+ '401': None,
1790
+ '403': None,
1791
+ '500': None,
1792
+ }
1793
+ response_data = self.api_client.call_api(
1794
+ *_param,
1795
+ _request_timeout=_request_timeout
1796
+ )
1797
+ response_data.read()
1798
+ return self.api_client.response_deserialize(
1799
+ response_data=response_data,
1800
+ response_types_map=_response_types_map,
1801
+ )
1802
+
1803
+
1804
+ @validate_call
1805
+ def rename_mobile_app_config_without_preload_content(
1806
+ self,
1807
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1808
+ name: Annotated[Optional[StrictStr], Field(description="New name of the mobile app")] = None,
1809
+ _request_timeout: Union[
1810
+ None,
1811
+ Annotated[StrictFloat, Field(gt=0)],
1812
+ Tuple[
1813
+ Annotated[StrictFloat, Field(gt=0)],
1814
+ Annotated[StrictFloat, Field(gt=0)]
1815
+ ]
1816
+ ] = None,
1817
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1818
+ _content_type: Optional[StrictStr] = None,
1819
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1820
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1821
+ ) -> RESTResponseType:
1822
+ """Rename mobile app
1823
+
1824
+ API request to rename mobile app.
1825
+
1826
+ :param mobile_app_id: Mobile App ID (required)
1827
+ :type mobile_app_id: str
1828
+ :param name: New name of the mobile app
1829
+ :type name: str
1830
+ :param _request_timeout: timeout setting for this request. If one
1831
+ number provided, it will be total request
1832
+ timeout. It can also be a pair (tuple) of
1833
+ (connection, read) timeouts.
1834
+ :type _request_timeout: int, tuple(int, int), optional
1835
+ :param _request_auth: set to override the auth_settings for an a single
1836
+ request; this effectively ignores the
1837
+ authentication in the spec for a single request.
1838
+ :type _request_auth: dict, optional
1839
+ :param _content_type: force content-type for the request.
1840
+ :type _content_type: str, Optional
1841
+ :param _headers: set to override the headers for a single
1842
+ request; this effectively ignores the headers
1843
+ in the spec for a single request.
1844
+ :type _headers: dict, optional
1845
+ :param _host_index: set to override the host_index for a single
1846
+ request; this effectively ignores the host_index
1847
+ in the spec for a single request.
1848
+ :type _host_index: int, optional
1849
+ :return: Returns the result object.
1850
+ """ # noqa: E501
1851
+
1852
+ _param = self._rename_mobile_app_config_serialize(
1853
+ mobile_app_id=mobile_app_id,
1854
+ name=name,
1855
+ _request_auth=_request_auth,
1856
+ _content_type=_content_type,
1857
+ _headers=_headers,
1858
+ _host_index=_host_index
1859
+ )
1860
+
1861
+ _response_types_map: Dict[str, Optional[str]] = {
1862
+ '200': "MobileApp",
1863
+ '400': None,
1864
+ '401': None,
1865
+ '403': None,
1866
+ '500': None,
1867
+ }
1868
+ response_data = self.api_client.call_api(
1869
+ *_param,
1870
+ _request_timeout=_request_timeout
1871
+ )
1872
+ return response_data.response
1873
+
1874
+
1875
+ def _rename_mobile_app_config_serialize(
1876
+ self,
1877
+ mobile_app_id,
1878
+ name,
1879
+ _request_auth,
1880
+ _content_type,
1881
+ _headers,
1882
+ _host_index,
1883
+ ) -> RequestSerialized:
1884
+
1885
+ _host = None
1886
+
1887
+ _collection_formats: Dict[str, str] = {
1888
+ }
1889
+
1890
+ _path_params: Dict[str, str] = {}
1891
+ _query_params: List[Tuple[str, str]] = []
1892
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1893
+ _form_params: List[Tuple[str, str]] = []
1894
+ _files: Dict[
1895
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1896
+ ] = {}
1897
+ _body_params: Optional[bytes] = None
1898
+
1899
+ # process the path parameters
1900
+ if mobile_app_id is not None:
1901
+ _path_params['mobileAppId'] = mobile_app_id
1902
+ # process the query parameters
1903
+ if name is not None:
1904
+
1905
+ _query_params.append(('name', name))
1906
+
1907
+ # process the header parameters
1908
+ # process the form parameters
1909
+ # process the body parameter
1910
+
1911
+
1912
+ # set the HTTP header `Accept`
1913
+ if 'Accept' not in _header_params:
1914
+ _header_params['Accept'] = self.api_client.select_header_accept(
1915
+ [
1916
+ 'application/json'
1917
+ ]
1918
+ )
1919
+
1920
+
1921
+ # authentication setting
1922
+ _auth_settings: List[str] = [
1923
+ 'ApiKeyAuth'
1924
+ ]
1925
+
1926
+ return self.api_client.param_serialize(
1927
+ method='PUT',
1928
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}',
1929
+ path_params=_path_params,
1930
+ query_params=_query_params,
1931
+ header_params=_header_params,
1932
+ body=_body_params,
1933
+ post_params=_form_params,
1934
+ files=_files,
1935
+ auth_settings=_auth_settings,
1936
+ collection_formats=_collection_formats,
1937
+ _host=_host,
1938
+ _request_auth=_request_auth
1939
+ )
1940
+
1941
+
1942
+
1943
+
1944
+ @validate_call
1945
+ def set_mobile_app_geo_mapping_rules(
1946
+ self,
1947
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
1948
+ body: Optional[StrictStr] = None,
1949
+ _request_timeout: Union[
1950
+ None,
1951
+ Annotated[StrictFloat, Field(gt=0)],
1952
+ Tuple[
1953
+ Annotated[StrictFloat, Field(gt=0)],
1954
+ Annotated[StrictFloat, Field(gt=0)]
1955
+ ]
1956
+ ] = None,
1957
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1958
+ _content_type: Optional[StrictStr] = None,
1959
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1960
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1961
+ ) -> None:
1962
+ """Set custom geo mapping rules for mobile app
1963
+
1964
+ API request to set custom geo mapping rules for mobile app.
1965
+
1966
+ :param mobile_app_id: Mobile App ID (required)
1967
+ :type mobile_app_id: str
1968
+ :param body:
1969
+ :type body: str
1970
+ :param _request_timeout: timeout setting for this request. If one
1971
+ number provided, it will be total request
1972
+ timeout. It can also be a pair (tuple) of
1973
+ (connection, read) timeouts.
1974
+ :type _request_timeout: int, tuple(int, int), optional
1975
+ :param _request_auth: set to override the auth_settings for an a single
1976
+ request; this effectively ignores the
1977
+ authentication in the spec for a single request.
1978
+ :type _request_auth: dict, optional
1979
+ :param _content_type: force content-type for the request.
1980
+ :type _content_type: str, Optional
1981
+ :param _headers: set to override the headers for a single
1982
+ request; this effectively ignores the headers
1983
+ in the spec for a single request.
1984
+ :type _headers: dict, optional
1985
+ :param _host_index: set to override the host_index for a single
1986
+ request; this effectively ignores the host_index
1987
+ in the spec for a single request.
1988
+ :type _host_index: int, optional
1989
+ :return: Returns the result object.
1990
+ """ # noqa: E501
1991
+
1992
+ _param = self._set_mobile_app_geo_mapping_rules_serialize(
1993
+ mobile_app_id=mobile_app_id,
1994
+ body=body,
1995
+ _request_auth=_request_auth,
1996
+ _content_type=_content_type,
1997
+ _headers=_headers,
1998
+ _host_index=_host_index
1999
+ )
2000
+
2001
+ _response_types_map: Dict[str, Optional[str]] = {
2002
+ '200': None,
2003
+ '401': None,
2004
+ '403': None,
2005
+ '404': None,
2006
+ '415': None,
2007
+ '500': None,
2008
+ }
2009
+ response_data = self.api_client.call_api(
2010
+ *_param,
2011
+ _request_timeout=_request_timeout
2012
+ )
2013
+ response_data.read()
2014
+ return self.api_client.response_deserialize(
2015
+ response_data=response_data,
2016
+ response_types_map=_response_types_map,
2017
+ ).data
2018
+
2019
+
2020
+ @validate_call
2021
+ def set_mobile_app_geo_mapping_rules_with_http_info(
2022
+ self,
2023
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2024
+ body: Optional[StrictStr] = None,
2025
+ _request_timeout: Union[
2026
+ None,
2027
+ Annotated[StrictFloat, Field(gt=0)],
2028
+ Tuple[
2029
+ Annotated[StrictFloat, Field(gt=0)],
2030
+ Annotated[StrictFloat, Field(gt=0)]
2031
+ ]
2032
+ ] = None,
2033
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2034
+ _content_type: Optional[StrictStr] = None,
2035
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2036
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2037
+ ) -> ApiResponse[None]:
2038
+ """Set custom geo mapping rules for mobile app
2039
+
2040
+ API request to set custom geo mapping rules for mobile app.
2041
+
2042
+ :param mobile_app_id: Mobile App ID (required)
2043
+ :type mobile_app_id: str
2044
+ :param body:
2045
+ :type body: str
2046
+ :param _request_timeout: timeout setting for this request. If one
2047
+ number provided, it will be total request
2048
+ timeout. It can also be a pair (tuple) of
2049
+ (connection, read) timeouts.
2050
+ :type _request_timeout: int, tuple(int, int), optional
2051
+ :param _request_auth: set to override the auth_settings for an a single
2052
+ request; this effectively ignores the
2053
+ authentication in the spec for a single request.
2054
+ :type _request_auth: dict, optional
2055
+ :param _content_type: force content-type for the request.
2056
+ :type _content_type: str, Optional
2057
+ :param _headers: set to override the headers for a single
2058
+ request; this effectively ignores the headers
2059
+ in the spec for a single request.
2060
+ :type _headers: dict, optional
2061
+ :param _host_index: set to override the host_index for a single
2062
+ request; this effectively ignores the host_index
2063
+ in the spec for a single request.
2064
+ :type _host_index: int, optional
2065
+ :return: Returns the result object.
2066
+ """ # noqa: E501
2067
+
2068
+ _param = self._set_mobile_app_geo_mapping_rules_serialize(
2069
+ mobile_app_id=mobile_app_id,
2070
+ body=body,
2071
+ _request_auth=_request_auth,
2072
+ _content_type=_content_type,
2073
+ _headers=_headers,
2074
+ _host_index=_host_index
2075
+ )
2076
+
2077
+ _response_types_map: Dict[str, Optional[str]] = {
2078
+ '200': None,
2079
+ '401': None,
2080
+ '403': None,
2081
+ '404': None,
2082
+ '415': None,
2083
+ '500': None,
2084
+ }
2085
+ response_data = self.api_client.call_api(
2086
+ *_param,
2087
+ _request_timeout=_request_timeout
2088
+ )
2089
+ response_data.read()
2090
+ return self.api_client.response_deserialize(
2091
+ response_data=response_data,
2092
+ response_types_map=_response_types_map,
2093
+ )
2094
+
2095
+
2096
+ @validate_call
2097
+ def set_mobile_app_geo_mapping_rules_without_preload_content(
2098
+ self,
2099
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2100
+ body: Optional[StrictStr] = None,
2101
+ _request_timeout: Union[
2102
+ None,
2103
+ Annotated[StrictFloat, Field(gt=0)],
2104
+ Tuple[
2105
+ Annotated[StrictFloat, Field(gt=0)],
2106
+ Annotated[StrictFloat, Field(gt=0)]
2107
+ ]
2108
+ ] = None,
2109
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2110
+ _content_type: Optional[StrictStr] = None,
2111
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2112
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2113
+ ) -> RESTResponseType:
2114
+ """Set custom geo mapping rules for mobile app
2115
+
2116
+ API request to set custom geo mapping rules for mobile app.
2117
+
2118
+ :param mobile_app_id: Mobile App ID (required)
2119
+ :type mobile_app_id: str
2120
+ :param body:
2121
+ :type body: str
2122
+ :param _request_timeout: timeout setting for this request. If one
2123
+ number provided, it will be total request
2124
+ timeout. It can also be a pair (tuple) of
2125
+ (connection, read) timeouts.
2126
+ :type _request_timeout: int, tuple(int, int), optional
2127
+ :param _request_auth: set to override the auth_settings for an a single
2128
+ request; this effectively ignores the
2129
+ authentication in the spec for a single request.
2130
+ :type _request_auth: dict, optional
2131
+ :param _content_type: force content-type for the request.
2132
+ :type _content_type: str, Optional
2133
+ :param _headers: set to override the headers for a single
2134
+ request; this effectively ignores the headers
2135
+ in the spec for a single request.
2136
+ :type _headers: dict, optional
2137
+ :param _host_index: set to override the host_index for a single
2138
+ request; this effectively ignores the host_index
2139
+ in the spec for a single request.
2140
+ :type _host_index: int, optional
2141
+ :return: Returns the result object.
2142
+ """ # noqa: E501
2143
+
2144
+ _param = self._set_mobile_app_geo_mapping_rules_serialize(
2145
+ mobile_app_id=mobile_app_id,
2146
+ body=body,
2147
+ _request_auth=_request_auth,
2148
+ _content_type=_content_type,
2149
+ _headers=_headers,
2150
+ _host_index=_host_index
2151
+ )
2152
+
2153
+ _response_types_map: Dict[str, Optional[str]] = {
2154
+ '200': None,
2155
+ '401': None,
2156
+ '403': None,
2157
+ '404': None,
2158
+ '415': None,
2159
+ '500': None,
2160
+ }
2161
+ response_data = self.api_client.call_api(
2162
+ *_param,
2163
+ _request_timeout=_request_timeout
2164
+ )
2165
+ return response_data.response
2166
+
2167
+
2168
+ def _set_mobile_app_geo_mapping_rules_serialize(
2169
+ self,
2170
+ mobile_app_id,
2171
+ body,
2172
+ _request_auth,
2173
+ _content_type,
2174
+ _headers,
2175
+ _host_index,
2176
+ ) -> RequestSerialized:
2177
+
2178
+ _host = None
2179
+
2180
+ _collection_formats: Dict[str, str] = {
2181
+ }
2182
+
2183
+ _path_params: Dict[str, str] = {}
2184
+ _query_params: List[Tuple[str, str]] = []
2185
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2186
+ _form_params: List[Tuple[str, str]] = []
2187
+ _files: Dict[
2188
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2189
+ ] = {}
2190
+ _body_params: Optional[bytes] = None
2191
+
2192
+ # process the path parameters
2193
+ if mobile_app_id is not None:
2194
+ _path_params['mobileAppId'] = mobile_app_id
2195
+ # process the query parameters
2196
+ # process the header parameters
2197
+ # process the form parameters
2198
+ # process the body parameter
2199
+ if body is not None:
2200
+ _body_params = body
2201
+
2202
+
2203
+ # set the HTTP header `Accept`
2204
+ if 'Accept' not in _header_params:
2205
+ _header_params['Accept'] = self.api_client.select_header_accept(
2206
+ [
2207
+ 'text/csv'
2208
+ ]
2209
+ )
2210
+
2211
+ # set the HTTP header `Content-Type`
2212
+ if _content_type:
2213
+ _header_params['Content-Type'] = _content_type
2214
+ else:
2215
+ _default_content_type = (
2216
+ self.api_client.select_header_content_type(
2217
+ [
2218
+ 'text/csv'
2219
+ ]
2220
+ )
2221
+ )
2222
+ if _default_content_type is not None:
2223
+ _header_params['Content-Type'] = _default_content_type
2224
+
2225
+ # authentication setting
2226
+ _auth_settings: List[str] = [
2227
+ 'ApiKeyAuth'
2228
+ ]
2229
+
2230
+ return self.api_client.param_serialize(
2231
+ method='PUT',
2232
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/geo-mapping-rules',
2233
+ path_params=_path_params,
2234
+ query_params=_query_params,
2235
+ header_params=_header_params,
2236
+ body=_body_params,
2237
+ post_params=_form_params,
2238
+ files=_files,
2239
+ auth_settings=_auth_settings,
2240
+ collection_formats=_collection_formats,
2241
+ _host=_host,
2242
+ _request_auth=_request_auth
2243
+ )
2244
+
2245
+
2246
+
2247
+
2248
+ @validate_call
2249
+ def update_mobile_app_geo_location_configuration(
2250
+ self,
2251
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2252
+ geo_location_configuration: Optional[GeoLocationConfiguration] = None,
2253
+ _request_timeout: Union[
2254
+ None,
2255
+ Annotated[StrictFloat, Field(gt=0)],
2256
+ Tuple[
2257
+ Annotated[StrictFloat, Field(gt=0)],
2258
+ Annotated[StrictFloat, Field(gt=0)]
2259
+ ]
2260
+ ] = None,
2261
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2262
+ _content_type: Optional[StrictStr] = None,
2263
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2264
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2265
+ ) -> GeoLocationConfiguration:
2266
+ """Update geo location configuration for mobile app
2267
+
2268
+ API request to update geo location configuration for mobile app.
2269
+
2270
+ :param mobile_app_id: Mobile App ID (required)
2271
+ :type mobile_app_id: str
2272
+ :param geo_location_configuration:
2273
+ :type geo_location_configuration: GeoLocationConfiguration
2274
+ :param _request_timeout: timeout setting for this request. If one
2275
+ number provided, it will be total request
2276
+ timeout. It can also be a pair (tuple) of
2277
+ (connection, read) timeouts.
2278
+ :type _request_timeout: int, tuple(int, int), optional
2279
+ :param _request_auth: set to override the auth_settings for an a single
2280
+ request; this effectively ignores the
2281
+ authentication in the spec for a single request.
2282
+ :type _request_auth: dict, optional
2283
+ :param _content_type: force content-type for the request.
2284
+ :type _content_type: str, Optional
2285
+ :param _headers: set to override the headers for a single
2286
+ request; this effectively ignores the headers
2287
+ in the spec for a single request.
2288
+ :type _headers: dict, optional
2289
+ :param _host_index: set to override the host_index for a single
2290
+ request; this effectively ignores the host_index
2291
+ in the spec for a single request.
2292
+ :type _host_index: int, optional
2293
+ :return: Returns the result object.
2294
+ """ # noqa: E501
2295
+
2296
+ _param = self._update_mobile_app_geo_location_configuration_serialize(
2297
+ mobile_app_id=mobile_app_id,
2298
+ geo_location_configuration=geo_location_configuration,
2299
+ _request_auth=_request_auth,
2300
+ _content_type=_content_type,
2301
+ _headers=_headers,
2302
+ _host_index=_host_index
2303
+ )
2304
+
2305
+ _response_types_map: Dict[str, Optional[str]] = {
2306
+ '200': "GeoLocationConfiguration",
2307
+ '401': None,
2308
+ '403': None,
2309
+ '404': None,
2310
+ '500': None,
2311
+ }
2312
+ response_data = self.api_client.call_api(
2313
+ *_param,
2314
+ _request_timeout=_request_timeout
2315
+ )
2316
+ response_data.read()
2317
+ return self.api_client.response_deserialize(
2318
+ response_data=response_data,
2319
+ response_types_map=_response_types_map,
2320
+ ).data
2321
+
2322
+
2323
+ @validate_call
2324
+ def update_mobile_app_geo_location_configuration_with_http_info(
2325
+ self,
2326
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2327
+ geo_location_configuration: Optional[GeoLocationConfiguration] = None,
2328
+ _request_timeout: Union[
2329
+ None,
2330
+ Annotated[StrictFloat, Field(gt=0)],
2331
+ Tuple[
2332
+ Annotated[StrictFloat, Field(gt=0)],
2333
+ Annotated[StrictFloat, Field(gt=0)]
2334
+ ]
2335
+ ] = None,
2336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2337
+ _content_type: Optional[StrictStr] = None,
2338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2340
+ ) -> ApiResponse[GeoLocationConfiguration]:
2341
+ """Update geo location configuration for mobile app
2342
+
2343
+ API request to update geo location configuration for mobile app.
2344
+
2345
+ :param mobile_app_id: Mobile App ID (required)
2346
+ :type mobile_app_id: str
2347
+ :param geo_location_configuration:
2348
+ :type geo_location_configuration: GeoLocationConfiguration
2349
+ :param _request_timeout: timeout setting for this request. If one
2350
+ number provided, it will be total request
2351
+ timeout. It can also be a pair (tuple) of
2352
+ (connection, read) timeouts.
2353
+ :type _request_timeout: int, tuple(int, int), optional
2354
+ :param _request_auth: set to override the auth_settings for an a single
2355
+ request; this effectively ignores the
2356
+ authentication in the spec for a single request.
2357
+ :type _request_auth: dict, optional
2358
+ :param _content_type: force content-type for the request.
2359
+ :type _content_type: str, Optional
2360
+ :param _headers: set to override the headers for a single
2361
+ request; this effectively ignores the headers
2362
+ in the spec for a single request.
2363
+ :type _headers: dict, optional
2364
+ :param _host_index: set to override the host_index for a single
2365
+ request; this effectively ignores the host_index
2366
+ in the spec for a single request.
2367
+ :type _host_index: int, optional
2368
+ :return: Returns the result object.
2369
+ """ # noqa: E501
2370
+
2371
+ _param = self._update_mobile_app_geo_location_configuration_serialize(
2372
+ mobile_app_id=mobile_app_id,
2373
+ geo_location_configuration=geo_location_configuration,
2374
+ _request_auth=_request_auth,
2375
+ _content_type=_content_type,
2376
+ _headers=_headers,
2377
+ _host_index=_host_index
2378
+ )
2379
+
2380
+ _response_types_map: Dict[str, Optional[str]] = {
2381
+ '200': "GeoLocationConfiguration",
2382
+ '401': None,
2383
+ '403': None,
2384
+ '404': None,
2385
+ '500': None,
2386
+ }
2387
+ response_data = self.api_client.call_api(
2388
+ *_param,
2389
+ _request_timeout=_request_timeout
2390
+ )
2391
+ response_data.read()
2392
+ return self.api_client.response_deserialize(
2393
+ response_data=response_data,
2394
+ response_types_map=_response_types_map,
2395
+ )
2396
+
2397
+
2398
+ @validate_call
2399
+ def update_mobile_app_geo_location_configuration_without_preload_content(
2400
+ self,
2401
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2402
+ geo_location_configuration: Optional[GeoLocationConfiguration] = None,
2403
+ _request_timeout: Union[
2404
+ None,
2405
+ Annotated[StrictFloat, Field(gt=0)],
2406
+ Tuple[
2407
+ Annotated[StrictFloat, Field(gt=0)],
2408
+ Annotated[StrictFloat, Field(gt=0)]
2409
+ ]
2410
+ ] = None,
2411
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2412
+ _content_type: Optional[StrictStr] = None,
2413
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2414
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2415
+ ) -> RESTResponseType:
2416
+ """Update geo location configuration for mobile app
2417
+
2418
+ API request to update geo location configuration for mobile app.
2419
+
2420
+ :param mobile_app_id: Mobile App ID (required)
2421
+ :type mobile_app_id: str
2422
+ :param geo_location_configuration:
2423
+ :type geo_location_configuration: GeoLocationConfiguration
2424
+ :param _request_timeout: timeout setting for this request. If one
2425
+ number provided, it will be total request
2426
+ timeout. It can also be a pair (tuple) of
2427
+ (connection, read) timeouts.
2428
+ :type _request_timeout: int, tuple(int, int), optional
2429
+ :param _request_auth: set to override the auth_settings for an a single
2430
+ request; this effectively ignores the
2431
+ authentication in the spec for a single request.
2432
+ :type _request_auth: dict, optional
2433
+ :param _content_type: force content-type for the request.
2434
+ :type _content_type: str, Optional
2435
+ :param _headers: set to override the headers for a single
2436
+ request; this effectively ignores the headers
2437
+ in the spec for a single request.
2438
+ :type _headers: dict, optional
2439
+ :param _host_index: set to override the host_index for a single
2440
+ request; this effectively ignores the host_index
2441
+ in the spec for a single request.
2442
+ :type _host_index: int, optional
2443
+ :return: Returns the result object.
2444
+ """ # noqa: E501
2445
+
2446
+ _param = self._update_mobile_app_geo_location_configuration_serialize(
2447
+ mobile_app_id=mobile_app_id,
2448
+ geo_location_configuration=geo_location_configuration,
2449
+ _request_auth=_request_auth,
2450
+ _content_type=_content_type,
2451
+ _headers=_headers,
2452
+ _host_index=_host_index
2453
+ )
2454
+
2455
+ _response_types_map: Dict[str, Optional[str]] = {
2456
+ '200': "GeoLocationConfiguration",
2457
+ '401': None,
2458
+ '403': None,
2459
+ '404': None,
2460
+ '500': None,
2461
+ }
2462
+ response_data = self.api_client.call_api(
2463
+ *_param,
2464
+ _request_timeout=_request_timeout
2465
+ )
2466
+ return response_data.response
2467
+
2468
+
2469
+ def _update_mobile_app_geo_location_configuration_serialize(
2470
+ self,
2471
+ mobile_app_id,
2472
+ geo_location_configuration,
2473
+ _request_auth,
2474
+ _content_type,
2475
+ _headers,
2476
+ _host_index,
2477
+ ) -> RequestSerialized:
2478
+
2479
+ _host = None
2480
+
2481
+ _collection_formats: Dict[str, str] = {
2482
+ }
2483
+
2484
+ _path_params: Dict[str, str] = {}
2485
+ _query_params: List[Tuple[str, str]] = []
2486
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2487
+ _form_params: List[Tuple[str, str]] = []
2488
+ _files: Dict[
2489
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2490
+ ] = {}
2491
+ _body_params: Optional[bytes] = None
2492
+
2493
+ # process the path parameters
2494
+ if mobile_app_id is not None:
2495
+ _path_params['mobileAppId'] = mobile_app_id
2496
+ # process the query parameters
2497
+ # process the header parameters
2498
+ # process the form parameters
2499
+ # process the body parameter
2500
+ if geo_location_configuration is not None:
2501
+ _body_params = geo_location_configuration
2502
+
2503
+
2504
+ # set the HTTP header `Accept`
2505
+ if 'Accept' not in _header_params:
2506
+ _header_params['Accept'] = self.api_client.select_header_accept(
2507
+ [
2508
+ 'application/json'
2509
+ ]
2510
+ )
2511
+
2512
+ # set the HTTP header `Content-Type`
2513
+ if _content_type:
2514
+ _header_params['Content-Type'] = _content_type
2515
+ else:
2516
+ _default_content_type = (
2517
+ self.api_client.select_header_content_type(
2518
+ [
2519
+ 'application/json'
2520
+ ]
2521
+ )
2522
+ )
2523
+ if _default_content_type is not None:
2524
+ _header_params['Content-Type'] = _default_content_type
2525
+
2526
+ # authentication setting
2527
+ _auth_settings: List[str] = [
2528
+ 'ApiKeyAuth'
2529
+ ]
2530
+
2531
+ return self.api_client.param_serialize(
2532
+ method='PUT',
2533
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/geo-location',
2534
+ path_params=_path_params,
2535
+ query_params=_query_params,
2536
+ header_params=_header_params,
2537
+ body=_body_params,
2538
+ post_params=_form_params,
2539
+ files=_files,
2540
+ auth_settings=_auth_settings,
2541
+ collection_formats=_collection_formats,
2542
+ _host=_host,
2543
+ _request_auth=_request_auth
2544
+ )
2545
+
2546
+
2547
+
2548
+
2549
+ @validate_call
2550
+ def update_mobile_app_ip_masking_configuration(
2551
+ self,
2552
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2553
+ ip_masking_configuration: Optional[IpMaskingConfiguration] = None,
2554
+ _request_timeout: Union[
2555
+ None,
2556
+ Annotated[StrictFloat, Field(gt=0)],
2557
+ Tuple[
2558
+ Annotated[StrictFloat, Field(gt=0)],
2559
+ Annotated[StrictFloat, Field(gt=0)]
2560
+ ]
2561
+ ] = None,
2562
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2563
+ _content_type: Optional[StrictStr] = None,
2564
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2565
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2566
+ ) -> IpMaskingConfiguration:
2567
+ """Update IP masking configuration for mobile app
2568
+
2569
+ API request to update IP masking configuration for mobile app.
2570
+
2571
+ :param mobile_app_id: Mobile App ID (required)
2572
+ :type mobile_app_id: str
2573
+ :param ip_masking_configuration:
2574
+ :type ip_masking_configuration: IpMaskingConfiguration
2575
+ :param _request_timeout: timeout setting for this request. If one
2576
+ number provided, it will be total request
2577
+ timeout. It can also be a pair (tuple) of
2578
+ (connection, read) timeouts.
2579
+ :type _request_timeout: int, tuple(int, int), optional
2580
+ :param _request_auth: set to override the auth_settings for an a single
2581
+ request; this effectively ignores the
2582
+ authentication in the spec for a single request.
2583
+ :type _request_auth: dict, optional
2584
+ :param _content_type: force content-type for the request.
2585
+ :type _content_type: str, Optional
2586
+ :param _headers: set to override the headers for a single
2587
+ request; this effectively ignores the headers
2588
+ in the spec for a single request.
2589
+ :type _headers: dict, optional
2590
+ :param _host_index: set to override the host_index for a single
2591
+ request; this effectively ignores the host_index
2592
+ in the spec for a single request.
2593
+ :type _host_index: int, optional
2594
+ :return: Returns the result object.
2595
+ """ # noqa: E501
2596
+
2597
+ _param = self._update_mobile_app_ip_masking_configuration_serialize(
2598
+ mobile_app_id=mobile_app_id,
2599
+ ip_masking_configuration=ip_masking_configuration,
2600
+ _request_auth=_request_auth,
2601
+ _content_type=_content_type,
2602
+ _headers=_headers,
2603
+ _host_index=_host_index
2604
+ )
2605
+
2606
+ _response_types_map: Dict[str, Optional[str]] = {
2607
+ '200': "IpMaskingConfiguration",
2608
+ '401': None,
2609
+ '403': None,
2610
+ '404': None,
2611
+ '500': None,
2612
+ }
2613
+ response_data = self.api_client.call_api(
2614
+ *_param,
2615
+ _request_timeout=_request_timeout
2616
+ )
2617
+ response_data.read()
2618
+ return self.api_client.response_deserialize(
2619
+ response_data=response_data,
2620
+ response_types_map=_response_types_map,
2621
+ ).data
2622
+
2623
+
2624
+ @validate_call
2625
+ def update_mobile_app_ip_masking_configuration_with_http_info(
2626
+ self,
2627
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2628
+ ip_masking_configuration: Optional[IpMaskingConfiguration] = None,
2629
+ _request_timeout: Union[
2630
+ None,
2631
+ Annotated[StrictFloat, Field(gt=0)],
2632
+ Tuple[
2633
+ Annotated[StrictFloat, Field(gt=0)],
2634
+ Annotated[StrictFloat, Field(gt=0)]
2635
+ ]
2636
+ ] = None,
2637
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2638
+ _content_type: Optional[StrictStr] = None,
2639
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2640
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2641
+ ) -> ApiResponse[IpMaskingConfiguration]:
2642
+ """Update IP masking configuration for mobile app
2643
+
2644
+ API request to update IP masking configuration for mobile app.
2645
+
2646
+ :param mobile_app_id: Mobile App ID (required)
2647
+ :type mobile_app_id: str
2648
+ :param ip_masking_configuration:
2649
+ :type ip_masking_configuration: IpMaskingConfiguration
2650
+ :param _request_timeout: timeout setting for this request. If one
2651
+ number provided, it will be total request
2652
+ timeout. It can also be a pair (tuple) of
2653
+ (connection, read) timeouts.
2654
+ :type _request_timeout: int, tuple(int, int), optional
2655
+ :param _request_auth: set to override the auth_settings for an a single
2656
+ request; this effectively ignores the
2657
+ authentication in the spec for a single request.
2658
+ :type _request_auth: dict, optional
2659
+ :param _content_type: force content-type for the request.
2660
+ :type _content_type: str, Optional
2661
+ :param _headers: set to override the headers for a single
2662
+ request; this effectively ignores the headers
2663
+ in the spec for a single request.
2664
+ :type _headers: dict, optional
2665
+ :param _host_index: set to override the host_index for a single
2666
+ request; this effectively ignores the host_index
2667
+ in the spec for a single request.
2668
+ :type _host_index: int, optional
2669
+ :return: Returns the result object.
2670
+ """ # noqa: E501
2671
+
2672
+ _param = self._update_mobile_app_ip_masking_configuration_serialize(
2673
+ mobile_app_id=mobile_app_id,
2674
+ ip_masking_configuration=ip_masking_configuration,
2675
+ _request_auth=_request_auth,
2676
+ _content_type=_content_type,
2677
+ _headers=_headers,
2678
+ _host_index=_host_index
2679
+ )
2680
+
2681
+ _response_types_map: Dict[str, Optional[str]] = {
2682
+ '200': "IpMaskingConfiguration",
2683
+ '401': None,
2684
+ '403': None,
2685
+ '404': None,
2686
+ '500': None,
2687
+ }
2688
+ response_data = self.api_client.call_api(
2689
+ *_param,
2690
+ _request_timeout=_request_timeout
2691
+ )
2692
+ response_data.read()
2693
+ return self.api_client.response_deserialize(
2694
+ response_data=response_data,
2695
+ response_types_map=_response_types_map,
2696
+ )
2697
+
2698
+
2699
+ @validate_call
2700
+ def update_mobile_app_ip_masking_configuration_without_preload_content(
2701
+ self,
2702
+ mobile_app_id: Annotated[StrictStr, Field(description="Mobile App ID")],
2703
+ ip_masking_configuration: Optional[IpMaskingConfiguration] = None,
2704
+ _request_timeout: Union[
2705
+ None,
2706
+ Annotated[StrictFloat, Field(gt=0)],
2707
+ Tuple[
2708
+ Annotated[StrictFloat, Field(gt=0)],
2709
+ Annotated[StrictFloat, Field(gt=0)]
2710
+ ]
2711
+ ] = None,
2712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2713
+ _content_type: Optional[StrictStr] = None,
2714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2716
+ ) -> RESTResponseType:
2717
+ """Update IP masking configuration for mobile app
2718
+
2719
+ API request to update IP masking configuration for mobile app.
2720
+
2721
+ :param mobile_app_id: Mobile App ID (required)
2722
+ :type mobile_app_id: str
2723
+ :param ip_masking_configuration:
2724
+ :type ip_masking_configuration: IpMaskingConfiguration
2725
+ :param _request_timeout: timeout setting for this request. If one
2726
+ number provided, it will be total request
2727
+ timeout. It can also be a pair (tuple) of
2728
+ (connection, read) timeouts.
2729
+ :type _request_timeout: int, tuple(int, int), optional
2730
+ :param _request_auth: set to override the auth_settings for an a single
2731
+ request; this effectively ignores the
2732
+ authentication in the spec for a single request.
2733
+ :type _request_auth: dict, optional
2734
+ :param _content_type: force content-type for the request.
2735
+ :type _content_type: str, Optional
2736
+ :param _headers: set to override the headers for a single
2737
+ request; this effectively ignores the headers
2738
+ in the spec for a single request.
2739
+ :type _headers: dict, optional
2740
+ :param _host_index: set to override the host_index for a single
2741
+ request; this effectively ignores the host_index
2742
+ in the spec for a single request.
2743
+ :type _host_index: int, optional
2744
+ :return: Returns the result object.
2745
+ """ # noqa: E501
2746
+
2747
+ _param = self._update_mobile_app_ip_masking_configuration_serialize(
2748
+ mobile_app_id=mobile_app_id,
2749
+ ip_masking_configuration=ip_masking_configuration,
2750
+ _request_auth=_request_auth,
2751
+ _content_type=_content_type,
2752
+ _headers=_headers,
2753
+ _host_index=_host_index
2754
+ )
2755
+
2756
+ _response_types_map: Dict[str, Optional[str]] = {
2757
+ '200': "IpMaskingConfiguration",
2758
+ '401': None,
2759
+ '403': None,
2760
+ '404': None,
2761
+ '500': None,
2762
+ }
2763
+ response_data = self.api_client.call_api(
2764
+ *_param,
2765
+ _request_timeout=_request_timeout
2766
+ )
2767
+ return response_data.response
2768
+
2769
+
2770
+ def _update_mobile_app_ip_masking_configuration_serialize(
2771
+ self,
2772
+ mobile_app_id,
2773
+ ip_masking_configuration,
2774
+ _request_auth,
2775
+ _content_type,
2776
+ _headers,
2777
+ _host_index,
2778
+ ) -> RequestSerialized:
2779
+
2780
+ _host = None
2781
+
2782
+ _collection_formats: Dict[str, str] = {
2783
+ }
2784
+
2785
+ _path_params: Dict[str, str] = {}
2786
+ _query_params: List[Tuple[str, str]] = []
2787
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2788
+ _form_params: List[Tuple[str, str]] = []
2789
+ _files: Dict[
2790
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2791
+ ] = {}
2792
+ _body_params: Optional[bytes] = None
2793
+
2794
+ # process the path parameters
2795
+ if mobile_app_id is not None:
2796
+ _path_params['mobileAppId'] = mobile_app_id
2797
+ # process the query parameters
2798
+ # process the header parameters
2799
+ # process the form parameters
2800
+ # process the body parameter
2801
+ if ip_masking_configuration is not None:
2802
+ _body_params = ip_masking_configuration
2803
+
2804
+
2805
+ # set the HTTP header `Accept`
2806
+ if 'Accept' not in _header_params:
2807
+ _header_params['Accept'] = self.api_client.select_header_accept(
2808
+ [
2809
+ 'application/json'
2810
+ ]
2811
+ )
2812
+
2813
+ # set the HTTP header `Content-Type`
2814
+ if _content_type:
2815
+ _header_params['Content-Type'] = _content_type
2816
+ else:
2817
+ _default_content_type = (
2818
+ self.api_client.select_header_content_type(
2819
+ [
2820
+ 'application/json'
2821
+ ]
2822
+ )
2823
+ )
2824
+ if _default_content_type is not None:
2825
+ _header_params['Content-Type'] = _default_content_type
2826
+
2827
+ # authentication setting
2828
+ _auth_settings: List[str] = [
2829
+ 'ApiKeyAuth'
2830
+ ]
2831
+
2832
+ return self.api_client.param_serialize(
2833
+ method='PUT',
2834
+ resource_path='/api/mobile-app-monitoring/config/{mobileAppId}/ip-masking',
2835
+ path_params=_path_params,
2836
+ query_params=_query_params,
2837
+ header_params=_header_params,
2838
+ body=_body_params,
2839
+ post_params=_form_params,
2840
+ files=_files,
2841
+ auth_settings=_auth_settings,
2842
+ collection_formats=_collection_formats,
2843
+ _host=_host,
2844
+ _request_auth=_request_auth
2845
+ )
2846
+
2847
+