datadog_api_client 2.14.0 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/schemas/v1/openapi.yaml +808 -143
  4. data/.generator/schemas/v2/openapi.yaml +1808 -166
  5. data/.generator/src/generator/openapi.py +3 -1
  6. data/.generator/src/generator/templates/api.j2 +8 -2
  7. data/.generator/src/generator/templates/api_client.j2 +19 -1
  8. data/.generator/src/generator/templates/model_base.j2 +1 -0
  9. data/CHANGELOG.md +56 -0
  10. data/examples/v1/dashboards/CreateDashboard_1754992756.rb +44 -0
  11. data/examples/v1/dashboards/CreateDashboard_2278756614.rb +91 -0
  12. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  13. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  14. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  15. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  16. data/examples/v1/monitors/CreateMonitor_1539578087.rb +36 -0
  17. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  18. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  19. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  20. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  21. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
  22. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  23. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  24. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
  25. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  26. data/examples/v1/usage-metering/GetUsageCIApp.rb +4 -1
  27. data/examples/v1/usage-metering/GetUsageCWS.rb +4 -1
  28. data/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +1 -1
  29. data/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +20 -0
  30. data/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +8 -0
  31. data/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +8 -0
  32. data/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +5 -0
  33. data/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +18 -0
  34. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +24 -0
  35. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  36. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -8
  37. data/examples/v2/container-images/ListContainerImages.rb +8 -0
  38. data/examples/v2/container-images/ListContainerImages_3088586393.rb +11 -0
  39. data/examples/v2/container-images/ListContainerImages_3974828736.rb +11 -0
  40. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  41. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  42. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  43. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  44. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  45. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  46. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  47. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  48. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +19 -0
  49. data/examples/v2/powerpack/CreatePowerpack.rb +47 -0
  50. data/examples/v2/powerpack/DeletePowerpack.rb +8 -0
  51. data/examples/v2/powerpack/GetPowerpack.rb +8 -0
  52. data/examples/v2/powerpack/ListPowerpacks.rb +8 -0
  53. data/examples/v2/powerpack/ListPowerpacks_1173755071.rb +8 -0
  54. data/examples/v2/powerpack/UpdatePowerpack.rb +50 -0
  55. data/examples/v2/rum/CreateRUMApplication.rb +1 -1
  56. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  57. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  58. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +5 -7
  59. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +7 -1
  60. data/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +7 -1
  61. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +4 -1
  62. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +11 -9
  63. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +23 -12
  64. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +53 -0
  65. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  66. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  67. data/lib/datadog_api_client/api_client.rb +19 -1
  68. data/lib/datadog_api_client/configuration.rb +1 -7
  69. data/lib/datadog_api_client/inflector.rb +81 -0
  70. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  71. data/lib/datadog_api_client/v1/api/monitors_api.rb +23 -20
  72. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  73. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +21 -0
  74. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +21 -0
  75. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  76. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
  77. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +1 -1
  78. data/lib/datadog_api_client/v1/model_base.rb +1 -0
  79. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  80. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -4
  81. data/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +94 -0
  82. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  83. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  84. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  85. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +82 -0
  87. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +100 -0
  88. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +11 -1
  89. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  90. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +65 -5
  91. data/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +131 -0
  92. data/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +94 -0
  93. data/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +169 -0
  94. data/lib/datadog_api_client/v1/models/powerpack_widget_definition_type.rb +26 -0
  95. data/lib/datadog_api_client/v1/models/split_config.rb +181 -0
  96. data/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +119 -0
  97. data/lib/datadog_api_client/v1/models/split_dimension.rb +98 -0
  98. data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +70 -0
  99. data/lib/datadog_api_client/v1/models/split_graph_viz_size.rb +29 -0
  100. data/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +191 -0
  101. data/lib/datadog_api_client/v1/models/split_graph_widget_definition_type.rb +26 -0
  102. data/lib/datadog_api_client/v1/models/split_sort.rb +108 -0
  103. data/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +125 -0
  104. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  105. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  106. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  107. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +4 -4
  108. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +8 -8
  109. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +2 -2
  110. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  111. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +168 -8
  112. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +168 -8
  113. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +168 -8
  114. data/lib/datadog_api_client/v1/models/widget_definition.rb +8 -6
  115. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +423 -0
  116. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  117. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +5 -11
  118. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +4 -4
  119. data/lib/datadog_api_client/v2/api/container_images_api.rb +129 -0
  120. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  121. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  122. data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
  123. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  124. data/lib/datadog_api_client/v2/api/powerpack_api.rb +383 -0
  125. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  126. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  127. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  128. data/lib/datadog_api_client/v2/api/service_definition_api.rb +4 -4
  129. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  130. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  131. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  132. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  133. data/lib/datadog_api_client/v2/model_base.rb +1 -0
  134. data/lib/datadog_api_client/v2/models/apm_retention_filter_type.rb +26 -0
  135. data/lib/datadog_api_client/v2/models/container_image.rb +100 -0
  136. data/lib/datadog_api_client/v2/models/container_image_attributes.rb +261 -0
  137. data/lib/datadog_api_client/v2/models/container_image_flavor.rb +120 -0
  138. data/lib/datadog_api_client/v2/models/container_image_group.rb +110 -0
  139. data/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +100 -0
  140. data/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +92 -0
  141. data/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +80 -0
  143. data/lib/datadog_api_client/v2/models/container_image_group_type.rb +26 -0
  144. data/lib/datadog_api_client/v2/models/container_image_item.rb +63 -0
  145. data/lib/datadog_api_client/v2/models/container_image_meta.rb +80 -0
  146. data/lib/datadog_api_client/v2/models/container_image_meta_page.rb +160 -0
  147. data/lib/datadog_api_client/v2/models/container_image_meta_page_type.rb +26 -0
  148. data/lib/datadog_api_client/v2/models/container_image_type.rb +26 -0
  149. data/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +140 -0
  150. data/lib/datadog_api_client/v2/models/container_images_response.rb +102 -0
  151. data/lib/datadog_api_client/v2/models/container_images_response_links.rb +130 -0
  152. data/lib/datadog_api_client/v2/models/data_scalar_column.rb +2 -2
  153. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  154. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +13 -1
  155. data/lib/datadog_api_client/v2/models/group_scalar_column.rb +2 -2
  156. data/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +114 -0
  157. data/lib/datadog_api_client/v2/models/powerpack.rb +80 -0
  158. data/lib/datadog_api_client/v2/models/powerpack_attributes.rb +164 -0
  159. data/lib/datadog_api_client/v2/models/powerpack_data.rb +110 -0
  160. data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +108 -0
  161. data/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +162 -0
  162. data/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +177 -0
  163. data/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +177 -0
  164. data/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +108 -0
  165. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +80 -0
  166. data/lib/datadog_api_client/v2/models/powerpack_response.rb +92 -0
  167. data/lib/datadog_api_client/v2/models/powerpack_response_links.rb +129 -0
  168. data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +110 -0
  169. data/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +80 -0
  170. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +150 -0
  171. data/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +100 -0
  172. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +1 -1
  173. data/lib/datadog_api_client/v2/models/retention_filter.rb +140 -0
  174. data/lib/datadog_api_client/v2/models/retention_filter_all.rb +140 -0
  175. data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +181 -0
  176. data/lib/datadog_api_client/v2/models/retention_filter_all_type.rb +28 -0
  177. data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +181 -0
  178. data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +183 -0
  179. data/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +119 -0
  180. data/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +98 -0
  181. data/lib/datadog_api_client/v2/models/retention_filter_response.rb +80 -0
  182. data/lib/datadog_api_client/v2/models/retention_filter_type.rb +26 -0
  183. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +140 -0
  184. data/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +98 -0
  185. data/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +119 -0
  186. data/lib/datadog_api_client/v2/models/retention_filters_response.rb +100 -0
  187. data/lib/datadog_api_client/v2/models/scalar_column_type_group.rb +26 -0
  188. data/lib/datadog_api_client/v2/models/scalar_column_type_number.rb +26 -0
  189. data/lib/datadog_api_client/v2/models/scalar_meta.rb +8 -0
  190. data/lib/datadog_api_client/v2/models/service_definition_schema.rb +2 -1
  191. data/lib/datadog_api_client/v2/models/service_definition_schema_versions.rb +1 -0
  192. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +247 -0
  193. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +129 -0
  194. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +90 -0
  195. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +150 -0
  196. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +108 -0
  197. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie_region.rb +27 -0
  198. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +80 -0
  199. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb +32 -0
  200. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_version.rb +26 -0
  201. data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +1 -0
  202. data/lib/datadog_api_client/v2/models/spans_filter.rb +80 -0
  203. data/lib/datadog_api_client/v2/models/spans_filter_create.rb +98 -0
  204. data/lib/datadog_api_client/version.rb +1 -1
  205. data/run-tests.sh +6 -5
  206. metadata +114 -9
  207. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +0 -8
  208. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +0 -8
  209. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +0 -17
  210. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey_992091161.rb +0 -11
  211. data/examples/v2/service-accounts/GetServiceAccountApplicationKey_819075131.rb +0 -11
  212. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys_1268914341.rb +0 -8
  213. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb +0 -22
