datadog_api_client 1.11.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +2 -1
  4. data/.generator/schemas/v1/openapi.yaml +293 -116
  5. data/.generator/schemas/v2/openapi.yaml +1156 -41
  6. data/.generator/src/generator/cli.py +57 -40
  7. data/.generator/src/generator/openapi.py +12 -6
  8. data/.generator/src/generator/templates/api.j2 +14 -13
  9. data/.generator/src/generator/templates/api_client.j2 +63 -11
  10. data/.generator/src/generator/templates/configuration.j2 +12 -8
  11. data/.generator/src/generator/templates/example.j2 +6 -1
  12. data/.generator/src/generator/templates/inflector.j2 +28 -0
  13. data/.generator/src/generator/templates/model_base.j2 +2 -2
  14. data/.generator/src/generator/templates/model_oneof.j2 +1 -1
  15. data/.generator/src/generator/templates/package.j2 +7 -12
  16. data/.github/workflows/approved_status.yml +0 -2
  17. data/.github/workflows/codeql-analysis.yml +49 -0
  18. data/.github/workflows/docs.yml +1 -1
  19. data/.github/workflows/prepare_release.yml +1 -1
  20. data/.github/workflows/publish.yml +1 -1
  21. data/.github/workflows/release.yml +1 -1
  22. data/.github/workflows/test.yml +4 -6
  23. data/.github/workflows/test_integration.yml +1 -1
  24. data/.pre-commit-config.yaml +3 -12
  25. data/CHANGELOG.md +44 -0
  26. data/Gemfile +1 -0
  27. data/Makefile +1 -2
  28. data/README.md +13 -13
  29. data/datadog_api_client.gemspec +2 -0
  30. data/examples/v1/downtimes/CreateDowntime_1393233946.rb +3 -0
  31. data/examples/v1/downtimes/CreateDowntime_2908359488.rb +3 -0
  32. data/examples/v1/downtimes/CreateDowntime_3059354445.rb +3 -0
  33. data/examples/v1/events/ListEvents.rb +1 -1
  34. data/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb +2 -2
  35. data/examples/v1/service-level-objectives/GetSLOHistory.rb +1 -1
  36. data/examples/v1/service-level-objectives/SearchSLO.rb +1 -1
  37. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  38. data/examples/v1/synthetics/GetAPITestLatestResults.rb +1 -1
  39. data/examples/v1/synthetics/GetAPITestResult.rb +1 -1
  40. data/examples/v1/synthetics/GetBrowserTestLatestResults.rb +1 -1
  41. data/examples/v1/synthetics/GetBrowserTestResult.rb +1 -1
  42. data/examples/v1/usage-metering/GetDailyCustomReports.rb +1 -1
  43. data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +0 -3
  44. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +1 -1
  45. data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +0 -3
  46. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +1 -1
  47. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +1 -1
  48. data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
  49. data/examples/v1/usage-metering/GetUsageCIApp.rb +2 -5
  50. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +8 -0
  51. data/examples/v1/usage-metering/GetUsageCWS.rb +2 -5
  52. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +8 -0
  53. data/examples/v1/usage-metering/GetUsageDBM.rb +2 -5
  54. data/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +8 -0
  55. data/examples/v1/usage-metering/GetUsageLambda.rb +2 -5
  56. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +8 -0
  57. data/examples/v1/usage-metering/GetUsageLogs.rb +2 -5
  58. data/examples/v1/usage-metering/GetUsageLogsByIndex.rb +2 -5
  59. data/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +8 -0
  60. data/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +8 -0
  61. data/examples/v1/usage-metering/GetUsageNetworkFlows.rb +2 -5
  62. data/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +8 -0
  63. data/examples/v1/usage-metering/GetUsageNetworkHosts.rb +2 -5
  64. data/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +8 -0
  65. data/examples/v1/usage-metering/GetUsageOnlineArchive.rb +2 -5
  66. data/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +8 -0
  67. data/examples/v1/usage-metering/GetUsageRumSessions.rb +2 -5
  68. data/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +8 -0
  69. data/examples/v1/usage-metering/GetUsageRumUnits.rb +2 -5
  70. data/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +8 -0
  71. data/examples/v1/usage-metering/GetUsageSDS.rb +2 -5
  72. data/examples/v1/usage-metering/GetUsageSDS_271128478.rb +8 -0
  73. data/examples/v1/usage-metering/GetUsageSynthetics.rb +1 -1
  74. data/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +2 -5
  75. data/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +8 -0
  76. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +2 -5
  77. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +8 -0
  78. data/examples/v2/audit/ListAuditLogs_1275402458.rb +8 -0
  79. data/examples/v2/audit/SearchAuditLogs_3215529662.rb +22 -0
  80. data/examples/v2/events/ListEvents.rb +8 -0
  81. data/examples/v2/events/ListEvents_1527584014.rb +13 -0
  82. data/examples/v2/events/ListEvents_2663715109.rb +14 -0
  83. data/examples/v2/events/SearchEvents.rb +23 -0
  84. data/examples/v2/events/SearchEvents_3856995058.rb +25 -0
  85. data/examples/v2/incident-services/CreateIncidentService.rb +1 -1
  86. data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
  87. data/examples/v2/incident-services/GetIncidentService.rb +1 -1
  88. data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
  89. data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
  90. data/examples/v2/incident-teams/CreateIncidentTeam.rb +1 -1
  91. data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
  92. data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
  93. data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
  94. data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
  95. data/examples/v2/incidents/CreateIncident.rb +1 -1
  96. data/examples/v2/incidents/DeleteIncident.rb +1 -1
  97. data/examples/v2/incidents/GetIncident.rb +1 -1
  98. data/examples/v2/incidents/ListIncidents.rb +1 -1
  99. data/examples/v2/incidents/ListIncidents_2665616954.rb +11 -0
  100. data/examples/v2/incidents/UpdateIncident.rb +1 -1
  101. data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
  102. data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
  103. data/examples/v2/logs/ListLogsGet_738202670.rb +8 -0
  104. data/examples/v2/logs/ListLogs_3138392594.rb +25 -0
  105. data/examples/v2/metrics/SubmitMetrics.rb +6 -0
  106. data/examples/v2/processes/ListProcesses_797840471.rb +8 -0
  107. data/examples/v2/rum/ListRUMEvents_2680821282.rb +8 -0
  108. data/examples/v2/rum/SearchRUMEvents_574690310.rb +21 -0
  109. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +15 -0
  110. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +15 -0
  111. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +14 -0
  112. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb +8 -0
  113. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +20 -0
  114. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
  115. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +5 -2
  116. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +11 -0
  117. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +11 -0
  118. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +2 -5
  119. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +8 -0
  120. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +2 -5
  121. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +8 -0
  122. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +2 -5
  123. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +8 -0
  124. data/lib/datadog_api_client/{v2/api_client.rb → api_client.rb} +63 -11
  125. data/lib/datadog_api_client/api_key_configuration.rb +1 -18
  126. data/lib/datadog_api_client/{v1/configuration.rb → configuration.rb} +84 -31
  127. data/lib/datadog_api_client/inflector.rb +1293 -0
  128. data/lib/datadog_api_client/models.rb +66 -0
  129. data/lib/datadog_api_client/v1/api/authentication_api.rb +3 -11
  130. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +19 -91
  131. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +15 -71
  132. data/lib/datadog_api_client/v1/api/azure_integration_api.rb +11 -51
  133. data/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +11 -51
  134. data/lib/datadog_api_client/v1/api/dashboards_api.rb +15 -71
  135. data/lib/datadog_api_client/v1/api/downtimes_api.rb +15 -71
  136. data/lib/datadog_api_client/v1/api/events_api.rb +9 -33
  137. data/lib/datadog_api_client/v1/api/gcp_integration_api.rb +9 -41
  138. data/lib/datadog_api_client/v1/api/hosts_api.rb +9 -41
  139. data/lib/datadog_api_client/v1/api/ip_ranges_api.rb +3 -11
  140. data/lib/datadog_api_client/v1/api/key_management_api.rb +21 -101
  141. data/lib/datadog_api_client/v1/api/logs_api.rb +5 -21
  142. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +13 -61
  143. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +15 -71
  144. data/lib/datadog_api_client/v1/api/metrics_api.rb +15 -71
  145. data/lib/datadog_api_client/v1/api/monitors_api.rb +21 -101
  146. data/lib/datadog_api_client/v1/api/notebooks_api.rb +11 -51
  147. data/lib/datadog_api_client/v1/api/organizations_api.rb +13 -61
  148. data/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +9 -41
  149. data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +8 -32
  150. data/lib/datadog_api_client/v1/api/service_checks_api.rb +3 -11
  151. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +11 -51
  152. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -99
  153. data/lib/datadog_api_client/v1/api/slack_integration_api.rb +11 -51
  154. data/lib/datadog_api_client/v1/api/snapshots_api.rb +3 -11
  155. data/lib/datadog_api_client/v1/api/synthetics_api.rb +55 -271
  156. data/lib/datadog_api_client/v1/api/tags_api.rb +11 -51
  157. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +171 -418
  158. data/lib/datadog_api_client/v1/api/users_api.rb +11 -51
  159. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +17 -81
  160. data/lib/datadog_api_client/v1/model_base.rb +2 -2
  161. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
  162. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
  163. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
  164. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +5 -1
  165. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -0
  166. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
  167. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
  168. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +6 -2
  169. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +14 -0
  170. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  171. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
  172. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
  173. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
  174. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
  175. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
  176. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
  177. data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
  178. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
  179. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
  180. data/lib/datadog_api_client/v1/models/tree_map_color_by.rb +1 -1
  181. data/lib/datadog_api_client/v1/models/tree_map_group_by.rb +1 -1
  182. data/lib/datadog_api_client/v1/models/tree_map_size_by.rb +1 -1
  183. data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +28 -6
  184. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +6 -2
  185. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  186. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  187. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +22 -2
  188. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
  189. data/lib/datadog_api_client/v2/api/audit_api.rb +11 -25
  190. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +11 -51
  191. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +13 -61
  192. data/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +9 -41
  193. data/lib/datadog_api_client/v2/api/events_api.rb +228 -0
  194. data/lib/datadog_api_client/v2/api/incident_services_api.rb +36 -46
  195. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +36 -46
  196. data/lib/datadog_api_client/v2/api/incidents_api.rb +39 -48
  197. data/lib/datadog_api_client/v2/api/key_management_api.rb +29 -141
  198. data/lib/datadog_api_client/v2/api/logs_api.rb +15 -45
  199. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +21 -101
  200. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +11 -51
  201. data/lib/datadog_api_client/v2/api/metrics_api.rb +26 -112
  202. data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +11 -51
  203. data/lib/datadog_api_client/v2/api/organizations_api.rb +3 -11
  204. data/lib/datadog_api_client/v2/api/processes_api.rb +6 -13
  205. data/lib/datadog_api_client/v2/api/roles_api.rb +27 -131
  206. data/lib/datadog_api_client/v2/api/rum_api.rb +13 -35
  207. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +247 -125
  208. data/lib/datadog_api_client/v2/api/service_accounts_api.rb +11 -51
  209. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +132 -68
  210. data/lib/datadog_api_client/v2/api/users_api.rb +21 -101
  211. data/lib/datadog_api_client/v2/model_base.rb +2 -2
  212. data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
  213. data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
  214. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
  215. data/lib/datadog_api_client/v2/models/event.rb +141 -0
  216. data/lib/datadog_api_client/v2/models/event_attributes.rb +305 -0
  217. data/lib/datadog_api_client/v2/models/event_priority.rb +27 -0
  218. data/lib/datadog_api_client/v2/models/event_response.rb +133 -0
  219. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +133 -0
  220. data/lib/datadog_api_client/v2/models/event_status_type.rb +35 -0
  221. data/lib/datadog_api_client/v2/models/event_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/events_list_request.rb +142 -0
  223. data/lib/datadog_api_client/v2/models/events_list_response.rb +133 -0
  224. data/lib/datadog_api_client/v2/models/events_list_response_links.rb +112 -0
  225. data/lib/datadog_api_client/v2/models/events_query_filter.rb +137 -0
  226. data/lib/datadog_api_client/v2/models/events_query_options.rb +124 -0
  227. data/lib/datadog_api_client/v2/models/events_request_page.rb +134 -0
  228. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +144 -0
  229. data/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +112 -0
  230. data/lib/datadog_api_client/v2/models/events_sort.rb +27 -0
  231. data/lib/datadog_api_client/v2/models/events_warning.rb +131 -0
  232. data/lib/datadog_api_client/v2/models/hourly_usage.rb +133 -0
  233. data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +163 -0
  234. data/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +122 -0
  235. data/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +111 -0
  236. data/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +112 -0
  237. data/lib/datadog_api_client/v2/models/hourly_usage_response.rb +123 -0
  238. data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
  239. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  240. data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
  241. data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
  243. data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
  244. data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
  245. data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
  246. data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
  247. data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
  248. data/lib/datadog_api_client/v2/models/metric_intake_type.rb +1 -2
  249. data/lib/datadog_api_client/v2/models/metric_resource.rb +2 -2
  250. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  251. data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
  252. data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
  253. data/lib/datadog_api_client/v2/models/monitor_type.rb +215 -0
  254. data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
  255. data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
  256. data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
  257. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +13 -1
  258. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +13 -1
  259. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +29 -0
  260. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +132 -0
  261. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +122 -0
  262. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +122 -0
  263. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +134 -0
  264. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +122 -0
  265. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +122 -0
  266. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state.rb +28 -0
  267. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +152 -0
  268. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +122 -0
  269. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +122 -0
  270. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +248 -0
  271. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +111 -0
  272. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +122 -0
  273. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +152 -0
  274. data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
  275. data/lib/datadog_api_client/version.rb +1 -1
  276. data/lib/datadog_api_client.rb +13 -5
  277. data/spec/{v1/api_client_spec.rb → api_client_spec.rb} +29 -29
  278. data/spec/{v1/configuration_spec.rb → configuration_spec.rb} +3 -3
  279. data/spec/spec_helper.rb +1 -3
  280. metadata +109 -22
  281. data/.dockerignore +0 -1
  282. data/.generator/src/generator/templates/api_error.j2 +0 -49
  283. data/examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb +0 -9
  284. data/examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb +0 -9
  285. data/lib/datadog_api_client/v1/api_client.rb +0 -453
  286. data/lib/datadog_api_client/v1/api_error.rb +0 -60
  287. data/lib/datadog_api_client/v1.rb +0 -813
  288. data/lib/datadog_api_client/v2/api_error.rb +0 -60
  289. data/lib/datadog_api_client/v2/configuration.rb +0 -420
  290. data/lib/datadog_api_client/v2.rb +0 -555
  291. data/spec/v2/api_client_spec.rb +0 -210
  292. data/spec/v2/configuration_spec.rb +0 -45
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # The attribute used to determine color in the widget.
20
+ # (deprecated) The attribute formerly used to determine color in the widget.
21
21
  class TreeMapColorBy
