datadog_api_client 2.44.0 → 2.45.0

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 (318) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +564 -36
  3. data/.generator/schemas/v2/openapi.yaml +3946 -412
  4. data/CHANGELOG.md +25 -0
  5. data/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb +17 -0
  6. data/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb +16 -0
  7. data/examples/v2/aws-integration/ListAWSEventBridgeSources.rb +5 -0
  8. data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +1 -1
  9. data/examples/v2/fleet-automation/CreateFleetDeploymentUpgrade.rb +23 -0
  10. data/examples/v2/fleet-automation/CreateFleetSchedule.rb +30 -0
  11. data/examples/v2/fleet-automation/DeleteFleetSchedule.rb +8 -0
  12. data/examples/v2/fleet-automation/GetFleetDeployment.rb +2 -5
  13. data/examples/v2/fleet-automation/GetFleetDeployment_1482493803.rb +11 -0
  14. data/examples/v2/fleet-automation/GetFleetSchedule.rb +8 -0
  15. data/examples/v2/fleet-automation/ListFleetAgentVersions.rb +8 -0
  16. data/examples/v2/fleet-automation/ListFleetSchedules.rb +8 -0
  17. data/examples/v2/fleet-automation/TriggerFleetSchedule.rb +8 -0
  18. data/examples/v2/fleet-automation/UpdateFleetSchedule.rb +30 -0
  19. data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
  20. data/examples/v2/rum-audience-management/CreateConnection.rb +36 -0
  21. data/examples/v2/rum-audience-management/DeleteConnection.rb +8 -0
  22. data/examples/v2/rum-audience-management/GetAccountFacetInfo.rb +25 -0
  23. data/examples/v2/rum-audience-management/GetMapping.rb +8 -0
  24. data/examples/v2/rum-audience-management/GetUserFacetInfo.rb +25 -0
  25. data/examples/v2/rum-audience-management/ListConnections.rb +8 -0
  26. data/examples/v2/rum-audience-management/QueryAccounts.rb +34 -0
  27. data/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb +37 -0
  28. data/examples/v2/rum-audience-management/QueryUsers.rb +34 -0
  29. data/examples/v2/rum-audience-management/UpdateConnection.rb +43 -0
  30. data/examples/v2/security-monitoring/CancelThreatHuntingJob.rb +8 -0
  31. data/examples/v2/security-monitoring/CancelThreatHuntingJob_1945505845.rb +12 -0
  32. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +4 -0
  33. data/examples/v2/security-monitoring/{DeleteHistoricalJob.rb → DeleteThreatHuntingJob.rb} +2 -2
  34. data/examples/v2/security-monitoring/GetSecretsRules.rb +8 -0
  35. data/examples/v2/security-monitoring/GetThreatHuntingJob.rb +12 -0
  36. data/examples/v2/security-monitoring/ListMultipleRulesets.rb +17 -0
  37. data/examples/v2/security-monitoring/ListThreatHuntingJobs.rb +8 -0
  38. data/examples/v2/security-monitoring/ListThreatHuntingJobs_1365512061.rb +15 -0
  39. data/examples/v2/security-monitoring/{RunHistoricalJob.rb → RunThreatHuntingJob.rb} +9 -9
  40. data/examples/v2/software-catalog/PreviewCatalogEntities.rb +5 -0
  41. data/examples/v2/team-connections/CreateTeamConnections.rb +37 -0
  42. data/examples/v2/team-connections/DeleteTeamConnections.rb +17 -0
  43. data/examples/v2/team-connections/ListTeamConnections.rb +8 -0
  44. data/examples/v2/team-connections/ListTeamConnections_1473516764.rb +14 -0
  45. data/examples/v2/team-connections/ListTeamConnections_2418873869.rb +8 -0
  46. data/lib/datadog_api_client/configuration.rb +28 -5
  47. data/lib/datadog_api_client/inflector.rb +172 -12
  48. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +18 -9
  49. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
  50. data/lib/datadog_api_client/v1/api/key_management_api.rb +5 -0
  51. data/lib/datadog_api_client/v1/api/metrics_api.rb +5 -0
  52. data/lib/datadog_api_client/v1/models/aws_account.rb +5 -3
  53. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  54. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +304 -4
  55. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +304 -4
  56. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +301 -1
  57. data/lib/datadog_api_client/v2/api/aws_integration_api.rb +194 -0
  58. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +2 -2
  59. data/lib/datadog_api_client/v2/api/events_api.rb +2 -0
  60. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +683 -8
  61. data/lib/datadog_api_client/v2/api/incidents_api.rb +3 -0
  62. data/lib/datadog_api_client/v2/api/key_management_api.rb +4 -2
  63. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +20 -16
  64. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  65. data/lib/datadog_api_client/v2/api/rum_audience_management_api.rb +765 -0
  66. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +344 -205
  67. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +57 -0
  68. data/lib/datadog_api_client/v2/api/team_connections_api.rb +272 -0
  69. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  70. data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +2 -1
  71. data/lib/datadog_api_client/v2/models/aws_account_partition.rb +2 -1
  72. data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +2 -1
  73. data/lib/datadog_api_client/v2/models/aws_account_response_data.rb +2 -1
  74. data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +2 -1
  75. data/lib/datadog_api_client/v2/models/aws_account_update_request_data.rb +2 -1
  76. data/lib/datadog_api_client/v2/models/aws_event_bridge_account_configuration.rb +130 -0
  77. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request.rb +123 -0
  78. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_attributes.rb +178 -0
  79. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_data.rb +144 -0
  80. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response.rb +123 -0
  81. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_attributes.rb +136 -0
  82. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_data.rb +154 -0
  83. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_status.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request.rb +123 -0
  85. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_attributes.rb +166 -0
  86. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_data.rb +144 -0
  87. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response.rb +123 -0
  88. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_attributes.rb +105 -0
  89. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_data.rb +154 -0
  90. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_status.rb +26 -0
  91. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response.rb +123 -0
  92. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_attributes.rb +117 -0
  93. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_data.rb +165 -0
  94. data/lib/datadog_api_client/v2/models/aws_event_bridge_source.rb +116 -0
  95. data/lib/datadog_api_client/v2/models/aws_event_bridge_type.rb +26 -0
  96. data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config.rb +7 -4
  97. data/lib/datadog_api_client/v2/models/aws_log_source_tag_filter.rb +7 -3
  98. data/lib/datadog_api_client/v2/models/aws_logs_config.rb +3 -2
  99. data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +8 -4
  100. data/lib/datadog_api_client/v2/models/aws_namespace_tag_filter.rb +6 -4
  101. data/lib/datadog_api_client/v2/models/aws_resources_config.rb +5 -2
  102. data/lib/datadog_api_client/v2/models/connected_team_ref.rb +105 -0
  103. data/lib/datadog_api_client/v2/models/connected_team_ref_data.rb +144 -0
  104. data/lib/datadog_api_client/v2/models/connected_team_ref_data_type.rb +26 -0
  105. data/lib/datadog_api_client/v2/models/connections_page_pagination.rb +184 -0
  106. data/lib/datadog_api_client/v2/models/connections_response_meta.rb +105 -0
  107. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_attributes.rb +1 -1
  108. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_data.rb +2 -2
  109. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_request.rb +2 -2
  110. data/lib/datadog_api_client/v2/models/{historical_job_response.rb → create_connection_request.rb} +5 -5
  111. data/lib/datadog_api_client/v2/models/create_connection_request_data.rb +143 -0
  112. data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes.rb +187 -0
  113. data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes_fields_items.rb +197 -0
  114. data/lib/datadog_api_client/v2/models/create_table_request.rb +2 -2
  115. data/lib/datadog_api_client/v2/models/create_table_request_data.rb +6 -41
  116. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +6 -6
  117. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +1 -1
  118. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
  119. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  120. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  121. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  122. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  123. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +2 -2
  124. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/create_upload_request.rb +2 -2
  126. data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +6 -41
  127. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -5
  128. data/lib/datadog_api_client/v2/models/create_upload_response.rb +2 -2
  129. data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +7 -32
  130. data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +2 -2
  131. data/lib/datadog_api_client/v2/models/entity_response_array.rb +125 -0
  132. data/lib/datadog_api_client/v2/models/entity_response_data_attributes.rb +187 -0
  133. data/lib/datadog_api_client/v2/models/entity_response_data_relationships.rb +145 -0
  134. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents.rb +107 -0
  135. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items.rb +144 -0
  136. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items_type.rb +26 -0
  137. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls.rb +107 -0
  138. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items.rb +144 -0
  139. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items_type.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data.rb +144 -0
  142. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data_type.rb +26 -0
  143. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities.rb +107 -0
  144. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items.rb +144 -0
  145. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items_type.rb +26 -0
  146. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema.rb +123 -0
  147. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data.rb +144 -0
  148. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data_type.rb +26 -0
  149. data/lib/datadog_api_client/v2/models/entity_response_data_type.rb +26 -0
  150. data/lib/datadog_api_client/v2/models/facet_info_request.rb +105 -0
  151. data/lib/datadog_api_client/v2/models/facet_info_request_data.rb +143 -0
  152. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes.rb +164 -0
  153. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_search.rb +105 -0
  154. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_term_search.rb +105 -0
  155. data/lib/datadog_api_client/v2/models/facet_info_request_data_type.rb +26 -0
  156. data/lib/datadog_api_client/v2/models/facet_info_response.rb +105 -0
  157. data/lib/datadog_api_client/v2/models/facet_info_response_data.rb +143 -0
  158. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes.rb +105 -0
  159. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result.rb +117 -0
  160. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_range.rb +115 -0
  161. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_values_items.rb +115 -0
  162. data/lib/datadog_api_client/v2/models/facet_info_response_data_type.rb +26 -0
  163. data/lib/datadog_api_client/v2/models/fleet_agent_version.rb +154 -0
  164. data/lib/datadog_api_client/v2/models/fleet_agent_version_attributes.rb +105 -0
  165. data/lib/datadog_api_client/v2/models/fleet_agent_version_resource_type.rb +26 -0
  166. data/lib/datadog_api_client/v2/models/fleet_agent_versions_response.rb +125 -0
  167. data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +29 -2
  168. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +1 -1
  169. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +2 -2
  170. data/lib/datadog_api_client/v2/models/fleet_deployment_host.rb +137 -0
  171. data/lib/datadog_api_client/v2/models/fleet_deployment_host_package.rb +136 -0
  172. data/lib/datadog_api_client/v2/models/fleet_deployment_hosts_page.rb +135 -0
  173. data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +2 -2
  174. data/lib/datadog_api_client/v2/models/fleet_deployment_package.rb +144 -0
  175. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_attributes.rb +135 -0
  176. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create.rb +144 -0
  177. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create_request.rb +123 -0
  178. data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +13 -3
  179. data/lib/datadog_api_client/v2/models/fleet_deployment_response_meta.rb +105 -0
  180. data/lib/datadog_api_client/v2/models/fleet_schedule.rb +165 -0
  181. data/lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb +214 -0
  182. data/lib/datadog_api_client/v2/models/fleet_schedule_create.rb +144 -0
  183. data/lib/datadog_api_client/v2/models/fleet_schedule_create_attributes.rb +207 -0
  184. data/lib/datadog_api_client/v2/models/fleet_schedule_create_request.rb +123 -0
  185. data/lib/datadog_api_client/v2/models/fleet_schedule_patch.rb +133 -0
  186. data/lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb +174 -0
  187. data/lib/datadog_api_client/v2/models/fleet_schedule_patch_request.rb +123 -0
  188. data/lib/datadog_api_client/v2/models/fleet_schedule_recurrence_rule.rb +191 -0
  189. data/lib/datadog_api_client/v2/models/fleet_schedule_resource_type.rb +26 -0
  190. data/lib/datadog_api_client/v2/models/fleet_schedule_response.rb +105 -0
  191. data/lib/datadog_api_client/v2/models/fleet_schedule_status.rb +29 -0
  192. data/lib/datadog_api_client/v2/models/fleet_schedules_response.rb +125 -0
  193. data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +13 -1
  194. data/lib/datadog_api_client/v2/models/get_mapping_response.rb +105 -0
  195. data/lib/datadog_api_client/v2/models/get_mapping_response_data.rb +143 -0
  196. data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes.rb +107 -0
  197. data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes_attributes_items.rb +157 -0
  198. data/lib/datadog_api_client/v2/models/get_mapping_response_data_type.rb +26 -0
  199. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request.rb +105 -0
  200. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data.rb +143 -0
  201. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_attributes.rb +127 -0
  202. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_type.rb +26 -0
  203. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response.rb +105 -0
  204. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data.rb +143 -0
  205. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes.rb +107 -0
  206. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items.rb +165 -0
  207. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data.rb +133 -0
  208. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data_type.rb +26 -0
  209. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items.rb +367 -0
  210. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_arguments_items.rb +115 -0
  211. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data.rb +133 -0
  212. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb +147 -0
  214. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_type.rb +26 -0
  215. data/lib/datadog_api_client/v2/models/job_create_response.rb +1 -1
  216. data/lib/datadog_api_client/v2/models/job_create_response_data.rb +1 -1
  217. data/lib/datadog_api_client/v2/models/job_definition.rb +3 -3
  218. data/lib/datadog_api_client/v2/models/job_definition_from_rule.rb +1 -1
  219. data/lib/datadog_api_client/v2/models/{run_historical_job_request.rb → list_connections_response.rb} +5 -5
  220. data/lib/datadog_api_client/v2/models/list_connections_response_data.rb +143 -0
  221. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes.rb +107 -0
  222. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items.rb +187 -0
  223. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items_join.rb +115 -0
  224. data/lib/datadog_api_client/v2/models/list_connections_response_data_type.rb +26 -0
  225. data/lib/datadog_api_client/v2/models/{list_historical_jobs_response.rb → list_threat_hunting_jobs_response.rb} +6 -6
  226. data/lib/datadog_api_client/v2/models/patch_table_request.rb +2 -2
  227. data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +6 -41
  228. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +5 -5
  229. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +1 -1
  230. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
  231. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  232. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  233. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  234. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  235. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +3 -3
  236. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +1 -1
  237. data/lib/datadog_api_client/v2/models/preview_entity_response_data.rb +153 -0
  238. data/lib/datadog_api_client/v2/models/query_account_request.rb +105 -0
  239. data/lib/datadog_api_client/v2/models/query_account_request_data.rb +143 -0
  240. data/lib/datadog_api_client/v2/models/query_account_request_data_attributes.rb +147 -0
  241. data/lib/datadog_api_client/v2/models/query_account_request_data_attributes_sort.rb +115 -0
  242. data/lib/datadog_api_client/v2/models/query_account_request_data_type.rb +26 -0
  243. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request.rb +105 -0
  244. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data.rb +143 -0
  245. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes.rb +147 -0
  246. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query.rb +115 -0
  247. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query_time_frame.rb +115 -0
  248. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_type.rb +26 -0
  249. data/lib/datadog_api_client/v2/models/query_response.rb +105 -0
  250. data/lib/datadog_api_client/v2/models/query_response_data.rb +143 -0
  251. data/lib/datadog_api_client/v2/models/query_response_data_attributes.rb +117 -0
  252. data/lib/datadog_api_client/v2/models/query_response_data_type.rb +26 -0
  253. data/lib/datadog_api_client/v2/models/query_users_request.rb +105 -0
  254. data/lib/datadog_api_client/v2/models/query_users_request_data.rb +143 -0
  255. data/lib/datadog_api_client/v2/models/query_users_request_data_attributes.rb +147 -0
  256. data/lib/datadog_api_client/v2/models/query_users_request_data_attributes_sort.rb +115 -0
  257. data/lib/datadog_api_client/v2/models/query_users_request_data_type.rb +26 -0
  258. data/lib/datadog_api_client/v2/models/run_threat_hunting_job_request.rb +105 -0
  259. data/lib/datadog_api_client/v2/models/{run_historical_job_request_attributes.rb → run_threat_hunting_job_request_attributes.rb} +5 -5
  260. data/lib/datadog_api_client/v2/models/{run_historical_job_request_data.rb → run_threat_hunting_job_request_data.rb} +6 -6
  261. data/lib/datadog_api_client/v2/models/{run_historical_job_request_data_type.rb → run_threat_hunting_job_request_data_type.rb} +1 -1
  262. data/lib/datadog_api_client/v2/models/secret_rule_array.rb +125 -0
  263. data/lib/datadog_api_client/v2/models/secret_rule_data.rb +143 -0
  264. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes.rb +189 -0
  265. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation.rb +203 -0
  266. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_invalid_http_status_code_items.rb +152 -0
  267. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_valid_http_status_code_items.rb +152 -0
  268. data/lib/datadog_api_client/v2/models/secret_rule_data_type.rb +26 -0
  269. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +2 -0
  270. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +13 -1
  271. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +15 -3
  272. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +13 -1
  273. data/lib/datadog_api_client/v2/models/table_result_v2.rb +2 -2
  274. data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +1 -1
  275. data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +7 -32
  276. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -8
  277. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +1 -1
  278. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +19 -26
  279. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +7 -42
  280. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  281. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  282. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  283. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  284. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +2 -2
  285. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +1 -1
  286. data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +1 -1
  287. data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +7 -32
  288. data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +7 -32
  289. data/lib/datadog_api_client/v2/models/team_connection.rb +164 -0
  290. data/lib/datadog_api_client/v2/models/team_connection_attributes.rb +115 -0
  291. data/lib/datadog_api_client/v2/models/team_connection_create_data.rb +143 -0
  292. data/lib/datadog_api_client/v2/models/team_connection_create_request.rb +125 -0
  293. data/lib/datadog_api_client/v2/models/team_connection_delete_request.rb +125 -0
  294. data/lib/datadog_api_client/v2/models/team_connection_delete_request_data_item.rb +144 -0
  295. data/lib/datadog_api_client/v2/models/team_connection_relationships.rb +115 -0
  296. data/lib/datadog_api_client/v2/models/team_connection_type.rb +26 -0
  297. data/lib/datadog_api_client/v2/models/team_connections_response.rb +117 -0
  298. data/lib/datadog_api_client/v2/models/team_ref.rb +105 -0
  299. data/lib/datadog_api_client/v2/models/team_ref_data.rb +144 -0
  300. data/lib/datadog_api_client/v2/models/team_ref_data_type.rb +26 -0
  301. data/lib/datadog_api_client/v2/models/{historical_job_data_type.rb → threat_hunting_job_data_type.rb} +1 -1
  302. data/lib/datadog_api_client/v2/models/{historical_job_list_meta.rb → threat_hunting_job_list_meta.rb} +2 -2
  303. data/lib/datadog_api_client/v2/models/{historical_job_options.rb → threat_hunting_job_options.rb} +2 -2
  304. data/lib/datadog_api_client/v2/models/{historical_job_query.rb → threat_hunting_job_query.rb} +3 -3
  305. data/lib/datadog_api_client/v2/models/threat_hunting_job_response.rb +105 -0
  306. data/lib/datadog_api_client/v2/models/{historical_job_response_attributes.rb → threat_hunting_job_response_attributes.rb} +4 -4
  307. data/lib/datadog_api_client/v2/models/{historical_job_response_data.rb → threat_hunting_job_response_data.rb} +6 -6
  308. data/lib/datadog_api_client/v2/models/update_connection_request.rb +105 -0
  309. data/lib/datadog_api_client/v2/models/update_connection_request_data.rb +154 -0
  310. data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes.rb +131 -0
  311. data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes_fields_to_update_items.rb +165 -0
  312. data/lib/datadog_api_client/v2/models/update_connection_request_data_type.rb +26 -0
  313. data/lib/datadog_api_client/v2/models/user_attributes.rb +12 -1
  314. data/lib/datadog_api_client/version.rb +1 -1
  315. metadata +210 -18
  316. data/examples/v2/security-monitoring/CancelHistoricalJob.rb +0 -12
  317. data/examples/v2/security-monitoring/GetHistoricalJob.rb +0 -12
  318. data/examples/v2/security-monitoring/ListHistoricalJobs.rb +0 -15
