datadog_api_client 2.29.1 → 2.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +591 -464
  4. data/.generator/schemas/v2/openapi.yaml +4175 -744
  5. data/.github/CODEOWNERS +5 -5
  6. data/.github/workflows/docs.yml +2 -2
  7. data/.github/workflows/prepare_release.yml +1 -1
  8. data/.github/workflows/test.yml +4 -1
  9. data/CHANGELOG.md +42 -0
  10. data/Gemfile +1 -1
  11. data/LICENSE-3rdparty.csv +1 -1
  12. data/RELEASING.md +1 -1
  13. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +9 -6
  14. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +0 -6
  15. data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +1 -0
  16. data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +1 -0
  17. data/examples/v1/monitors/CreateMonitor_1303514967.rb +32 -0
  18. data/examples/v1/monitors/ListMonitors.rb +1 -1
  19. data/examples/v1/monitors/{ListMonitors_3448441939.rb → ListMonitors_2154432960.rb} +1 -1
  20. data/examples/v1/monitors/{ListMonitors_2966492814.rb → ListMonitors_463213563.rb} +1 -1
  21. data/examples/v2/action-connection/CreateActionConnection.rb +22 -0
  22. data/examples/v2/action-connection/DeleteActionConnection.rb +5 -0
  23. data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +8 -0
  24. data/examples/v2/action-connection/GetActionConnection.rb +5 -0
  25. data/examples/v2/action-connection/UpdateActionConnection.rb +22 -0
  26. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +5 -0
  27. data/examples/v2/{apps → app-builder}/CreateApp.rb +4 -4
  28. data/examples/v2/{apps → app-builder}/DeleteApp.rb +1 -1
  29. data/examples/v2/{apps → app-builder}/DeleteApps.rb +2 -2
  30. data/examples/v2/{apps → app-builder}/GetApp.rb +1 -1
  31. data/examples/v2/{apps → app-builder}/ListApps.rb +1 -1
  32. data/examples/v2/app-builder/PublishApp.rb +11 -0
  33. data/examples/v2/app-builder/UnpublishApp.rb +11 -0
  34. data/examples/v2/{apps → app-builder}/UpdateApp.rb +2 -2
  35. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.rb +29 -0
  36. data/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb +5 -0
  37. data/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb +5 -0
  38. data/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb +5 -0
  39. data/examples/v2/data-deletion/CreateDataDeletionRequest.rb +1 -0
  40. data/examples/v2/events/CreateEvent.rb +1 -1
  41. data/examples/v2/logs/ListLogs.rb +12 -6
  42. data/examples/v2/logs/ListLogsGet.rb +1 -1
  43. data/examples/v2/logs/ListLogsGet_175182691.rb +5 -0
  44. data/examples/v2/logs/ListLogs_3400928236.rb +23 -0
  45. data/examples/v2/logs/ListLogs_534975433.rb +29 -0
  46. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb +15 -0
  47. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +15 -0
  48. data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb +5 -0
  49. data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb +8 -0
  50. data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb +5 -0
  51. data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb +8 -0
  52. data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb +5 -0
  53. data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb +5 -0
  54. data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb +15 -0
  55. data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb +18 -0
  56. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -0
  57. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +1 -0
  58. data/examples/v2/security-monitoring/CreateSignalNotificationRule.rb +30 -0
  59. data/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb +30 -0
  60. data/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb +8 -0
  61. data/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb +8 -0
  62. data/examples/v2/security-monitoring/GetSBOM.rb +5 -0
  63. data/examples/v2/security-monitoring/GetSignalNotificationRule.rb +8 -0
  64. data/examples/v2/security-monitoring/GetSignalNotificationRules.rb +5 -0
  65. data/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb +8 -0
  66. data/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb +5 -0
  67. data/examples/v2/security-monitoring/ListVulnerabilities.rb +10 -0
  68. data/examples/v2/security-monitoring/ListVulnerableAssets.rb +10 -0
  69. data/examples/v2/security-monitoring/PatchSignalNotificationRule.rb +35 -0
  70. data/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb +35 -0
  71. data/examples/v2/security-monitoring/RunHistoricalJob.rb +2 -2
  72. data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +0 -3
  73. data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +0 -3
  74. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +0 -3
  75. data/lib/datadog_api_client/configuration.rb +2 -5
  76. data/lib/datadog_api_client/inflector.rb +145 -44
  77. data/lib/datadog_api_client/v1/api/monitors_api.rb +28 -4
  78. data/lib/datadog_api_client/v1/models/azure_account.rb +42 -13
  79. data/lib/datadog_api_client/v1/models/dashboard.rb +0 -2
  80. data/lib/datadog_api_client/v1/models/logs_pipeline.rb +23 -1
  81. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_aggregator.rb +34 -0
  82. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_data_source.rb +28 -0
  83. data/lib/datadog_api_client/v1/models/{azure_account_metrics_config.rb → monitor_formula_and_function_cost_query_definition.rb} +81 -16
  84. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
  85. data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
  86. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +1 -1
  87. data/lib/datadog_api_client/v1/models/resource_provider_config.rb +115 -0
  88. data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
  89. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +184 -4
  90. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +183 -3
  91. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +183 -3
  92. data/lib/datadog_api_client/v2/api/action_connection_api.rb +295 -0
  93. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +86 -0
  94. data/lib/datadog_api_client/v2/api/{apps_api.rb → app_builder_api.rb} +184 -38
  95. data/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb +212 -0
  96. data/lib/datadog_api_client/v2/api/logs_api.rb +8 -8
  97. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  98. data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +331 -0
  99. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +13 -3
  100. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1123 -1
  101. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -19
  102. data/lib/datadog_api_client/v2/models/action_connection_attributes.rb +144 -0
  103. data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items.rb → action_connection_attributes_update.rb} +18 -18
  104. data/lib/datadog_api_client/v2/models/action_connection_data.rb +154 -0
  105. data/lib/datadog_api_client/v2/models/{delete_app_response_data_type.rb → action_connection_data_type.rb} +3 -3
  106. data/lib/datadog_api_client/v2/models/action_connection_data_update.rb +144 -0
  107. data/lib/datadog_api_client/v2/models/action_connection_integration.rb +63 -0
  108. data/lib/datadog_api_client/v2/models/action_connection_integration_update.rb +63 -0
  109. data/lib/datadog_api_client/v2/models/advisory.rb +154 -0
  110. data/lib/datadog_api_client/v2/models/app_builder_event.rb +1 -1
  111. data/lib/datadog_api_client/v2/models/{get_app_response_data_type.rb → app_definition_type.rb} +2 -2
  112. data/lib/datadog_api_client/v2/models/{deployment_included_type.rb → app_deployment_type.rb} +2 -2
  113. data/lib/datadog_api_client/v2/models/app_meta.rb +15 -25
  114. data/lib/datadog_api_client/v2/models/{get_app_response_relationship.rb → app_relationship.rb} +5 -5
  115. data/lib/datadog_api_client/v2/models/asset.rb +165 -0
  116. data/lib/datadog_api_client/v2/models/asset_attributes.rb +218 -0
  117. data/lib/datadog_api_client/v2/models/{script_data_type.rb → asset_entity_type.rb} +3 -3
  118. data/lib/datadog_api_client/v2/models/asset_operating_system.rb +133 -0
  119. data/lib/datadog_api_client/v2/models/asset_risks.rb +163 -0
  120. data/lib/datadog_api_client/v2/models/asset_type.rb +30 -0
  121. data/lib/datadog_api_client/v2/models/{disable_app_response_data_attributes.rb → asset_version.rb} +21 -11
  122. data/lib/datadog_api_client/v2/models/aws_assume_role.rb +191 -0
  123. data/lib/datadog_api_client/v2/models/{input_schema_data_type.rb → aws_assume_role_type.rb} +3 -3
  124. data/lib/datadog_api_client/v2/models/aws_assume_role_update.rb +166 -0
  125. data/lib/datadog_api_client/v2/models/aws_credentials.rb +62 -0
  126. data/lib/datadog_api_client/v2/models/aws_credentials_update.rb +62 -0
  127. data/lib/datadog_api_client/v2/models/aws_integration.rb +144 -0
  128. data/lib/datadog_api_client/v2/models/{deploy_app_response_data_type.rb → aws_integration_type.rb} +3 -3
  129. data/lib/datadog_api_client/v2/models/aws_integration_update.rb +133 -0
  130. data/lib/datadog_api_client/v2/models/aws_scan_options_attributes.rb +135 -0
  131. data/lib/datadog_api_client/v2/models/{input_schema_data.rb → aws_scan_options_data.rb} +8 -8
  132. data/lib/datadog_api_client/v2/models/aws_scan_options_response.rb +107 -0
  133. data/lib/datadog_api_client/v2/models/{delete_apps_request_data_items_type.rb → aws_scan_options_type.rb} +3 -3
  134. data/lib/datadog_api_client/v2/models/change_event_custom_attributes.rb +1 -1
  135. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb +1 -1
  136. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource_type.rb +1 -0
  137. data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +11 -1
  138. data/lib/datadog_api_client/v2/models/{deployment_included_meta.rb → code_location.rb} +41 -33
  139. data/lib/datadog_api_client/v2/models/component.rb +6 -6
  140. data/lib/datadog_api_client/v2/models/component_grid.rb +6 -6
  141. data/lib/datadog_api_client/v2/models/component_grid_properties.rb +4 -4
  142. data/lib/datadog_api_client/v2/models/component_grid_properties_is_visible.rb +1 -1
  143. data/lib/datadog_api_client/v2/models/component_grid_type.rb +1 -1
  144. data/lib/datadog_api_client/v2/models/component_properties.rb +3 -3
  145. data/lib/datadog_api_client/v2/models/component_properties_is_visible.rb +1 -1
  146. data/lib/datadog_api_client/v2/models/component_type.rb +1 -1
  147. data/lib/datadog_api_client/v2/models/create_action_connection_request.rb +123 -0
  148. data/lib/datadog_api_client/v2/models/{script.rb → create_action_connection_response.rb} +5 -5
  149. data/lib/datadog_api_client/v2/models/create_app_request.rb +2 -2
  150. data/lib/datadog_api_client/v2/models/create_app_request_data.rb +4 -4
  151. data/lib/datadog_api_client/v2/models/create_app_request_data_attributes.rb +19 -41
  152. data/lib/datadog_api_client/v2/models/create_app_response.rb +2 -2
  153. data/lib/datadog_api_client/v2/models/create_app_response_data.rb +5 -5
  154. data/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb +24 -3
  155. data/lib/datadog_api_client/v2/models/{disable_app_response_data_type.rb → create_data_deletion_request_body_data_type.rb} +3 -3
  156. data/lib/datadog_api_client/v2/models/create_notification_rule_parameters.rb +105 -0
  157. data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data.rb +144 -0
  158. data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data_attributes.rb +195 -0
  159. data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_attributes.rb +145 -0
  160. data/lib/datadog_api_client/v2/models/{disable_app_response_data.rb → csm_cloud_accounts_coverage_analysis_data.rb} +9 -19
  161. data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_response.rb +105 -0
  162. data/lib/datadog_api_client/v2/models/csm_coverage_analysis.rb +135 -0
  163. data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_attributes.rb +145 -0
  164. data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_data.rb +125 -0
  165. data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_response.rb +105 -0
  166. data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_attributes.rb +125 -0
  167. data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_data.rb +125 -0
  168. data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_response.rb +105 -0
  169. data/lib/datadog_api_client/v2/models/custom_connection.rb +5 -5
  170. data/lib/datadog_api_client/v2/models/custom_connection_attributes.rb +3 -3
  171. data/lib/datadog_api_client/v2/models/custom_connection_attributes_on_prem_runner.rb +3 -3
  172. data/lib/datadog_api_client/v2/models/custom_connection_type.rb +1 -1
  173. data/lib/datadog_api_client/v2/models/cvss.rb +165 -0
  174. data/lib/datadog_api_client/v2/models/delete_app_response.rb +1 -1
  175. data/lib/datadog_api_client/v2/models/delete_app_response_data.rb +4 -4
  176. data/lib/datadog_api_client/v2/models/delete_apps_request.rb +2 -2
  177. data/lib/datadog_api_client/v2/models/delete_apps_request_data_items.rb +5 -5
  178. data/lib/datadog_api_client/v2/models/delete_apps_response.rb +2 -2
  179. data/lib/datadog_api_client/v2/models/delete_apps_response_data_items.rb +5 -5
  180. data/lib/datadog_api_client/v2/models/dependency_location.rb +207 -0
  181. data/lib/datadog_api_client/v2/models/{deploy_app_response_data.rb → deployment.rb} +11 -11
  182. data/lib/datadog_api_client/v2/models/{deploy_app_response_data_attributes.rb → deployment_attributes.rb} +5 -5
  183. data/lib/datadog_api_client/v2/models/{deployment_relationship_meta.rb → deployment_metadata.rb} +9 -9
  184. data/lib/datadog_api_client/v2/models/deployment_relationship.rb +4 -4
  185. data/lib/datadog_api_client/v2/models/deployment_relationship_data.rb +5 -5
  186. data/lib/datadog_api_client/v2/models/entity_v3.rb +2 -1
  187. data/lib/datadog_api_client/v2/models/entity_v3_api.rb +180 -0
  188. data/lib/datadog_api_client/v2/models/entity_v3_api_datadog.rb +126 -0
  189. data/lib/datadog_api_client/v2/models/entity_v3_api_kind.rb +26 -0
  190. data/lib/datadog_api_client/v2/models/entity_v3_api_spec.rb +151 -0
  191. data/lib/datadog_api_client/v2/models/entity_v3_api_spec_interface_definition.rb +80 -0
  192. data/lib/datadog_api_client/v2/models/{entity_v3_metadata_owner.rb → entity_v3_api_spec_interface_file_ref.rb} +12 -12
  193. data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +1 -1
  194. data/lib/datadog_api_client/v2/models/epss.rb +144 -0
  195. data/lib/datadog_api_client/v2/models/{input_schema.rb → get_action_connection_response.rb} +5 -5
  196. data/lib/datadog_api_client/v2/models/get_app_response.rb +7 -7
  197. data/lib/datadog_api_client/v2/models/get_app_response_data.rb +6 -6
  198. data/lib/datadog_api_client/v2/models/get_app_response_data_attributes.rb +20 -42
  199. data/lib/datadog_api_client/v2/models/get_sbom_response.rb +123 -0
  200. data/lib/datadog_api_client/v2/models/historical_job_options.rb +168 -0
  201. data/lib/datadog_api_client/v2/models/historical_job_query.rb +171 -0
  202. data/lib/datadog_api_client/v2/models/{app_builder_error.rb → http_body.rb} +21 -13
  203. data/lib/datadog_api_client/v2/models/http_credentials.rb +62 -0
  204. data/lib/datadog_api_client/v2/models/http_credentials_update.rb +62 -0
  205. data/lib/datadog_api_client/v2/models/http_header.rb +150 -0
  206. data/lib/datadog_api_client/v2/models/http_header_update.rb +149 -0
  207. data/lib/datadog_api_client/v2/models/http_integration.rb +171 -0
  208. data/lib/datadog_api_client/v2/models/http_integration_type.rb +26 -0
  209. data/lib/datadog_api_client/v2/models/http_integration_update.rb +156 -0
  210. data/lib/datadog_api_client/v2/models/http_token.rb +171 -0
  211. data/lib/datadog_api_client/v2/models/http_token_auth.rb +169 -0
  212. data/lib/datadog_api_client/v2/models/http_token_auth_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/http_token_auth_update.rb +169 -0
  214. data/lib/datadog_api_client/v2/models/http_token_update.rb +181 -0
  215. data/lib/datadog_api_client/v2/models/job_definition.rb +6 -18
  216. data/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +21 -1
  217. data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items_source.rb → jsonapi_error_item_source.rb} +16 -6
  218. data/lib/datadog_api_client/v2/models/library.rb +133 -0
  219. data/lib/datadog_api_client/v2/models/links.rb +185 -0
  220. data/lib/datadog_api_client/v2/models/list_apps_response.rb +5 -5
  221. data/lib/datadog_api_client/v2/models/list_apps_response_data_items.rb +8 -8
  222. data/lib/datadog_api_client/v2/models/list_apps_response_data_items_attributes.rb +6 -6
  223. data/lib/datadog_api_client/v2/models/list_apps_response_data_items_relationships.rb +2 -2
  224. data/lib/datadog_api_client/v2/models/list_apps_response_meta.rb +2 -2
  225. data/lib/datadog_api_client/v2/models/list_apps_response_meta_page.rb +3 -3
  226. data/lib/datadog_api_client/v2/models/list_vulnerabilities_response.rb +145 -0
  227. data/lib/datadog_api_client/v2/models/list_vulnerable_assets_response.rb +145 -0
  228. data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +11 -1
  229. data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3.rb +133 -0
  230. data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3_type.rb +28 -0
  231. data/lib/datadog_api_client/v2/models/metadata.rb +165 -0
  232. data/lib/datadog_api_client/v2/models/microsoft_teams_create_workflows_webhook_handle_request.rb +123 -0
  233. data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request.rb +123 -0
  234. data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request_data.rb +144 -0
  235. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_attributes.rb +144 -0
  236. data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items_data_attributes.rb → microsoft_teams_workflows_webhook_handle_request_attributes.rb} +46 -51
  237. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_request_data.rb +144 -0
  238. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response.rb +123 -0
  239. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response_data.rb +147 -0
  240. data/lib/datadog_api_client/v2/models/{create_app_response_data_type.rb → microsoft_teams_workflows_webhook_handle_type.rb} +3 -3
  241. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handles_response.rb +125 -0
  242. data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_response_attributes.rb +123 -0
  243. data/lib/datadog_api_client/v2/models/notification_rule.rb +168 -0
  244. data/lib/datadog_api_client/v2/models/notification_rule_attributes.rb +311 -0
  245. data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items.rb → notification_rule_response.rb} +9 -5
  246. data/lib/datadog_api_client/v2/models/{create_app_request_data_type.rb → notification_rules_type.rb} +3 -3
  247. data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters.rb +105 -0
  248. data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data.rb +165 -0
  249. data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data_attributes.rb +165 -0
  250. data/lib/datadog_api_client/v2/models/{disable_app_response.rb → publish_app_response.rb} +5 -5
  251. data/lib/datadog_api_client/v2/models/query.rb +7 -7
  252. data/lib/datadog_api_client/v2/models/query_type.rb +1 -1
  253. data/lib/datadog_api_client/v2/models/remediation.rb +278 -0
  254. data/lib/datadog_api_client/v2/models/rule_severity.rb +31 -0
  255. data/lib/datadog_api_client/v2/models/rule_types_items.rb +42 -0
  256. data/lib/datadog_api_client/v2/models/{deployment_included_attributes.rb → rule_user.rb} +21 -11
  257. data/lib/datadog_api_client/v2/models/{script_data.rb → sbom.rb} +8 -8
  258. data/lib/datadog_api_client/v2/models/sbom_attributes.rb +230 -0
  259. data/lib/datadog_api_client/v2/models/sbom_component.rb +185 -0
  260. data/lib/datadog_api_client/v2/models/sbom_component_type.rb +37 -0
  261. data/lib/datadog_api_client/v2/models/sbom_metadata.rb +105 -0
  262. data/lib/datadog_api_client/v2/models/{script_data_attributes.rb → sbom_metadata_component.rb} +6 -16
  263. data/lib/datadog_api_client/v2/models/sbom_type.rb +26 -0
  264. data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +2 -2
  265. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +2 -2
  266. data/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +1 -1
  267. data/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +1 -1
  268. data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
  269. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +1 -1
  270. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +6 -6
  271. data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +1 -1
  272. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  273. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  274. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +1 -1
  275. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  276. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  277. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +1 -1
  278. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
  279. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +1 -1
  280. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  281. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +11 -1
  282. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +12 -1
  283. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +1 -1
  284. data/lib/datadog_api_client/v2/models/selectors.rb +160 -0
  285. data/lib/datadog_api_client/v2/models/spec_version.rb +31 -0
  286. data/lib/datadog_api_client/v2/models/token_type.rb +26 -0
  287. data/lib/datadog_api_client/v2/models/trigger_source.rb +28 -0
  288. data/lib/datadog_api_client/v2/models/unpublish_app_response.rb +105 -0
  289. data/lib/datadog_api_client/v2/models/update_action_connection_request.rb +123 -0
  290. data/lib/datadog_api_client/v2/models/{deploy_app_response.rb → update_action_connection_response.rb} +5 -5
  291. data/lib/datadog_api_client/v2/models/update_app_request.rb +2 -2
  292. data/lib/datadog_api_client/v2/models/update_app_request_data.rb +6 -6
  293. data/lib/datadog_api_client/v2/models/update_app_request_data_attributes.rb +19 -41
  294. data/lib/datadog_api_client/v2/models/update_app_response.rb +7 -7
  295. data/lib/datadog_api_client/v2/models/update_app_response_data.rb +6 -6
  296. data/lib/datadog_api_client/v2/models/update_app_response_data_attributes.rb +20 -42
  297. data/lib/datadog_api_client/v2/models/url_param.rb +150 -0
  298. data/lib/datadog_api_client/v2/models/url_param_update.rb +149 -0
  299. data/lib/datadog_api_client/v2/models/vulnerabilities_type.rb +26 -0
  300. data/lib/datadog_api_client/v2/models/vulnerability.rb +186 -0
  301. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +462 -0
  302. data/lib/datadog_api_client/v2/models/{deployment_meta.rb → vulnerability_cvss.rb} +43 -34
  303. data/lib/datadog_api_client/v2/models/vulnerability_dependency_locations.rb +143 -0
  304. data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +36 -0
  305. data/lib/datadog_api_client/v2/models/vulnerability_relationships.rb +123 -0
  306. data/lib/datadog_api_client/v2/models/vulnerability_relationships_affects.rb +123 -0
  307. data/lib/datadog_api_client/v2/models/{deployment_included.rb → vulnerability_relationships_affects_data.rb} +38 -29
  308. data/lib/datadog_api_client/v2/models/vulnerability_risks.rb +198 -0
  309. data/lib/datadog_api_client/v2/models/vulnerability_severity.rb +31 -0
  310. data/lib/datadog_api_client/v2/models/vulnerability_status.rb +30 -0
  311. data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +28 -0
  312. data/lib/datadog_api_client/v2/models/vulnerability_type.rb +67 -0
  313. data/lib/datadog_api_client/version.rb +1 -1
  314. metadata +194 -56
  315. data/examples/v2/app-deployment/DeployApp.rb +0 -11
  316. data/examples/v2/app-deployment/DisableApp.rb +0 -11
  317. data/lib/datadog_api_client/v2/api/app_deployment_api.rb +0 -168
  318. data/lib/datadog_api_client/v2/models/delete_apps_response_data_items_type.rb +0 -26
  319. data/lib/datadog_api_client/v2/models/deployment_relationship_data_type.rb +0 -26
  320. data/lib/datadog_api_client/v2/models/input_schema_data_attributes.rb +0 -107
  321. data/lib/datadog_api_client/v2/models/input_schema_data_attributes_parameters_items_data.rb +0 -105
  322. data/lib/datadog_api_client/v2/models/list_apps_response_data_items_type.rb +0 -26
  323. data/lib/datadog_api_client/v2/models/update_app_request_data_type.rb +0 -26
  324. data/lib/datadog_api_client/v2/models/update_app_response_data_type.rb +0 -26
  325. data/lib/datadog_api_client/v2/models/update_app_response_relationship.rb +0 -117
