datadog_api_client 2.9.0 → 2.10.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 (478) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +5 -24
  4. data/.generator/poetry.lock +164 -189
  5. data/.generator/schemas/v1/openapi.yaml +901 -30
  6. data/.generator/schemas/v2/openapi.yaml +3810 -1428
  7. data/.generator/src/generator/formatter.py +1 -1
  8. data/.generator/src/generator/openapi.py +2 -1
  9. data/.generator/src/generator/templates/api_client.j2 +2 -2
  10. data/.generator/src/generator/templates/example.j2 +1 -1
  11. data/.generator/src/generator/templates/model_oneof.j2 +1 -1
  12. data/.github/workflows/test.yml +1 -1
  13. data/.github/workflows/test_integration.yml +3 -3
  14. data/CHANGELOG.md +36 -0
  15. data/README.md +1 -1
  16. data/examples/v1/dashboard-lists/CreateDashboardList.rb +1 -1
  17. data/examples/v1/dashboard-lists/UpdateDashboardList.rb +1 -1
  18. data/examples/v1/dashboards/CreateDashboard.rb +1 -1
  19. data/examples/v1/dashboards/CreateDashboard_1024858348.rb +1 -1
  20. data/examples/v1/dashboards/CreateDashboard_1039800684.rb +1 -1
  21. data/examples/v1/dashboards/CreateDashboard_109450134.rb +1 -1
  22. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +1 -1
  23. data/examples/v1/dashboards/CreateDashboard_1177423752.rb +1 -1
  24. data/examples/v1/dashboards/CreateDashboard_1200099236.rb +1 -1
  25. data/examples/v1/dashboards/CreateDashboard_1213075383.rb +1 -1
  26. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +1 -1
  27. data/examples/v1/dashboards/CreateDashboard_1423904722.rb +1 -1
  28. data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
  29. data/examples/v1/dashboards/CreateDashboard_145494973.rb +1 -1
  30. data/examples/v1/dashboards/CreateDashboard_173805046.rb +1 -1
  31. data/examples/v1/dashboards/CreateDashboard_1738608750.rb +1 -1
  32. data/examples/v1/dashboards/CreateDashboard_2029850837.rb +1 -1
  33. data/examples/v1/dashboards/CreateDashboard_2034634967.rb +1 -1
  34. data/examples/v1/dashboards/CreateDashboard_2064651578.rb +64 -0
  35. data/examples/v1/dashboards/CreateDashboard_2104498738.rb +1 -1
  36. data/examples/v1/dashboards/CreateDashboard_2308247857.rb +1 -1
  37. data/examples/v1/dashboards/CreateDashboard_2316374332.rb +1 -1
  38. data/examples/v1/dashboards/CreateDashboard_2336428357.rb +1 -1
  39. data/examples/v1/dashboards/CreateDashboard_2338918735.rb +1 -1
  40. data/examples/v1/dashboards/CreateDashboard_2342457693.rb +1 -1
  41. data/examples/v1/dashboards/CreateDashboard_2349863258.rb +1 -1
  42. data/examples/v1/dashboards/CreateDashboard_2432046716.rb +1 -1
  43. data/examples/v1/dashboards/CreateDashboard_2490110261.rb +1 -1
  44. data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
  45. data/examples/v1/dashboards/CreateDashboard_2607944105.rb +1 -1
  46. data/examples/v1/dashboards/CreateDashboard_2610827685.rb +1 -1
  47. data/examples/v1/dashboards/CreateDashboard_2634813877.rb +1 -1
  48. data/examples/v1/dashboards/CreateDashboard_2644712913.rb +1 -1
  49. data/examples/v1/dashboards/CreateDashboard_2652180930.rb +1 -1
  50. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +1 -1
  51. data/examples/v1/dashboards/CreateDashboard_2800096921.rb +1 -1
  52. data/examples/v1/dashboards/CreateDashboard_2843286292.rb +1 -1
  53. data/examples/v1/dashboards/CreateDashboard_2917274132.rb +1 -1
  54. data/examples/v1/dashboards/CreateDashboard_2921337351.rb +1 -1
  55. data/examples/v1/dashboards/CreateDashboard_3117424216.rb +1 -1
  56. data/examples/v1/dashboards/CreateDashboard_3195475781.rb +1 -1
  57. data/examples/v1/dashboards/CreateDashboard_3250131584.rb +1 -1
  58. data/examples/v1/dashboards/CreateDashboard_3669695268.rb +1 -1
  59. data/examples/v1/dashboards/CreateDashboard_3882428227.rb +2 -2
  60. data/examples/v1/dashboards/CreateDashboard_3982498788.rb +1 -1
  61. data/examples/v1/dashboards/CreateDashboard_4026341408.rb +1 -1
  62. data/examples/v1/dashboards/CreateDashboard_4076476470.rb +1 -1
  63. data/examples/v1/dashboards/CreateDashboard_41622531.rb +1 -1
  64. data/examples/v1/dashboards/CreateDashboard_417992286.rb +1 -1
  65. data/examples/v1/dashboards/CreateDashboard_578885732.rb +1 -1
  66. data/examples/v1/dashboards/CreateDashboard_651038379.rb +1 -1
  67. data/examples/v1/dashboards/CreateDashboard_765140092.rb +1 -1
  68. data/examples/v1/dashboards/CreateDashboard_798168180.rb +1 -1
  69. data/examples/v1/dashboards/CreateDashboard_803346562.rb +1 -1
  70. data/examples/v1/dashboards/CreateDashboard_913313564.rb +1 -1
  71. data/examples/v1/dashboards/CreateDashboard_915214113.rb +1 -1
  72. data/examples/v1/dashboards/CreateDashboard_927141680.rb +1 -1
  73. data/examples/v1/dashboards/CreatePublicDashboard.rb +17 -0
  74. data/examples/v1/dashboards/DeletePublicDashboard.rb +5 -0
  75. data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +16 -0
  76. data/examples/v1/dashboards/GetPublicDashboard.rb +8 -0
  77. data/examples/v1/dashboards/GetPublicDashboardInvitations.rb +8 -0
  78. data/examples/v1/dashboards/SendPublicDashboardInvitation.rb +17 -0
  79. data/examples/v1/dashboards/UpdateDashboard.rb +1 -1
  80. data/examples/v1/dashboards/UpdateDashboard_3454865944.rb +40 -0
  81. data/examples/v1/dashboards/UpdatePublicDashboard.rb +16 -0
  82. data/examples/v1/downtimes/CreateDowntime.rb +2 -2
  83. data/examples/v1/downtimes/CreateDowntime_1393233946.rb +1 -1
  84. data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -1
  85. data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -1
  86. data/examples/v1/downtimes/CreateDowntime_3355644446.rb +2 -2
  87. data/examples/v1/downtimes/ListDowntimes.rb +4 -1
  88. data/examples/v1/downtimes/UpdateDowntime.rb +1 -1
  89. data/examples/v1/events/CreateEvent.rb +2 -2
  90. data/examples/v1/events/CreateEvent_19927815.rb +2 -2
  91. data/examples/v1/logs/SubmitLog.rb +2 -2
  92. data/examples/v1/logs/SubmitLog_1920474053.rb +2 -2
  93. data/examples/v1/logs/SubmitLog_3418823904.rb +2 -2
  94. data/examples/v1/metrics/SubmitMetrics.rb +1 -1
  95. data/examples/v1/metrics/SubmitMetrics_2203981258.rb +1 -1
  96. data/examples/v1/monitors/CreateMonitor.rb +2 -2
  97. data/examples/v1/monitors/CreateMonitor_1969035628.rb +2 -2
  98. data/examples/v1/monitors/CreateMonitor_2012680290.rb +1 -1
  99. data/examples/v1/monitors/CreateMonitor_2520912138.rb +2 -2
  100. data/examples/v1/monitors/CreateMonitor_3790803616.rb +2 -2
  101. data/examples/v1/monitors/CreateMonitor_3824294658.rb +2 -2
  102. data/examples/v1/monitors/CreateMonitor_3883669300.rb +2 -2
  103. data/examples/v1/monitors/CreateMonitor_440013737.rb +2 -2
  104. data/examples/v1/monitors/ListMonitors_3448441939.rb +1 -1
  105. data/examples/v1/monitors/ValidateExistingMonitor.rb +2 -2
  106. data/examples/v1/monitors/ValidateMonitor.rb +2 -2
  107. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +2 -2
  108. data/examples/v1/notebooks/CreateNotebook.rb +1 -1
  109. data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
  110. data/examples/v1/service-checks/SubmitServiceCheck.rb +1 -1
  111. data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +1 -1
  112. data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +1 -1
  113. data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +1 -1
  114. data/examples/v1/service-level-objectives/CreateSLO.rb +1 -1
  115. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +1 -1
  116. data/examples/v1/synthetics/CreatePrivateLocation.rb +3 -3
  117. data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
  118. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +2 -2
  119. data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +2 -2
  120. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +3 -3
  121. data/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb +2 -2
  122. data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +2 -2
  123. data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +3 -3
  124. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  125. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  126. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
  127. data/examples/v1/synthetics/UpdateAPITest.rb +2 -2
  128. data/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb +1 -1
  129. data/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb +1 -1
  130. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +2 -2
  131. data/examples/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb +1 -1
  132. data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +2 -2
  133. data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +1 -1
  134. data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -1
  135. data/examples/v2/events/ListEvents.rb +1 -1
  136. data/examples/v2/events/ListEvents_1527584014.rb +1 -1
  137. data/examples/v2/events/ListEvents_2663715109.rb +1 -1
  138. data/examples/v2/events/SearchEvents.rb +1 -1
  139. data/examples/v2/events/SearchEvents_3856995058.rb +1 -1
  140. data/examples/v2/fastly-integration/CreateFastlyAccount.rb +2 -2
  141. data/examples/v2/incident-services/CreateIncidentService.rb +2 -2
  142. data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
  143. data/examples/v2/incident-services/GetIncidentService.rb +1 -1
  144. data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
  145. data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
  146. data/examples/v2/incident-teams/CreateIncidentTeam.rb +2 -2
  147. data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
  148. data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
  149. data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
  150. data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
  151. data/examples/v2/incidents/CreateIncident.rb +2 -2
  152. data/examples/v2/incidents/CreateIncidentIntegration.rb +1 -1
  153. data/examples/v2/incidents/CreateIncidentTodo.rb +23 -0
  154. data/examples/v2/incidents/DeleteIncident.rb +1 -1
  155. data/examples/v2/incidents/DeleteIncidentIntegration.rb +1 -1
  156. data/examples/v2/incidents/DeleteIncidentTodo.rb +14 -0
  157. data/examples/v2/incidents/GetIncident.rb +1 -1
  158. data/examples/v2/incidents/GetIncidentIntegration.rb +1 -1
  159. data/examples/v2/incidents/GetIncidentTodo.rb +14 -0
  160. data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
  161. data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +1 -1
  162. data/examples/v2/incidents/ListIncidentIntegrations.rb +1 -1
  163. data/examples/v2/incidents/ListIncidentTodos.rb +11 -0
  164. data/examples/v2/incidents/ListIncidents.rb +1 -1
  165. data/examples/v2/incidents/ListIncidents_2665616954.rb +1 -1
  166. data/examples/v2/incidents/SearchIncidents.rb +1 -1
  167. data/examples/v2/incidents/SearchIncidents_1931679109.rb +11 -0
  168. data/examples/v2/incidents/UpdateIncident.rb +1 -1
  169. data/examples/v2/incidents/UpdateIncidentAttachments.rb +1 -1
  170. data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +2 -2
  171. data/examples/v2/incidents/UpdateIncidentIntegration.rb +1 -1
  172. data/examples/v2/incidents/UpdateIncidentTodo.rb +28 -0
  173. data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
  174. data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
  175. data/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +1 -1
  176. data/examples/v2/key-management/CreateAPIKey.rb +1 -1
  177. data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +1 -1
  178. data/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb +1 -1
  179. data/examples/v2/key-management/UpdateAPIKey.rb +1 -1
  180. data/examples/v2/logs/SubmitLog.rb +1 -1
  181. data/examples/v2/logs-metrics/CreateLogsMetric.rb +1 -1
  182. data/examples/v2/logs-metrics/DeleteLogsMetric.rb +1 -1
  183. data/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb +1 -1
  184. data/examples/v2/metrics/CreateTagConfiguration.rb +2 -2
  185. data/examples/v2/metrics/DeleteTagConfiguration.rb +1 -1
  186. data/examples/v2/metrics/ListActiveMetricConfigurations.rb +1 -1
  187. data/examples/v2/metrics/ListTagConfigurations_265033704.rb +1 -1
  188. data/examples/v2/metrics/ListVolumesByMetricName.rb +1 -1
  189. data/examples/v2/metrics/QueryScalarData.rb +1 -1
  190. data/examples/v2/metrics/QueryScalarData_3112571352.rb +1 -1
  191. data/examples/v2/metrics/QueryTimeseriesData.rb +1 -1
  192. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +1 -1
  193. data/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +1 -1
  194. data/examples/v2/roles/CloneRole.rb +1 -1
  195. data/examples/v2/roles/CreateRole.rb +1 -1
  196. data/examples/v2/security-monitoring/CreateSecurityFilter.rb +2 -2
  197. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +1 -1
  198. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  199. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +1 -1
  200. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +1 -1
  201. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +1 -1
  202. data/examples/v2/security-monitoring/UpdateSecurityFilter.rb +2 -2
  203. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -1
  204. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  205. data/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +1 -1
  206. data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +1 -1
  207. data/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +1 -1
  208. data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +1 -1
  209. data/examples/v2/service-accounts/CreateServiceAccount.rb +1 -1
  210. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +1 -1
  211. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb +1 -1
  212. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +19 -27
  213. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb +54 -0
  214. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb +53 -0
  215. data/examples/v2/service-definition/ListServiceDefinitions_336468013.rb +8 -0
  216. data/examples/v2/spans-metrics/CreateSpansMetric.rb +28 -0
  217. data/examples/v2/spans-metrics/DeleteSpansMetric.rb +8 -0
  218. data/examples/v2/spans-metrics/GetSpansMetric.rb +8 -0
  219. data/examples/v2/spans-metrics/ListSpansMetrics.rb +5 -0
  220. data/examples/v2/spans-metrics/UpdateSpansMetric.rb +29 -0
  221. data/examples/v2/teams/CreateTeam.rb +20 -0
  222. data/examples/v2/teams/CreateTeamLink.rb +19 -0
  223. data/examples/v2/teams/CreateTeamMembership.rb +22 -0
  224. data/examples/v2/teams/DeleteTeam.rb +8 -0
  225. data/examples/v2/teams/DeleteTeamLink.rb +11 -0
  226. data/examples/v2/teams/DeleteTeamMembership.rb +8 -0
  227. data/examples/v2/teams/GetTeam.rb +8 -0
  228. data/examples/v2/teams/GetTeamLink.rb +11 -0
  229. data/examples/v2/teams/GetTeamLinks.rb +8 -0
  230. data/examples/v2/teams/GetTeamMemberships.rb +8 -0
  231. data/examples/v2/teams/GetTeamPermissionSettings.rb +8 -0
  232. data/examples/v2/teams/ListTeams.rb +5 -0
  233. data/examples/v2/teams/UpdateTeam.rb +20 -0
  234. data/examples/v2/teams/UpdateTeamLink.rb +21 -0
  235. data/examples/v2/teams/UpdateTeamMembership.rb +14 -0
  236. data/examples/v2/teams/UpdateTeamPermissionSetting.rb +17 -0
  237. data/examples/v2/users/CreateUser.rb +1 -1
  238. data/lib/datadog_api_client/api_client.rb +2 -2
  239. data/lib/datadog_api_client/configuration.rb +10 -0
  240. data/lib/datadog_api_client/inflector.rb +126 -0
  241. data/lib/datadog_api_client/v1/api/dashboards_api.rb +482 -0
  242. data/lib/datadog_api_client/v1/api/downtimes_api.rb +2 -0
  243. data/lib/datadog_api_client/v1/api/monitors_api.rb +3 -3
  244. data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -2
  245. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +9 -6
  246. data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +8 -0
  247. data/lib/datadog_api_client/v1/models/dashboard.rb +25 -1
  248. data/lib/datadog_api_client/v1/models/dashboard_global_time.rb +91 -0
  249. data/lib/datadog_api_client/v1/models/dashboard_global_time_live_span.rb +33 -0
  250. data/lib/datadog_api_client/v1/models/dashboard_invite_type.rb +26 -0
  251. data/lib/datadog_api_client/v1/models/dashboard_share_type.rb +27 -0
  252. data/lib/datadog_api_client/v1/models/dashboard_type.rb +27 -0
  253. data/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +91 -0
  254. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
  255. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
  256. data/lib/datadog_api_client/v1/models/downtime.rb +1 -0
  257. data/lib/datadog_api_client/v1/models/downtime_child.rb +1 -0
  258. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
  259. data/lib/datadog_api_client/v1/models/host.rb +8 -0
  260. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +19 -1
  261. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
  262. data/lib/datadog_api_client/v1/models/logs_list_response.rb +8 -0
  263. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
  264. data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +2 -2
  265. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
  266. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +19 -1
  267. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  268. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +46 -6
  269. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
  270. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
  271. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
  272. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
  273. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
  274. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
  275. data/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +131 -0
  276. data/lib/datadog_api_client/v1/models/shared_dashboard.rb +228 -0
  277. data/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +109 -0
  278. data/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +112 -0
  279. data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data.rb +63 -0
  280. data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +123 -0
  281. data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +149 -0
  282. data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +91 -0
  283. data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +91 -0
  284. data/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +147 -0
  285. data/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +91 -0
  286. data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +3 -0
  287. data/lib/datadog_api_client/v1/models/slo_creator.rb +8 -0
  288. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +8 -0
  289. data/lib/datadog_api_client/v1/models/slo_history_response.rb +8 -0
  290. data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +9 -0
  291. data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
  292. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
  293. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
  294. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  295. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +8 -0
  296. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +7 -7
  297. data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +11 -0
  298. data/lib/datadog_api_client/v1/models/usage_cws_hour.rb +9 -0
  299. data/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +9 -0
  300. data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -0
  301. data/lib/datadog_api_client/v1/models/usage_host_hour.rb +22 -0
  302. data/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +8 -0
  303. data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +9 -0
  304. data/lib/datadog_api_client/v1/models/usage_logs_hour.rb +26 -1
  305. data/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +8 -0
  306. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +9 -0
  307. data/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +2 -0
  308. data/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +8 -0
  309. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  310. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  311. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  312. data/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +8 -0
  313. data/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +8 -0
  314. data/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +1 -0
  315. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
  316. data/lib/datadog_api_client/v2/api/incidents_api.rb +409 -0
  317. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +9 -0
  318. data/lib/datadog_api_client/v2/api/service_definition_api.rb +25 -0
  319. data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +357 -0
  320. data/lib/datadog_api_client/v2/api/teams_api.rb +1166 -0
  321. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  322. data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
  323. data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
  324. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
  325. data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +1 -1
  326. data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +1 -1
  327. data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +1 -1
  328. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +9 -0
  329. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +8 -0
  330. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +8 -0
  331. data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +12 -1
  332. data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +12 -1
  333. data/lib/datadog_api_client/v2/models/creator.rb +8 -0
  334. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +8 -0
  335. data/lib/datadog_api_client/v2/models/get_team_memberships_sort.rb +33 -0
  336. data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +1 -1
  337. data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +1 -1
  338. data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +1 -1
  339. data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
  340. data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +1 -1
  341. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_included_item.rb +1 -1
  342. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  343. data/lib/datadog_api_client/v2/models/incident_search_response.rb +14 -4
  344. data/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +91 -0
  345. data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
  346. data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
  347. data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
  348. data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +165 -0
  349. data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee_source.rb +27 -0
  350. data/lib/datadog_api_client/v2/models/incident_todo_assignee.rb +63 -0
  351. data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +164 -0
  352. data/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +123 -0
  353. data/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +102 -0
  354. data/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +126 -0
  355. data/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +123 -0
  356. data/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +102 -0
  357. data/lib/datadog_api_client/v2/models/incident_todo_response.rb +114 -0
  358. data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +133 -0
  359. data/lib/datadog_api_client/v2/models/incident_todo_response_included_item.rb +62 -0
  360. data/lib/datadog_api_client/v2/models/incident_todo_type.rb +26 -0
  361. data/lib/datadog_api_client/v2/models/list_teams_include.rb +27 -0
  362. data/lib/datadog_api_client/v2/models/list_teams_sort.rb +29 -0
  363. data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
  364. data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
  365. data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
  366. data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
  367. data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
  368. data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
  369. data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
  370. data/lib/datadog_api_client/v2/models/monitor_config_policy_policy.rb +1 -1
  371. data/lib/datadog_api_client/v2/models/monitor_config_policy_policy_create_request.rb +1 -1
  372. data/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +123 -0
  373. data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +93 -0
  374. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +91 -0
  375. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +123 -0
  376. data/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +102 -0
  377. data/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +123 -0
  378. data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
  379. data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
  380. data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
  381. data/lib/datadog_api_client/v2/models/scalar_column.rb +1 -1
  382. data/lib/datadog_api_client/v2/models/scalar_query.rb +1 -1
  383. data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +1 -1
  384. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +1 -1
  385. data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +1 -1
  386. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +8 -0
  387. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_included_item.rb +1 -1
  388. data/lib/datadog_api_client/v2/models/service_definition_schema.rb +3 -2
  389. data/lib/datadog_api_client/v2/models/service_definition_v2_contact.rb +3 -2
  390. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +229 -0
  391. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_contact.rb +64 -0
  392. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +133 -0
  393. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email_type.rb +26 -0
  394. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +101 -0
  395. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +154 -0
  396. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link_type.rb +30 -0
  397. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +133 -0
  398. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams_type.rb +26 -0
  399. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +112 -0
  400. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie_region.rb +27 -0
  401. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +91 -0
  402. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +133 -0
  403. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack_type.rb +26 -0
  404. data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_version.rb +26 -0
  405. data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +133 -0
  406. data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams_type.rb +26 -0
  407. data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +2 -1
  408. data/lib/datadog_api_client/v2/models/spans_metric_compute.rb +123 -0
  409. data/lib/datadog_api_client/v2/models/spans_metric_compute_aggregation_type.rb +27 -0
  410. data/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +124 -0
  411. data/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +144 -0
  412. data/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +102 -0
  413. data/lib/datadog_api_client/v2/models/spans_metric_filter.rb +91 -0
  414. data/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +112 -0
  415. data/lib/datadog_api_client/v2/models/spans_metric_response.rb +91 -0
  416. data/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +113 -0
  417. data/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +112 -0
  418. data/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +111 -0
  419. data/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +91 -0
  420. data/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +101 -0
  421. data/lib/datadog_api_client/v2/models/spans_metric_type.rb +26 -0
  422. data/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +113 -0
  423. data/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +92 -0
  424. data/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +123 -0
  425. data/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +102 -0
  426. data/lib/datadog_api_client/v2/models/spans_metrics_response.rb +93 -0
  427. data/lib/datadog_api_client/v2/models/team.rb +154 -0
  428. data/lib/datadog_api_client/v2/models/team_attributes.rb +233 -0
  429. data/lib/datadog_api_client/v2/models/team_create.rb +133 -0
  430. data/lib/datadog_api_client/v2/models/team_create_attributes.rb +162 -0
  431. data/lib/datadog_api_client/v2/models/team_create_relationships.rb +91 -0
  432. data/lib/datadog_api_client/v2/models/team_create_request.rb +102 -0
  433. data/lib/datadog_api_client/v2/models/team_data.rb +144 -0
  434. data/lib/datadog_api_client/v2/models/team_included.rb +64 -0
  435. data/lib/datadog_api_client/v2/models/team_link.rb +144 -0
  436. data/lib/datadog_api_client/v2/models/team_link_attributes.rb +158 -0
  437. data/lib/datadog_api_client/v2/models/team_link_create.rb +123 -0
  438. data/lib/datadog_api_client/v2/models/team_link_create_request.rb +102 -0
  439. data/lib/datadog_api_client/v2/models/team_link_response.rb +91 -0
  440. data/lib/datadog_api_client/v2/models/team_link_type.rb +26 -0
  441. data/lib/datadog_api_client/v2/models/team_links_response.rb +93 -0
  442. data/lib/datadog_api_client/v2/models/team_permission_setting.rb +133 -0
  443. data/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +133 -0
  444. data/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +91 -0
  445. data/lib/datadog_api_client/v2/models/team_permission_setting_serializer_action.rb +27 -0
  446. data/lib/datadog_api_client/v2/models/team_permission_setting_type.rb +26 -0
  447. data/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +112 -0
  448. data/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +91 -0
  449. data/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +102 -0
  450. data/lib/datadog_api_client/v2/models/team_permission_setting_value.rb +30 -0
  451. data/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +93 -0
  452. data/lib/datadog_api_client/v2/models/team_relationships.rb +101 -0
  453. data/lib/datadog_api_client/v2/models/team_response.rb +91 -0
  454. data/lib/datadog_api_client/v2/models/team_type.rb +26 -0
  455. data/lib/datadog_api_client/v2/models/team_update.rb +133 -0
  456. data/lib/datadog_api_client/v2/models/team_update_attributes.rb +187 -0
  457. data/lib/datadog_api_client/v2/models/team_update_relationships.rb +91 -0
  458. data/lib/datadog_api_client/v2/models/team_update_request.rb +102 -0
  459. data/lib/datadog_api_client/v2/models/teams_response.rb +105 -0
  460. data/lib/datadog_api_client/v2/models/timeseries_query.rb +1 -1
  461. data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
  462. data/lib/datadog_api_client/v2/models/user_team.rb +143 -0
  463. data/lib/datadog_api_client/v2/models/user_team_attributes.rb +99 -0
  464. data/lib/datadog_api_client/v2/models/user_team_create.rb +122 -0
  465. data/lib/datadog_api_client/v2/models/user_team_permission.rb +133 -0
  466. data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +91 -0
  467. data/lib/datadog_api_client/v2/models/user_team_permission_type.rb +26 -0
  468. data/lib/datadog_api_client/v2/models/user_team_relationships.rb +91 -0
  469. data/lib/datadog_api_client/v2/models/user_team_request.rb +102 -0
  470. data/lib/datadog_api_client/v2/models/user_team_response.rb +91 -0
  471. data/lib/datadog_api_client/v2/models/user_team_role.rb +26 -0
  472. data/lib/datadog_api_client/v2/models/user_team_type.rb +26 -0
  473. data/lib/datadog_api_client/v2/models/user_team_update.rb +112 -0
  474. data/lib/datadog_api_client/v2/models/user_team_update_request.rb +102 -0
  475. data/lib/datadog_api_client/v2/models/user_team_user_type.rb +26 -0
  476. data/lib/datadog_api_client/v2/models/user_teams_response.rb +93 -0
  477. data/lib/datadog_api_client/version.rb +1 -1
  478. metadata +167 -2