22
22
  include BaseEnumModel
23
23
 
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # The attribute used to group elements in the widget.
20
+ # (deprecated) The attribute formerly used to group elements in the widget.
21
21
  class TreeMapGroupBy
22
22
  include BaseEnumModel
23
23
 
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # The attribute used to determine size in the widget.
20
+ # (deprecated) The attribute formerly used to determine size in the widget.
21
21
  class TreeMapSizeBy
22
22
  include BaseEnumModel
23
23
 
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard this may not be reused in other dashboards or for other metrics.
20
+ # The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team.
21
21
  class TreeMapWidgetDefinition
22
22
  include BaseGenericModel
23
23
 
@@ -25,18 +25,24 @@ module DatadogAPIClient::V1
25
25
  # @!visibility private
26
26
  attr_accessor :_unparsed
27
27
 
28
- # The attribute used to determine color in the widget.
28
+ # (deprecated) The attribute formerly used to determine color in the widget.
29
29
  attr_accessor :color_by
30
30
 
31
- # The attribute used to group elements in the widget.
31
+ # List of custom links.
32
+ attr_accessor :custom_links
33
+
34
+ # (deprecated) The attribute formerly used to group elements in the widget.
32
35
  attr_accessor :group_by
33
36
 
34
- # List of top list widget requests.
37
+ # List of treemap widget requests.
35
38
  attr_accessor :requests