@@ -52,11 +52,11 @@ module DatadogAPIClient::V1
52
52
  # Only hosts that match one of the defined tags are imported into Datadog.
53
53
  attr_accessor :host_filters
54
54
 
55
- # Dictionary containing the key `excluded_resource_providers` which has to be a list of Microsoft Azure Resource Provider names.
56
- # This feature is currently being beta tested.
57
- # In order to enable all resource providers for metric collection, pass:
58
- # `metrics_config: {"excluded_resource_providers": []}` (i.e., an empty list for `excluded_resource_providers`).
59
- attr_accessor :metrics_config
55
+ # Enable Azure metrics for your organization.
56
+ attr_accessor :metrics_enabled
57
+
58
+ # Enable Azure metrics for your organization for resource providers where no resource provider config is specified.
59
+ attr_accessor :metrics_enabled_default
60
60
 
61
61
  # Your New Azure web application ID.
62
62
  attr_accessor :new_client_id
@@ -67,9 +67,15 @@ module DatadogAPIClient::V1
67
67
  # When enabled, Datadog collects metadata and configuration info from cloud resources (compute instances, databases, load balancers, etc.) monitored by this app registration.
68
68
  attr_accessor :resource_collection_enabled
69
69
 
70
+ # Configuration settings applied to resources from the specified Azure resource providers.
71
+ attr_accessor :resource_provider_configs
72
+
70
73
  # Your Azure Active Directory ID.