@@ -255,7 +255,7 @@ module DatadogAPIClient::V2
255
255
  # Get hourly usage by product family.
256
256
  #
257
257
  # @param filter_timestamp_start [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
258
- # @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`, `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.
258
+ # @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`, `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`. The following product family has been **deprecated**: `audit_logs`.
259
259
  # @param opts [Hash] the optional parameters
260
260
  # @option opts [Time] :filter_timestamp_end Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
261
261
  # @option opts [Boolean] :filter_include_descendants Include child org usage in the response. Defaults to false.
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -46,7 +46,7 @@ module DatadogAPIClient::V2
46
46
  begin
47
47
  next if klass == :AnyType # "nullable: true"
48
48
  typed_data = find_and_cast_into_type(klass, data)
49
- next if typed_data._unparsed
49
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
50
50
  return typed_data if typed_data
51
51
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
52
52
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -46,7 +46,7 @@ module DatadogAPIClient::V2
46
46
  begin
47
47
  next if klass == :AnyType # "nullable: true"
48
48
  typed_data = find_and_cast_into_type(klass, data)
49
- next if typed_data._unparsed
49
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
50
50
  return typed_data if typed_data
51
51
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
52
52
  end
@@ -49,6 +49,15 @@ module DatadogAPIClient::V2
49
49
  }