@@ -189,13 +189,7 @@ module DatadogAPIClient
189
189
  @http_proxypass = nil
190
190
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
191
191
  @unstable_operations = {
192
- "v2.create_ci_app_pipeline_event": false,
193
- "v2.cancel_downtime": false,
194
- "v2.create_downtime": false,
195
- "v2.get_downtime": false,
196
- "v2.list_downtimes": false,
197
- "v2.list_monitor_downtimes": false,
198
- "v2.update_downtime": false,
192
+ "v2.list_container_images": false,
199
193
  "v2.list_events": false,
200
194
  "v2.search_events": false,
201
195
  "v2.create_incident": false,
@@ -186,6 +186,7 @@ module DatadogAPIClient
186
186
  "v1.ip_prefixes_agents" => "IPPrefixesAgents",
187
187
  "v1.ip_prefixes_api" => "IPPrefixesAPI",
188
188
  "v1.ip_prefixes_apm" => "IPPrefixesAPM",
189
+ "v1.ip_prefixes_global" => "IPPrefixesGlobal",
189
190
  "v1.ip_prefixes_logs" => "IPPrefixesLogs",
190
191
  "v1.ip_prefixes_orchestrator" => "IPPrefixesOrchestrator",
191
192
  "v1.ip_prefixes_process" => "IPPrefixesProcess",
@@ -293,6 +294,8 @@ module DatadogAPIClient
293
294
  "v1.monitor_group_search_result" => "MonitorGroupSearchResult",
294
295
  "v1.monitor_options" => "MonitorOptions",
295
296
  "v1.monitor_options_aggregation" => "MonitorOptionsAggregation",
297
+ "v1.monitor_options_custom_schedule" => "MonitorOptionsCustomSchedule",
298
+ "v1.monitor_options_custom_schedule_recurrence" => "MonitorOptionsCustomScheduleRecurrence",
296
299
  "v1.monitor_options_notification_presets" => "MonitorOptionsNotificationPresets",
297
300
  "v1.monitor_options_scheduling_options" => "MonitorOptionsSchedulingOptions",
298
301
  "v1.monitor_options_scheduling_options_evaluation_window" => "MonitorOptionsSchedulingOptionsEvaluationWindow",
@@ -381,6 +384,10 @@ module DatadogAPIClient
381
384
  "v1.pager_duty_service_key" => "PagerDutyServiceKey",
382
385
  "v1.pager_duty_service_name" => "PagerDutyServiceName",
383
386
  "v1.pagination" => "Pagination",
387
+ "v1.powerpack_template_variable_contents" => "PowerpackTemplateVariableContents",
388
+ "v1.powerpack_template_variables" => "PowerpackTemplateVariables",
389
+ "v1.powerpack_widget_definition" => "PowerpackWidgetDefinition",
390
+ "v1.powerpack_widget_definition_type" => "PowerpackWidgetDefinitionType",
384
391
  "v1.process_query_definition" => "ProcessQueryDefinition",
385
392
  "v1.query_sort_order" => "QuerySortOrder",
386
393
  "v1.query_value_widget_definition" => "QueryValueWidgetDefinition",
@@ -490,6 +497,15 @@ module DatadogAPIClient
490
497
  "v1.slo_type_numeric" => "SLOTypeNumeric",
491
498
  "v1.slo_widget_definition" => "SLOWidgetDefinition",
492
499
  "v1.slo_widget_definition_type" => "SLOWidgetDefinitionType",
500
+ "v1.split_config" => "SplitConfig",
501
+ "v1.split_config_sort_compute" => "SplitConfigSortCompute",
502
+ "v1.split_dimension" => "SplitDimension",
503
+ "v1.split_graph_source_widget_definition" => "SplitGraphSourceWidgetDefinition",
504
+ "v1.split_graph_viz_size" => "SplitGraphVizSize",
505
+ "v1.split_graph_widget_definition" => "SplitGraphWidgetDefinition",
506
+ "v1.split_graph_widget_definition_type" => "SplitGraphWidgetDefinitionType",
507
+ "v1.split_sort" => "SplitSort",
508
+ "v1.split_vector_entry_item" => "SplitVectorEntryItem",
493
509
  "v1.successful_signal_update_response" => "SuccessfulSignalUpdateResponse",
494
510
  "v1.sunburst_widget_definition" => "SunburstWidgetDefinition",
495
511
  "v1.sunburst_widget_definition_type" => "SunburstWidgetDefinitionType",
@@ -517,6 +533,7 @@ module DatadogAPIClient
517
533
  "v1.synthetics_assertion_json_path_target_target" => "SyntheticsAssertionJSONPathTargetTarget",
518
534
  "v1.synthetics_assertion_operator" => "SyntheticsAssertionOperator",
519
535
  "v1.synthetics_assertion_target" => "SyntheticsAssertionTarget",
536
+ "v1.synthetics_assertion_timings_scope" => "SyntheticsAssertionTimingsScope",
520
537
  "v1.synthetics_assertion_type" => "SyntheticsAssertionType",
521
538
  "v1.synthetics_assertion_x_path_operator" => "SyntheticsAssertionXPathOperator",
522
539
  "v1.synthetics_assertion_x_path_target" => "SyntheticsAssertionXPathTarget",
@@ -818,6 +835,7 @@ module DatadogAPIClient
818
835
  "v2.api_key_update_attributes" => "APIKeyUpdateAttributes",
819
836
  "v2.api_key_update_data" => "APIKeyUpdateData",
820
837
  "v2.api_key_update_request" => "APIKeyUpdateRequest",
838
+ "v2.apm_retention_filter_type" => "ApmRetentionFilterType",
821
839
  "v2.application_key_create_attributes" => "ApplicationKeyCreateAttributes",
822
840
  "v2.application_key_create_data" => "ApplicationKeyCreateData",
823
841
  "v2.application_key_create_request" => "ApplicationKeyCreateRequest",
@@ -978,6 +996,23 @@ module DatadogAPIClient
978
996
  "v2.confluent_resource_response_data" => "ConfluentResourceResponseData",
979
997
  "v2.confluent_resources_response" => "ConfluentResourcesResponse",
980
998
  "v2.confluent_resource_type" => "ConfluentResourceType",
999
+ "v2.container_image" => "ContainerImage",
1000
+ "v2.container_image_attributes" => "ContainerImageAttributes",
1001
+ "v2.container_image_flavor" => "ContainerImageFlavor",
1002
+ "v2.container_image_group" => "ContainerImageGroup",
1003
+ "v2.container_image_group_attributes" => "ContainerImageGroupAttributes",
1004
+ "v2.container_image_group_images_relationships_link" => "ContainerImageGroupImagesRelationshipsLink",
1005
+ "v2.container_image_group_relationships" => "ContainerImageGroupRelationships",
1006
+ "v2.container_image_group_relationships_links" => "ContainerImageGroupRelationshipsLinks",
1007
+ "v2.container_image_group_type" => "ContainerImageGroupType",
1008
+ "v2.container_image_item" => "ContainerImageItem",
1009
+ "v2.container_image_meta" => "ContainerImageMeta",
1010
+ "v2.container_image_meta_page" => "ContainerImageMetaPage",
1011
+ "v2.container_image_meta_page_type" => "ContainerImageMetaPageType",
1012
+ "v2.container_images_response" => "ContainerImagesResponse",
1013
+ "v2.container_images_response_links" => "ContainerImagesResponseLinks",
1014
+ "v2.container_image_type" => "ContainerImageType",
1015
+ "v2.container_image_vulnerabilities" => "ContainerImageVulnerabilities",
981
1016
  "v2.content_encoding" => "ContentEncoding",
982
1017
  "v2.cost_by_org" => "CostByOrg",
983
1018
  "v2.cost_by_org_attributes" => "CostByOrgAttributes",
@@ -1253,6 +1288,7 @@ module DatadogAPIClient
1253
1288
  "v2.list_findings_meta" => "ListFindingsMeta",
1254
1289
  "v2.list_findings_page" => "ListFindingsPage",
1255
1290
  "v2.list_findings_response" => "ListFindingsResponse",
1291
+ "v2.list_powerpacks_response" => "ListPowerpacksResponse",
1256
1292
  "v2.list_teams_include" => "ListTeamsInclude",
1257
1293
  "v2.list_teams_sort" => "ListTeamsSort",
1258
1294
  "v2.log" => "Log",
@@ -1450,6 +1486,20 @@ module DatadogAPIClient
1450
1486
  "v2.permission_attributes" => "PermissionAttributes",
1451
1487
  "v2.permissions_response" => "PermissionsResponse",
1452
1488
  "v2.permissions_type" => "PermissionsType",
1489
+ "v2.powerpack" => "Powerpack",
1490
+ "v2.powerpack_attributes" => "PowerpackAttributes",
1491
+ "v2.powerpack_data" => "PowerpackData",
1492
+ "v2.powerpack_group_widget" => "PowerpackGroupWidget",
1493
+ "v2.powerpack_group_widget_definition" => "PowerpackGroupWidgetDefinition",
1494
+ "v2.powerpack_group_widget_layout" => "PowerpackGroupWidgetLayout",
1495
+ "v2.powerpack_inner_widget_layout" => "PowerpackInnerWidgetLayout",
1496
+ "v2.powerpack_inner_widgets" => "PowerpackInnerWidgets",
1497
+ "v2.powerpack_relationships" => "PowerpackRelationships",
1498
+ "v2.powerpack_response" => "PowerpackResponse",
1499
+ "v2.powerpack_response_links" => "PowerpackResponseLinks",
1500
+ "v2.powerpacks_response_meta" => "PowerpacksResponseMeta",
1501
+ "v2.powerpacks_response_meta_pagination" => "PowerpacksResponseMetaPagination",
1502
+ "v2.powerpack_template_variable" => "PowerpackTemplateVariable",
1453
1503
  "v2.process_summaries_meta" => "ProcessSummariesMeta",
1454
1504
  "v2.process_summaries_meta_page" => "ProcessSummariesMetaPage",
1455
1505
  "v2.process_summaries_response" => "ProcessSummariesResponse",
@@ -1484,6 +1534,7 @@ module DatadogAPIClient
1484
1534
  "v2.relationship_to_user_team_permission_data" => "RelationshipToUserTeamPermissionData",
1485
1535
  "v2.relationship_to_user_team_user" => "RelationshipToUserTeamUser",
1486
1536
  "v2.relationship_to_user_team_user_data" => "RelationshipToUserTeamUserData",
1537
+ "v2.reorder_retention_filters_request" => "ReorderRetentionFiltersRequest",
1487
1538
  "v2.response_meta_attributes" => "ResponseMetaAttributes",
1488
1539
  "v2.restriction_policy" => "RestrictionPolicy",
1489
1540
  "v2.restriction_policy_attributes" => "RestrictionPolicyAttributes",
@@ -1491,6 +1542,20 @@ module DatadogAPIClient
1491
1542
  "v2.restriction_policy_response" => "RestrictionPolicyResponse",
1492
1543
  "v2.restriction_policy_type" => "RestrictionPolicyType",
1493
1544
  "v2.restriction_policy_update_request" => "RestrictionPolicyUpdateRequest",
1545
+ "v2.retention_filter" => "RetentionFilter",
1546
+ "v2.retention_filter_all" => "RetentionFilterAll",
1547
+ "v2.retention_filter_all_attributes" => "RetentionFilterAllAttributes",
1548
+ "v2.retention_filter_all_type" => "RetentionFilterAllType",
1549
+ "v2.retention_filter_attributes" => "RetentionFilterAttributes",
1550
+ "v2.retention_filter_create_attributes" => "RetentionFilterCreateAttributes",
1551
+ "v2.retention_filter_create_data" => "RetentionFilterCreateData",
1552
+ "v2.retention_filter_create_request" => "RetentionFilterCreateRequest",
1553
+ "v2.retention_filter_response" => "RetentionFilterResponse",
1554
+ "v2.retention_filters_response" => "RetentionFiltersResponse",
1555
+ "v2.retention_filter_type" => "RetentionFilterType",
1556
+ "v2.retention_filter_update_data" => "RetentionFilterUpdateData",
1557
+ "v2.retention_filter_update_request" => "RetentionFilterUpdateRequest",
1558
+ "v2.retention_filter_without_attributes" => "RetentionFilterWithoutAttributes",
1494
1559
  "v2.role" => "Role",
1495
1560
  "v2.role_attributes" => "RoleAttributes",
1496
1561
  "v2.role_clone" => "RoleClone",
@@ -1562,6 +1627,8 @@ module DatadogAPIClient
1562
1627
  "v2.saml_assertion_attribute_attributes" => "SAMLAssertionAttributeAttributes",
1563
1628
  "v2.saml_assertion_attributes_type" => "SAMLAssertionAttributesType",
1564
1629
  "v2.scalar_column" => "ScalarColumn",
1630
+ "v2.scalar_column_type_group" => "ScalarColumnTypeGroup",
1631
+ "v2.scalar_column_type_number" => "ScalarColumnTypeNumber",
1565
1632
  "v2.scalar_formula_query_request" => "ScalarFormulaQueryRequest",
1566
1633
  "v2.scalar_formula_query_response" => "ScalarFormulaQueryResponse",
1567
1634
  "v2.scalar_formula_request" => "ScalarFormulaRequest",
@@ -1741,6 +1808,15 @@ module DatadogAPIClient
1741
1808
  "v2.service_definition_v2_dot1_slack" => "ServiceDefinitionV2Dot1Slack",
1742
1809
  "v2.service_definition_v2_dot1_slack_type" => "ServiceDefinitionV2Dot1SlackType",
1743
1810
  "v2.service_definition_v2_dot1_version" => "ServiceDefinitionV2Dot1Version",
1811
+ "v2.service_definition_v2_dot2" => "ServiceDefinitionV2Dot2",
1812
+ "v2.service_definition_v2_dot2_contact" => "ServiceDefinitionV2Dot2Contact",
1813
+ "v2.service_definition_v2_dot2_integrations" => "ServiceDefinitionV2Dot2Integrations",
1814
+ "v2.service_definition_v2_dot2_link" => "ServiceDefinitionV2Dot2Link",
1815
+ "v2.service_definition_v2_dot2_opsgenie" => "ServiceDefinitionV2Dot2Opsgenie",
1816
+ "v2.service_definition_v2_dot2_opsgenie_region" => "ServiceDefinitionV2Dot2OpsgenieRegion",
1817
+ "v2.service_definition_v2_dot2_pagerduty" => "ServiceDefinitionV2Dot2Pagerduty",
1818
+ "v2.service_definition_v2_dot2_type" => "ServiceDefinitionV2Dot2Type",
1819
+ "v2.service_definition_v2_dot2_version" => "ServiceDefinitionV2Dot2Version",
1744
1820
  "v2.service_definition_v2_email" => "ServiceDefinitionV2Email",
1745
1821
  "v2.service_definition_v2_email_type" => "ServiceDefinitionV2EmailType",
1746
1822
  "v2.service_definition_v2_integrations" => "ServiceDefinitionV2Integrations",
@@ -1775,6 +1851,8 @@ module DatadogAPIClient
1775
1851
  "v2.spans_attributes" => "SpansAttributes",
1776
1852
  "v2.spans_compute" => "SpansCompute",
1777
1853
  "v2.spans_compute_type" => "SpansComputeType",
1854
+ "v2.spans_filter" => "SpansFilter",
1855
+ "v2.spans_filter_create" => "SpansFilterCreate",
1778
1856
  "v2.spans_group_by" => "SpansGroupBy",
1779
1857
  "v2.spans_group_by_histogram" => "SpansGroupByHistogram",
1780
1858
  "v2.spans_group_by_missing" => "SpansGroupByMissing",
@@ -1936,6 +2014,7 @@ module DatadogAPIClient
1936
2014
  "v1.usage_metering_api" => "UsageMeteringAPI",
1937
2015
  "v1.users_api" => "UsersAPI",
1938
2016
  "v1.webhooks_integration_api" => "WebhooksIntegrationAPI",
2017
+ "v2.apm_retention_filters_api" => "APMRetentionFiltersAPI",
1939
2018
  "v2.audit_api" => "AuditAPI",
1940
2019
  "v2.authn_mappings_api" => "AuthNMappingsAPI",
1941
2020
  "v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
@@ -1943,6 +2022,7 @@ module DatadogAPIClient
1943
2022
  "v2.cloud_workload_security_api" => "CloudWorkloadSecurityAPI",
1944
2023
  "v2.cloudflare_integration_api" => "CloudflareIntegrationAPI",
1945
2024
  "v2.confluent_cloud_api" => "ConfluentCloudAPI",
2025
+ "v2.container_images_api" => "ContainerImagesAPI",
1946
2026
  "v2.dashboard_lists_api" => "DashboardListsAPI",
1947
2027
  "v2.downtimes_api" => "DowntimesAPI",
1948
2028
  "v2.events_api" => "EventsAPI",
@@ -1960,6 +2040,7 @@ module DatadogAPIClient
1960
2040
  "v2.monitors_api" => "MonitorsAPI",
1961
2041
  "v2.opsgenie_integration_api" => "OpsgenieIntegrationAPI",
1962
2042
  "v2.organizations_api" => "OrganizationsAPI",
2043
+ "v2.powerpack_api" => "PowerpackAPI",
1963
2044
  "v2.processes_api" => "ProcessesAPI",
1964
2045
  "v2.restriction_policies_api" => "RestrictionPoliciesAPI",
1965
2046
  "v2.roles_api" => "RolesAPI",
@@ -644,6 +644,8 @@ module DatadogAPIClient::V1
644
644
  # @param opts [Hash] the optional parameters
645
645
  # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards.
646
646
  # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`.
647
+ # @option opts [Integer] :count The maximum number of dashboards returned in the list.
648
+ # @option opts [Integer] :start The specific offset to use as the beginning of the returned response.
647
649
  # @return [Array<(DashboardSummary, Integer, Hash)>] DashboardSummary data, response status code and response headers
648
650
  def list_dashboards_with_http_info(opts = {})
649
651
 
@@ -657,6 +659,8 @@ module DatadogAPIClient::V1
657
659
  query_params = opts[:query_params] || {}
658
660
  query_params[:'filter[shared]'] = opts[:'filter_shared'] if !opts[:'filter_shared'].nil?
659
661
  query_params[:'filter[deleted]'] = opts[:'filter_deleted'] if !opts[:'filter_deleted'].nil?
662
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
663
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
660
664
 
661
665
  # header parameters
662
666
  header_params = opts[:header_params] || {}
@@ -693,6 +697,27 @@ module DatadogAPIClient::V1
693
697
  return data, status_code, headers
694
698
  end
695
699
 
700
+ # Get all dashboards.
701
+ #
702
+ # Provide a paginated version of {#list_dashboards}, returning all items.
703
+ #
704
+ # To use it you need to use a block: list_dashboards_with_pagination { |item| p item }
705
+ #
706
+ # @yield [DashboardSummaryDefinition] Paginated items
707
+ def list_dashboards_with_pagination(opts = {})
708
+ api_version = "V1"
709
+ page_size = @api_client.get_attribute_from_path(opts, "count", 100)
710
+ @api_client.set_attribute_from_path(api_version, opts, "count", Integer, page_size)
711
+ while true do
712
+ response = list_dashboards(opts)
713
+ @api_client.get_attribute_from_path(response, "dashboards").each { |item| yield(item) }
714
+ if @api_client.get_attribute_from_path(response, "dashboards").length < page_size
715
+ break
716
+ end
717
+ @api_client.set_attribute_from_path(api_version, opts, "start", Integer, @api_client.get_attribute_from_path(opts, "start", 0) + page_size)
718
+ end
719
+ end
720
+
696
721
  # Restore deleted dashboards.
697
722
  #
698
723
  # @see #restore_dashboards_with_http_info
@@ -167,20 +167,7 @@ module DatadogAPIClient::V1
167
167
  #
168
168
  # ##### Event Alert Query
169
169
  #
170
- # Example: `events('sources:nagios status:error,warning priority:normal tags: "string query"').rollup("count").last("1h")"`
171
- #
172
- # - `event`, the event query string:
173
- # - `string_query` free text query to match against event title and text.
174
- # - `sources` event sources (comma-separated).
175
- # - `status` event statuses (comma-separated). Valid options: error, warn, and info.
176
- # - `priority` event priorities (comma-separated). Valid options: low, normal, all.
177
- # - `host` event reporting host (comma-separated).
178
- # - `tags` event tags (comma-separated).
179
- # - `excluded_tags` excluded event tags (comma-separated).
180
- # - `rollup` the stats roll-up method. `count` is the only supported method now.
181
- # - `last` the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours.
182
- #
183
- # **NOTE** The Event Alert Query is being deprecated and replaced by the Event V2 Alert Query. For more information, see the [Event Migration guide](https://docs.datadoghq.com/events/guides/migrating_to_new_events_features/).
170
+ # **Note:** The Event Alert Query has been replaced by the Event V2 Alert Query. For more information, see the [Event Migration guide](https://docs.datadoghq.com/service_management/events/guides/migrating_to_new_events_features/).
184
171
  #
185
172
  # ##### Event V2 Alert Query
186
173
  #
@@ -246,8 +233,6 @@ module DatadogAPIClient::V1
246
233
  # - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
247
234
  # - `#` an integer or decimal number used to set the threshold.
248
235
  #
249
- # **NOTE** Only available on US1-FED and in closed beta on US1, EU, AP1, US3, and US5.
250
- #
251
236
  # ##### CI Pipelines Alert Query
252
237
  #
253
238
  # Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #`
@@ -259,8 +244,6 @@ module DatadogAPIClient::V1
259
244
  # - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
260
245
  # - `#` an integer or decimal number used to set the threshold.
261
246
  #
262
- # **NOTE** CI Pipeline monitors are in alpha on US1, EU, AP1, US3, and US5.
263
- #
264
247
  # ##### CI Tests Alert Query
265
248
  #
266
249
  # Example: `ci-tests(query).rollup(rollup_method[, measure]).last(time_window) operator #`
@@ -272,8 +255,6 @@ module DatadogAPIClient::V1
272
255
  # - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
273
256
  # - `#` an integer or decimal number used to set the threshold.
274
257
  #
275
- # **NOTE** CI Test monitors are available only in closed beta on US1, EU, AP1, US3, and US5.
276
- #
277
258
  # ##### Error Tracking Alert Query
278
259
  #
279
260
  # Example(RUM): `error-tracking-rum(query).rollup(rollup_method[, measure]).last(time_window) operator #`
@@ -569,6 +550,28 @@ module DatadogAPIClient::V1
569
550
  return data, status_code, headers
570
551
  end
571
552
 
553
+ # Get all monitor details.
554
+ #
555
+ # Provide a paginated version of {#list_monitors}, returning all items.
556
+ #
557
+ # To use it you need to use a block: list_monitors_with_pagination { |item| p item }
558
+ #
559
+ # @yield [Monitor] Paginated items
560
+ def list_monitors_with_pagination(opts = {})
561
+ api_version = "V1"
562
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 100)
563
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
564
+ @api_client.set_attribute_from_path(api_version, opts, "page", Integer, 0)
565
+ while true do
566
+ response = list_monitors(opts)
567
+ @api_client.get_attribute_from_path(response, "").each { |item| yield(item) }
568
+ if @api_client.get_attribute_from_path(response, "").length < page_size
569
+ break
570
+ end
571
+ @api_client.set_attribute_from_path(api_version, opts, "page", Integer, @api_client.get_attribute_from_path(opts, "page", 0) + 1)
572
+ end
573
+ end
574
+
572
575
  # Monitors group search.
