datadog_api_client 2.44.0 → 2.46.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 (535) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +645 -36
  3. data/.generator/schemas/v2/openapi.yaml +8013 -605
  4. data/.pre-commit-config.yaml +4 -0
  5. data/CHANGELOG.md +45 -0
  6. data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
  7. data/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb +17 -0
  8. data/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb +16 -0
  9. data/examples/v2/aws-integration/ListAWSEventBridgeSources.rb +5 -0
  10. data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
  11. data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
  12. data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
  13. data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
  14. data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
  15. data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
  16. data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
  17. data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
  18. data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +1 -1
  19. data/examples/v2/fleet-automation/CreateFleetDeploymentUpgrade.rb +23 -0
  20. data/examples/v2/fleet-automation/CreateFleetSchedule.rb +30 -0
  21. data/examples/v2/fleet-automation/DeleteFleetSchedule.rb +8 -0
  22. data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
  23. data/examples/v2/fleet-automation/GetFleetDeployment.rb +2 -5
  24. data/examples/v2/fleet-automation/GetFleetDeployment_1482493803.rb +11 -0
  25. data/examples/v2/fleet-automation/GetFleetSchedule.rb +8 -0
  26. data/examples/v2/fleet-automation/ListFleetAgentVersions.rb +8 -0
  27. data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
  28. data/examples/v2/fleet-automation/ListFleetSchedules.rb +8 -0
  29. data/examples/v2/fleet-automation/TriggerFleetSchedule.rb +8 -0
  30. data/examples/v2/fleet-automation/UpdateFleetSchedule.rb +30 -0
  31. data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
  32. data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
  33. data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
  34. data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
  35. data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
  36. data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
  37. data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
  38. data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
  39. data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
  40. data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
  41. data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
  42. data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
  43. data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
  44. data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
  45. data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
  46. data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
  47. data/examples/v2/reference-tables/DeleteRows.rb +14 -0
  48. data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
  49. data/examples/v2/reference-tables/UpsertRows.rb +19 -0
  50. data/examples/v2/rum-audience-management/CreateConnection.rb +36 -0
  51. data/examples/v2/rum-audience-management/DeleteConnection.rb +8 -0
  52. data/examples/v2/rum-audience-management/GetAccountFacetInfo.rb +25 -0
  53. data/examples/v2/rum-audience-management/GetMapping.rb +8 -0
  54. data/examples/v2/rum-audience-management/GetUserFacetInfo.rb +25 -0
  55. data/examples/v2/rum-audience-management/ListConnections.rb +8 -0
  56. data/examples/v2/rum-audience-management/QueryAccounts.rb +34 -0
  57. data/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb +37 -0
  58. data/examples/v2/rum-audience-management/QueryUsers.rb +34 -0
  59. data/examples/v2/rum-audience-management/UpdateConnection.rb +43 -0
  60. data/examples/v2/security-monitoring/AttachCase.rb +26 -0
  61. data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
  62. data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
  63. data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
  64. data/examples/v2/security-monitoring/CancelThreatHuntingJob.rb +8 -0
  65. data/examples/v2/security-monitoring/CancelThreatHuntingJob_1945505845.rb +12 -0
  66. data/examples/v2/security-monitoring/CreateCases.rb +56 -0
  67. data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
  68. data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
  69. data/examples/v2/security-monitoring/CreateJiraIssues.rb +96 -0
  70. data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +56 -0
  71. data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +64 -0
  72. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +4 -0
  73. data/examples/v2/security-monitoring/{DeleteHistoricalJob.rb → DeleteThreatHuntingJob.rb} +2 -2
  74. data/examples/v2/security-monitoring/DetachCase.rb +21 -0
  75. data/examples/v2/security-monitoring/GetSecretsRules.rb +8 -0
  76. data/examples/v2/security-monitoring/GetThreatHuntingJob.rb +12 -0
  77. data/examples/v2/security-monitoring/ListMultipleRulesets.rb +17 -0
  78. data/examples/v2/security-monitoring/ListThreatHuntingJobs.rb +8 -0
  79. data/examples/v2/security-monitoring/ListThreatHuntingJobs_1365512061.rb +15 -0
  80. data/examples/v2/security-monitoring/{RunHistoricalJob.rb → RunThreatHuntingJob.rb} +9 -9
  81. data/examples/v2/software-catalog/PreviewCatalogEntities.rb +5 -0
  82. data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
  83. data/examples/v2/teams/CreateTeamConnections.rb +37 -0
  84. data/examples/v2/teams/DeleteTeamConnections.rb +17 -0
  85. data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
  86. data/examples/v2/teams/GetTeamSync.rb +8 -0
  87. data/examples/v2/teams/ListTeamConnections.rb +8 -0
  88. data/examples/v2/teams/ListTeamConnections_1473516764.rb +14 -0
  89. data/examples/v2/teams/ListTeamConnections_2418873869.rb +8 -0
  90. data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
  91. data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
  92. data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
  93. data/lib/datadog_api_client/configuration.rb +50 -5
  94. data/lib/datadog_api_client/inflector.rb +312 -14
  95. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +18 -9
  96. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
  97. data/lib/datadog_api_client/v1/api/key_management_api.rb +5 -0
  98. data/lib/datadog_api_client/v1/api/metrics_api.rb +5 -0
  99. data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
  100. data/lib/datadog_api_client/v1/models/aws_account.rb +5 -3
  101. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  102. data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
  103. data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
  104. data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
  105. data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
  106. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
  107. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +314 -4
  108. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +314 -4
  109. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +311 -1
  110. data/lib/datadog_api_client/v2/api/aws_integration_api.rb +194 -0
  111. data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +632 -0
  112. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +2 -2
  113. data/lib/datadog_api_client/v2/api/events_api.rb +2 -0
  114. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +871 -31
  115. data/lib/datadog_api_client/v2/api/incidents_api.rb +3 -0
  116. data/lib/datadog_api_client/v2/api/key_management_api.rb +4 -2
  117. data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
  118. data/lib/datadog_api_client/v2/api/on_call_api.rb +2 -2
  119. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +164 -16
  120. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  121. data/lib/datadog_api_client/v2/api/rum_audience_management_api.rb +765 -0
  122. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +708 -219
  123. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +57 -0
  124. data/lib/datadog_api_client/v2/api/teams_api.rb +628 -1
  125. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  126. data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
  127. data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
  128. data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
  129. data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
  130. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +153 -0
  131. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
  132. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
  133. data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +2 -1
  134. data/lib/datadog_api_client/v2/models/aws_account_partition.rb +2 -1
  135. data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +2 -1
  136. data/lib/datadog_api_client/v2/models/aws_account_response_data.rb +2 -1
  137. data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +2 -1
  138. data/lib/datadog_api_client/v2/models/aws_account_update_request_data.rb +2 -1
  139. data/lib/datadog_api_client/v2/models/aws_event_bridge_account_configuration.rb +130 -0
  140. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_attributes.rb +178 -0
  142. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_data.rb +144 -0
  143. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response.rb +123 -0
  144. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_attributes.rb +136 -0
  145. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_data.rb +154 -0
  146. data/lib/datadog_api_client/v2/models/aws_event_bridge_create_status.rb +26 -0
  147. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request.rb +123 -0
  148. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_attributes.rb +166 -0
  149. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_data.rb +144 -0
  150. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response.rb +123 -0
  151. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_attributes.rb +105 -0
  152. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_data.rb +154 -0
  153. data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_status.rb +26 -0
  154. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response.rb +123 -0
  155. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_attributes.rb +117 -0
  156. data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_data.rb +165 -0
  157. data/lib/datadog_api_client/v2/models/aws_event_bridge_source.rb +116 -0
  158. data/lib/datadog_api_client/v2/models/aws_event_bridge_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config.rb +7 -4
  160. data/lib/datadog_api_client/v2/models/aws_log_source_tag_filter.rb +7 -3
  161. data/lib/datadog_api_client/v2/models/aws_logs_config.rb +3 -2
  162. data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +8 -4
  163. data/lib/datadog_api_client/v2/models/aws_namespace_tag_filter.rb +6 -4
  164. data/lib/datadog_api_client/v2/models/aws_resources_config.rb +5 -2
  165. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
  166. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
  167. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
  168. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
  169. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
  170. data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
  171. data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
  172. data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
  173. data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
  174. data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
  175. data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
  176. data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
  177. data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
  178. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
  179. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
  180. data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
  181. data/lib/datadog_api_client/v2/models/connected_team_ref.rb +105 -0
  182. data/lib/datadog_api_client/v2/models/connected_team_ref_data.rb +144 -0
  183. data/lib/datadog_api_client/v2/models/connected_team_ref_data_type.rb +26 -0
  184. data/lib/datadog_api_client/v2/models/connections_page_pagination.rb +184 -0
  185. data/lib/datadog_api_client/v2/models/connections_response_meta.rb +105 -0
  186. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_attributes.rb +1 -1
  187. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_data.rb +2 -2
  188. data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_request.rb +2 -2
  189. data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
  190. data/lib/datadog_api_client/v2/models/create_case_request_data.rb +153 -0
  191. data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
  192. data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
  193. data/lib/datadog_api_client/v2/models/{historical_job_response.rb → create_connection_request.rb} +5 -5
  194. data/lib/datadog_api_client/v2/models/create_connection_request_data.rb +143 -0
  195. data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes.rb +187 -0
  196. data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes_fields_items.rb +197 -0
  197. data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
  198. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
  199. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
  200. data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
  201. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
  202. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
  203. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +137 -0
  204. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array_included.rb +64 -0
  205. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +153 -0
  206. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +105 -0
  207. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes_fields.rb +105 -0
  208. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +123 -0
  209. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case.rb +123 -0
  210. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case_data.rb +144 -0
  211. data/lib/datadog_api_client/v2/models/create_table_request.rb +2 -2
  212. data/lib/datadog_api_client/v2/models/create_table_request_data.rb +6 -41
  213. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +6 -6
  214. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +1 -1
  215. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
  216. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  217. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  218. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  219. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  220. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +2 -2
  221. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +1 -1
  222. data/lib/datadog_api_client/v2/models/create_upload_request.rb +2 -2
  223. data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +6 -41
  224. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -5
  225. data/lib/datadog_api_client/v2/models/create_upload_response.rb +2 -2
  226. data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +7 -32
  227. data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +2 -2
  228. data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
  229. data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
  230. data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
  231. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
  232. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
  233. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
  234. data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
  235. data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +92 -0
  236. data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
  237. data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
  238. data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
  239. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
  240. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
  241. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
  242. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
  243. data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
  244. data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
  245. data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +143 -0
  246. data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
  247. data/lib/datadog_api_client/v2/models/entity_response_array.rb +125 -0
  248. data/lib/datadog_api_client/v2/models/entity_response_data_attributes.rb +187 -0
  249. data/lib/datadog_api_client/v2/models/entity_response_data_relationships.rb +145 -0
  250. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents.rb +107 -0
  251. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items.rb +144 -0
  252. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items_type.rb +26 -0
  253. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls.rb +107 -0
  254. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items.rb +144 -0
  255. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items_type.rb +26 -0
  256. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema.rb +123 -0
  257. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data.rb +144 -0
  258. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data_type.rb +26 -0
  259. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities.rb +107 -0
  260. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items.rb +144 -0
  261. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items_type.rb +26 -0
  262. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema.rb +123 -0
  263. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data.rb +144 -0
  264. data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data_type.rb +26 -0
  265. data/lib/datadog_api_client/v2/models/entity_response_data_type.rb +26 -0
  266. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
  267. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
  268. data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
  269. data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
  270. data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
  271. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
  272. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
  273. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
  274. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
  275. data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
  276. data/lib/datadog_api_client/v2/models/facet_info_request.rb +105 -0
  277. data/lib/datadog_api_client/v2/models/facet_info_request_data.rb +143 -0
  278. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes.rb +164 -0
  279. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_search.rb +105 -0
  280. data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_term_search.rb +105 -0
  281. data/lib/datadog_api_client/v2/models/facet_info_request_data_type.rb +26 -0
  282. data/lib/datadog_api_client/v2/models/facet_info_response.rb +105 -0
  283. data/lib/datadog_api_client/v2/models/facet_info_response_data.rb +143 -0
  284. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes.rb +105 -0
  285. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result.rb +117 -0
  286. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_range.rb +115 -0
  287. data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_values_items.rb +115 -0
  288. data/lib/datadog_api_client/v2/models/facet_info_response_data_type.rb +26 -0
  289. data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
  290. data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
  291. data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
  292. data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
  293. data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
  294. data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
  295. data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
  296. data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → finding_jira_issue.rb} +19 -19
  297. data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
  298. data/lib/datadog_api_client/v2/models/findings.rb +107 -0
  299. data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
  300. data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
  301. data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
  302. data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
  303. data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
  304. data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
  305. data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
  306. data/lib/datadog_api_client/v2/models/fleet_agent_version.rb +154 -0
  307. data/lib/datadog_api_client/v2/models/fleet_agent_version_attributes.rb +105 -0
  308. data/lib/datadog_api_client/v2/models/fleet_agent_version_resource_type.rb +26 -0
  309. data/lib/datadog_api_client/v2/models/fleet_agent_versions_response.rb +125 -0
  310. data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
  311. data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
  312. data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
  313. data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
  314. data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
  315. data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
  316. data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +29 -2
  317. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +1 -1
  318. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +2 -2
  319. data/lib/datadog_api_client/v2/models/fleet_deployment_host.rb +137 -0
  320. data/lib/datadog_api_client/v2/models/fleet_deployment_host_package.rb +136 -0
  321. data/lib/datadog_api_client/v2/models/fleet_deployment_hosts_page.rb +135 -0
  322. data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +2 -2
  323. data/lib/datadog_api_client/v2/models/fleet_deployment_package.rb +144 -0
  324. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_attributes.rb +135 -0
  325. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create.rb +144 -0
  326. data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create_request.rb +123 -0
  327. data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +13 -3
  328. data/lib/datadog_api_client/v2/models/fleet_deployment_response_meta.rb +105 -0
  329. data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
  330. data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
  331. data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
  332. data/lib/datadog_api_client/v2/models/fleet_schedule.rb +165 -0
  333. data/lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb +214 -0
  334. data/lib/datadog_api_client/v2/models/fleet_schedule_create.rb +144 -0
  335. data/lib/datadog_api_client/v2/models/fleet_schedule_create_attributes.rb +207 -0
  336. data/lib/datadog_api_client/v2/models/fleet_schedule_create_request.rb +123 -0
  337. data/lib/datadog_api_client/v2/models/fleet_schedule_patch.rb +133 -0
  338. data/lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb +174 -0
  339. data/lib/datadog_api_client/v2/models/fleet_schedule_patch_request.rb +123 -0
  340. data/lib/datadog_api_client/v2/models/fleet_schedule_recurrence_rule.rb +191 -0
  341. data/lib/datadog_api_client/v2/models/fleet_schedule_resource_type.rb +26 -0
  342. data/lib/datadog_api_client/v2/models/fleet_schedule_response.rb +105 -0
  343. data/lib/datadog_api_client/v2/models/fleet_schedule_status.rb +29 -0
  344. data/lib/datadog_api_client/v2/models/fleet_schedules_response.rb +125 -0
  345. data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +13 -1
  346. data/lib/datadog_api_client/v2/models/get_mapping_response.rb +105 -0
  347. data/lib/datadog_api_client/v2/models/get_mapping_response_data.rb +143 -0
  348. data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes.rb +107 -0
  349. data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes_attributes_items.rb +157 -0
  350. data/lib/datadog_api_client/v2/models/get_mapping_response_data_type.rb +26 -0
  351. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request.rb +105 -0
  352. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data.rb +143 -0
  353. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_attributes.rb +127 -0
  354. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_type.rb +26 -0
  355. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response.rb +105 -0
  356. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data.rb +143 -0
  357. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes.rb +107 -0
  358. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items.rb +165 -0
  359. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data.rb +133 -0
  360. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data_type.rb +26 -0
  361. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items.rb +367 -0
  362. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_arguments_items.rb +115 -0
  363. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data.rb +133 -0
  364. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data_type.rb +26 -0
  365. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb +147 -0
  366. data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_type.rb +26 -0
  367. data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
  368. data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
  369. data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
  370. data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
  371. data/lib/datadog_api_client/v2/models/job_create_response.rb +1 -1
  372. data/lib/datadog_api_client/v2/models/job_create_response_data.rb +1 -1
  373. data/lib/datadog_api_client/v2/models/job_definition.rb +3 -3
  374. data/lib/datadog_api_client/v2/models/job_definition_from_rule.rb +1 -1
  375. data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
  376. data/lib/datadog_api_client/v2/models/{run_historical_job_request.rb → list_connections_response.rb} +5 -5
  377. data/lib/datadog_api_client/v2/models/list_connections_response_data.rb +143 -0
  378. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes.rb +107 -0
  379. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items.rb +187 -0
  380. data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items_join.rb +115 -0
  381. data/lib/datadog_api_client/v2/models/list_connections_response_data_type.rb +26 -0
  382. data/lib/datadog_api_client/v2/models/{list_historical_jobs_response.rb → list_threat_hunting_jobs_response.rb} +6 -6
  383. data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
  384. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
  385. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
  386. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
  387. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
  388. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
  389. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
  390. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
  391. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
  392. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
  393. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
  394. data/lib/datadog_api_client/v2/models/patch_table_request.rb +2 -2
  395. data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +6 -41
  396. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +5 -5
  397. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +1 -1
  398. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
  399. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  400. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  401. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  402. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  403. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +3 -3
  404. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +1 -1
  405. data/lib/datadog_api_client/v2/models/preview_entity_response_data.rb +153 -0
  406. data/lib/datadog_api_client/v2/models/query_account_request.rb +105 -0
  407. data/lib/datadog_api_client/v2/models/query_account_request_data.rb +143 -0
  408. data/lib/datadog_api_client/v2/models/query_account_request_data_attributes.rb +147 -0
  409. data/lib/datadog_api_client/v2/models/query_account_request_data_attributes_sort.rb +115 -0
  410. data/lib/datadog_api_client/v2/models/query_account_request_data_type.rb +26 -0
  411. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request.rb +105 -0
  412. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data.rb +143 -0
  413. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes.rb +147 -0
  414. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query.rb +115 -0
  415. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query_time_frame.rb +115 -0
  416. data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_type.rb +26 -0
  417. data/lib/datadog_api_client/v2/models/query_response.rb +105 -0
  418. data/lib/datadog_api_client/v2/models/query_response_data.rb +143 -0
  419. data/lib/datadog_api_client/v2/models/query_response_data_attributes.rb +117 -0
  420. data/lib/datadog_api_client/v2/models/query_response_data_type.rb +26 -0
  421. data/lib/datadog_api_client/v2/models/query_users_request.rb +105 -0
  422. data/lib/datadog_api_client/v2/models/query_users_request_data.rb +143 -0
  423. data/lib/datadog_api_client/v2/models/query_users_request_data_attributes.rb +147 -0
  424. data/lib/datadog_api_client/v2/models/query_users_request_data_attributes_sort.rb +115 -0
  425. data/lib/datadog_api_client/v2/models/query_users_request_data_type.rb +26 -0
  426. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
  427. data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
  428. data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
  429. data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
  430. data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
  431. data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
  432. data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
  433. data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
  434. data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
  435. data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
  436. data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
  437. data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
  438. data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
  439. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
  440. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
  441. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
  442. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
  443. data/lib/datadog_api_client/v2/models/run_threat_hunting_job_request.rb +105 -0
  444. data/lib/datadog_api_client/v2/models/{run_historical_job_request_attributes.rb → run_threat_hunting_job_request_attributes.rb} +5 -5
  445. data/lib/datadog_api_client/v2/models/{run_historical_job_request_data.rb → run_threat_hunting_job_request_data.rb} +6 -6
  446. data/lib/datadog_api_client/v2/models/{run_historical_job_request_data_type.rb → run_threat_hunting_job_request_data_type.rb} +1 -1
  447. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
  448. data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
  449. data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
  450. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
  451. data/lib/datadog_api_client/v2/models/secret_rule_array.rb +125 -0
  452. data/lib/datadog_api_client/v2/models/secret_rule_data.rb +143 -0
  453. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes.rb +189 -0
  454. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation.rb +203 -0
  455. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_invalid_http_status_code_items.rb +152 -0
  456. data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_valid_http_status_code_items.rb +152 -0
  457. data/lib/datadog_api_client/v2/models/secret_rule_data_type.rb +26 -0
  458. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +2 -0
  459. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +13 -1
  460. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +15 -3
  461. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +13 -1
  462. data/lib/datadog_api_client/v2/models/table_result_v2.rb +2 -2
  463. data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +1 -1
  464. data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +7 -32
  465. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +16 -8
  466. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +102 -37
  467. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +4 -4
  468. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
  469. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
  470. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
  471. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +2 -2
  472. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +1 -1
  473. data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +1 -1
  474. data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +7 -32
  475. data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +7 -32
  476. data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
  477. data/lib/datadog_api_client/v2/models/team_connection.rb +164 -0
  478. data/lib/datadog_api_client/v2/models/team_connection_attributes.rb +115 -0
  479. data/lib/datadog_api_client/v2/models/team_connection_create_data.rb +143 -0
  480. data/lib/datadog_api_client/v2/models/team_connection_create_request.rb +125 -0
  481. data/lib/datadog_api_client/v2/models/team_connection_delete_request.rb +125 -0
  482. data/lib/datadog_api_client/v2/models/team_connection_delete_request_data_item.rb +144 -0
  483. data/lib/datadog_api_client/v2/models/team_connection_relationships.rb +115 -0
  484. data/lib/datadog_api_client/v2/models/team_connection_type.rb +26 -0
  485. data/lib/datadog_api_client/v2/models/team_connections_response.rb +117 -0
  486. data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
  487. data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
  488. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
  489. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
  490. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
  491. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
  492. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
  493. data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
  494. data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
  495. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
  496. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
  497. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
  498. data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
  499. data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
  500. data/lib/datadog_api_client/v2/models/team_ref.rb +105 -0
  501. data/lib/datadog_api_client/v2/models/team_ref_data.rb +144 -0
  502. data/lib/datadog_api_client/v2/models/team_ref_data_type.rb +26 -0
  503. data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
  504. data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
  505. data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
  506. data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
  507. data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
  508. data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
  509. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
  510. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
  511. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
  512. data/lib/datadog_api_client/v2/models/{historical_job_data_type.rb → threat_hunting_job_data_type.rb} +1 -1
  513. data/lib/datadog_api_client/v2/models/{historical_job_list_meta.rb → threat_hunting_job_list_meta.rb} +2 -2
  514. data/lib/datadog_api_client/v2/models/{historical_job_options.rb → threat_hunting_job_options.rb} +2 -2
  515. data/lib/datadog_api_client/v2/models/{historical_job_query.rb → threat_hunting_job_query.rb} +3 -3
  516. data/lib/datadog_api_client/v2/models/threat_hunting_job_response.rb +105 -0
  517. data/lib/datadog_api_client/v2/models/{historical_job_response_attributes.rb → threat_hunting_job_response_attributes.rb} +17 -7
  518. data/lib/datadog_api_client/v2/models/{historical_job_response_data.rb → threat_hunting_job_response_data.rb} +6 -6
  519. data/lib/datadog_api_client/v2/models/update_connection_request.rb +105 -0
  520. data/lib/datadog_api_client/v2/models/update_connection_request_data.rb +154 -0
  521. data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes.rb +131 -0
  522. data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes_fields_to_update_items.rb +165 -0
  523. data/lib/datadog_api_client/v2/models/update_connection_request_data_type.rb +26 -0
  524. data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
  525. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
  526. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
  527. data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
  528. data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
  529. data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_cloud_storage.rb → update_deployment_rule_params_data_attributes.rb} +61 -41
  530. data/lib/datadog_api_client/v2/models/user_attributes.rb +12 -1
  531. data/lib/datadog_api_client/version.rb +1 -1
  532. metadata +393 -20
  533. data/examples/v2/security-monitoring/CancelHistoricalJob.rb +0 -12
  534. data/examples/v2/security-monitoring/GetHistoricalJob.rb +0 -12
  535. data/examples/v2/security-monitoring/ListHistoricalJobs.rb +0 -15