36
39
 
37
- # The attribute used to determine size in the widget.
40
+ # (deprecated) The attribute formerly used to determine size in the widget.
38
41
  attr_accessor :size_by
39
42
 
43
+ # Time setting for the widget.
44
+ attr_accessor :time
45
+
40
46
  # Title of your widget.
41
47
  attr_accessor :title
42
48
 
@@ -48,9 +54,11 @@ module DatadogAPIClient::V1
48
54
  def self.attribute_map
49
55
  {
50
56
  :'color_by' => :'color_by',
57
+ :'custom_links' => :'custom_links',
51
58
  :'group_by' => :'group_by',
52
59
  :'requests' => :'requests',
53
60
  :'size_by' => :'size_by',
61
+ :'time' => :'time',
54
62
  :'title' => :'title',
55
63
  :'type' => :'type'
56
64
  }
@@ -67,9 +75,11 @@ module DatadogAPIClient::V1
67
75
  def self.openapi_types
68
76
  {
69
77
  :'color_by' => :'TreeMapColorBy',
78
+ :'custom_links' => :'Array<WidgetCustomLink>',
70
79
  :'group_by' => :'TreeMapGroupBy',
71
80
  :'requests' => :'Array<TreeMapWidgetRequest>',
72
81
  :'size_by' => :'TreeMapSizeBy',
82
+ :'time' => :'WidgetTime',
73
83
  :'title' => :'String',
74
84
  :'type' => :'TreeMapWidgetDefinitionType'
75
85
  }
