datadog_api_client 2.40.0 → 2.41.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 (258) hide show
  1. checksums.yaml +4 -4
  2. data/.generated-info +2 -2
  3. data/.generator/schemas/v1/openapi.yaml +35 -0
  4. data/.generator/schemas/v2/openapi.yaml +3544 -93
  5. data/CHANGELOG.md +30 -0
  6. data/examples/v1/dashboards/CreateDashboard_3066042014.rb +1 -0
  7. data/examples/v1/dashboards/CreateDashboard_3451918078.rb +1 -0
  8. data/examples/v1/dashboards/CreateDashboard_4262729673.rb +1 -0
  9. data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
  10. data/examples/v2/agentless-scanning/GetAwsScanOptions.rb +8 -0
  11. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
  12. data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +1 -1
  13. data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +1 -1
  14. data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
  15. data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +1 -1
  16. data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +1 -1
  17. data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
  18. data/examples/v2/datasets/CreateDataset.rb +1 -1
  19. data/examples/v2/datasets/UpdateDataset.rb +1 -1
  20. data/examples/v2/error-tracking/GetIssue.rb +8 -0
  21. data/examples/v2/error-tracking/SearchIssues.rb +17 -0
  22. data/examples/v2/error-tracking/UpdateIssueAssignee.rb +15 -0
  23. data/examples/v2/error-tracking/UpdateIssueState.rb +18 -0
  24. data/examples/v2/incidents/CreateIncidentNotificationTemplate.rb +31 -0
  25. data/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb +8 -0
  26. data/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb +11 -0
  27. data/examples/v2/incidents/GetIncidentNotificationTemplate.rb +11 -0
  28. data/examples/v2/incidents/ListIncidentNotificationTemplates.rb +8 -0
  29. data/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb +24 -0
  30. data/examples/v2/org-connections/CreateOrgConnections.rb +24 -0
  31. data/examples/v2/org-connections/DeleteOrgConnections.rb +8 -0
  32. data/examples/v2/org-connections/ListOrgConnections.rb +5 -0
  33. data/examples/v2/org-connections/UpdateOrgConnections.rb +21 -0
  34. data/examples/v2/rum/CreateRUMApplication_1946294560.rb +17 -0
  35. data/examples/v2/rum/UpdateRUMApplication_394074053.rb +20 -0
  36. data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +3 -3
  37. data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +1 -1
  38. data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb +8 -0
  39. data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb +8 -0
  40. data/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb +36 -0
  41. data/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb +8 -0
  42. data/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb +8 -0
  43. data/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb +24 -0
  44. data/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb +18 -0
  45. data/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb +37 -0
  46. data/examples/v2/service-scorecards/UpdateScorecardOutcomesAsync.rb +27 -0
  47. data/examples/v2/spa/GetSPARecommendations.rb +8 -0
  48. data/examples/v2/teams/SyncTeams.rb +18 -0
  49. data/examples/v2/teams/SyncTeams_3215592344.rb +18 -0
  50. data/lib/datadog_api_client/configuration.rb +12 -0
  51. data/lib/datadog_api_client/inflector.rb +166 -0
  52. data/lib/datadog_api_client/v1/models/logs_api_limit_reached_response.rb +105 -0
  53. data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +11 -1
  54. data/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +11 -1
  55. data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +13 -3
  56. data/lib/datadog_api_client/v1/models/widget_legacy_live_span.rb +11 -1
  57. data/lib/datadog_api_client/v1/models/widget_new_fixed_span.rb +11 -1
  58. data/lib/datadog_api_client/v1/models/widget_new_live_span.rb +11 -1
  59. data/lib/datadog_api_client/v2/api/action_connection_api.rb +1 -1
  60. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +67 -2
  61. data/lib/datadog_api_client/v2/api/app_builder_api.rb +8 -8
  62. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +14 -6
  63. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +306 -0
  64. data/lib/datadog_api_client/v2/api/incidents_api.rb +369 -0
  65. data/lib/datadog_api_client/v2/api/monitors_api.rb +20 -0
  66. data/lib/datadog_api_client/v2/api/org_connections_api.rb +290 -0
  67. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +514 -0
  68. data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +73 -0
  69. data/lib/datadog_api_client/v2/api/spa_api.rb +102 -0
  70. data/lib/datadog_api_client/v2/api/teams_api.rb +83 -0
  71. data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +8 -8
  72. data/lib/datadog_api_client/v2/models/aws_cur_config.rb +1 -1
  73. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +1 -11
  74. data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +4 -4
  75. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +1 -1
  76. data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +1 -1
  77. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +1 -1
  78. data/lib/datadog_api_client/v2/models/component_recommendation.rb +123 -0
  79. data/lib/datadog_api_client/v2/models/cpu.rb +125 -0
  80. data/lib/datadog_api_client/v2/models/create_incident_notification_template_request.rb +123 -0
  81. data/lib/datadog_api_client/v2/models/dataset_request.rb +2 -2
  82. data/lib/datadog_api_client/v2/models/dataset_response.rb +2 -2
  83. data/lib/datadog_api_client/v2/models/dataset_type.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/estimation.rb +145 -0
  85. data/lib/datadog_api_client/v2/models/get_issue_include_query_parameter_item.rb +28 -0
  86. data/lib/datadog_api_client/v2/models/google_meet_configuration_reference.rb +113 -0
  87. data/lib/datadog_api_client/v2/models/google_meet_configuration_reference_data.rb +144 -0
  88. data/lib/datadog_api_client/v2/models/incident_notification_template.rb +135 -0
  89. data/lib/datadog_api_client/v2/models/incident_notification_template_array.rb +147 -0
  90. data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta.rb +105 -0
  91. data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta_page.rb +115 -0
  92. data/lib/datadog_api_client/v2/models/incident_notification_template_attributes.rb +228 -0
  93. data/lib/datadog_api_client/v2/models/incident_notification_template_create_attributes.rb +186 -0
  94. data/lib/datadog_api_client/v2/models/incident_notification_template_create_data.rb +154 -0
  95. data/lib/datadog_api_client/v2/models/incident_notification_template_create_data_relationships.rb +105 -0
  96. data/lib/datadog_api_client/v2/models/incident_notification_template_included_items.rb +63 -0
  97. data/lib/datadog_api_client/v2/models/incident_notification_template_relationships.rb +125 -0
  98. data/lib/datadog_api_client/v2/models/incident_notification_template_response_data.rb +164 -0
  99. data/lib/datadog_api_client/v2/models/incident_notification_template_type.rb +26 -0
  100. data/lib/datadog_api_client/v2/models/incident_notification_template_update_attributes.rb +135 -0
  101. data/lib/datadog_api_client/v2/models/incident_notification_template_update_data.rb +154 -0
  102. data/lib/datadog_api_client/v2/models/incident_type_object.rb +11 -1
  103. data/lib/datadog_api_client/v2/models/incident_type_relationships.rb +155 -0
  104. data/lib/datadog_api_client/v2/models/issue.rb +175 -0
  105. data/lib/datadog_api_client/v2/models/issue_assignee_relationship.rb +123 -0
  106. data/lib/datadog_api_client/v2/models/issue_attributes.rb +227 -0
  107. data/lib/datadog_api_client/v2/models/issue_case.rb +175 -0
  108. data/lib/datadog_api_client/v2/models/issue_case_attributes.rb +237 -0
  109. data/lib/datadog_api_client/v2/models/issue_case_insight.rb +125 -0
  110. data/lib/datadog_api_client/v2/models/issue_case_jira_issue.rb +115 -0
  111. data/lib/datadog_api_client/v2/models/issue_case_jira_issue_result.rb +135 -0
  112. data/lib/datadog_api_client/v2/models/issue_case_reference.rb +144 -0
  113. data/lib/datadog_api_client/v2/models/issue_case_relationship.rb +123 -0
  114. data/lib/datadog_api_client/v2/models/issue_case_relationships.rb +145 -0
  115. data/lib/datadog_api_client/v2/models/issue_case_resource_type.rb +26 -0
  116. data/lib/datadog_api_client/v2/models/issue_included.rb +64 -0
  117. data/lib/datadog_api_client/v2/models/issue_language.rb +52 -0
  118. data/lib/datadog_api_client/v2/models/issue_platform.rb +33 -0
  119. data/lib/datadog_api_client/v2/models/issue_reference.rb +144 -0
  120. data/lib/datadog_api_client/v2/models/issue_relationships.rb +125 -0
  121. data/lib/datadog_api_client/v2/models/issue_response.rb +117 -0
  122. data/lib/datadog_api_client/v2/models/issue_state.rb +30 -0
  123. data/lib/datadog_api_client/v2/models/issue_team.rb +165 -0
  124. data/lib/datadog_api_client/v2/models/issue_team_attributes.rb +125 -0
  125. data/lib/datadog_api_client/v2/models/issue_team_owners_relationship.rb +125 -0
  126. data/lib/datadog_api_client/v2/models/issue_team_reference.rb +144 -0
  127. data/lib/datadog_api_client/v2/models/issue_team_type.rb +26 -0
  128. data/lib/datadog_api_client/v2/models/issue_type.rb +26 -0
  129. data/lib/datadog_api_client/v2/models/issue_update_assignee_request.rb +123 -0
  130. data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data.rb +144 -0
  131. data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data_type.rb +26 -0
  132. data/lib/datadog_api_client/v2/models/issue_update_state_request.rb +123 -0
  133. data/lib/datadog_api_client/v2/models/issue_update_state_request_data.rb +165 -0
  134. data/lib/datadog_api_client/v2/models/issue_update_state_request_data_attributes.rb +123 -0
  135. data/lib/datadog_api_client/v2/models/issue_update_state_request_data_type.rb +26 -0
  136. data/lib/datadog_api_client/v2/models/issue_user.rb +165 -0
  137. data/lib/datadog_api_client/v2/models/issue_user_attributes.rb +125 -0
  138. data/lib/datadog_api_client/v2/models/issue_user_reference.rb +144 -0
  139. data/lib/datadog_api_client/v2/models/issue_user_type.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/issues_search_request.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/issues_search_request_data.rb +144 -0
  142. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +195 -0
  143. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb +29 -0
  144. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb +29 -0
  145. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb +28 -0
  146. data/lib/datadog_api_client/v2/models/issues_search_request_data_type.rb +26 -0
  147. data/lib/datadog_api_client/v2/models/issues_search_response.rb +119 -0
  148. data/lib/datadog_api_client/v2/models/issues_search_result.rb +175 -0
  149. data/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb +125 -0
  150. data/lib/datadog_api_client/v2/models/issues_search_result_included.rb +65 -0
  151. data/lib/datadog_api_client/v2/models/issues_search_result_issue_relationship.rb +123 -0
  152. data/lib/datadog_api_client/v2/models/issues_search_result_relationships.rb +105 -0
  153. data/lib/datadog_api_client/v2/models/issues_search_result_type.rb +26 -0
  154. data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference.rb +113 -0
  155. data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference_data.rb +144 -0
  156. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +252 -0
  157. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +4 -1
  159. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +3 -1
  160. data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +2 -1
  161. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +208 -0
  162. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression.rb +133 -0
  163. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression_algorithm.rb +27 -0
  164. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_encoding.rb +27 -0
  165. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_type.rb +26 -0
  166. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +215 -0
  167. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +207 -0
  168. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_type.rb +26 -0
  169. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +253 -0
  170. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_action.rb +27 -0
  171. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_mode.rb +26 -0
  172. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_type.rb +26 -0
  173. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +240 -0
  174. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_encoding.rb +27 -0
  175. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing.rb +64 -0
  176. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes.rb +123 -0
  177. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes_method.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited.rb +152 -0
  179. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited_method.rb +26 -0
  180. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited.rb +123 -0
  181. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited_method.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_mode.rb +27 -0
  183. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_type.rb +26 -0
  184. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +196 -0
  185. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing.rb +66 -0
  186. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes.rb +123 -0
  187. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes_method.rb +26 -0
  188. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited.rb +152 -0
  189. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited_method.rb +26 -0
  190. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf.rb +123 -0
  191. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf_method.rb +26 -0
  192. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited.rb +123 -0
  193. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited_method.rb +26 -0
  194. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting.rb +123 -0
  195. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting_method.rb +26 -0
  196. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_mode.rb +27 -0
  197. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_type.rb +26 -0
  198. data/lib/datadog_api_client/v2/models/org_connection.rb +186 -0
  199. data/lib/datadog_api_client/v2/models/org_connection_attributes.rb +146 -0
  200. data/lib/datadog_api_client/v2/models/org_connection_create.rb +165 -0
  201. data/lib/datadog_api_client/v2/models/org_connection_create_attributes.rb +129 -0
  202. data/lib/datadog_api_client/v2/models/org_connection_create_relationships.rb +123 -0
  203. data/lib/datadog_api_client/v2/models/org_connection_create_request.rb +123 -0
  204. data/lib/datadog_api_client/v2/models/org_connection_list_response.rb +135 -0
  205. data/lib/datadog_api_client/v2/models/org_connection_list_response_meta.rb +105 -0
  206. data/lib/datadog_api_client/v2/models/org_connection_list_response_meta_page.rb +115 -0
  207. data/lib/datadog_api_client/v2/models/org_connection_org_relationship.rb +105 -0
  208. data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data.rb +125 -0
  209. data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/org_connection_relationships.rb +125 -0
  211. data/lib/datadog_api_client/v2/models/org_connection_response.rb +123 -0
  212. data/lib/datadog_api_client/v2/models/org_connection_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/org_connection_type_enum.rb +27 -0
  214. data/lib/datadog_api_client/v2/models/org_connection_update.rb +165 -0
  215. data/lib/datadog_api_client/v2/models/org_connection_update_attributes.rb +129 -0
  216. data/lib/datadog_api_client/v2/models/org_connection_update_request.rb +123 -0
  217. data/lib/datadog_api_client/v2/models/org_connection_user_relationship.rb +105 -0
  218. data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data.rb +125 -0
  219. data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data_type.rb +26 -0
  220. data/lib/datadog_api_client/v2/models/patch_incident_notification_template_request.rb +123 -0
  221. data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +144 -0
  222. data/lib/datadog_api_client/v2/models/recommendation_data.rb +154 -0
  223. data/lib/datadog_api_client/v2/models/recommendation_document.rb +123 -0
  224. data/lib/datadog_api_client/v2/models/recommendation_type.rb +26 -0
  225. data/lib/datadog_api_client/v2/models/relationship_to_incident_type.rb +123 -0
  226. data/lib/datadog_api_client/v2/models/relationship_to_incident_type_data.rb +144 -0
  227. data/lib/datadog_api_client/v2/models/rule_attributes.rb +33 -1
  228. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
  229. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +21 -1
  230. data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +11 -1
  231. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +21 -1
  232. data/lib/datadog_api_client/v2/models/rum_event_processing_scale.rb +115 -0
  233. data/lib/datadog_api_client/v2/models/rum_event_processing_state.rb +28 -0
  234. data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_scale.rb +115 -0
  235. data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_state.rb +27 -0
  236. data/lib/datadog_api_client/v2/models/rum_product_scales.rb +115 -0
  237. data/lib/datadog_api_client/v2/models/search_issues_include_query_parameter_item.rb +29 -0
  238. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +11 -1
  239. data/lib/datadog_api_client/v2/models/shift.rb +2 -2
  240. data/lib/datadog_api_client/v2/models/shift_data.rb +3 -3
  241. data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/shift_data_relationships.rb +1 -1
  243. data/lib/datadog_api_client/v2/models/shift_included.rb +1 -1
  244. data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +144 -0
  245. data/lib/datadog_api_client/v2/models/team_sync_attributes_source.rb +26 -0
  246. data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +26 -0
  247. data/lib/datadog_api_client/v2/models/team_sync_bulk_type.rb +26 -0
  248. data/lib/datadog_api_client/v2/models/team_sync_data.rb +144 -0
  249. data/lib/datadog_api_client/v2/models/team_sync_request.rb +123 -0
  250. data/lib/datadog_api_client/v2/models/update_outcomes_async_attributes.rb +107 -0
  251. data/lib/datadog_api_client/v2/models/update_outcomes_async_request.rb +105 -0
  252. data/lib/datadog_api_client/v2/models/update_outcomes_async_request_data.rb +115 -0
  253. data/lib/datadog_api_client/v2/models/update_outcomes_async_request_item.rb +175 -0
  254. data/lib/datadog_api_client/v2/models/update_outcomes_async_type.rb +26 -0
  255. data/lib/datadog_api_client/v2/models/zoom_configuration_reference.rb +113 -0
  256. data/lib/datadog_api_client/v2/models/zoom_configuration_reference_data.rb +144 -0
  257. data/lib/datadog_api_client/version.rb +1 -1
  258. metadata +196 -1