50
50
  end
51
51
 
52
+ # List of attributes with nullable: true
53
+ # @!visibility private
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ :'user_activation_status',
57
+ :'user_group_by_fields',
58
+ ])
59
+ end
60
+
52
61
  # Initializes the object
53
62
  # @param attributes [Hash] Model attributes in the form of hash
54
63
  # @!visibility private
@@ -49,6 +49,14 @@ module DatadogAPIClient::V2
49
49
  }
50
50
  end
51
51
 
52
+ # List of attributes with nullable: true
53
+ # @!visibility private
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ :'name',
57
+ ])
58
+ end
59
+
52
60
  # Initializes the object
53
61
  # @param attributes [Hash] Model attributes in the form of hash
54
62
  # @!visibility private
@@ -49,6 +49,14 @@ module DatadogAPIClient::V2
49
49
  }
50
50
  end
51
51
 
52
+ # List of attributes with nullable: true
53
+ # @!visibility private
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ :'name',
57
+ ])
58
+ end
59
+
52
60
  # Initializes the object
53
61
  # @param attributes [Hash] Model attributes in the form of hash
54
62
  # @!visibility private
@@ -29,7 +29,7 @@ module DatadogAPIClient::V2
29
29
  attr_accessor :id
30
30
 
31
31
  # The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