@@ -104,6 +114,12 @@ module DatadogAPIClient::V1
104
114
  self.color_by = 'user'
105
115
  end
106
116
 
117
+ if attributes.key?(:'custom_links')
118
+ if (value = attributes[:'custom_links']).is_a?(Array)
119
+ self.custom_links = value
120
+ end
121
+ end
122
+
107
123
  if attributes.key?(:'group_by')
108
124
  self.group_by = attributes[:'group_by']
109
125
  end
@@ -118,6 +134,10 @@ module DatadogAPIClient::V1
118
134
  self.size_by = attributes[:'size_by']
119
135
  end
120
136
 
137
+ if attributes.key?(:'time')
138
+ self.time = attributes[:'time']
139
+ end
140
+
121
141
  if attributes.key?(:'title')
122
142
  self.title = attributes[:'title']
123
143
  end
@@ -173,9 +193,11 @@ module DatadogAPIClient::V1
173
193
  return true if self.equal?(o)
174
194
  self.class == o.class &&
175
195
  color_by == o.color_by &&
196
+ custom_links == o.custom_links &&
176
197
  group_by == o.group_by &&
177
198
  requests == o.requests &&
178
199
  size_by == o.size_by &&
200
+ time == o.time &&
179
201
  title == o.title &&
180
202
  type == o.type
181
203
  end
@@ -191,7 +213,7 @@ module DatadogAPIClient::V1
191
213
  # @return [Integer] Hash code
192
214
  # @!visibility private
193
215
  def hash
194
- [color_by, group_by, requests, size_by, title, type].hash
216
+ [color_by, custom_links, group_by, requests, size_by, time, title, type].hash
195
217
  end
196
218
  end
197
219
  end
@@ -34,10 +34,14 @@ module DatadogAPIClient::V1
34
34
  # The organization public ID.
35
35
  attr_accessor :public_id
36
36
 
37
- # The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:<selected tag 1>-<selected tag 2>-<selected tag 3>`.
37
+ # The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
38
38
  attr_accessor :tag_config_source
39
39
 
40
- # Usage Summary by tag name.
40
+ # Tag keys and values.
41
+ #
42
+ # A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags
43
+ # configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started).
44
+ # In this scenario the API returns the total usage, not broken down by tags.
41
45
  attr_accessor :tags
42
46
 
43
47
  # Shows the the most recent hour in the current months for all organizations for which all usages were calculated.
@@ -47,5 +47,7 @@ module DatadogAPIClient::V1
47
47
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
48
48
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
49
49
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
50
+ ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
51
+ ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze
50
52
  end
51
53
  end