@@ -0,0 +1,765 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'cgi'
17
+
18
+ module DatadogAPIClient::V2
19
+ class RumAudienceManagementAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Create connection.
27
+ #
28
+ # @see #create_connection_with_http_info
29
+ def create_connection(entity, body, opts = {})
30
+ create_connection_with_http_info(entity, body, opts)
31
+ nil
32
+ end
33
+
34
+ # Create connection.
35
+ #
36
+ # Create a new data connection and its fields for an entity
37
+ #
38
+ # @param entity [String] The entity for which to create the connection
39
+ # @param body [CreateConnectionRequest]
40
+ # @param opts [Hash] the optional parameters
41
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
+ def create_connection_with_http_info(entity, body, opts = {})
43
+ unstable_enabled = @api_client.config.unstable_operations["v2.create_connection".to_sym]
44
+ if unstable_enabled
45
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_connection")
46
+ else
47
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_connection"))
48
+ end
49
+
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.create_connection ...'
52
+ end
53
+ # verify the required parameter 'entity' is set
54
+ if @api_client.config.client_side_validation && entity.nil?
55
+ fail ArgumentError, "Missing the required parameter 'entity' when calling RumAudienceManagementAPI.create_connection"
56
+ end
57
+ # verify the required parameter 'body' is set
58
+ if @api_client.config.client_side_validation && body.nil?
59
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.create_connection"
60
+ end
61
+ # resource path
62
+ local_var_path = '/api/v2/product-analytics/{entity}/mapping/connection'.sub('{entity}', CGI.escape(entity.to_s).gsub('%2F', '/'))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
71
+ # HTTP header 'Content-Type'
72
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
79
+
80
+ # return_type
81
+ return_type = opts[:debug_return_type]
82
+
83
+ # auth_names
84
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
85
+
86
+ new_options = opts.merge(
87
+ :operation => :create_connection,
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => return_type,
94
+ :api_version => "V2"
95
+ )
96
+
97
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#create_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
+ end
101
+ return data, status_code, headers
102
+ end
103
+
104
+ # Delete connection.
105
+ #
106
+ # @see #delete_connection_with_http_info
107
+ def delete_connection(id, entity, opts = {})
108
+ delete_connection_with_http_info(id, entity, opts)
109
+ nil
110
+ end
111
+
112
+ # Delete connection.
113
+ #
114
+ # Delete an existing data connection for an entity
115
+ #
116
+ # @param id [String] The connection ID to delete
117
+ # @param entity [String] The entity for which to delete the connection
118
+ # @param opts [Hash] the optional parameters
119
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
120
+ def delete_connection_with_http_info(id, entity, opts = {})
121
+ unstable_enabled = @api_client.config.unstable_operations["v2.delete_connection".to_sym]
122
+ if unstable_enabled
123
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_connection")
124
+ else
125
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_connection"))
126
+ end
127
+
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.delete_connection ...'
130
+ end
131
+ # verify the required parameter 'id' is set
132
+ if @api_client.config.client_side_validation && id.nil?
133
+ fail ArgumentError, "Missing the required parameter 'id' when calling RumAudienceManagementAPI.delete_connection"
134
+ end
135
+ # verify the required parameter 'entity' is set
136
+ if @api_client.config.client_side_validation && entity.nil?
137
+ fail ArgumentError, "Missing the required parameter 'entity' when calling RumAudienceManagementAPI.delete_connection"
138
+ end
139
+ # resource path
140
+ local_var_path = '/api/v2/product-analytics/{entity}/mapping/connection/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/')).sub('{entity}', CGI.escape(entity.to_s).gsub('%2F', '/'))
141
+
142
+ # query parameters
143
+ query_params = opts[:query_params] || {}
144
+
145
+ # header parameters
146
+ header_params = opts[:header_params] || {}
147
+ # HTTP header 'Accept' (if needed)
148
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
149
+
150
+ # form parameters
151
+ form_params = opts[:form_params] || {}
152
+
153
+ # http body (model)
154
+ post_body = opts[:debug_body]
155
+
156
+ # return_type
157
+ return_type = opts[:debug_return_type]
158
+
159
+ # auth_names
160
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
161
+
162
+ new_options = opts.merge(
163
+ :operation => :delete_connection,
164
+ :header_params => header_params,
165
+ :query_params => query_params,
166
+ :form_params => form_params,
167
+ :body => post_body,
168
+ :auth_names => auth_names,
169
+ :return_type => return_type,
170
+ :api_version => "V2"
171
+ )
172
+
173
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#delete_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # Get account facet info.
181
+ #
182
+ # @see #get_account_facet_info_with_http_info
183
+ def get_account_facet_info(body, opts = {})
184
+ data, _status_code, _headers = get_account_facet_info_with_http_info(body, opts)
185
+ data
186
+ end
187
+
188
+ # Get account facet info.
189
+ #
190
+ # Get facet information for account attributes including possible values and counts
191
+ #
192
+ # @param body [FacetInfoRequest]
193
+ # @param opts [Hash] the optional parameters
194
+ # @return [Array<(FacetInfoResponse, Integer, Hash)>] FacetInfoResponse data, response status code and response headers
195
+ def get_account_facet_info_with_http_info(body, opts = {})
196
+ unstable_enabled = @api_client.config.unstable_operations["v2.get_account_facet_info".to_sym]
197
+ if unstable_enabled
198
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_account_facet_info")
199
+ else
200
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_account_facet_info"))
201
+ end
202
+
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.get_account_facet_info ...'
205
+ end
206
+ # verify the required parameter 'body' is set
207
+ if @api_client.config.client_side_validation && body.nil?
208
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.get_account_facet_info"
209
+ end
210
+ # resource path
211
+ local_var_path = '/api/v2/product-analytics/accounts/facet_info'
212
+
213
+ # query parameters
214
+ query_params = opts[:query_params] || {}
215
+
216
+ # header parameters
217
+ header_params = opts[:header_params] || {}
218
+ # HTTP header 'Accept' (if needed)
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
220
+ # HTTP header 'Content-Type'
221
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
222
+
223
+ # form parameters
224
+ form_params = opts[:form_params] || {}
225
+
226
+ # http body (model)
227
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
228
+
229
+ # return_type
230
+ return_type = opts[:debug_return_type] || 'FacetInfoResponse'
231
+
232
+ # auth_names
233
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
234
+
235
+ new_options = opts.merge(
236
+ :operation => :get_account_facet_info,
237
+ :header_params => header_params,
238
+ :query_params => query_params,
239
+ :form_params => form_params,
240
+ :body => post_body,
241
+ :auth_names => auth_names,
242
+ :return_type => return_type,
243
+ :api_version => "V2"
244
+ )
245
+
246
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#get_account_facet_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+
253
+ # Get mapping.
254
+ #
255
+ # @see #get_mapping_with_http_info
256
+ def get_mapping(entity, opts = {})
257
+ data, _status_code, _headers = get_mapping_with_http_info(entity, opts)
258
+ data
259
+ end
260
+
261
+ # Get mapping.
262
+ #
263
+ # Get entity mapping configuration including all available attributes and their properties
264
+ #
265
+ # @param entity [String] The entity for which to get the mapping
266
+ # @param opts [Hash] the optional parameters
267
+ # @return [Array<(GetMappingResponse, Integer, Hash)>] GetMappingResponse data, response status code and response headers
268
+ def get_mapping_with_http_info(entity, opts = {})
269
+ unstable_enabled = @api_client.config.unstable_operations["v2.get_mapping".to_sym]
270
+ if unstable_enabled
271
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_mapping")
272
+ else
273
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_mapping"))
274
+ end
275
+
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.get_mapping ...'
278
+ end
279
+ # verify the required parameter 'entity' is set
280
+ if @api_client.config.client_side_validation && entity.nil?
281
+ fail ArgumentError, "Missing the required parameter 'entity' when calling RumAudienceManagementAPI.get_mapping"
282
+ end
283
+ # resource path
284
+ local_var_path = '/api/v2/product-analytics/{entity}/mapping'.sub('{entity}', CGI.escape(entity.to_s).gsub('%2F', '/'))
285
+
286
+ # query parameters
287
+ query_params = opts[:query_params] || {}
288
+
289
+ # header parameters
290
+ header_params = opts[:header_params] || {}
291
+ # HTTP header 'Accept' (if needed)
292
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
293
+
294
+ # form parameters
295
+ form_params = opts[:form_params] || {}
296
+
297
+ # http body (model)
298
+ post_body = opts[:debug_body]
299
+
300
+ # return_type
301
+ return_type = opts[:debug_return_type] || 'GetMappingResponse'
302
+
303
+ # auth_names
304
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
305
+
306
+ new_options = opts.merge(
307
+ :operation => :get_mapping,
308
+ :header_params => header_params,
309
+ :query_params => query_params,
310
+ :form_params => form_params,
311
+ :body => post_body,
312
+ :auth_names => auth_names,
313
+ :return_type => return_type,
314
+ :api_version => "V2"
315
+ )
316
+
317
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
318
+ if @api_client.config.debugging
319
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#get_mapping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
320
+ end
321
+ return data, status_code, headers
322
+ end
323
+
324
+ # Get user facet info.
325
+ #
326
+ # @see #get_user_facet_info_with_http_info
327
+ def get_user_facet_info(body, opts = {})
328
+ data, _status_code, _headers = get_user_facet_info_with_http_info(body, opts)
329
+ data
330
+ end
331
+
332
+ # Get user facet info.
333
+ #
334
+ # Get facet information for user attributes including possible values and counts
335
+ #
336
+ # @param body [FacetInfoRequest]
337
+ # @param opts [Hash] the optional parameters
338
+ # @return [Array<(FacetInfoResponse, Integer, Hash)>] FacetInfoResponse data, response status code and response headers
339
+ def get_user_facet_info_with_http_info(body, opts = {})
340
+ unstable_enabled = @api_client.config.unstable_operations["v2.get_user_facet_info".to_sym]
341
+ if unstable_enabled
342
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_user_facet_info")
343
+ else
344
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_user_facet_info"))
345
+ end
346
+
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.get_user_facet_info ...'
349
+ end
350
+ # verify the required parameter 'body' is set
351
+ if @api_client.config.client_side_validation && body.nil?
352
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.get_user_facet_info"
353
+ end
354
+ # resource path
355
+ local_var_path = '/api/v2/product-analytics/users/facet_info'
356
+
357
+ # query parameters
358
+ query_params = opts[:query_params] || {}
359
+
360
+ # header parameters
361
+ header_params = opts[:header_params] || {}
362
+ # HTTP header 'Accept' (if needed)
363
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
364
+ # HTTP header 'Content-Type'
365
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
366
+
367
+ # form parameters
368
+ form_params = opts[:form_params] || {}
369
+
370
+ # http body (model)
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
372
+
373
+ # return_type
374
+ return_type = opts[:debug_return_type] || 'FacetInfoResponse'
375
+
376
+ # auth_names
377
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
378
+
379
+ new_options = opts.merge(
380
+ :operation => :get_user_facet_info,
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type,
387
+ :api_version => "V2"
388
+ )
389
+
390
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
391
+ if @api_client.config.debugging
392
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#get_user_facet_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
393
+ end
394
+ return data, status_code, headers
395
+ end
396
+
397
+ # List connections.
398
+ #
399
+ # @see #list_connections_with_http_info
400
+ def list_connections(entity, opts = {})
401
+ data, _status_code, _headers = list_connections_with_http_info(entity, opts)
402
+ data
403
+ end
404
+
405
+ # List connections.
406
+ #
407
+ # List all data connections for an entity
408
+ #
409
+ # @param entity [String] The entity for which to list connections
410
+ # @param opts [Hash] the optional parameters
411
+ # @return [Array<(ListConnectionsResponse, Integer, Hash)>] ListConnectionsResponse data, response status code and response headers
412
+ def list_connections_with_http_info(entity, opts = {})
413
+ unstable_enabled = @api_client.config.unstable_operations["v2.list_connections".to_sym]
414
+ if unstable_enabled
415
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_connections")
416
+ else
417
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_connections"))
418
+ end
419
+
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.list_connections ...'
422
+ end
423
+ # verify the required parameter 'entity' is set
424
+ if @api_client.config.client_side_validation && entity.nil?
425
+ fail ArgumentError, "Missing the required parameter 'entity' when calling RumAudienceManagementAPI.list_connections"
426
+ end
427
+ # resource path
428
+ local_var_path = '/api/v2/product-analytics/{entity}/mapping/connections'.sub('{entity}', CGI.escape(entity.to_s).gsub('%2F', '/'))
429
+
430
+ # query parameters
431
+ query_params = opts[:query_params] || {}
432
+
433
+ # header parameters
434
+ header_params = opts[:header_params] || {}
435
+ # HTTP header 'Accept' (if needed)
436
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
437
+
438
+ # form parameters
439
+ form_params = opts[:form_params] || {}
440
+
441
+ # http body (model)
442
+ post_body = opts[:debug_body]
443
+
444
+ # return_type
445
+ return_type = opts[:debug_return_type] || 'ListConnectionsResponse'
446
+
447
+ # auth_names
448
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
449
+
450
+ new_options = opts.merge(
451
+ :operation => :list_connections,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => return_type,
458
+ :api_version => "V2"
459
+ )
460
+
461
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
462
+ if @api_client.config.debugging
463
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#list_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
464
+ end
465
+ return data, status_code, headers
466
+ end
467
+
468
+ # Query accounts.
469
+ #
470
+ # @see #query_accounts_with_http_info
471
+ def query_accounts(body, opts = {})
472
+ data, _status_code, _headers = query_accounts_with_http_info(body, opts)
473
+ data
474
+ end
475
+
476
+ # Query accounts.
477
+ #
478
+ # Query accounts with flexible filtering by account properties
479
+ #
480
+ # @param body [QueryAccountRequest]
481
+ # @param opts [Hash] the optional parameters
482
+ # @return [Array<(QueryResponse, Integer, Hash)>] QueryResponse data, response status code and response headers
483
+ def query_accounts_with_http_info(body, opts = {})
484
+ unstable_enabled = @api_client.config.unstable_operations["v2.query_accounts".to_sym]
485
+ if unstable_enabled
486
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.query_accounts")
487
+ else
488
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.query_accounts"))
489
+ end
490
+
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.query_accounts ...'
493
+ end
494
+ # verify the required parameter 'body' is set
495
+ if @api_client.config.client_side_validation && body.nil?
496
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.query_accounts"
497
+ end
498
+ # resource path
499
+ local_var_path = '/api/v2/product-analytics/accounts/query'
500
+
501
+ # query parameters
502
+ query_params = opts[:query_params] || {}
503
+
504
+ # header parameters
505
+ header_params = opts[:header_params] || {}
506
+ # HTTP header 'Accept' (if needed)
507
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
508
+ # HTTP header 'Content-Type'
509
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
510
+
511
+ # form parameters
512
+ form_params = opts[:form_params] || {}
513
+
514
+ # http body (model)
515
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
516
+
517
+ # return_type
518
+ return_type = opts[:debug_return_type] || 'QueryResponse'
519
+
520
+ # auth_names
521
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
522
+
523
+ new_options = opts.merge(
524
+ :operation => :query_accounts,
525
+ :header_params => header_params,
526
+ :query_params => query_params,
527
+ :form_params => form_params,
528
+ :body => post_body,
529
+ :auth_names => auth_names,
530
+ :return_type => return_type,
531
+ :api_version => "V2"
532
+ )
533
+
534
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
535
+ if @api_client.config.debugging
536
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#query_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
537
+ end
538
+ return data, status_code, headers
539
+ end
540
+
541
+ # Query event filtered users.
542
+ #
543
+ # @see #query_event_filtered_users_with_http_info
544
+ def query_event_filtered_users(body, opts = {})
545
+ data, _status_code, _headers = query_event_filtered_users_with_http_info(body, opts)
546
+ data
547
+ end
548
+
549
+ # Query event filtered users.
550
+ #
551
+ # Query users filtered by both user properties and event platform data
552
+ #
553
+ # @param body [QueryEventFilteredUsersRequest]
554
+ # @param opts [Hash] the optional parameters
555
+ # @return [Array<(QueryResponse, Integer, Hash)>] QueryResponse data, response status code and response headers
556
+ def query_event_filtered_users_with_http_info(body, opts = {})
557
+ unstable_enabled = @api_client.config.unstable_operations["v2.query_event_filtered_users".to_sym]
558
+ if unstable_enabled
559
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.query_event_filtered_users")
560
+ else
561
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.query_event_filtered_users"))
562
+ end
563
+
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.query_event_filtered_users ...'
566
+ end
567
+ # verify the required parameter 'body' is set
568
+ if @api_client.config.client_side_validation && body.nil?
569
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.query_event_filtered_users"
570
+ end
571
+ # resource path
572
+ local_var_path = '/api/v2/product-analytics/users/event_filtered_query'
573
+
574
+ # query parameters
575
+ query_params = opts[:query_params] || {}
576
+
577
+ # header parameters
578
+ header_params = opts[:header_params] || {}
579
+ # HTTP header 'Accept' (if needed)
580
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
581
+ # HTTP header 'Content-Type'
582
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
583
+
584
+ # form parameters
585
+ form_params = opts[:form_params] || {}
586
+
587
+ # http body (model)
588
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
589
+
590
+ # return_type
591
+ return_type = opts[:debug_return_type] || 'QueryResponse'
592
+
593
+ # auth_names
594
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
595
+
596
+ new_options = opts.merge(
597
+ :operation => :query_event_filtered_users,
598
+ :header_params => header_params,
599
+ :query_params => query_params,
600
+ :form_params => form_params,
601
+ :body => post_body,
602
+ :auth_names => auth_names,
603
+ :return_type => return_type,
604
+ :api_version => "V2"
605
+ )
606
+
607
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
608
+ if @api_client.config.debugging
609
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#query_event_filtered_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
610
+ end
611
+ return data, status_code, headers
612
+ end
613
+
614
+ # Query users.
615
+ #
616
+ # @see #query_users_with_http_info
617
+ def query_users(body, opts = {})
618
+ data, _status_code, _headers = query_users_with_http_info(body, opts)
619
+ data
620
+ end
621
+
622
+ # Query users.
623
+ #
624
+ # Query users with flexible filtering by user properties, with optional wildcard search
625
+ #
626
+ # @param body [QueryUsersRequest]
627
+ # @param opts [Hash] the optional parameters
628
+ # @return [Array<(QueryResponse, Integer, Hash)>] QueryResponse data, response status code and response headers
629
+ def query_users_with_http_info(body, opts = {})
630
+ unstable_enabled = @api_client.config.unstable_operations["v2.query_users".to_sym]
631
+ if unstable_enabled
632
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.query_users")
633
+ else
634
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.query_users"))
635
+ end
636
+
637
+ if @api_client.config.debugging
638
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.query_users ...'
639
+ end
640
+ # verify the required parameter 'body' is set
641
+ if @api_client.config.client_side_validation && body.nil?
642
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.query_users"
643
+ end
644
+ # resource path
645
+ local_var_path = '/api/v2/product-analytics/users/query'
646
+
647
+ # query parameters
648
+ query_params = opts[:query_params] || {}
649
+
650
+ # header parameters
651
+ header_params = opts[:header_params] || {}
652
+ # HTTP header 'Accept' (if needed)
653
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
654
+ # HTTP header 'Content-Type'
655
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
656
+
657
+ # form parameters
658
+ form_params = opts[:form_params] || {}
659
+
660
+ # http body (model)
661
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
662
+
663
+ # return_type
664
+ return_type = opts[:debug_return_type] || 'QueryResponse'
665
+
666
+ # auth_names
667
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
668
+
669
+ new_options = opts.merge(
670
+ :operation => :query_users,
671
+ :header_params => header_params,
672
+ :query_params => query_params,
673
+ :form_params => form_params,
674
+ :body => post_body,
675
+ :auth_names => auth_names,
676
+ :return_type => return_type,
677
+ :api_version => "V2"
678
+ )
679
+
680
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
681
+ if @api_client.config.debugging
682
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#query_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
683
+ end
684
+ return data, status_code, headers
685
+ end
686
+
687
+ # Update connection.
688
+ #
689
+ # @see #update_connection_with_http_info
690
+ def update_connection(entity, body, opts = {})
691
+ update_connection_with_http_info(entity, body, opts)
692
+ nil
693
+ end
694
+
695
+ # Update connection.
696
+ #
697
+ # Update an existing data connection by adding, updating, or deleting fields
698
+ #
699
+ # @param entity [String] The entity for which to update the connection
700
+ # @param body [UpdateConnectionRequest]
701
+ # @param opts [Hash] the optional parameters
702
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
703
+ def update_connection_with_http_info(entity, body, opts = {})
704
+ unstable_enabled = @api_client.config.unstable_operations["v2.update_connection".to_sym]
705
+ if unstable_enabled
706
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_connection")
707
+ else
708
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_connection"))
709
+ end
710
+
711
+ if @api_client.config.debugging
712
+ @api_client.config.logger.debug 'Calling API: RumAudienceManagementAPI.update_connection ...'
713
+ end
714
+ # verify the required parameter 'entity' is set
715
+ if @api_client.config.client_side_validation && entity.nil?
716
+ fail ArgumentError, "Missing the required parameter 'entity' when calling RumAudienceManagementAPI.update_connection"
717
+ end
718
+ # verify the required parameter 'body' is set
719
+ if @api_client.config.client_side_validation && body.nil?
720
+ fail ArgumentError, "Missing the required parameter 'body' when calling RumAudienceManagementAPI.update_connection"
721
+ end
722
+ # resource path
723
+ local_var_path = '/api/v2/product-analytics/{entity}/mapping/connection'.sub('{entity}', CGI.escape(entity.to_s).gsub('%2F', '/'))
724
+
725
+ # query parameters
726
+ query_params = opts[:query_params] || {}
727
+
728
+ # header parameters
729
+ header_params = opts[:header_params] || {}
730
+ # HTTP header 'Accept' (if needed)
731
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
732
+ # HTTP header 'Content-Type'
733
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
734
+
735
+ # form parameters
736
+ form_params = opts[:form_params] || {}
737
+
738
+ # http body (model)
739
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
740
+
741
+ # return_type
742
+ return_type = opts[:debug_return_type]
743
+
744
+ # auth_names
745
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
746
+
747
+ new_options = opts.merge(
748
+ :operation => :update_connection,
749
+ :header_params => header_params,
750
+ :query_params => query_params,
751
+ :form_params => form_params,
752
+ :body => post_body,
753
+ :auth_names => auth_names,
754
+ :return_type => return_type,
755
+ :api_version => "V2"
756
+ )
757
+
758
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
759
+ if @api_client.config.debugging
760
+ @api_client.config.logger.debug "API called: RumAudienceManagementAPI#update_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
761
+ end
762
+ return data, status_code, headers
763
+ end
764
+ end
765
+ end