71
74
  attr_accessor :tenant_name
72
75
 
76
+ # Enable azure.usage metrics for your organization.
77
+ attr_accessor :usage_metrics_enabled
78
+
73
79
  attr_accessor :additional_properties
74
80
 
75
81
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -85,11 +91,14 @@ module DatadogAPIClient::V1
85
91
  :'custom_metrics_enabled' => :'custom_metrics_enabled',
86
92
  :'errors' => :'errors',
87
93
  :'host_filters' => :'host_filters',
88
- :'metrics_config' => :'metrics_config',
94
+ :'metrics_enabled' => :'metrics_enabled',
95
+ :'metrics_enabled_default' => :'metrics_enabled_default',
89
96
  :'new_client_id' => :'new_client_id',
90
97
  :'new_tenant_name' => :'new_tenant_name',
91
98
  :'resource_collection_enabled' => :'resource_collection_enabled',
92
- :'tenant_name' => :'tenant_name'
99
+ :'resource_provider_configs' => :'resource_provider_configs',
100
+ :'tenant_name' => :'tenant_name',
101
+ :'usage_metrics_enabled' => :'usage_metrics_enabled'
93
102
  }
94
103
  end
95
104
 
@@ -106,11 +115,14 @@ module DatadogAPIClient::V1
106
115
  :'custom_metrics_enabled' => :'Boolean',