@@ -57,6 +57,8 @@ module DatadogAPIClient::V1
57
57
  APPSEC_PERCENTAGE = "appsec_percentage".freeze
58
58
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
59
59
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
60
+ ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
61
+ ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze
60
62
  ALL = "*".freeze
61
63
  end
62
64
  end
@@ -109,6 +109,12 @@ module DatadogAPIClient::V1
109
109
  # The estimated indexed spans usage by tag(s). Note this field is in private beta.
110
110
  attr_accessor :estimated_indexed_spans_usage
111
111
 
112
+ # The percentage of estimated ingested spans usage by tag(s). Note this field is in private beta.
113
+ attr_accessor :estimated_ingested_spans_percentage
114
+
115
+ # The estimated ingested spans usage by tag(s). Note this field is in private beta.
116
+ attr_accessor :estimated_ingested_spans_usage
117
+
112
118
  # The percentage of infrastructure host usage by tag(s).
113
119
  attr_accessor :infra_host_percentage
114
120
 
@@ -183,6 +189,8 @@ module DatadogAPIClient::V1
183
189
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
184
190
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
185
191
  :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage',
192
+ :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage',
193
+ :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage',
186
194
  :'infra_host_percentage' => :'infra_host_percentage',
187
195
  :'infra_host_usage' => :'infra_host_usage',
188
196
  :'lambda_functions_percentage' => :'lambda_functions_percentage',
@@ -214,7 +222,7 @@ module DatadogAPIClient::V1
214
222
  :'api_usage' => :'Float',
215
223
  :'apm_host_percentage' => :'Float',
216
224
  :'apm_host_usage' => :'Float',
217
- :'appsec_percentage' => :'Object',
225
+ :'appsec_percentage' => :'Float',
218
226
  :'appsec_usage' => :'Float',
219
227
  :'browser_percentage' => :'Float',
220
228
  :'browser_usage' => :'Float',
@@ -238,6 +246,8 @@ module DatadogAPIClient::V1
238
246
  :'estimated_indexed_logs_usage' => :'Float',
239
247
  :'estimated_indexed_spans_percentage' => :'Float',
240
248
  :'estimated_indexed_spans_usage' => :'Float',
249
+ :'estimated_ingested_spans_percentage' => :'Float',
250
+ :'estimated_ingested_spans_usage' => :'Float',
241
251
  :'infra_host_percentage' => :'Float',
242
252
  :'infra_host_usage' => :'Float',
243
253
  :'lambda_functions_percentage' => :'Float',
@@ -390,6 +400,14 @@ module DatadogAPIClient::V1
390
400
  self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage']
391
401
  end
392
402
 
403
+ if attributes.key?(:'estimated_ingested_spans_percentage')
404
+ self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage']
405
+ end
406
+
407
+ if attributes.key?(:'estimated_ingested_spans_usage')
408
+ self.estimated_ingested_spans_usage = attributes[:'estimated_ingested_spans_usage']
409
+ end
410
+
393
411
  if attributes.key?(:'infra_host_percentage')
394
412
  self.infra_host_percentage = attributes[:'infra_host_percentage']
395
413
  end
@@ -488,6 +506,8 @@ module DatadogAPIClient::V1
488
506
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
489
507
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
490
508
  estimated_indexed_spans_usage == o.estimated_indexed_spans_usage &&
509
+ estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage &&
510
+ estimated_ingested_spans_usage == o.estimated_ingested_spans_usage &&
491
511
  infra_host_percentage == o.infra_host_percentage &&
492
512
  infra_host_usage == o.infra_host_usage &&
493
513
  lambda_functions_percentage == o.lambda_functions_percentage &&
@@ -515,7 +535,7 @@ module DatadogAPIClient::V1
515
535
  # @return [Integer] Hash code
516
536
  # @!visibility private
517
537
  def hash