573
576
  #
574
577
  # @see #search_monitor_groups_with_http_info
@@ -301,6 +301,27 @@ module DatadogAPIClient::V1
301
301
  return data, status_code, headers
302
302
  end
303
303
 
304
+ # Get all notebooks.
305
+ #
306
+ # Provide a paginated version of {#list_notebooks}, returning all items.
307
+ #
308
+ # To use it you need to use a block: list_notebooks_with_pagination { |item| p item }
309
+ #
310
+ # @yield [NotebooksResponseData] Paginated items
311
+ def list_notebooks_with_pagination(opts = {})
312
+ api_version = "V1"
313
+ page_size = @api_client.get_attribute_from_path(opts, "count", 100)
314
+ @api_client.set_attribute_from_path(api_version, opts, "count", Integer, page_size)
315
+ while true do
316
+ response = list_notebooks(opts)
317
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
318
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
319
+ break
320
+ end
321
+ @api_client.set_attribute_from_path(api_version, opts, "start", Integer, @api_client.get_attribute_from_path(opts, "start", 0) + page_size)
322
+ end
323
+ end
324
+
304
325
  # Update a notebook.
305
326
  #
306
327
  # @see #update_notebook_with_http_info
@@ -284,6 +284,27 @@ module DatadogAPIClient::V1
284
284
  return data, status_code, headers