107
116
  :'errors' => :'Array<String>',
108
117
  :'host_filters' => :'String',
109
- :'metrics_config' => :'AzureAccountMetricsConfig',
118
+ :'metrics_enabled' => :'Boolean',
119
+ :'metrics_enabled_default' => :'Boolean',
110
120
  :'new_client_id' => :'String',
111
121
  :'new_tenant_name' => :'String',
112
122
  :'resource_collection_enabled' => :'Boolean',
113
- :'tenant_name' => :'String'
123
+ :'resource_provider_configs' => :'Array<ResourceProviderConfig>',
124
+ :'tenant_name' => :'String',
125
+ :'usage_metrics_enabled' => :'Boolean'
114
126
  }
115
127
  end
116
128
 
@@ -170,8 +182,12 @@ module DatadogAPIClient::V1
170
182
  self.host_filters = attributes[:'host_filters']
171
183
  end
172
184
 
173
- if attributes.key?(:'metrics_config')
174
- self.metrics_config = attributes[:'metrics_config']
185
+ if attributes.key?(:'metrics_enabled')
186
+ self.metrics_enabled = attributes[:'metrics_enabled']
187
+ end
188
+
189
+ if attributes.key?(:'metrics_enabled_default')
190
+ self.metrics_enabled_default = attributes[:'metrics_enabled_default']
175
191
  end
