datadog_api_client 2.45.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 (244) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +81 -0
  3. data/.generator/schemas/v2/openapi.yaml +3968 -94
  4. data/.pre-commit-config.yaml +4 -0
  5. data/CHANGELOG.md +20 -0
  6. data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
  7. data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
  8. data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
  9. data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
  10. data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
  11. data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
  12. data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
  13. data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
  14. data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
  15. data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
  16. data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
  17. data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
  18. data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
  19. data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
  20. data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
  21. data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
  22. data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
  23. data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
  24. data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
  25. data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
  26. data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
  27. data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
  28. data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
  29. data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
  30. data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
  31. data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
  32. data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
  33. data/examples/v2/reference-tables/DeleteRows.rb +14 -0
  34. data/examples/v2/reference-tables/UpsertRows.rb +19 -0
  35. data/examples/v2/security-monitoring/AttachCase.rb +26 -0
  36. data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
  37. data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
  38. data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
  39. data/examples/v2/security-monitoring/CreateCases.rb +56 -0
  40. data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
  41. data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
  42. data/examples/v2/security-monitoring/CreateJiraIssues.rb +96 -0
  43. data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +56 -0
  44. data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +64 -0
  45. data/examples/v2/security-monitoring/DetachCase.rb +21 -0
  46. data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
  47. data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
  48. data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
  49. data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
  50. data/examples/v2/teams/GetTeamSync.rb +8 -0
  51. data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
  52. data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
  53. data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
  54. data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
  55. data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
  56. data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
  57. data/lib/datadog_api_client/configuration.rb +25 -3
  58. data/lib/datadog_api_client/inflector.rb +141 -3
  59. data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
  60. data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
  61. data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
  62. data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
  63. data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
  64. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
  65. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  66. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
  67. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  68. data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +632 -0
  69. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
  70. data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
  71. data/lib/datadog_api_client/v2/api/on_call_api.rb +2 -2
  72. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
  73. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +355 -5
  74. data/lib/datadog_api_client/v2/api/teams_api.rb +628 -1
  75. data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
  76. data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
  77. data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
  78. data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
  79. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +153 -0
  80. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
  81. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
  82. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
  83. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
  84. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
  85. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
  86. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
  87. data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
  88. data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
  89. data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
  90. data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
  91. data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
  92. data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
  93. data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
  94. data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
  95. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
  96. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
  97. data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
  98. data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
  99. data/lib/datadog_api_client/v2/models/create_case_request_data.rb +153 -0
  100. data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
  101. data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
  102. data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
  103. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
  104. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
  105. data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
  106. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
  107. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
  108. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +137 -0
  109. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array_included.rb +64 -0
  110. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +153 -0
  111. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +105 -0
  112. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes_fields.rb +105 -0
  113. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +123 -0
  114. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case.rb +123 -0
  115. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case_data.rb +144 -0
  116. data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
  117. data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
  118. data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
  119. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
  120. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
  121. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
  122. data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
  123. data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
  124. data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
  125. data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
  126. data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
  127. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
  128. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
  129. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
  130. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
  131. data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
  132. data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
  133. data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +143 -0
  134. data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
  135. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
  136. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
  137. data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
  138. data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
  139. data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
  140. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
  141. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
  142. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
  143. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
  144. data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
  145. data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
  146. data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
  147. data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
  148. data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
  149. data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
  150. data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
  151. data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
  152. data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
  153. data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
  154. data/lib/datadog_api_client/v2/models/findings.rb +107 -0
  155. data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
  156. data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
  157. data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
  158. data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
  159. data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
  160. data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
  161. data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
  162. data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
  163. data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
  164. data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
  165. data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
  166. data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
  167. data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
  168. data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
  169. data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
  170. data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
  171. data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
  172. data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
  173. data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
  174. data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
  175. data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
  176. data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
  177. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
  178. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
  179. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
  180. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
  181. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
  182. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
  183. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
  184. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
  185. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
  186. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
  187. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
  188. data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
  189. data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
  190. data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
  191. data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
  192. data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
  193. data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
  194. data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
  195. data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
  196. data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
  197. data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
  198. data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
  199. data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
  200. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
  201. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
  202. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
  203. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
  204. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
  205. data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
  206. data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
  207. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
  208. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
  209. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
  210. data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
  211. data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
  212. data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
  213. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
  214. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
  215. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
  216. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
  217. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
  218. data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
  219. data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
  220. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
  221. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
  222. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
  223. data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
  224. data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
  225. data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
  226. data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
  227. data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
  228. data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
  229. data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
  230. data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
  231. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
  232. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
  233. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
  234. data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
  235. data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
  236. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
  237. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
  238. data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
  239. data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
  240. data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
  241. data/lib/datadog_api_client/version.rb +1 -1
  242. metadata +190 -9
  243. data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
  244. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