285
285
  end
286
286
 
287
+ # Get all SLO corrections.
288
+ #
289
+ # Provide a paginated version of {#list_slo_correction}, returning all items.
290
+ #
291
+ # To use it you need to use a block: list_slo_correction_with_pagination { |item| p item }
292
+ #
293
+ # @yield [SLOCorrection] Paginated items
294
+ def list_slo_correction_with_pagination(opts = {})
295
+ api_version = "V1"
296
+ page_size = @api_client.get_attribute_from_path(opts, "limit", 25)
297
+ @api_client.set_attribute_from_path(api_version, opts, "limit", Integer, page_size)
298
+ while true do
299
+ response = list_slo_correction(opts)
300
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
301
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
302
+ break
303
+ end
304
+ @api_client.set_attribute_from_path(api_version, opts, "offset", Integer, @api_client.get_attribute_from_path(opts, "offset", 0) + page_size)
305
+ end
306
+ end
307
+
287
308
  # Update an SLO correction.
288
309
  #
289
310
  # @see #update_slo_correction_with_http_info
@@ -596,6 +596,27 @@ module DatadogAPIClient::V1
596
596
  return data, status_code, headers
597
597
  end
598
598
 
599
+ # Get all SLOs.
600
+ #
601
+ # Provide a paginated version of {#list_slos}, returning all items.
602
+ #
603
+ # To use it you need to use a block: list_slos_with_pagination { |item| p item }
604
+ #
605
+ # @yield [ServiceLevelObjective] Paginated items
606
+ def list_slos_with_pagination(opts = {})
607
+ api_version = "V1"
608
+ page_size = @api_client.get_attribute_from_path(opts, "limit", 1000)
609
+ @api_client.set_attribute_from_path(api_version, opts, "limit", Integer, page_size)
610
+ while true do
611
+ response = list_slos(opts)
612
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
613
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
614
+ break
615
+ end
616
+ @api_client.set_attribute_from_path(api_version, opts, "offset", Integer, @api_client.get_attribute_from_path(opts, "offset", 0) + page_size)
617
+ end
618
+ end
619
+
599
620
  # Search for SLOs.