176
192
 
177
193
  if attributes.key?(:'new_client_id')
@@ -186,9 +202,19 @@ module DatadogAPIClient::V1
186
202
  self.resource_collection_enabled = attributes[:'resource_collection_enabled']
187
203
  end
188
204
 
205
+ if attributes.key?(:'resource_provider_configs')
206
+ if (value = attributes[:'resource_provider_configs']).is_a?(Array)
207
+ self.resource_provider_configs = value
208
+ end
209
+ end
210
+
189
211
  if attributes.key?(:'tenant_name')
190
212
  self.tenant_name = attributes[:'tenant_name']
191
213
  end
214
+
215
+ if attributes.key?(:'usage_metrics_enabled')
216
+ self.usage_metrics_enabled = attributes[:'usage_metrics_enabled']
217
+ end
192
218
  end
193
219
 
194
220
  # Returns the object in the form of hash, with additionalProperties support.
@@ -226,11 +252,14 @@ module DatadogAPIClient::V1
226
252
  custom_metrics_enabled == o.custom_metrics_enabled &&
227
253
  errors == o.errors &&
228
254
  host_filters == o.host_filters &&
229
- metrics_config == o.metrics_config &&
255
+ metrics_enabled == o.metrics_enabled &&
256
+ metrics_enabled_default == o.metrics_enabled_default &&
230
257
  new_client_id == o.new_client_id &&