@@ -0,0 +1,277 @@
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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Attributes of the case.
21
+ class FindingCaseResponseDataAttributes
22
+ include BaseGenericModel
23
+
24
+ # Timestamp of when the case was archived.
25
+ attr_accessor :archived_at
26
+
27
+ # Relationship to user.
28
+ attr_accessor :assigned_to
29
+
30
+ #
31
+ attr_accessor :attributes
32
+
33
+ # Timestamp of when the case was closed.
34
+ attr_accessor :closed_at
35
+
36
+ # Timestamp of when the case was created.
37
+ attr_accessor :created_at
38
+
39
+ # Source of the case creation.
40
+ attr_accessor :creation_source
41
+
42
+ # Description of the case.
43
+ attr_accessor :description
44
+
45
+ # Due date of the case.
46
+ attr_accessor :due_date
47
+
48
+ # Insights of the case.
49
+ attr_accessor :insights
50
+
51
+ # Jira issue associated with the case.
52
+ attr_accessor :jira_issue
53
+
54
+ # Key of the case.
55
+ attr_accessor :key
56
+
57
+ # Timestamp of when the case was last modified.
58
+ attr_accessor :modified_at
59
+
60
+ # Priority of the case.
61
+ attr_accessor :priority
62
+
63
+ # Status of the case.
64
+ attr_accessor :status
65
+
66
+ # Status group of the case.
67
+ attr_accessor :status_group
68
+
69
+ # Status name of the case.
70
+ attr_accessor :status_name
71
+
72
+ # Title of the case.
73
+ attr_accessor :title
74
+
75
+ # Type of the case. For security cases, this is always "SECURITY".
76
+ attr_accessor :type
77
+
78
+ attr_accessor :additional_properties
79
+
80
+ # Attribute mapping from ruby-style variable name to JSON key.
81
+ # @!visibility private
82
+ def self.attribute_map
83
+ {
84
+ :'archived_at' => :'archived_at',
85
+ :'assigned_to' => :'assigned_to',
86
+ :'attributes' => :'attributes',
87
+ :'closed_at' => :'closed_at',
88
+ :'created_at' => :'created_at',
89
+ :'creation_source' => :'creation_source',
90
+ :'description' => :'description',
91
+ :'due_date' => :'due_date',
92
+ :'insights' => :'insights',
93
+ :'jira_issue' => :'jira_issue',
94
+ :'key' => :'key',
95
+ :'modified_at' => :'modified_at',
96
+ :'priority' => :'priority',
97
+ :'status' => :'status',
98
+ :'status_group' => :'status_group',
99
+ :'status_name' => :'status_name',
100
+ :'title' => :'title',
101
+ :'type' => :'type'
102
+ }
103
+ end
104
+
105
+ # Attribute type mapping.
106
+ # @!visibility private
107
+ def self.openapi_types
108
+ {
109
+ :'archived_at' => :'Time',
110
+ :'assigned_to' => :'RelationshipToUser',
111
+ :'attributes' => :'Hash<String, Array<String>>',
112
+ :'closed_at' => :'Time',
113
+ :'created_at' => :'Time',
114
+ :'creation_source' => :'String',
115
+ :'description' => :'String',
116
+ :'due_date' => :'String',
117
+ :'insights' => :'Array<CaseInsightsItems>',
118
+ :'jira_issue' => :'FindingJiraIssue',
119
+ :'key' => :'String',
120
+ :'modified_at' => :'Time',
121
+ :'priority' => :'String',
122
+ :'status' => :'String',
123
+ :'status_group' => :'String',
124
+ :'status_name' => :'String',
125
+ :'title' => :'String',
126
+ :'type' => :'String'
127
+ }
128
+ end
129
+
130
+ # Initializes the object
131
+ # @param attributes [Hash] Model attributes in the form of hash
132
+ # @!visibility private
133
+ def initialize(attributes = {})
134
+ if (!attributes.is_a?(Hash))
135
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FindingCaseResponseDataAttributes` initialize method"
136
+ end
137
+
138
+ self.additional_properties = {}
139
+ # check to see if the attribute exists and convert string to symbol for hash key
140
+ attributes = attributes.each_with_object({}) { |(k, v), h|
141
+ if (!self.class.attribute_map.key?(k.to_sym))
142
+ self.additional_properties[k.to_sym] = v
143
+ else
144
+ h[k.to_sym] = v
145
+ end
146
+ }
147
+
148
+ if attributes.key?(:'archived_at')
149
+ self.archived_at = attributes[:'archived_at']
150
+ end
151
+
152
+ if attributes.key?(:'assigned_to')
153
+ self.assigned_to = attributes[:'assigned_to']
154
+ end
155
+
156
+ if attributes.key?(:'attributes')
157
+ self.attributes = attributes[:'attributes']
158
+ end
159
+
160
+ if attributes.key?(:'closed_at')
161
+ self.closed_at = attributes[:'closed_at']
162
+ end
163
+
164
+ if attributes.key?(:'created_at')
165
+ self.created_at = attributes[:'created_at']
166
+ end
167
+
168
+ if attributes.key?(:'creation_source')
169
+ self.creation_source = attributes[:'creation_source']
170
+ end
171
+
172
+ if attributes.key?(:'description')
173
+ self.description = attributes[:'description']
174
+ end
175
+
176
+ if attributes.key?(:'due_date')
177
+ self.due_date = attributes[:'due_date']
178
+ end
179
+
180
+ if attributes.key?(:'insights')
181
+ if (value = attributes[:'insights']).is_a?(Array)
182
+ self.insights = value
183
+ end
184
+ end
185
+
186
+ if attributes.key?(:'jira_issue')
187
+ self.jira_issue = attributes[:'jira_issue']
188
+ end
189
+
190
+ if attributes.key?(:'key')
191
+ self.key = attributes[:'key']
192
+ end
193
+
194
+ if attributes.key?(:'modified_at')
195
+ self.modified_at = attributes[:'modified_at']
196
+ end
197
+
198
+ if attributes.key?(:'priority')
199
+ self.priority = attributes[:'priority']
200
+ end
201
+
202
+ if attributes.key?(:'status')
203
+ self.status = attributes[:'status']
204
+ end
205
+
206
+ if attributes.key?(:'status_group')
207
+ self.status_group = attributes[:'status_group']
208
+ end
209
+
210
+ if attributes.key?(:'status_name')
211
+ self.status_name = attributes[:'status_name']
212
+ end
213
+
214
+ if attributes.key?(:'title')
215
+ self.title = attributes[:'title']
216
+ end
217
+
218
+ if attributes.key?(:'type')
219
+ self.type = attributes[:'type']
220
+ end
221
+ end
222
+
223
+ # Returns the object in the form of hash, with additionalProperties support.
224
+ # @return [Hash] Returns the object in the form of hash
225
+ # @!visibility private
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ if value.nil?
231
+ is_nullable = self.class.openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ self.additional_properties.each_pair do |attr, value|
238
+ hash[attr] = value
239
+ end
240
+ hash
241
+ end
242
+
243
+ # Checks equality by comparing each attribute.
244
+ # @param o [Object] Object to be compared
245
+ # @!visibility private
246
+ def ==(o)
247
+ return true if self.equal?(o)
248
+ self.class == o.class &&
249
+ archived_at == o.archived_at &&
250
+ assigned_to == o.assigned_to &&
251
+ attributes == o.attributes &&
252
+ closed_at == o.closed_at &&
253
+ created_at == o.created_at &&
254
+ creation_source == o.creation_source &&
255
+ description == o.description &&
256
+ due_date == o.due_date &&
257
+ insights == o.insights &&
258
+ jira_issue == o.jira_issue &&
259
+ key == o.key &&
260
+ modified_at == o.modified_at &&
261
+ priority == o.priority &&
262
+ status == o.status &&
263
+ status_group == o.status_group &&
264
+ status_name == o.status_name &&
265
+ title == o.title &&
266
+ type == o.type &&
267
+ additional_properties == o.additional_properties
268
+ end
269
+
270
+ # Calculates hash code according to all attributes.
271
+ # @return [Integer] Hash code
272
+ # @!visibility private
273
+ def hash
274
+ [archived_at, assigned_to, attributes, closed_at, created_at, creation_source, description, due_date, insights, jira_issue, key, modified_at, priority, status, status_group, status_name, title, type, additional_properties].hash
275
+ end
276
+ end
277
+ end
@@ -0,0 +1,125 @@
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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Relationships of the case.
21
+ class FindingCaseResponseDataRelationships
22
+ include BaseGenericModel
23
+
24
+ # Relationship to user.
25
+ attr_accessor :created_by
26
+
27
+ # Relationship to user.
28
+ attr_accessor :modified_by
29
+
30
+ # Case management project.
31
+ attr_accessor :project
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'created_by' => :'created_by',
40
+ :'modified_by' => :'modified_by',
41
+ :'project' => :'project'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'created_by' => :'RelationshipToUser',
50
+ :'modified_by' => :'RelationshipToUser',
51
+ :'project' => :'CaseManagementProject'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param attributes [Hash] Model attributes in the form of hash
57
+ # @!visibility private
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FindingCaseResponseDataRelationships` initialize method"
61
+ end
62
+
63
+ self.additional_properties = {}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ self.additional_properties[k.to_sym] = v
68
+ else
69
+ h[k.to_sym] = v
70
+ end
71
+ }
72
+
73
+ if attributes.key?(:'created_by')
74
+ self.created_by = attributes[:'created_by']
75
+ end
76
+
77
+ if attributes.key?(:'modified_by')
78
+ self.modified_by = attributes[:'modified_by']
79
+ end
80
+
81
+ if attributes.key?(:'project')
82
+ self.project = attributes[:'project']
83
+ end
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ created_by == o.created_by &&
113
+ modified_by == o.modified_by &&
114
+ project == o.project &&
115
+ additional_properties == o.additional_properties
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ # @!visibility private
121
+ def hash
122
+ [created_by, modified_by, project, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,144 @@
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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ #
21
+ class FindingData
22
+ include BaseGenericModel
23
+
24
+ # The unique identifier of the security finding.
25
+ attr_reader :id
26
+
27
+ # Security findings resource type.
28
+ attr_reader :type
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'id' => :'id',
37
+ :'type' => :'type'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'id' => :'String',
46
+ :'type' => :'FindingDataType'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FindingData` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'id')
69
+ self.id = attributes[:'id']
70
+ end
71
+
72
+ if attributes.key?(:'type')
73
+ self.type = attributes[:'type']
74
+ end
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ # @!visibility private
80
+ def valid?
81
+ return false if @id.nil?
82
+ return false if @type.nil?
83
+ true
84
+ end
85
+
86
+ # Custom attribute writer method with validation
87
+ # @param id [Object] Object to be assigned
88
+ # @!visibility private
89
+ def id=(id)
90
+ if id.nil?
91
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
92
+ end
93
+ @id = id
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param type [Object] Object to be assigned
98
+ # @!visibility private
99
+ def type=(type)
100
+ if type.nil?
101
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
102
+ end
103
+ @type = type
104
+ end
105
+
106
+ # Returns the object in the form of hash, with additionalProperties support.
107
+ # @return [Hash] Returns the object in the form of hash
108
+ # @!visibility private
109
+ def to_hash
110
+ hash = {}
111
+ self.class.attribute_map.each_pair do |attr, param|
112
+ value = self.send(attr)
113
+ if value.nil?
114
+ is_nullable = self.class.openapi_nullable.include?(attr)
115
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
116
+ end
117
+
118
+ hash[param] = _to_hash(value)
119
+ end
120
+ self.additional_properties.each_pair do |attr, value|
121
+ hash[attr] = value
122
+ end
123
+ hash
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param o [Object] Object to be compared
128
+ # @!visibility private
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ id == o.id &&
133
+ type == o.type &&
134
+ additional_properties == o.additional_properties
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ # @!visibility private
140
+ def hash
141
+ [id, type, additional_properties].hash
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,26 @@
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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Security findings resource type.
21
+ class FindingDataType
22
+ include BaseEnumModel
23
+
24
+ FINDINGS = "findings".freeze
25
+ end
26
+ end
@@ -0,0 +1,125 @@
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 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Jira issue associated with the case.
21
+ class FindingJiraIssue
22
+ include BaseGenericModel
23
+
24
+ # The error message if the Jira issue creation failed.
25
+ attr_accessor :error_message
26
+
27
+ # Result of the Jira issue creation.
28
+ attr_accessor :result
29
+
30
+ # The status of the Jira issue creation. Can be "COMPLETED" if the Jira issue was created successfully, or "FAILED" if the Jira issue creation failed.
31
+ attr_accessor :status
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'error_message' => :'error_message',
40
+ :'result' => :'result',
41
+ :'status' => :'status'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'error_message' => :'String',
50
+ :'result' => :'FindingJiraIssueResult',
51
+ :'status' => :'String'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param attributes [Hash] Model attributes in the form of hash
57
+ # @!visibility private
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FindingJiraIssue` initialize method"
61
+ end
62
+
63
+ self.additional_properties = {}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ self.additional_properties[k.to_sym] = v
68
+ else
69
+ h[k.to_sym] = v
70
+ end
71
+ }
72
+
73
+ if attributes.key?(:'error_message')
74
+ self.error_message = attributes[:'error_message']
75
+ end
76
+
77
+ if attributes.key?(:'result')
78
+ self.result = attributes[:'result']
79
+ end
80
+
81
+ if attributes.key?(:'status')
82
+ self.status = attributes[:'status']
83
+ end
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ error_message == o.error_message &&
113
+ result == o.result &&
114
+ status == o.status &&
115
+ additional_properties == o.additional_properties
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ # @!visibility private
121
+ def hash
122
+ [error_message, result, status, additional_properties].hash
123
+ end
124
+ end
125
+ end