datadog_api_client 2.12.0 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/conftest.py +7 -0
  4. data/.generator/poetry.lock +45 -75
  5. data/.generator/pyproject.toml +7 -7
  6. data/.generator/schemas/v1/openapi.yaml +257 -19
  7. data/.generator/schemas/v2/openapi.yaml +3020 -911
  8. data/.generator/src/generator/formatter.py +43 -32
  9. data/.generator/src/generator/openapi.py +4 -2
  10. data/.generator/src/generator/templates/api_client.j2 +81 -53
  11. data/.generator/src/generator/templates/configuration.j2 +21 -0
  12. data/.github/workflows/test_integration.yml +7 -1
  13. data/.pre-commit-config.yaml +4 -4
  14. data/CHANGELOG.md +62 -0
  15. data/README.md +23 -0
  16. data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
  17. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
  18. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
  19. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
  20. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +43 -0
  21. data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
  22. data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
  23. data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
  24. data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
  25. data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
  26. data/examples/v1/organizations/UpdateOrg.rb +1 -1
  27. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
  28. data/examples/v1/users/CreateUser.rb +1 -1
  29. data/examples/v1/users/CreateUser_266604071.rb +13 -0
  30. data/examples/v1/users/UpdateUser.rb +1 -1
  31. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
  32. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
  33. data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
  34. data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
  35. data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
  36. data/examples/v2/downtimes/CancelDowntime.rb +11 -0
  37. data/examples/v2/downtimes/CreateDowntime.rb +26 -0
  38. data/examples/v2/downtimes/GetDowntime.rb +11 -0
  39. data/examples/v2/downtimes/ListDowntimes.rb +8 -0
  40. data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
  41. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
  42. data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
  43. data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
  44. data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
  45. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
  46. data/examples/v2/spans/AggregateSpans.rb +25 -0
  47. data/examples/v2/spans/ListSpans.rb +25 -0
  48. data/examples/v2/spans/ListSpansGet.rb +5 -0
  49. data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
  50. data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
  51. data/examples/v2/teams/CreateTeam.rb +2 -2
  52. data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
  53. data/examples/v2/teams/GetUserMemberships.rb +8 -0
  54. data/examples/v2/teams/UpdateTeam.rb +9 -0
  55. data/lib/datadog_api_client/api_client.rb +81 -53
  56. data/lib/datadog_api_client/configuration.rb +28 -0
  57. data/lib/datadog_api_client/inflector.rb +97 -1
  58. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +2 -2
  59. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +10 -10
  60. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  61. data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
  62. data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
  63. data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
  64. data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
  65. data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
  66. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
  67. data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
  68. data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
  69. data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
  70. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
  71. data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
  72. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  73. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  74. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  75. data/lib/datadog_api_client/v1/models/organization_settings.rb +8 -0
  76. data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
  77. data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
  78. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
  79. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  80. data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
  81. data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
  82. data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
  83. data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
  84. data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
  85. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +24 -4
  86. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +24 -4
  87. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +24 -4
  88. data/lib/datadog_api_client/v1/models/user.rb +8 -0
  89. data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
  90. data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
  91. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -5
  92. data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
  93. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
  94. data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
  95. data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
  96. data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
  97. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  98. data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
  99. data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
  100. data/lib/datadog_api_client/v2/api/teams_api.rb +65 -0
  101. data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
  102. data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
  103. data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
  104. data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
  105. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
  106. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +102 -0
  107. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
  108. data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
  109. data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
  110. data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
  111. data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
  112. data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
  113. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
  114. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +13 -1
  115. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
  116. data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
  117. data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
  118. data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
  119. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +36 -1
  120. data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
  121. data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
  122. data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
  123. data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
  124. data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
  125. data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
  126. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
  127. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
  128. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
  129. data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
  130. data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
  131. data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
  132. data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
  133. data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
  134. data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
  135. data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
  136. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
  137. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
  138. data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
  139. data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
  140. data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
  141. data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
  142. data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
  143. data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
  144. data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
  145. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
  146. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +116 -0
  147. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
  148. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
  149. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
  150. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
  151. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
  152. data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
  153. data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
  154. data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
  155. data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
  156. data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
  157. data/lib/datadog_api_client/v2/models/{team_data.rb → downtime_update_request_data.rb} +9 -9
  158. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
  159. data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
  160. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -1
  161. data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
  162. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
  163. data/lib/datadog_api_client/v2/models/list_downtimes_response.rb +104 -0
  164. data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
  165. data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
  166. data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
  167. data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
  168. data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
  169. data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
  170. data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
  171. data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +1 -1
  172. data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
  173. data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
  174. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
  175. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
  176. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
  177. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
  178. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
  179. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
  180. data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
  181. data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
  182. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
  183. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +2 -1
  184. data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
  185. data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
  186. data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
  187. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
  188. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
  189. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
  190. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
  191. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
  192. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
  193. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
  194. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
  195. data/lib/datadog_api_client/v2/models/service_definition_data.rb +11 -1
  196. data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
  197. data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
  198. data/lib/datadog_api_client/v2/models/span.rb +100 -0
  199. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
  200. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
  201. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
  202. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
  203. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
  204. data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
  205. data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
  206. data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
  207. data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
  209. data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
  210. data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
  211. data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
  212. data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
  213. data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
  214. data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
  215. data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
  216. data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
  217. data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
  218. data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
  219. data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
  220. data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
  221. data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
  222. data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
  223. data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
  224. data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
  225. data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
  226. data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
  227. data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
  228. data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
  229. data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
  230. data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
  231. data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
  232. data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
  233. data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
  234. data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
  235. data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
  236. data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
  237. data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
  238. data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
  239. data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
  240. data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
  241. data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
  242. data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
  243. data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
  244. data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
  245. data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
  246. data/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +11 -1
  247. data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
  248. data/lib/datadog_api_client/version.rb +1 -1
  249. data/spec/configuration_spec.rb +17 -0
  250. data/spec/retry_spec.rb +44 -0
  251. metadata +119 -3