@@ -33,7 +33,7 @@ module DatadogAPIClient::V1
33
33
 
34
34
  # Create an AWS integration.
35
35
  #
36
- # Create a Datadog-Amazon Web Services integration.
36
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Create a Datadog-Amazon Web Services integration.
37
37
  # Using the `POST` method updates your integration configuration
38
38
  # by adding your new configuration to the existing one in your Datadog organization.
39
39
  # A unique AWS Account ID for role based authentication.
@@ -106,12 +106,15 @@ module DatadogAPIClient::V1
106
106
 
107
107
  # Create an Amazon EventBridge source.
108
108
  #
109
- # Create an Amazon EventBridge source.
109
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Create an Amazon EventBridge source.
110
+ #
111
+ # @deprecated This API is deprecated.
110
112
  #
111
113
  # @param body [AWSEventBridgeCreateRequest] Create an Amazon EventBridge source for an AWS account with a given name and region.
112
114
  # @param opts [Hash] the optional parameters
113
115
  # @return [Array<(AWSEventBridgeCreateResponse, Integer, Hash)>] AWSEventBridgeCreateResponse data, response status code and response headers
114
116
  def create_aws_event_bridge_source_with_http_info(body, opts = {})
117
+ warn "[DEPRECATION] `CreateAWSEventBridgeSource` is deprecated."
115
118
 