@@ -0,0 +1,175 @@
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
+ # Result matching the search query.
21
+ class IssuesSearchResult
22
+ include BaseGenericModel
23
+
24
+ # Object containing the information of a search result.
25
+ attr_reader :attributes
26
+
27
+ # Search result identifier (matches the nested issue's identifier).
28
+ attr_reader :id
29
+
30
+ # Relationships between the search result and other resources.
31
+ attr_accessor :relationships
32
+
33
+ # Type of the object.
34
+ attr_reader :type
35
+
36
+ attr_accessor :additional_properties
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ # @!visibility private
40
+ def self.attribute_map
41
+ {
42
+ :'attributes' => :'attributes',
43
+ :'id' => :'id',
44
+ :'relationships' => :'relationships',
45
+ :'type' => :'type'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ # @!visibility private
51
+ def self.openapi_types
52
+ {
53
+ :'attributes' => :'IssuesSearchResultAttributes',
54
+ :'id' => :'String',
55
+ :'relationships' => :'IssuesSearchResultRelationships',
56
+ :'type' => :'IssuesSearchResultType'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param attributes [Hash] Model attributes in the form of hash
62
+ # @!visibility private
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IssuesSearchResult` initialize method"
66
+ end
67
+
68
+ self.additional_properties = {}
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ self.additional_properties[k.to_sym] = v
73
+ else
74
+ h[k.to_sym] = v
75
+ end
76
+ }
77
+
78
+ if attributes.key?(:'attributes')
79
+ self.attributes = attributes[:'attributes']
80
+ end
81
+
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
86
+ if attributes.key?(:'relationships')
87
+ self.relationships = attributes[:'relationships']
88
+ end
89
+
90
+ if attributes.key?(:'type')
91
+ self.type = attributes[:'type']
92
+ end
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ # @!visibility private
98
+ def valid?
99
+ return false if @attributes.nil?
100
+ return false if @id.nil?
101
+ return false if @type.nil?
102
+ true
103
+ end
104
+
105
+ # Custom attribute writer method with validation
106
+ # @param attributes [Object] Object to be assigned
107
+ # @!visibility private
108
+ def attributes=(attributes)
109
+ if attributes.nil?
110
+ fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
111
+ end
112
+ @attributes = attributes
113
+ end
114
+
115
+ # Custom attribute writer method with validation
116
+ # @param id [Object] Object to be assigned
117
+ # @!visibility private
118
+ def id=(id)
119
+ if id.nil?
120
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
121
+ end
122
+ @id = id
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param type [Object] Object to be assigned
127
+ # @!visibility private
128
+ def type=(type)
129
+ if type.nil?
130
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
131
+ end
132
+ @type = type
133
+ end
134
+
135
+ # Returns the object in the form of hash, with additionalProperties support.
136
+ # @return [Hash] Returns the object in the form of hash
137
+ # @!visibility private
138
+ def to_hash
139
+ hash = {}
140
+ self.class.attribute_map.each_pair do |attr, param|
141
+ value = self.send(attr)
142
+ if value.nil?
143
+ is_nullable = self.class.openapi_nullable.include?(attr)
144
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
145
+ end
146
+
147
+ hash[param] = _to_hash(value)
148
+ end
149
+ self.additional_properties.each_pair do |attr, value|
150
+ hash[attr] = value
151
+ end
152
+ hash
153
+ end
154
+
155
+ # Checks equality by comparing each attribute.
156
+ # @param o [Object] Object to be compared
157
+ # @!visibility private
158
+ def ==(o)
159
+ return true if self.equal?(o)
160
+ self.class == o.class &&
161
+ attributes == o.attributes &&
162
+ id == o.id &&
163
+ relationships == o.relationships &&
164
+ type == o.type &&
165
+ additional_properties == o.additional_properties
166
+ end
167
+
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Integer] Hash code
170
+ # @!visibility private
171
+ def hash
172
+ [attributes, id, relationships, type, additional_properties].hash
173
+ end
174
+ end
175
+ 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
+ # Object containing the information of a search result.
21
+ class IssuesSearchResultAttributes
22
+ include BaseGenericModel
23
+
24
+ # Count of sessions impacted by the issue over the queried time window.
25
+ attr_accessor :impacted_sessions
26
+
27
+ # Count of users impacted by the issue over the queried time window.
28
+ attr_accessor :impacted_users
29
+
30
+ # Total count of errors that match the issue over the queried time window.
31
+ attr_accessor :total_count
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
+ :'impacted_sessions' => :'impacted_sessions',
40
+ :'impacted_users' => :'impacted_users',
41
+ :'total_count' => :'total_count'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'impacted_sessions' => :'Integer',
50
+ :'impacted_users' => :'Integer',
51
+ :'total_count' => :'Integer'
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::IssuesSearchResultAttributes` 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?(:'impacted_sessions')
74
+ self.impacted_sessions = attributes[:'impacted_sessions']
75
+ end
76
+
77
+ if attributes.key?(:'impacted_users')
78
+ self.impacted_users = attributes[:'impacted_users']
79
+ end
80
+
81
+ if attributes.key?(:'total_count')
82
+ self.total_count = attributes[:'total_count']
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
+ impacted_sessions == o.impacted_sessions &&
113
+ impacted_users == o.impacted_users &&
114
+ total_count == o.total_count &&
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
+ [impacted_sessions, impacted_users, total_count, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,65 @@
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
+ # An array of related resources, returned when the `include` query parameter is used.
21
+ module IssuesSearchResultIncluded
22
+ class << self
23
+ include BaseOneOfModel
24
+ include BaseOneOfModelNoDiscriminator
25
+
26
+ # List of class defined in oneOf (OpenAPI v3)
27
+ def openapi_one_of
28
+ [
29
+ :'Issue',
30
+ :'Case',
31
+ :'IssueUser',
32
+ :'IssueTeam'
33
+ ]
34
+ end
35
+ # Builds the object
36
+ # @param data [Mixed] Data to be matched against the list of oneOf items
37
+ # @return [Object] Returns the model or the data itself
38
+ def build(data)
39
+ # Go through the list of oneOf items and attempt to identify the appropriate one.
40
+ # Note:
41
+ # - We do not attempt to check whether exactly one item matches.
42
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
43
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
44
+ # - TODO: scalar values are de facto behaving as if they were nullable.
45
+ # - TODO: logging when debugging is set.
46
+ openapi_one_of.each do |klass|
47
+ begin
48
+ next if klass == :AnyType # "nullable: true"
49
+ typed_data = find_and_cast_into_type(klass, data)
50
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
51
+ return typed_data if typed_data
52
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
53
+ end
54
+ end
55
+
56
+ if openapi_one_of.include?(:AnyType)
57
+ data
58
+ else
59
+ self._unparsed = true
60
+ DatadogAPIClient::UnparsedObject.new(data)
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,123 @@
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
+ # Relationship between the search result and the corresponding issue.
21
+ class IssuesSearchResultIssueRelationship
22
+ include BaseGenericModel
23
+
24
+ # The issue the search result corresponds to.
25
+ attr_reader :data
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'data' => :'data'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'IssueReference'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IssuesSearchResultIssueRelationship` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'data')
64
+ self.data = attributes[:'data']
65
+ end
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ # @!visibility private
71
+ def valid?
72
+ return false if @data.nil?
73
+ true
74
+ end
75
+
76
+ # Custom attribute writer method with validation
77
+ # @param data [Object] Object to be assigned
78
+ # @!visibility private
79
+ def data=(data)
80
+ if data.nil?
81
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
82
+ end
83
+ @data = data
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
+ data == o.data &&
113
+ additional_properties == o.additional_properties
114
+ end
115
+
116
+ # Calculates hash code according to all attributes.
117
+ # @return [Integer] Hash code
118
+ # @!visibility private
119
+ def hash
120
+ [data, additional_properties].hash
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,105 @@
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 between the search result and other resources.
21
+ class IssuesSearchResultRelationships
22
+ include BaseGenericModel
23
+
24
+ # Relationship between the search result and the corresponding issue.
25
+ attr_accessor :issue
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'issue' => :'issue'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'issue' => :'IssuesSearchResultIssueRelationship'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IssuesSearchResultRelationships` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'issue')
64
+ self.issue = attributes[:'issue']
65
+ end
66
+ end
67
+
68
+ # Returns the object in the form of hash, with additionalProperties support.
69
+ # @return [Hash] Returns the object in the form of hash
70
+ # @!visibility private
71
+ def to_hash
72
+ hash = {}
73
+ self.class.attribute_map.each_pair do |attr, param|
74
+ value = self.send(attr)
75
+ if value.nil?
76
+ is_nullable = self.class.openapi_nullable.include?(attr)
77
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78
+ end
79
+
80
+ hash[param] = _to_hash(value)
81
+ end
82
+ self.additional_properties.each_pair do |attr, value|
83
+ hash[attr] = value
84
+ end
85
+ hash
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param o [Object] Object to be compared
90
+ # @!visibility private
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ issue == o.issue &&
95
+ additional_properties == o.additional_properties
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ # @!visibility private
101
+ def hash
102
+ [issue, additional_properties].hash
103
+ end
104
+ end
105
+ 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
+ # Type of the object.
21
+ class IssuesSearchResultType
22
+ include BaseEnumModel
23
+
24
+ ERROR_TRACKING_SEARCH_RESULT = "error_tracking_search_result".freeze
25
+ end
26
+ end