@@ -0,0 +1,102 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # JSON object containing all event attributes and their associated values.
21
+ class CIAppPipelineEventAttributes
22
+ include BaseGenericModel
23
+
24
+ # JSON object of attributes from CI Visibility pipeline events.
25
+ attr_accessor :attributes
26
+
27
+ # Pipeline execution level.
28
+ attr_accessor :ci_level
29
+
30
+ # Array of tags associated with your event.
31
+ attr_accessor :tags
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ # @!visibility private
35
+ def self.attribute_map
36
+ {
37
+ :'attributes' => :'attributes',
38
+ :'ci_level' => :'ci_level',
39
+ :'tags' => :'tags'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ # @!visibility private
45
+ def self.openapi_types
46
+ {
47
+ :'attributes' => :'Hash<String, Object>',
48
+ :'ci_level' => :'CIAppPipelineLevel',
49
+ :'tags' => :'Array<String>'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param attributes [Hash] Model attributes in the form of hash
55
+ # @!visibility private
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventAttributes` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+ h[k.to_sym] = v
67
+ }
68
+
69
+ if attributes.key?(:'attributes')
70
+ self.attributes = attributes[:'attributes']
71
+ end
72
+
73
+ if attributes.key?(:'ci_level')
74
+ self.ci_level = attributes[:'ci_level']
75
+ end
76
+
77
+ if attributes.key?(:'tags')
78
+ if (value = attributes[:'tags']).is_a?(Array)
79
+ self.tags = value
80
+ end
81
+ end
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param o [Object] Object to be compared
86
+ # @!visibility private
87
+ def ==(o)
88
+ return true if self.equal?(o)
89
+ self.class == o.class &&
90
+ attributes == o.attributes &&
91
+ ci_level == o.ci_level &&
92
+ tags == o.tags
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ # @!visibility private
98
+ def hash
99
+ [attributes, ci_level, tags].hash
100
+ end
101
+ end
102
+ end
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class CIAppPipelineEventPipeline
22
22
  include BaseGenericModel
23
23
 
24
- # Time when the pipeline run finished. The time format must be RFC3339.
24
+ # Time when the pipeline run finished. It cannot be older than 18 hours in the past from the current time. The time format must be RFC3339.
25
25
  attr_reader :_end
26
26
 
27
27
  # Contains information of the CI error.
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Pipeline execution level.
21
+ class CIAppPipelineLevel
22
+ include BaseEnumModel
23
+
24
+ PIPELINE = "pipeline".freeze
25
+ STAGE = "stage".freeze
26
+ JOB = "job".freeze
27
+ STEP = "step".freeze
28
+ CUSTOM = "custom".freeze
29
+ end
30
+ end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
25
25
  attr_accessor :from
26
26
 
27
- # The search query following the Log search syntax.
27
+ # The search query following the CI Visibility Explorer search syntax.
28
28
  attr_accessor :query
29
29
 
30
30
  # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Test run level.
21
+ class CIAppTestLevel
22
+ include BaseEnumModel
23
+
24
+ SESSION = "session".freeze
25
+ MODULE = "module".freeze
26
+ SUITE = "suite".freeze
27
+ TEST = "test".freeze
28
+ end
29
+ end
@@ -46,7 +46,7 @@ module DatadogAPIClient::V2
46
46
  {
47
47
  :'data' => :'CIAppTestsAggregationBucketsResponse',
48
48
  :'links' => :'CIAppResponseLinks',
49
- :'meta' => :'CIAppResponseMetadata'
49
+ :'meta' => :'CIAppResponseMetadataWithPagination'
50
50
  }
51
51
  end
52
52
 
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
25
25
  attr_accessor :from
26
26
 
27
- # The search query following the Log search syntax.
27
+ # The search query following the CI Visibility Explorer search syntax.
28
28
  attr_accessor :query
29
29
 
30
30
  # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
21
21
  class CloudConfigurationRuleComplianceSignalOptions
22
22
  include BaseGenericModel
23
23
 
24
+ # The default activation status.
25
+ attr_accessor :default_activation_status
26
+
27
+ # The default group by fields.
28
+ attr_accessor :default_group_by_fields
29
+
24
30
  # Whether signals will be sent.
25
31
  attr_accessor :user_activation_status
26
32
 
@@ -31,6 +37,8 @@ module DatadogAPIClient::V2
31
37
  # @!visibility private
32
38
  def self.attribute_map
33
39
  {
40
+ :'default_activation_status' => :'defaultActivationStatus',
41
+ :'default_group_by_fields' => :'defaultGroupByFields',
34
42
  :'user_activation_status' => :'userActivationStatus',
35
43
  :'user_group_by_fields' => :'userGroupByFields'
36
44
  }
@@ -40,6 +48,8 @@ module DatadogAPIClient::V2
40
48
  # @!visibility private
41
49
  def self.openapi_types
42
50
  {
51
+ :'default_activation_status' => :'Boolean',
52
+ :'default_group_by_fields' => :'Array<String>',
43
53
  :'user_activation_status' => :'Boolean',
44
54
  :'user_group_by_fields' => :'Array<String>'
45
55
  }
@@ -49,6 +59,8 @@ module DatadogAPIClient::V2
49
59
  # @!visibility private
50
60
  def self.openapi_nullable
51
61
  Set.new([
62
+ :'default_activation_status',
63
+ :'default_group_by_fields',
52
64
  :'user_activation_status',
53
65
  :'user_group_by_fields',
54
66
  ])
@@ -70,6 +82,16 @@ module DatadogAPIClient::V2
70
82
  h[k.to_sym] = v
71
83
  }
72
84
 
85
+ if attributes.key?(:'default_activation_status')
86
+ self.default_activation_status = attributes[:'default_activation_status']
87
+ end
88
+
89
+ if attributes.key?(:'default_group_by_fields')
90
+ if (value = attributes[:'default_group_by_fields']).is_a?(Array)
91
+ self.default_group_by_fields = value
92
+ end
93
+ end
94
+
73
95
  if attributes.key?(:'user_activation_status')
74
96
  self.user_activation_status = attributes[:'user_activation_status']
75
97
  end
@@ -87,6 +109,8 @@ module DatadogAPIClient::V2
87
109
  def ==(o)
88
110
  return true if self.equal?(o)
89
111
  self.class == o.class &&
112
+ default_activation_status == o.default_activation_status &&
113
+ default_group_by_fields == o.default_group_by_fields &&
90
114
  user_activation_status == o.user_activation_status &&
91
115
  user_group_by_fields == o.user_group_by_fields
92
116
  end
@@ -95,7 +119,7 @@ module DatadogAPIClient::V2
95
119
  # @return [Integer] Hash code
96
120
  # @!visibility private
97
121
  def hash
98
- [user_activation_status, user_group_by_fields].hash
122
+ [default_activation_status, default_group_by_fields, user_activation_status, user_group_by_fields].hash
99
123
  end
100
124
  end
101
125
  end
@@ -28,6 +28,9 @@ module DatadogAPIClient::V2
28
28
  # How to generate compliance signals. Useful for cloud_configuration rules only.
29
29
  attr_reader :compliance_signal_options
30
30
 
31
+ # Additional queries to filter matched events before they are processed.
32
+ attr_accessor :filters
33
+
31
34
  # Whether the rule is enabled.
32
35
  attr_reader :is_enabled
33
36
 
@@ -52,6 +55,7 @@ module DatadogAPIClient::V2
52
55
  {
53
56
  :'cases' => :'cases',
54
57
  :'compliance_signal_options' => :'complianceSignalOptions',
58
+ :'filters' => :'filters',
55
59
  :'is_enabled' => :'isEnabled',
56
60
  :'message' => :'message',
57
61
  :'name' => :'name',
@@ -67,6 +71,7 @@ module DatadogAPIClient::V2
67
71
  {
68
72
  :'cases' => :'Array<CloudConfigurationRuleCaseCreate>',
69
73
  :'compliance_signal_options' => :'CloudConfigurationRuleComplianceSignalOptions',
74
+ :'filters' => :'Array<SecurityMonitoringFilter>',
70
75
  :'is_enabled' => :'Boolean',
71
76
  :'message' => :'String',
72
77
  :'name' => :'String',
@@ -102,6 +107,12 @@ module DatadogAPIClient::V2
102
107
  self.compliance_signal_options = attributes[:'compliance_signal_options']
103
108
  end
104
109
 
110
+ if attributes.key?(:'filters')
111
+ if (value = attributes[:'filters']).is_a?(Array)
112
+ self.filters = value
113
+ end
114
+ end
115
+
105
116
  if attributes.key?(:'is_enabled')
106
117
  self.is_enabled = attributes[:'is_enabled']
107
118
  end
@@ -210,6 +221,7 @@ module DatadogAPIClient::V2
210
221
  self.class == o.class &&
211
222
  cases == o.cases &&
212
223
  compliance_signal_options == o.compliance_signal_options &&
224
+ filters == o.filters &&
213
225
  is_enabled == o.is_enabled &&
214
226
  message == o.message &&
215
227
  name == o.name &&
@@ -222,7 +234,7 @@ module DatadogAPIClient::V2
222
234
  # @return [Integer] Hash code
223
235
  # @!visibility private
224
236
  def hash
225
- [cases, compliance_signal_options, is_enabled, message, name, options, tags, type].hash
237
+ [cases, compliance_signal_options, filters, is_enabled, message, name, options, tags, type].hash
226
238
  end
227
239
  end
228
240
  end
@@ -21,9 +21,15 @@ module DatadogAPIClient::V2
21
21
  class CloudWorkloadSecurityAgentRuleAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # The version of the agent.
25
+ attr_accessor :agent_constraint
26
+
24
27
  # The category of the Agent rule.
25
28
  attr_accessor :category
26
29
 
30
+ # The ID of the user who created the rule.
31
+ attr_accessor :creation_author_uu_id
32
+
27
33
  # When the Agent rule was created, timestamp in milliseconds.
28
34
  attr_accessor :creation_date
29
35
 
@@ -45,6 +51,12 @@ module DatadogAPIClient::V2
45
51
  # The name of the Agent rule.
46
52
  attr_accessor :name
47
53
 
54
+ # The ID of the user who updated the rule.
55
+ attr_accessor :update_author_uu_id
56
+
57
+ # Timestamp in milliseconds when the Agent rule was last updated.
58
+ attr_accessor :update_date
59
+
48
60
  # When the Agent rule was last updated, timestamp in milliseconds.
49
61
  attr_accessor :updated_at
50
62
 
@@ -58,7 +70,9 @@ module DatadogAPIClient::V2
58
70
  # @!visibility private
59
71
  def self.attribute_map
60
72
  {
73
+ :'agent_constraint' => :'agentConstraint',
61
74
  :'category' => :'category',
75
+ :'creation_author_uu_id' => :'creationAuthorUuId',
62
76
  :'creation_date' => :'creationDate',
63
77
  :'creator' => :'creator',
64
78
  :'default_rule' => :'defaultRule',
@@ -66,6 +80,8 @@ module DatadogAPIClient::V2
66
80
  :'enabled' => :'enabled',
67
81
  :'expression' => :'expression',
68
82
  :'name' => :'name',
83
+ :'update_author_uu_id' => :'updateAuthorUuId',
84
+ :'update_date' => :'updateDate',
69
85
  :'updated_at' => :'updatedAt',
70
86
  :'updater' => :'updater',
71
87
  :'version' => :'version'
@@ -76,7 +92,9 @@ module DatadogAPIClient::V2
76
92
  # @!visibility private
77
93
  def self.openapi_types
78
94
  {
95
+ :'agent_constraint' => :'String',
79
96
  :'category' => :'String',
97
+ :'creation_author_uu_id' => :'String',
80
98
  :'creation_date' => :'Integer',
81
99
  :'creator' => :'CloudWorkloadSecurityAgentRuleCreatorAttributes',
82
100
  :'default_rule' => :'Boolean',
@@ -84,6 +102,8 @@ module DatadogAPIClient::V2
84
102
  :'enabled' => :'Boolean',
85
103
  :'expression' => :'String',
86
104
  :'name' => :'String',
105
+ :'update_author_uu_id' => :'String',
106
+ :'update_date' => :'Integer',
87
107
  :'updated_at' => :'Integer',
88
108
  :'updater' => :'CloudWorkloadSecurityAgentRuleUpdaterAttributes',
89
109
  :'version' => :'Integer'
@@ -106,10 +126,18 @@ module DatadogAPIClient::V2
106
126
  h[k.to_sym] = v
107
127
  }
108
128
 
129
+ if attributes.key?(:'agent_constraint')
130
+ self.agent_constraint = attributes[:'agent_constraint']
131
+ end
132
+
109
133
  if attributes.key?(:'category')
110
134
  self.category = attributes[:'category']
111
135
  end
112
136
 
137
+ if attributes.key?(:'creation_author_uu_id')
138
+ self.creation_author_uu_id = attributes[:'creation_author_uu_id']
139
+ end
140
+
113
141
  if attributes.key?(:'creation_date')
114
142
  self.creation_date = attributes[:'creation_date']
115
143
  end
@@ -138,6 +166,14 @@ module DatadogAPIClient::V2
138
166
  self.name = attributes[:'name']
139
167
  end
140
168
 
169
+ if attributes.key?(:'update_author_uu_id')
170
+ self.update_author_uu_id = attributes[:'update_author_uu_id']
171
+ end
172
+
173
+ if attributes.key?(:'update_date')
174
+ self.update_date = attributes[:'update_date']
175
+ end
176
+
141
177
  if attributes.key?(:'updated_at')
142
178
  self.updated_at = attributes[:'updated_at']
143
179
  end
@@ -157,7 +193,9 @@ module DatadogAPIClient::V2
157
193
  def ==(o)
158
194
  return true if self.equal?(o)
159
195
  self.class == o.class &&
196
+ agent_constraint == o.agent_constraint &&
160
197
  category == o.category &&
198
+ creation_author_uu_id == o.creation_author_uu_id &&
161
199
  creation_date == o.creation_date &&
162
200
  creator == o.creator &&
163
201
  default_rule == o.default_rule &&
@@ -165,6 +203,8 @@ module DatadogAPIClient::V2
165
203
  enabled == o.enabled &&
166
204
  expression == o.expression &&
167
205
  name == o.name &&
206
+ update_author_uu_id == o.update_author_uu_id &&
207
+ update_date == o.update_date &&
168
208
  updated_at == o.updated_at &&
169
209
  updater == o.updater &&
170
210
  version == o.version
@@ -174,7 +214,7 @@ module DatadogAPIClient::V2
174
214
  # @return [Integer] Hash code
175
215
  # @!visibility private
176
216
  def hash
177
- [category, creation_date, creator, default_rule, description, enabled, expression, name, updated_at, updater, version].hash
217
+ [agent_constraint, category, creation_author_uu_id, creation_date, creator, default_rule, description, enabled, expression, name, update_author_uu_id, update_date, updated_at, updater, version].hash
178
218
  end
179
219
  end
180
220
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ConfluentAccountResourceAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
25
+ attr_accessor :enable_custom_metrics
26
+
24
27
  # The ID associated with a Confluent resource.
25
28
  attr_accessor :id
26
29
 
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
34
37
  # @!visibility private
35
38
  def self.attribute_map
36
39
  {
40
+ :'enable_custom_metrics' => :'enable_custom_metrics',
37
41
  :'id' => :'id',
38
42
  :'resource_type' => :'resource_type',
39
43
  :'tags' => :'tags'
@@ -44,6 +48,7 @@ module DatadogAPIClient::V2
44
48
  # @!visibility private
45
49
  def self.openapi_types
46
50
  {
51
+ :'enable_custom_metrics' => :'Boolean',
47
52
  :'id' => :'String',
48
53
  :'resource_type' => :'String',
49
54
  :'tags' => :'Array<String>'
@@ -66,6 +71,10 @@ module DatadogAPIClient::V2
66
71
  h[k.to_sym] = v
67
72
  }
68
73
 
74
+ if attributes.key?(:'enable_custom_metrics')
75
+ self.enable_custom_metrics = attributes[:'enable_custom_metrics']
76
+ end
77
+
69
78
  if attributes.key?(:'id')
70
79
  self.id = attributes[:'id']
71
80
  end
@@ -105,6 +114,7 @@ module DatadogAPIClient::V2
105
114
  def ==(o)
106
115
  return true if self.equal?(o)
107
116
  self.class == o.class &&
117
+ enable_custom_metrics == o.enable_custom_metrics &&
108
118
  id == o.id &&
109
119
  resource_type == o.resource_type &&
110
120
  tags == o.tags
@@ -114,7 +124,7 @@ module DatadogAPIClient::V2
114
124
  # @return [Integer] Hash code
115
125
  # @!visibility private
116
126
  def hash
117
- [id, resource_type, tags].hash
127
+ [enable_custom_metrics, id, resource_type, tags].hash
118
128
  end
119
129
  end
120
130
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ConfluentResourceRequestAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
25
+ attr_accessor :enable_custom_metrics
26
+
24
27
  # The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
25
28
  attr_reader :resource_type
26
29
 
@@ -31,6 +34,7 @@ module DatadogAPIClient::V2
31
34
  # @!visibility private
32
35
  def self.attribute_map
33
36
  {
37
+ :'enable_custom_metrics' => :'enable_custom_metrics',
34
38
  :'resource_type' => :'resource_type',
35
39
  :'tags' => :'tags'
36
40
  }
@@ -40,6 +44,7 @@ module DatadogAPIClient::V2
40
44
  # @!visibility private
41
45
  def self.openapi_types
42
46
  {
47
+ :'enable_custom_metrics' => :'Boolean',
43
48
  :'resource_type' => :'String',
44
49
  :'tags' => :'Array<String>'
45
50
  }
@@ -61,6 +66,10 @@ module DatadogAPIClient::V2
61
66
  h[k.to_sym] = v
62
67
  }
63
68
 
69
+ if attributes.key?(:'enable_custom_metrics')
70
+ self.enable_custom_metrics = attributes[:'enable_custom_metrics']
71
+ end
72
+
64
73
  if attributes.key?(:'resource_type')
65
74
  self.resource_type = attributes[:'resource_type']
66
75
  end
@@ -96,6 +105,7 @@ module DatadogAPIClient::V2
96
105
  def ==(o)
97
106
  return true if self.equal?(o)
98
107
  self.class == o.class &&
108
+ enable_custom_metrics == o.enable_custom_metrics &&
99
109
  resource_type == o.resource_type &&
100
110
  tags == o.tags
101
111
  end
@@ -104,7 +114,7 @@ module DatadogAPIClient::V2
104
114
  # @return [Integer] Hash code
105
115
  # @!visibility private
106
116
  def hash
107
- [resource_type, tags].hash
117
+ [enable_custom_metrics, resource_type, tags].hash
108
118
  end
109
119
  end
110
120
  end
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
21
21
  class ConfluentResourceResponseAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
25
+ attr_accessor :enable_custom_metrics
26
+
27
+ # The ID associated with the Confluent resource.
28
+ attr_accessor :id
29
+
24
30
  # The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
25
31
  attr_reader :resource_type
26
32
 
@@ -31,6 +37,8 @@ module DatadogAPIClient::V2
31
37
  # @!visibility private
32
38
  def self.attribute_map
33
39
  {
40
+ :'enable_custom_metrics' => :'enable_custom_metrics',
41
+ :'id' => :'id',
34
42
  :'resource_type' => :'resource_type',
35
43
  :'tags' => :'tags'
36
44
  }
@@ -40,6 +48,8 @@ module DatadogAPIClient::V2
40
48
  # @!visibility private
41
49
  def self.openapi_types
42
50
  {
51
+ :'enable_custom_metrics' => :'Boolean',
52
+ :'id' => :'String',
43
53
  :'resource_type' => :'String',
44
54
  :'tags' => :'Array<String>'
45
55
  }
@@ -61,6 +71,14 @@ module DatadogAPIClient::V2
61
71
  h[k.to_sym] = v
62
72
  }
63
73
 
74
+ if attributes.key?(:'enable_custom_metrics')
75
+ self.enable_custom_metrics = attributes[:'enable_custom_metrics']
76
+ end
77
+
78
+ if attributes.key?(:'id')
79
+ self.id = attributes[:'id']
80
+ end
81
+
64
82
  if attributes.key?(:'resource_type')
65
83
  self.resource_type = attributes[:'resource_type']
66
84
  end
@@ -96,6 +114,8 @@ module DatadogAPIClient::V2
96
114
  def ==(o)
97
115
  return true if self.equal?(o)
98
116
  self.class == o.class &&
117
+ enable_custom_metrics == o.enable_custom_metrics &&
118
+ id == o.id &&
99
119
  resource_type == o.resource_type &&
100
120
  tags == o.tags
101
121
  end
@@ -104,7 +124,7 @@ module DatadogAPIClient::V2
104
124
  # @return [Integer] Hash code
105
125
  # @!visibility private
106
126
  def hash
107
- [resource_type, tags].hash
127
+ [enable_custom_metrics, id, resource_type, tags].hash
108
128
  end
109
129
  end
110
130
  end