32
- attr_accessor :resource_type
32
+ attr_reader :resource_type
33
33
 
34
34
  # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
35
35
  attr_accessor :tags
@@ -89,9 +89,20 @@ module DatadogAPIClient::V2
89
89
  # @return true if the model is valid
90
90
  # @!visibility private
91
91
  def valid?
92
+ return false if @resource_type.nil?
92
93
  true
93
94
  end
94
95
 
96
+ # Custom attribute writer method with validation
97
+ # @param resource_type [Object] Object to be assigned
98
+ # @!visibility private
99
+ def resource_type=(resource_type)
100
+ if resource_type.nil?
101
+ fail ArgumentError, 'invalid value for "resource_type", resource_type cannot be nil.'
102
+ end
103
+ @resource_type = resource_type
104
+ end
105
+
95
106
  # Checks equality by comparing each attribute.
96
107
  # @param o [Object] Object to be compared
97
108
  # @!visibility private
@@ -26,7 +26,7 @@ module DatadogAPIClient::V2
26
26
  attr_accessor :_unparsed
27
27
 
28
28
  # The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
29
- attr_accessor :resource_type
29
+ attr_reader :resource_type
30
30
 
31
31
  # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
32
32
  attr_accessor :tags
@@ -80,9 +80,20 @@ module DatadogAPIClient::V2
80
80
  # @return true if the model is valid