600
621
  #
601
622
  # @see #search_slo_with_http_info
@@ -1209,7 +1209,7 @@ module DatadogAPIClient::V1
1209
1209
  return_type = opts[:debug_return_type] || 'Array<String>'
1210
1210
 
1211
1211
  # auth_names
1212
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1212
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
1213
1213
 
1214
1214
  new_options = opts.merge(
1215
1215
  :operation => :get_synthetics_default_locations,
@@ -1428,8 +1428,8 @@ module DatadogAPIClient::V1
1428
1428
  # Get the list of all Synthetic tests.
1429
1429
  #
1430
1430
  # @param opts [Hash] the optional parameters
1431
- # @option opts [String] :page_size Used for pagination. The number of tests returned in the page.
1432
- # @option opts [String] :page_number Used for pagination. Which page you want to retrieve. Starts at zero.
1431
+ # @option opts [Integer] :page_size Used for pagination. The number of tests returned in the page.
1432
+ # @option opts [Integer] :page_number Used for pagination. Which page you want to retrieve. Starts at zero.
1433
1433
  # @return [Array<(SyntheticsListTestsResponse, Integer, Hash)>] SyntheticsListTestsResponse data, response status code and response headers
1434
1434
  def list_tests_with_http_info(opts = {})
1435
1435
 
@@ -1479,6 +1479,28 @@ module DatadogAPIClient::V1
1479
1479
  return data, status_code, headers
1480
1480
  end
1481
1481
 
1482
+ # Get the list of all Synthetic tests.
1483
+ #
1484
+ # Provide a paginated version of {#list_tests}, returning all items.
1485
+ #
1486
+ # To use it you need to use a block: list_tests_with_pagination { |item| p item }
1487
+ #
1488
+ # @yield [SyntheticsTestDetails] Paginated items
1489
+ def list_tests_with_pagination(opts = {})
1490
+ api_version = "V1"
1491
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 100)
1492
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
1493
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
1494
+ while true do
1495
+ response = list_tests(opts)
1496
+ @api_client.get_attribute_from_path(response, "tests").each { |item| yield(item) }
1497
+ if @api_client.get_attribute_from_path(response, "tests").length < page_size
1498
+ break
1499
+ end
1500
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + 1)
1501
+ end
1502
+ end
1503
+
1482
1504
  # Trigger tests from CI/CD pipelines.