116
119
  if @api_client.config.debugging
117
120
  @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.create_aws_event_bridge_source ...'
@@ -243,7 +246,7 @@ module DatadogAPIClient::V1
243
246
 
244
247
  # Generate a new external ID.
245
248
  #
246
- # Generate a new AWS external ID for a given AWS account ID and role name pair.
249
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Generate a new AWS external ID for a given AWS account ID and role name pair.
247
250
  #
248
251
  # @deprecated This API is deprecated.
249
252
  #
@@ -313,7 +316,7 @@ module DatadogAPIClient::V1
313
316
 
314
317
  # Delete an AWS integration.
315
318
  #
316
- # Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`.
319
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`.
317
320
  #
318
321
  # @deprecated This API is deprecated.
319
322
  #
@@ -383,12 +386,15 @@ module DatadogAPIClient::V1
383
386
 
384
387
  # Delete an Amazon EventBridge source.
385
388
  #
386
- # Delete an Amazon EventBridge source.
389
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Delete an Amazon EventBridge source.
390
+ #
391
+ # @deprecated This API is deprecated.
387
392
  #
388
393
  # @param body [AWSEventBridgeDeleteRequest] Delete the Amazon EventBridge source with the given name, region, and associated AWS account.
389
394
  # @param opts [Hash] the optional parameters
390
395
  # @return [Array<(AWSEventBridgeDeleteResponse, Integer, Hash)>] AWSEventBridgeDeleteResponse data, response status code and response headers
391
396
  def delete_aws_event_bridge_source_with_http_info(body, opts = {})
397
+ warn "[DEPRECATION] `DeleteAWSEventBridgeSource` is deprecated."
392
398
 
393
399
  if @api_client.config.debugging
394
400
  @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.delete_aws_event_bridge_source ...'
@@ -520,7 +526,7 @@ module DatadogAPIClient::V1
520
526
 
521
527
  # List namespace rules.
522
528
  #
523
- # List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
529
+ # **This endpoint is deprecated - use the V2 endpoints instead.** List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
524
530
  #
525
531
  # @deprecated This API is deprecated.
526
532
  #
@@ -583,7 +589,7 @@ module DatadogAPIClient::V1
583
589
 
584
590
  # List all AWS integrations.
585
591
  #
586
- # List all Datadog-AWS integrations available in your Datadog organization.
592
+ # **This endpoint is deprecated - use the V2 endpoints instead.** List all Datadog-AWS integrations available in your Datadog organization.
587
593
  #
588
594
  # @deprecated This API is deprecated.
589
595
  #
@@ -652,11 +658,14 @@ module DatadogAPIClient::V1
652
658
 
653
659
  # Get all Amazon EventBridge sources.
654
660
  #
655
- # Get all Amazon EventBridge sources.
661
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Get all Amazon EventBridge sources.
662
+ #
663
+ # @deprecated This API is deprecated.
656
664
  #
657
665
  # @param opts [Hash] the optional parameters
658
666
  # @return [Array<(AWSEventBridgeListResponse, Integer, Hash)>] AWSEventBridgeListResponse data, response status code and response headers
659
667
  def list_aws_event_bridge_sources_with_http_info(opts = {})
668
+ warn "[DEPRECATION] `ListAWSEventBridgeSources` is deprecated."
660
669
 
661
670
  if @api_client.config.debugging
662
671
  @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_aws_event_bridge_sources ...'
@@ -781,7 +790,7 @@ module DatadogAPIClient::V1
781
790
 
782
791
  # Update an AWS integration.
783
792
  #
784
- # Update a Datadog-Amazon Web Services integration.
793
+ # **This endpoint is deprecated - use the V2 endpoints instead.** Update a Datadog-Amazon Web Services integration.
785
794
  #
786
795
  # @deprecated This API is deprecated.
787
796
  #
@@ -450,7 +450,7 @@ module DatadogAPIClient::V1
450
450
 
451
451
  # Get list of AWS log ready services.
452
452
  #
453
- # Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint.
453
+ # **This endpoint is deprecated - use the V2 endpoint instead.** Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint.
454
454
  #
455
455
  # @deprecated This API is deprecated.
456
456
  #
@@ -101,6 +101,7 @@ module DatadogAPIClient::V1
101
101
  # Create an application key.
102
102
  #
103
103
  # Create an application key with a given name.
104
+ # This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
104
105
  #
105
106
  # @param body [ApplicationKey]
106
107
  # @param opts [Hash] the optional parameters
@@ -233,6 +234,7 @@ module DatadogAPIClient::V1
233
234
  # Delete an application key.
234
235
  #
235
236
  # Delete a given application key.
237
+ # This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
236
238
  #
237
239
  # @param key [String] The specific APP key you are working with.
238
240
  # @param opts [Hash] the optional parameters
@@ -363,6 +365,7 @@ module DatadogAPIClient::V1
363
365
  # Get an application key.
364
366
  #
365
367
  # Get a given application key.
368
+ # This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
366
369
  #
367
370
  # @param key [String] The specific APP key you are working with.
368
371
  # @param opts [Hash] the optional parameters
@@ -488,6 +491,7 @@ module DatadogAPIClient::V1
488
491
  # Get all application keys.
489
492
  #
490
493
  # Get all application keys available for your Datadog account.
494
+ # This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
491
495
  #
492
496
  # @param opts [Hash] the optional parameters
493
497
  # @return [Array<(ApplicationKeyListResponse, Integer, Hash)>] ApplicationKeyListResponse data, response status code and response headers
@@ -620,6 +624,7 @@ module DatadogAPIClient::V1
620
624
  # Edit an application key.
621
625
  #
622
626
  # Edit an application key name.
627
+ # This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
623
628
  #
624
629
  # @param key [String] The specific APP key you are working with.
625
630
  # @param body [ApplicationKey]
@@ -168,12 +168,17 @@ module DatadogAPIClient::V1
168
168
 
169
169
  # Search metrics.
170
170
  #
171
+ # **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
172
+ #
171
173
  # Search for metrics from the last 24 hours in Datadog.
172
174
  #
175
+ # @deprecated This API is deprecated.
176
+ #
173
177
  # @param q [String] Query string to search metrics upon. Can optionally be prefixed with `metrics:`.
174
178
  # @param opts [Hash] the optional parameters
175
179
  # @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers
176
180
  def list_metrics_with_http_info(q, opts = {})
181
+ warn "[DEPRECATION] `ListMetrics` is deprecated."
177
182
 
178
183
  if @api_client.config.debugging
179
184
  @api_client.config.logger.debug 'Calling API: MetricsAPI.list_metrics ...'
@@ -456,6 +456,7 @@ module DatadogAPIClient::V1
456
456
  # @param opts [Hash] the optional parameters
457
457
  # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`.