231
258
  new_tenant_name == o.new_tenant_name &&
232
259
  resource_collection_enabled == o.resource_collection_enabled &&
260
+ resource_provider_configs == o.resource_provider_configs &&
233
261
  tenant_name == o.tenant_name &&
262
+ usage_metrics_enabled == o.usage_metrics_enabled &&
234
263
  additional_properties == o.additional_properties
235
264
  end
236
265
 
@@ -238,7 +267,7 @@ module DatadogAPIClient::V1
238
267
  # @return [Integer] Hash code
239
268
  # @!visibility private
240
269
  def hash
241
- [app_service_plan_filters, automute, client_id, client_secret, container_app_filters, cspm_enabled, custom_metrics_enabled, errors, host_filters, metrics_config, new_client_id, new_tenant_name, resource_collection_enabled, tenant_name, additional_properties].hash
270
+ [app_service_plan_filters, automute, client_id, client_secret, container_app_filters, cspm_enabled, custom_metrics_enabled, errors, host_filters, metrics_enabled, metrics_enabled_default, new_client_id, new_tenant_name, resource_collection_enabled, resource_provider_configs, tenant_name, usage_metrics_enabled, additional_properties].hash
242
271
  end
243
272
  end
244
273
  end
@@ -57,8 +57,6 @@ module DatadogAPIClient::V1
57
57
  attr_accessor :reflow_type
58
58
 
59
59
  # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard.
60
- #
61
- # This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards.
62
60
  attr_accessor :restricted_roles
63
61
 
64
62
  # List of team names representing ownership of a dashboard.
@@ -25,6 +25,9 @@ module DatadogAPIClient::V1
25
25
  class LogsPipeline
26
26
  include BaseGenericModel
27
27
 
28
+ # A description of the pipeline.
29
+ attr_accessor :description
30
+
28
31
  # Filter for logs.
29
32
  attr_accessor :filter
30
33
 
@@ -43,6 +46,9 @@ module DatadogAPIClient::V1
43
46
  # Ordered list of processors in this pipeline.
44
47
  attr_accessor :processors
45
48
 
49
+ # A list of tags associated with the pipeline.
50
+ attr_accessor :tags
51
+
46
52
  # Type of pipeline.
47
53
  attr_accessor :type
48
54
 
@@ -52,12 +58,14 @@ module DatadogAPIClient::V1
52
58
  # @!visibility private
53
59
  def self.attribute_map
54
60
  {
61
+ :'description' => :'description',
55
62
  :'filter' => :'filter',
56
63
  :'id' => :'id',
57
64
  :'is_enabled' => :'is_enabled',
58
65
  :'is_read_only' => :'is_read_only',
59
66
  :'name' => :'name',
60
67
  :'processors' => :'processors',
68
+ :'tags' => :'tags',
61
69
  :'type' => :'type'
62
70
  }
63
71
  end
@@ -66,12 +74,14 @@ module DatadogAPIClient::V1
66
74
  # @!visibility private
67
75
  def self.openapi_types
68
76
  {
77
+ :'description' => :'String',
69
78
  :'filter' => :'LogsFilter',
70
79
  :'id' => :'String',
71
80
  :'is_enabled' => :'Boolean',
72
81
  :'is_read_only' => :'Boolean',
73
82
  :'name' => :'String',
74
83
  :'processors' => :'Array<LogsProcessor>',
84
+ :'tags' => :'Array<String>',
75
85
  :'type' => :'String'
76
86
  }
77
87
  end
@@ -94,6 +104,10 @@ module DatadogAPIClient::V1
94
104
  end
95
105
  }
96
106
 
107
+ if attributes.key?(:'description')
108
+ self.description = attributes[:'description']
109
+ end
110
+
97
111
  if attributes.key?(:'filter')
98
112
  self.filter = attributes[:'filter']
99
113
  end
@@ -120,6 +134,12 @@ module DatadogAPIClient::V1
120
134
  end
121
135
  end
122
136
 
137
+ if attributes.key?(:'tags')
138
+ if (value = attributes[:'tags']).is_a?(Array)
139
+ self.tags = value
140
+ end
141
+ end
142
+
123
143
  if attributes.key?(:'type')
124
144
  self.type = attributes[:'type']
125
145
  end
@@ -169,12 +189,14 @@ module DatadogAPIClient::V1
169
189
  def ==(o)
170
190
  return true if self.equal?(o)
171
191
  self.class == o.class &&
192
+ description == o.description &&
172
193
  filter == o.filter &&
173
194
  id == o.id &&
174
195
  is_enabled == o.is_enabled &&
175
196
  is_read_only == o.is_read_only &&
176
197
  name == o.name &&
177
198
  processors == o.processors &&
199
+ tags == o.tags &&
178
200
  type == o.type &&
179
201
  additional_properties == o.additional_properties
180
202
  end
@@ -183,7 +205,7 @@ module DatadogAPIClient::V1
183
205
  # @return [Integer] Hash code
184
206
  # @!visibility private
185
207
  def hash
186
- [filter, id, is_enabled, is_read_only, name, processors, type, additional_properties].hash
208
+ [description, filter, id, is_enabled, is_read_only, name, processors, tags, type, additional_properties].hash
187
209
  end
188
210
  end