81
81
  # @!visibility private
82
82
  def valid?
83
+ return false if @resource_type.nil?
83
84
  true
84
85
  end
85
86
 
87
+ # Custom attribute writer method with validation
88
+ # @param resource_type [Object] Object to be assigned
89
+ # @!visibility private
90
+ def resource_type=(resource_type)
91
+ if resource_type.nil?
92
+ fail ArgumentError, 'invalid value for "resource_type", resource_type cannot be nil.'
93
+ end
94
+ @resource_type = resource_type
95
+ end
96
+
86
97
  # Checks equality by comparing each attribute.
87
98
  # @param o [Object] Object to be compared
88
99
  # @!visibility private
@@ -54,6 +54,14 @@ module DatadogAPIClient::V2
54
54
  }
55
55
  end
56
56
 
57
+ # List of attributes with nullable: true
58
+ # @!visibility private
59
+ def self.openapi_nullable
60
+ Set.new([
61
+ :'name',
62
+ ])
63
+ end
64
+
57
65
  # Initializes the object
58
66
  # @param attributes [Hash] Model attributes in the form of hash
59
67
  # @!visibility private
@@ -99,6 +99,14 @@ module DatadogAPIClient::V2
99
99
  }
100
100
  end
101
101
 
102
+ # List of attributes with nullable: true
103
+ # @!visibility private
104
+ def self.openapi_nullable
105
+ Set.new([
106
+ :'icon',
107
+ ])
108
+ end
109
+
102
110
  # Initializes the object