458
458
  # @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for the monitor.
459
+ # @option opts [Boolean] :with_assets If this argument is set to `true`, the returned data includes all assets tied to this monitor.
459
460
  # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers
460
461
  def get_monitor_with_http_info(monitor_id, opts = {})
461
462
 
@@ -473,6 +474,7 @@ module DatadogAPIClient::V1
473
474
  query_params = opts[:query_params] || {}
474
475
  query_params[:'group_states'] = opts[:'group_states'] if !opts[:'group_states'].nil?
475
476
  query_params[:'with_downtimes'] = opts[:'with_downtimes'] if !opts[:'with_downtimes'].nil?
477
+ query_params[:'with_assets'] = opts[:'with_assets'] if !opts[:'with_assets'].nil?
476
478
 
477
479
  # header parameters
478
480
  header_params = opts[:header_params] || {}
@@ -27,9 +27,11 @@ module DatadogAPIClient::V1
27
27
  # Your AWS Account ID without dashes.
28
28
  attr_accessor :account_id
29
29
 
30
- # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`),
31
- # that enables or disables metric collection for specific AWS namespaces for this
32
- # AWS account only.
30
+ # An object (in the form `{"namespace1":true/false, "namespace2":true/false}`) containing user-supplied overrides
31
+ # for AWS namespace metric collection. **Important**: This field only contains namespaces explicitly configured through API calls,
32
+ # not the comprehensive enabled or disabled status of all namespaces. If a namespace is absent from this field, it uses Datadog's
33
+ # internal defaults (all namespaces enabled by default, except `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage`).
34
+ # For a complete view of all namespace statuses, use the V2 AWS Integration API instead.
33
35
  attr_accessor :account_specific_namespace_rules