189
211
  end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Aggregation methods for metric queries.
21
+ class MonitorFormulaAndFunctionCostAggregator
22
+ include BaseEnumModel
23
+
24
+ AVG = "avg".freeze
25
+ SUM = "sum".freeze
26
+ MAX = "max".freeze
27
+ MIN = "min".freeze
28
+ LAST = "last".freeze
29
+ AREA = "area".freeze
30
+ L2NORM = "l2norm".freeze
31
+ PERCENTILE = "percentile".freeze
32
+ STDDEV = "stddev".freeze
33
+ end
34
+ end
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Data source for cost queries.
21
+ class MonitorFormulaAndFunctionCostDataSource
22
+ include BaseEnumModel
23
+
24
+ METRICS = "metrics".freeze
25
+ CLOUD_COST = "cloud_cost".freeze
26
+ DATADOG_USAGE = "datadog_usage".freeze
27
+ end
28
+ end
@@ -17,15 +17,21 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # Dictionary containing the key `excluded_resource_providers` which has to be a list of Microsoft Azure Resource Provider names.
21
- # This feature is currently being beta tested.
22
- # In order to enable all resource providers for metric collection, pass:
23
- # `metrics_config: {"excluded_resource_providers": []}` (i.e., an empty list for `excluded_resource_providers`).
24
- class AzureAccountMetricsConfig
20
+ # A formula and functions cost query.
21
+ class MonitorFormulaAndFunctionCostQueryDefinition
25
22
  include BaseGenericModel
26
23
 
27
- # List of Microsoft Azure Resource Providers to exclude from metric collection.
28
- attr_accessor :excluded_resource_providers
24
+ # Aggregation methods for metric queries.
25
+ attr_accessor :aggregator
26
+
27
+ # Data source for cost queries.
28
+ attr_reader :data_source
29
+
30
+ # Name of the query for use in formulas.
31
+ attr_reader :name
32
+
33
+ # The monitor query.
34
+ attr_reader :query
29
35
 
30
36
  attr_accessor :additional_properties
31
37
 
@@ -33,7 +39,10 @@ module DatadogAPIClient::V1
33
39
  # @!visibility private
34
40
  def self.attribute_map
35
41
  {
36
- :'excluded_resource_providers' => :'excluded_resource_providers'
42
+ :'aggregator' => :'aggregator',
43
+ :'data_source' => :'data_source',
44
+ :'name' => :'name',
45
+ :'query' => :'query'
37
46
  }
38
47
  end
39
48
 
@@ -41,7 +50,10 @@ module DatadogAPIClient::V1
41
50
  # @!visibility private
42
51
  def self.openapi_types
43
52
  {
44
- :'excluded_resource_providers' => :'Array<String>'
53
+ :'aggregator' => :'MonitorFormulaAndFunctionCostAggregator',
54
+ :'data_source' => :'MonitorFormulaAndFunctionCostDataSource',
55
+ :'name' => :'String',
56
+ :'query' => :'String'
45
57
  }
46
58
  end
47
59
 
@@ -50,7 +62,7 @@ module DatadogAPIClient::V1
50
62
  # @!visibility private
51
63
  def initialize(attributes = {})
52
64
  if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccountMetricsConfig` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionCostQueryDefinition` initialize method"
54
66
  end
55
67
 
56
68
  self.additional_properties = {}
@@ -63,11 +75,61 @@ module DatadogAPIClient::V1
63
75
  end
64
76
  }
65
77
 
66
- if attributes.key?(:'excluded_resource_providers')
67
- if (value = attributes[:'excluded_resource_providers']).is_a?(Array)
68
- self.excluded_resource_providers = value
69
- end
78
+ if attributes.key?(:'aggregator')
79
+ self.aggregator = attributes[:'aggregator']
80
+ end
81
+
82
+ if attributes.key?(:'data_source')
83
+ self.data_source = attributes[:'data_source']
84
+ end
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes.key?(:'query')
91
+ self.query = attributes[:'query']
92
+ end
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ # @!visibility private
98
+ def valid?
99
+ return false if @data_source.nil?
100
+ return false if @name.nil?
101
+ return false if @query.nil?
102
+ true
103
+ end
104
+
105
+ # Custom attribute writer method with validation
106
+ # @param data_source [Object] Object to be assigned
107
+ # @!visibility private
108
+ def data_source=(data_source)
109
+ if data_source.nil?
110
+ fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.'
111
+ end
112
+ @data_source = data_source
113
+ end
114
+
115
+ # Custom attribute writer method with validation
116
+ # @param name [Object] Object to be assigned
117
+ # @!visibility private
118
+ def name=(name)
119
+ if name.nil?
120
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
121
+ end
122
+ @name = name
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param query [Object] Object to be assigned
127
+ # @!visibility private
128
+ def query=(query)
129
+ if query.nil?
130
+ fail ArgumentError, 'invalid value for "query", query cannot be nil.'
70
131
  end
132
+ @query = query
71
133
  end
72
134
 
73
135
  # Returns the object in the form of hash, with additionalProperties support.
@@ -96,7 +158,10 @@ module DatadogAPIClient::V1
96
158
  def ==(o)
97
159
  return true if self.equal?(o)
98
160
  self.class == o.class &&
99
- excluded_resource_providers == o.excluded_resource_providers &&
161
+ aggregator == o.aggregator &&
162
+ data_source == o.data_source &&
163
+ name == o.name &&
164
+ query == o.query &&
100
165
  additional_properties == o.additional_properties
101
166
  end
102
167
 
@@ -104,7 +169,7 @@ module DatadogAPIClient::V1
104
169
  # @return [Integer] Hash code
105
170
  # @!visibility private
106
171
  def hash
107
- [excluded_resource_providers, additional_properties].hash
172
+ [aggregator, data_source, name, query, additional_properties].hash
108
173
  end