103
111
  # @param attributes [Hash] Model attributes in the form of hash
104
112
  # @!visibility private
@@ -0,0 +1,33 @@
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
+ # Specifies the order of returned team memberships
21
+ class GetTeamMembershipsSort
22
+ include BaseEnumModel
23
+
24
+ MANAGER_NAME = "manager_name".freeze
25
+ _MANAGER_NAME = "-manager_name".freeze
26
+ NAME = "name".freeze
27
+ _NAME = "-name".freeze
28
+ HANDLE = "handle".freeze
29
+ _HANDLE = "-handle".freeze
30
+ EMAIL = "email".freeze
31
+ _EMAIL = "-email".freeze
32
+ end
33
+ end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
45
45
  begin
46
46
  next if klass == :AnyType # "nullable: true"
47
47
  typed_data = find_and_cast_into_type(klass, data)
48
- next if typed_data._unparsed
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
49
  return typed_data if typed_data
50
50
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
51
  end
@@ -31,12 +31,16 @@ module DatadogAPIClient::V2
31
31
  # Included related resources that the user requested.
32
32
  attr_accessor :included
33
33
 
34
+ # The metadata object containing pagination metadata.
35
+ attr_accessor :meta
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  # @!visibility private
36
39
  def self.attribute_map
37
40
  {
38
41
  :'data' => :'data',
39
- :'included' => :'included'
42
+ :'included' => :'included',
43
+ :'meta' => :'meta'
40
44
  }