34
36
 
35
37
  # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`.
@@ -33,5 +33,6 @@ module DatadogAPIClient::V1
33
33
  CI_PIPELINES = "ci_pipelines".freeze
34
34
  INCIDENT_ANALYTICS = "incident_analytics".freeze
35
35
  PRODUCT_ANALYTICS = "product_analytics".freeze
36
+ ON_CALL_EVENTS = "on_call_events".freeze
36
37
  end
37
38
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
21
21
  class Monitor
22
22
  include BaseGenericModel
23
23
 
24
+ # The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).
25
+ attr_accessor :assets
26
+
24
27
  # Timestamp of the monitor creation.
25
28
  attr_accessor :created
26
29
 
@@ -86,6 +89,7 @@ module DatadogAPIClient::V1
86
89
  # @!visibility private
87
90
  def self.attribute_map
88
91
  {
92
+ :'assets' => :'assets',
89
93
  :'created' => :'created',
90
94
  :'creator' => :'creator',
91
95
  :'deleted' => :'deleted',
@@ -111,6 +115,7 @@ module DatadogAPIClient::V1
111
115
  # @!visibility private
112
116
  def self.openapi_types
113
117
  {
118
+ :'assets' => :'Array<MonitorAsset>',
114
119
  :'created' => :'Time',
115
120
  :'creator' => :'Creator',
116
121
  :'deleted' => :'Time',
@@ -160,6 +165,12 @@ module DatadogAPIClient::V1
160
165
  end
161
166
  }
162
167
 
168
+ if attributes.key?(:'assets')
169
+ if (value = attributes[:'assets']).is_a?(Array)
170
+ self.assets = value
171
+ end
172
+ end
173
+
163
174
  if attributes.key?(:'created')
164
175
  self.created = attributes[:'created']
165
176
  end
@@ -294,6 +305,7 @@ module DatadogAPIClient::V1
294
305
  def ==(o)
295
306
  return true if self.equal?(o)
296
307
  self.class == o.class &&
308
+ assets == o.assets &&
297
309
  created == o.created &&
298
310
  creator == o.creator &&
299
311
  deleted == o.deleted &&
@@ -319,7 +331,7 @@ module DatadogAPIClient::V1
319
331
  # @return [Integer] Hash code
320
332
  # @!visibility private
321
333
  def hash
322
- [created, creator, deleted, draft_status, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
334
+ [assets, created, creator, deleted, draft_status, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
323
335
  end
324
336
  end
325
337
  end
@@ -0,0 +1,186 @@
1
+ =begin
2
+ #Datadog API V1 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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Represents key links tied to a monitor to help users take action on alerts.
21
+ # This feature is in Preview and only available to users with the feature enabled.
22
+ class MonitorAsset
23
+ include BaseGenericModel
24
+
25
+ # Indicates the type of asset this entity represents on a monitor.
26
+ attr_reader :category
27
+
28
+ # Name for the monitor asset
29
+ attr_reader :name
30
+
31
+ # Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.
32
+ attr_accessor :resource_key
33
+
34
+ # Type of internal Datadog resource associated with a monitor asset.
35
+ attr_accessor :resource_type
36
+
37
+ # URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.
38
+ attr_reader :url
39
+
40
+ attr_accessor :additional_properties
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ # @!visibility private
44
+ def self.attribute_map
45
+ {
46
+ :'category' => :'category',
47
+ :'name' => :'name',
48
+ :'resource_key' => :'resource_key',
49
+ :'resource_type' => :'resource_type',
50
+ :'url' => :'url'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ # @!visibility private
56
+ def self.openapi_types
57
+ {
58
+ :'category' => :'MonitorAssetCategory',
59
+ :'name' => :'String',
60
+ :'resource_key' => :'String',
61
+ :'resource_type' => :'MonitorAssetResourceType',
62
+ :'url' => :'String'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param attributes [Hash] Model attributes in the form of hash
68
+ # @!visibility private
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorAsset` initialize method"
72
+ end
73
+
74
+ self.additional_properties = {}
75
+ # check to see if the attribute exists and convert string to symbol for hash key
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!self.class.attribute_map.key?(k.to_sym))
78
+ self.additional_properties[k.to_sym] = v
79
+ else
80
+ h[k.to_sym] = v
81
+ end
82
+ }
83
+
84
+ if attributes.key?(:'category')
85
+ self.category = attributes[:'category']
86
+ end
87
+
88
+ if attributes.key?(:'name')
89
+ self.name = attributes[:'name']
90
+ end
91
+
92
+ if attributes.key?(:'resource_key')
93
+ self.resource_key = attributes[:'resource_key']
94
+ end
95
+
96
+ if attributes.key?(:'resource_type')
97
+ self.resource_type = attributes[:'resource_type']
98
+ end
99
+
100
+ if attributes.key?(:'url')
101
+ self.url = attributes[:'url']
102
+ end
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ # @!visibility private
108
+ def valid?
109
+ return false if @category.nil?
110
+ return false if @name.nil?
111
+ return false if @url.nil?
112
+ true
113
+ end
114
+
115
+ # Custom attribute writer method with validation
116
+ # @param category [Object] Object to be assigned
117
+ # @!visibility private
118
+ def category=(category)
119
+ if category.nil?
120
+ fail ArgumentError, 'invalid value for "category", category cannot be nil.'
121
+ end
122
+ @category = category
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param name [Object] Object to be assigned
127
+ # @!visibility private
128
+ def name=(name)
129
+ if name.nil?
130
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
131
+ end
132
+ @name = name
133
+ end
134
+
135
+ # Custom attribute writer method with validation
136
+ # @param url [Object] Object to be assigned
137
+ # @!visibility private
138
+ def url=(url)
139
+ if url.nil?
140
+ fail ArgumentError, 'invalid value for "url", url cannot be nil.'
141
+ end
142
+ @url = url
143
+ end
144
+
145
+ # Returns the object in the form of hash, with additionalProperties support.
146
+ # @return [Hash] Returns the object in the form of hash
147
+ # @!visibility private
148
+ def to_hash
149
+ hash = {}
150
+ self.class.attribute_map.each_pair do |attr, param|
151
+ value = self.send(attr)
152
+ if value.nil?
153
+ is_nullable = self.class.openapi_nullable.include?(attr)
154
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
+ end
156
+
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ self.additional_properties.each_pair do |attr, value|
160
+ hash[attr] = value
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Checks equality by comparing each attribute.
166
+ # @param o [Object] Object to be compared
167
+ # @!visibility private
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ category == o.category &&
172
+ name == o.name &&
173
+ resource_key == o.resource_key &&
174
+ resource_type == o.resource_type &&
175
+ url == o.url &&
176
+ additional_properties == o.additional_properties
177
+ end
178
+
179
+ # Calculates hash code according to all attributes.
180
+ # @return [Integer] Hash code
181
+ # @!visibility private
182
+ def hash
183
+ [category, name, resource_key, resource_type, url, additional_properties].hash
184
+ end
185
+ end
186
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V1 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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Indicates the type of asset this entity represents on a monitor.
21
+ class MonitorAssetCategory
22
+ include BaseEnumModel
23
+
24
+ RUNBOOK = "runbook".freeze
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V1 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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Type of internal Datadog resource associated with a monitor asset.
21
+ class MonitorAssetResourceType
22
+ include BaseEnumModel
23
+
24
+ NOTEBOOK = "notebook".freeze
25
+ end
26
+ end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
21
21
  class MonitorUpdateRequest
22
22
  include BaseGenericModel
23
23
 
24
+ # The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).
25
+ attr_accessor :assets
26
+
24
27
  # Timestamp of the monitor creation.
25
28
  attr_accessor :created
26
29
 
@@ -83,6 +86,7 @@ module DatadogAPIClient::V1
83
86
  # @!visibility private
84
87
  def self.attribute_map
85
88
  {
89
+ :'assets' => :'assets',
86
90
  :'created' => :'created',
87
91
  :'creator' => :'creator',
88
92
  :'deleted' => :'deleted',
@@ -107,6 +111,7 @@ module DatadogAPIClient::V1
107
111
  # @!visibility private
108
112
  def self.openapi_types
109
113
  {
114
+ :'assets' => :'Array<MonitorAsset>',
110
115
  :'created' => :'Time',
111
116
  :'creator' => :'Creator',
112
117
  :'deleted' => :'Time',
@@ -131,6 +136,7 @@ module DatadogAPIClient::V1
131
136
  # @!visibility private
132
137
  def self.openapi_nullable
133
138
  Set.new([
139
+ :'assets',
134
140
  :'deleted',
135
141
  :'priority',
136
142
  :'restricted_roles',
@@ -155,6 +161,12 @@ module DatadogAPIClient::V1
155
161
  end
156
162
  }
157
163
 
164
+ if attributes.key?(:'assets')
165
+ if (value = attributes[:'assets']).is_a?(Array)
166
+ self.assets = value
167
+ end
168
+ end
169
+
158
170
  if attributes.key?(:'created')
159
171
  self.created = attributes[:'created']
160
172
  end
@@ -254,6 +266,7 @@ module DatadogAPIClient::V1
254
266
  def ==(o)
255
267
  return true if self.equal?(o)
256
268
  self.class == o.class &&
269
+ assets == o.assets &&
257
270
  created == o.created &&
258
271
  creator == o.creator &&
259
272
  deleted == o.deleted &&
@@ -278,7 +291,7 @@ module DatadogAPIClient::V1
278
291
  # @return [Integer] Hash code
279
292
  # @!visibility private
280
293
  def hash
281
- [created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
294
+ [assets, created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
282
295
  end
283
296
  end
284
297
  end