109
174
  end
110
175
  end
@@ -26,7 +26,8 @@ module DatadogAPIClient::V1
26
26
  # List of class defined in oneOf (OpenAPI v3)
27
27
  def openapi_one_of
28
28
  [
29
- :'MonitorFormulaAndFunctionEventQueryDefinition'
29
+ :'MonitorFormulaAndFunctionEventQueryDefinition',
30
+ :'MonitorFormulaAndFunctionCostQueryDefinition'
30
31
  ]
31
32
  end
32
33
  # Builds the object
@@ -39,5 +39,6 @@ module DatadogAPIClient::V1
39
39
  ERROR_TRACKING_ALERT = "error-tracking alert".freeze
40
40
  DATABASE_MONITORING_ALERT = "database-monitoring alert".freeze
41
41
  NETWORK_PERFORMANCE_ALERT = "network-performance alert".freeze
42
+ COST_ALERT = "cost alert".freeze
42
43
  end
43
44
  end
@@ -57,7 +57,7 @@ module DatadogAPIClient::V1
57
57
  # The monitor query.
58
58
  attr_accessor :query
59
59
 
60
- # A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. `restricted_roles` is the successor of `locked`. For more information about `locked` and `restricted_roles`, see the [monitor options docs](https://docs.datadoghq.com/monitors/guide/monitor_api_options/#permissions-options).
60
+ # A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) to manage write authorization for individual monitors by teams and users, in addition to roles.
61
61
  attr_accessor :restricted_roles
62
62
 
63
63
  # Wrapper object with the different monitor states.
@@ -0,0 +1,115 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Configuration settings applied to resources from the specified Azure resource provider.
21
+ class ResourceProviderConfig
22
+ include BaseGenericModel
23
+
24
+ # Collect metrics for resources from this provider.
25
+ attr_accessor :metrics_enabled
26
+
27
+ # The provider namespace to apply this configuration to.
28
+ attr_accessor :namespace
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'metrics_enabled' => :'metrics_enabled',
37
+ :'namespace' => :'namespace'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'metrics_enabled' => :'Boolean',
46
+ :'namespace' => :'String'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ResourceProviderConfig` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'metrics_enabled')
69
+ self.metrics_enabled = attributes[:'metrics_enabled']
70
+ end
71
+
72
+ if attributes.key?(:'namespace')
73
+ self.namespace = attributes[:'namespace']
74
+ end
75
+ end
76
+
77
+ # Returns the object in the form of hash, with additionalProperties support.
78
+ # @return [Hash] Returns the object in the form of hash
79
+ # @!visibility private
80
+ def to_hash
81
+ hash = {}
82
+ self.class.attribute_map.each_pair do |attr, param|
83
+ value = self.send(attr)
84
+ if value.nil?
85
+ is_nullable = self.class.openapi_nullable.include?(attr)
86
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
87
+ end
88
+
89
+ hash[param] = _to_hash(value)
90
+ end
91
+ self.additional_properties.each_pair do |attr, value|
92
+ hash[attr] = value
93
+ end
94
+ hash
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param o [Object] Object to be compared
99
+ # @!visibility private
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ metrics_enabled == o.metrics_enabled &&
104
+ namespace == o.namespace &&
105
+ additional_properties == o.additional_properties
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Integer] Hash code
110
+ # @!visibility private
111
+ def hash
112
+ [metrics_enabled, namespace, additional_properties].hash
113
+ end
114
+ end
115
+ end
@@ -42,6 +42,9 @@ module DatadogAPIClient::V1
42
42
  # The parameters of the step.
43
43
  attr_accessor :params
44
44
 
45
+ # The public ID of the step.
46
+ attr_accessor :public_id
47
+
45
48
  # The time before declaring a step failed.
46
49
  attr_accessor :timeout
47
50
 
@@ -61,6 +64,7 @@ module DatadogAPIClient::V1
61
64
  :'name' => :'name',
62
65
  :'no_screenshot' => :'noScreenshot',
63
66
  :'params' => :'params',
67
+ :'public_id' => :'public_id',
64
68
  :'timeout' => :'timeout',
65
69
  :'type' => :'type'
66
70
  }
@@ -77,6 +81,7 @@ module DatadogAPIClient::V1
77
81
  :'name' => :'String',
78
82
  :'no_screenshot' => :'Boolean',
79
83
  :'params' => :'Object',
84
+ :'public_id' => :'String',
80
85
  :'timeout' => :'Integer',
81
86
  :'type' => :'SyntheticsStepType'
82
87
  }
@@ -128,6 +133,10 @@ module DatadogAPIClient::V1
128
133
  self.params = attributes[:'params']
129
134
  end
130
135
 
136
+ if attributes.key?(:'public_id')
137
+ self.public_id = attributes[:'public_id']
138
+ end
139
+
131
140
  if attributes.key?(:'timeout')
132
141
  self.timeout = attributes[:'timeout']
133
142
  end
@@ -170,6 +179,7 @@ module DatadogAPIClient::V1
170
179
  name == o.name &&
171
180
  no_screenshot == o.no_screenshot &&
172
181
  params == o.params &&
182
+ public_id == o.public_id &&
173
183
  timeout == o.timeout &&
174
184
  type == o.type &&
175
185
  additional_properties == o.additional_properties
@@ -179,7 +189,7 @@ module DatadogAPIClient::V1
179
189
  # @return [Integer] Hash code
180
190
  # @!visibility private
181
191
  def hash
182
- [allow_failure, always_execute, exit_if_succeed, is_critical, name, no_screenshot, params, timeout, type, additional_properties].hash
192
+ [allow_failure, always_execute, exit_if_succeed, is_critical, name, no_screenshot, params, public_id, timeout, type, additional_properties].hash
183
193
  end
184
194
  end
185
195
  end