518
- [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
538
+ [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
519
539
  end
520
540
  end
521
541
  end
@@ -82,7 +82,7 @@ module DatadogAPIClient::V1
82
82
  data
83
83
  else
84
84
  self._unparsed = true
85
- DatadogAPIClient::V1::UnparsedObject.new(data)
85
+ DatadogAPIClient::UnparsedObject.new(data)
86
86
  end
87
87
  end
88
88
  end
@@ -19,7 +19,7 @@ module DatadogAPIClient::V2
19
19
  class AuditAPI
20
20
  attr_accessor :api_client
21
21
 
22
- def initialize(api_client = APIClient.default)
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
23
  @api_client = api_client
24
24
  end
25
25
 
@@ -50,15 +50,6 @@ module DatadogAPIClient::V2
50
50
  # @return [Array<(AuditLogsEventsResponse, Integer, Hash)>] AuditLogsEventsResponse data, response status code and response headers
51
51
  def list_audit_logs_with_http_info(opts = {})
52
52
 
53
- if @api_client.config.unstable_operations.has_key?(:list_audit_logs)
54
- unstable_enabled = @api_client.config.unstable_operations[:list_audit_logs]
55
- if unstable_enabled
56
- @api_client.config.logger.warn format("Using unstable operation '%s'", "list_audit_logs")
57
- else
58
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_audit_logs"))
59
- end
60
- end
61
-
62
53
  if @api_client.config.debugging
63
54
  @api_client.config.logger.debug 'Calling API: AuditAPI.list_audit_logs ...'
64
55
  end
@@ -105,7 +96,8 @@ module DatadogAPIClient::V2
105
96
  :form_params => form_params,
106
97
  :body => post_body,
107
98
  :auth_names => auth_names,
108
- :return_type => return_type
99
+ :return_type => return_type,
100
+ :api_version => "V2"
109
101
  )
110
102
 
111
103
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -123,15 +115,16 @@ module DatadogAPIClient::V2
123
115
  #
124
116
  # @yield [AuditLogsEvent] Paginated items
125
117
  def list_audit_logs_with_pagination(opts = {})
118
+ api_version = "V2"
126
119
  page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
127
- @api_client.set_attribute_from_path(opts, "page_limit", Integer, page_size)
120
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
128
121
  while true do
129
122
  response = list_audit_logs(opts)
130
123
  @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
131
124
  if @api_client.get_attribute_from_path(response, "data").length < page_size
132
125
  break
133
126
  end
134
- @api_client.set_attribute_from_path(opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
127
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
135
128
  end
136
129
  end
137
130
 
@@ -157,15 +150,6 @@ module DatadogAPIClient::V2
157
150
  # @return [Array<(AuditLogsEventsResponse, Integer, Hash)>] AuditLogsEventsResponse data, response status code and response headers
158
151
  def search_audit_logs_with_http_info(opts = {})
159
152
 
160
- if @api_client.config.unstable_operations.has_key?(:search_audit_logs)
161
- unstable_enabled = @api_client.config.unstable_operations[:search_audit_logs]
162
- if unstable_enabled
163
- @api_client.config.logger.warn format("Using unstable operation '%s'", "search_audit_logs")
164
- else
165
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "search_audit_logs"))
166
- end
167
- end
168
-
169
153
  if @api_client.config.debugging
170
154
  @api_client.config.logger.debug 'Calling API: AuditAPI.search_audit_logs ...'
171
155
  end
@@ -201,7 +185,8 @@ module DatadogAPIClient::V2
201
185
  :form_params => form_params,
202
186
  :body => post_body,
203
187
  :auth_names => auth_names,
204
- :return_type => return_type
188
+ :return_type => return_type,
189
+ :api_version => "V2"
205
190
  )
206
191
 
207
192
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -219,15 +204,16 @@ module DatadogAPIClient::V2
219
204
  #
220
205
  # @yield [AuditLogsEvent] Paginated items
221
206
  def search_audit_logs_with_pagination(opts = {})
207
+ api_version = "V2"
222
208
  page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
223
- @api_client.set_attribute_from_path(opts, "body.page.limit", AuditLogsSearchEventsRequest, page_size)
209
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.limit", AuditLogsSearchEventsRequest, page_size)
224
210
  while true do
225
211
  response = search_audit_logs(opts)
226
212
  @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
227
213
  if @api_client.get_attribute_from_path(response, "data").length < page_size
228
214
  break
229
215
  end
230
- @api_client.set_attribute_from_path(opts, "body.page.cursor", AuditLogsSearchEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
216
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", AuditLogsSearchEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
231
217
  end
232
218
  end
233
219
  end
@@ -19,7 +19,7 @@ module DatadogAPIClient::V2
19
19
  class AuthNMappingsAPI
20
20
  attr_accessor :api_client
21
21
 
22
- def initialize(api_client = APIClient.default)
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
23
  @api_client = api_client
24
24
  end
25
25
 
@@ -40,15 +40,6 @@ module DatadogAPIClient::V2
40
40
  # @return [Array<(AuthNMappingResponse, Integer, Hash)>] AuthNMappingResponse data, response status code and response headers
41
41
  def create_authn_mapping_with_http_info(body, opts = {})
42
42
 
43
- if @api_client.config.unstable_operations.has_key?(:create_authn_mapping)
44
- unstable_enabled = @api_client.config.unstable_operations[:create_authn_mapping]
45
- if unstable_enabled
46
- @api_client.config.logger.warn format("Using unstable operation '%s'", "create_authn_mapping")
47
- else
48
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_authn_mapping"))
49
- end
50
- end
51
-
52
43
  if @api_client.config.debugging
53
44
  @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.create_authn_mapping ...'
54
45
  end
@@ -88,7 +79,8 @@ module DatadogAPIClient::V2
88
79
  :form_params => form_params,
89
80
  :body => post_body,
90
81
  :auth_names => auth_names,
91
- :return_type => return_type
82
+ :return_type => return_type,
83
+ :api_version => "V2"
92
84
  )
93
85
 
94
86
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -115,15 +107,6 @@ module DatadogAPIClient::V2
115
107
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
116
108
  def delete_authn_mapping_with_http_info(authn_mapping_id, opts = {})
117
109
 
118
- if @api_client.config.unstable_operations.has_key?(:delete_authn_mapping)
119
- unstable_enabled = @api_client.config.unstable_operations[:delete_authn_mapping]
120
- if unstable_enabled
121
- @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_authn_mapping")
122
- else
123
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_authn_mapping"))
124
- end
125
- end
126
-
127
110
  if @api_client.config.debugging
128
111
  @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.delete_authn_mapping ...'
129
112
  end