41
45
  end
42
46
 
@@ -45,7 +49,8 @@ module DatadogAPIClient::V2
45
49
  def self.openapi_types
46
50
  {
47
51
  :'data' => :'IncidentSearchResponseData',
48
- :'included' => :'Array<IncidentResponseIncludedItem>'
52
+ :'included' => :'Array<IncidentResponseIncludedItem>',
53
+ :'meta' => :'IncidentSearchResponseMeta'
49
54
  }
50
55
  end
51
56
 
@@ -74,6 +79,10 @@ module DatadogAPIClient::V2
74
79
  self.included = value
75
80
  end
76
81
  end
82
+
83
+ if attributes.key?(:'meta')
84
+ self.meta = attributes[:'meta']
85
+ end
77
86
  end
78
87
 
79
88
  # Check to see if the all the properties in the model are valid
@@ -101,14 +110,15 @@ module DatadogAPIClient::V2
101
110
  return true if self.equal?(o)
102
111
  self.class == o.class &&
103
112
  data == o.data &&
104
- included == o.included
113
+ included == o.included &&
114
+ meta == o.meta
105
115
  end
106
116
 
107
117
  # Calculates hash code according to all attributes.
108
118
  # @return [Integer] Hash code
109
119
  # @!visibility private
110
120
  def hash