1483
1505
  #
1484
1506
  # @see #trigger_ci_tests_with_http_info
@@ -152,7 +152,7 @@ module DatadogAPIClient::V1
152
152
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
153
153
  end
154
154
  # verify enum value
155
- allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_excl_agent_usage', 'ci_visibility_itr_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'snmp_usage', 'estimated_rum_sessions_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'sds_scanned_bytes_usage']
155
+ allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'ci_visibility_itr_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_logs_usage', 'estimated_ingested_spans_usage', 'estimated_rum_sessions_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage']
156
156
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
157
157
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
158
158
  end
@@ -472,7 +472,7 @@ module DatadogAPIClient::V1
472
472
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
473
473
  end
474
474
  # verify enum value
475
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
475
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
476
476
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
477
477
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
478
478
  end
@@ -480,7 +480,7 @@ module DatadogAPIClient::V1
480
480
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
481
481
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
482
482
  end
483
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
483
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
484
484
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
485
485
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
486
486
  end
@@ -1047,7 +1047,7 @@ module DatadogAPIClient::V1
1047
1047
  return data, status_code, headers
1048
1048
  end
1049
1049
 
1050
- # Get hourly usage for CSPM.
1050
+ # Get hourly usage for CSM Pro.
1051
1051
  #
1052
1052
  # @see #get_usage_cloud_security_posture_management_with_http_info
1053
1053
  def get_usage_cloud_security_posture_management(start_hr, opts = {})
@@ -1055,9 +1055,9 @@ module DatadogAPIClient::V1
1055
1055
  data
1056
1056
  end
1057
1057
 
1058
- # Get hourly usage for CSPM.
1058
+ # Get hourly usage for CSM Pro.
1059
1059
  #
1060
- # Get hourly usage for cloud security posture management (CSPM).
1060
+ # Get hourly usage for cloud security management (CSM) pro.
1061
1061
  # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1062
1062
  #
1063
1063
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
@@ -70,7 +70,7 @@ module DatadogAPIClient::V1
70
70
  return_type = opts[:debug_return_type] || 'WebhooksIntegration'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :create_webhooks_integration,
@@ -94,6 +94,7 @@ module DatadogAPIClient::V1
94
94
  # @return [Object] Deserialized data
95
95
  # @!visibility private
96
96
  def _deserialize(type, value)
97
+ return nil if value == nil
97
98
  case type.to_sym
98
99
  when :Time
99
100
  Time.parse(value)