@@ -161,7 +144,8 @@ module DatadogAPIClient::V2
161
144
  :form_params => form_params,
162
145
  :body => post_body,
163
146
  :auth_names => auth_names,
164
- :return_type => return_type
147
+ :return_type => return_type,
148
+ :api_version => "V2"
165
149
  )
166
150
 
167
151
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
@@ -188,15 +172,6 @@ module DatadogAPIClient::V2
188
172
  # @return [Array<(AuthNMappingResponse, Integer, Hash)>] AuthNMappingResponse data, response status code and response headers
189
173
  def get_authn_mapping_with_http_info(authn_mapping_id, opts = {})
190
174
 
191
- if @api_client.config.unstable_operations.has_key?(:get_authn_mapping)
192
- unstable_enabled = @api_client.config.unstable_operations[:get_authn_mapping]
193
- if unstable_enabled
194
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_authn_mapping")
195
- else
196
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_authn_mapping"))
197
- end
198
- end
199
-
200
175
  if @api_client.config.debugging
201
176
  @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.get_authn_mapping ...'
202
177
  end
@@ -234,7 +209,8 @@ module DatadogAPIClient::V2
234
209
  :form_params => form_params,
235
210
  :body => post_body,
236
211
  :auth_names => auth_names,
237
- :return_type => return_type
212
+ :return_type => return_type,
213
+ :api_version => "V2"
238
214
  )
239
215
 
240
216
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -264,15 +240,6 @@ module DatadogAPIClient::V2
264
240
  # @return [Array<(AuthNMappingsResponse, Integer, Hash)>] AuthNMappingsResponse data, response status code and response headers
265
241
  def list_authn_mappings_with_http_info(opts = {})
266
242
 
267
- if @api_client.config.unstable_operations.has_key?(:list_authn_mappings)
268
- unstable_enabled = @api_client.config.unstable_operations[:list_authn_mappings]
269
- if unstable_enabled
270
- @api_client.config.logger.warn format("Using unstable operation '%s'", "list_authn_mappings")
271
- else
272
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_authn_mappings"))
273
- end
274
- end
275
-
276
243
  if @api_client.config.debugging
277
244
  @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.list_authn_mappings ...'
278
245
  end
@@ -314,7 +281,8 @@ module DatadogAPIClient::V2
314
281
  :form_params => form_params,
315
282
  :body => post_body,
316
283
  :auth_names => auth_names,
317
- :return_type => return_type
284
+ :return_type => return_type,
285
+ :api_version => "V2"
318
286
  )
319
287
 
320
288
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -342,15 +310,6 @@ module DatadogAPIClient::V2
342
310
  # @return [Array<(AuthNMappingResponse, Integer, Hash)>] AuthNMappingResponse data, response status code and response headers
343
311
  def update_authn_mapping_with_http_info(authn_mapping_id, body, opts = {})
344
312
 
345
- if @api_client.config.unstable_operations.has_key?(:update_authn_mapping)
346
- unstable_enabled = @api_client.config.unstable_operations[:update_authn_mapping]
347
- if unstable_enabled
348
- @api_client.config.logger.warn format("Using unstable operation '%s'", "update_authn_mapping")
349
- else
350
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_authn_mapping"))
351
- end
352
- end
353
-
354
313
  if @api_client.config.debugging
355
314
  @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.update_authn_mapping ...'
356
315
  end
@@ -394,7 +353,8 @@ module DatadogAPIClient::V2
394
353
  :form_params => form_params,
395
354
  :body => post_body,
396
355
  :auth_names => auth_names,
397
- :return_type => return_type
356
+ :return_type => return_type,
357
+ :api_version => "V2"
398
358
  )
399
359
 
400
360
  data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
@@ -19,7 +19,7 @@ module DatadogAPIClient::V2
19
19
  class CloudWorkloadSecurityAPI
20
20
  attr_accessor :api_client
21
21
 
22
- def initialize(api_client = APIClient.default)
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
23
  @api_client = api_client
24
24
  end
25
25
 
@@ -40,15 +40,6 @@ module DatadogAPIClient::V2
40
40
  # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
41
41
  def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {})
42
42
 
43
- if @api_client.config.unstable_operations.has_key?(:create_cloud_workload_security_agent_rule)
44
- unstable_enabled = @api_client.config.unstable_operations[:create_cloud_workload_security_agent_rule]
45
- if unstable_enabled
46
- @api_client.config.logger.warn format("Using unstable operation '%s'", "create_cloud_workload_security_agent_rule")
47
- else
48
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_cloud_workload_security_agent_rule"))
49
- end
50
- end
51
-
52
43
  if @api_client.config.debugging
53
44
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.create_cloud_workload_security_agent_rule ...'
54
45
  end
@@ -88,7 +79,8 @@ module DatadogAPIClient::V2
88
79
  :form_params => form_params,
89
80
  :body => post_body,
90
81
  :auth_names => auth_names,
91
- :return_type => return_type
82
+ :return_type => return_type,
83
+ :api_version => "V2"
92
84
  )
93
85
 
94
86
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -115,15 +107,6 @@ module DatadogAPIClient::V2
115
107
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
116
108
  def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {})
117
109
 