111
- [data, included].hash
121
+ [data, included, meta].hash
112
122
  end
113
123
  end
114
124
  end
@@ -0,0 +1,91 @@
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
+ # The metadata object containing pagination metadata.
21
+ class IncidentSearchResponseMeta
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # Pagination properties.
29
+ attr_accessor :pagination
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ # @!visibility private
33
+ def self.attribute_map
34
+ {
35
+ :'pagination' => :'pagination'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'pagination' => :'IncidentResponseMetaPagination'
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param attributes [Hash] Model attributes in the form of hash
49
+ # @!visibility private
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseMeta` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'pagination')
64
+ self.pagination = attributes[:'pagination']
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
+ true
73
+ end
74
+
75
+ # Checks equality by comparing each attribute.
76
+ # @param o [Object] Object to be compared
77
+ # @!visibility private
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ pagination == o.pagination
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Integer] Hash code
86
+ # @!visibility private
87
+ def hash
88
+ [pagination].hash
89
+ end
90
+ end
91
+ end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  begin
45
45
  next if klass == :AnyType # "nullable: true"
46
46
  typed_data = find_and_cast_into_type(klass, data)
47
- next if typed_data._unparsed
47
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
48
48
  return typed_data if typed_data
49
49
  rescue # rescue all errors so we keep iterating even if the current item lookup raises
50
50
  end
@@ -0,0 +1,165 @@
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
+ # Anonymous assignee entity.
21
+ class IncidentTodoAnonymousAssignee
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # URL for assignee's icon.
29
+ attr_reader :icon
30
+
31
+ # Anonymous assignee's ID.
32
+ attr_reader :id
33
+
34
+ # Assignee's name.
35
+ attr_reader :name
36
+
37
+ # The source of the anonymous assignee.
38
+ attr_reader :source
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ # @!visibility private
42
+ def self.attribute_map
43
+ {
44
+ :'icon' => :'icon',
45
+ :'id' => :'id',
46
+ :'name' => :'name',
47
+ :'source' => :'source'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ # @!visibility private
53
+ def self.openapi_types
54
+ {
55
+ :'icon' => :'String',
56
+ :'id' => :'String',
57
+ :'name' => :'String',
58
+ :'source' => :'IncidentTodoAnonymousAssigneeSource'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param attributes [Hash] Model attributes in the form of hash
64
+ # @!visibility private
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoAnonymousAssignee` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!self.class.attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoAnonymousAssignee`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'icon')
79
+ self.icon = attributes[:'icon']
80
+ end
81
+
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes.key?(:'source')
91
+ self.source = attributes[:'source']
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 @icon.nil?
100
+ return false if @id.nil?
101
+ return false if @name.nil?
102
+ return false if @source.nil?
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param icon [Object] Object to be assigned
108
+ # @!visibility private
109
+ def icon=(icon)
110
+ if icon.nil?
111
+ fail ArgumentError, 'invalid value for "icon", icon cannot be nil.'
112
+ end
113
+ @icon = icon
114
+ end
115
+
116
+ # Custom attribute writer method with validation
117
+ # @param id [Object] Object to be assigned
118
+ # @!visibility private
119
+ def id=(id)
120
+ if id.nil?
121
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
122
+ end
123
+ @id = id
124
+ end
125
+
126
+ # Custom attribute writer method with validation
127
+ # @param name [Object] Object to be assigned
128
+ # @!visibility private
129
+ def name=(name)
130
+ if name.nil?
131
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
132
+ end
133
+ @name = name
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param source [Object] Object to be assigned
138
+ # @!visibility private
139
+ def source=(source)
140
+ if source.nil?
141
+ fail ArgumentError, 'invalid value for "source", source cannot be nil.'
142
+ end
143
+ @source = source
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param o [Object] Object to be compared
148
+ # @!visibility private
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ icon == o.icon &&
153
+ id == o.id &&
154
+ name == o.name &&
155
+ source == o.source
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Integer] Hash code
160
+ # @!visibility private
161
+ def hash
162
+ [icon, id, name, source].hash
163
+ end
164
+ end
165
+ end