118
- if @api_client.config.unstable_operations.has_key?(:delete_cloud_workload_security_agent_rule)
119
- unstable_enabled = @api_client.config.unstable_operations[:delete_cloud_workload_security_agent_rule]
120
- if unstable_enabled
121
- @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_cloud_workload_security_agent_rule")
122
- else
123
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_cloud_workload_security_agent_rule"))
124
- end
125
- end
126
-
127
110
  if @api_client.config.debugging
128
111
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.delete_cloud_workload_security_agent_rule ...'
129
112
  end
@@ -161,7 +144,8 @@ module DatadogAPIClient::V2
161
144
  :form_params => form_params,
162
145
  :body => post_body,
163
146
  :auth_names => auth_names,
164
- :return_type => return_type
147
+ :return_type => return_type,
148
+ :api_version => "V2"
165
149
  )
166
150
 
167
151
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
@@ -189,15 +173,6 @@ module DatadogAPIClient::V2
189
173
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
190
174
  def download_cloud_workload_policy_file_with_http_info(opts = {})
191
175
 
192
- if @api_client.config.unstable_operations.has_key?(:download_cloud_workload_policy_file)
193
- unstable_enabled = @api_client.config.unstable_operations[:download_cloud_workload_policy_file]
194
- if unstable_enabled
195
- @api_client.config.logger.warn format("Using unstable operation '%s'", "download_cloud_workload_policy_file")
196
- else
197
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "download_cloud_workload_policy_file"))
198
- end
199
- end
200
-
201
176
  if @api_client.config.debugging
202
177
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.download_cloud_workload_policy_file ...'
203
178
  end
@@ -231,7 +206,8 @@ module DatadogAPIClient::V2
231
206
  :form_params => form_params,
232
207
  :body => post_body,
233
208
  :auth_names => auth_names,
234
- :return_type => return_type
209
+ :return_type => return_type,
210
+ :api_version => "V2"
235
211
  )
236
212
 
237
213
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -258,15 +234,6 @@ module DatadogAPIClient::V2
258
234
  # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
259
235
  def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {})
260
236
 
261
- if @api_client.config.unstable_operations.has_key?(:get_cloud_workload_security_agent_rule)
262
- unstable_enabled = @api_client.config.unstable_operations[:get_cloud_workload_security_agent_rule]
263
- if unstable_enabled
264
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_cloud_workload_security_agent_rule")
265
- else
266
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_cloud_workload_security_agent_rule"))
267
- end
268
- end
269
-
270
237
  if @api_client.config.debugging
271
238
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.get_cloud_workload_security_agent_rule ...'
272
239
  end
@@ -304,7 +271,8 @@ module DatadogAPIClient::V2
304
271
  :form_params => form_params,
305
272
  :body => post_body,
306
273
  :auth_names => auth_names,
307
- :return_type => return_type
274
+ :return_type => return_type,
275
+ :api_version => "V2"
308
276
  )
309
277
 
310
278
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -330,15 +298,6 @@ module DatadogAPIClient::V2
330
298
  # @return [Array<(CloudWorkloadSecurityAgentRulesListResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRulesListResponse data, response status code and response headers
331
299
  def list_cloud_workload_security_agent_rules_with_http_info(opts = {})
332
300
 
333
- if @api_client.config.unstable_operations.has_key?(:list_cloud_workload_security_agent_rules)
334
- unstable_enabled = @api_client.config.unstable_operations[:list_cloud_workload_security_agent_rules]
335
- if unstable_enabled
336
- @api_client.config.logger.warn format("Using unstable operation '%s'", "list_cloud_workload_security_agent_rules")
337
- else
338
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_cloud_workload_security_agent_rules"))
339
- end
340
- end
341
-
342
301
  if @api_client.config.debugging
343
302
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.list_cloud_workload_security_agent_rules ...'
344
303
  end
@@ -372,7 +331,8 @@ module DatadogAPIClient::V2
372
331
  :form_params => form_params,
373
332
  :body => post_body,
374
333
  :auth_names => auth_names,
375
- :return_type => return_type
334
+ :return_type => return_type,
335
+ :api_version => "V2"
376
336
  )
377
337
 
378
338
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -401,15 +361,6 @@ module DatadogAPIClient::V2
401
361
  # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers
402
362
  def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body, opts = {})
403
363
 
404
- if @api_client.config.unstable_operations.has_key?(:update_cloud_workload_security_agent_rule)
405
- unstable_enabled = @api_client.config.unstable_operations[:update_cloud_workload_security_agent_rule]
406
- if unstable_enabled
407
- @api_client.config.logger.warn format("Using unstable operation '%s'", "update_cloud_workload_security_agent_rule")
408
- else
409
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_cloud_workload_security_agent_rule"))
410
- end
411
- end
412
-
413
364
  if @api_client.config.debugging
414
365
  @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.update_cloud_workload_security_agent_rule ...'
415
366
  end
@@ -453,7 +404,8 @@ module DatadogAPIClient::V2
453
404
  :form_params => form_params,
454
405
  :body => post_body,
455
406
  :auth_names => auth_names,
456
- :return_type => return_type
407
+ :return_type => return_type,
408
+ :api_version => "V2"
457
409
  )
458
410
 
459
411
  data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)