datadog_api_client 2.33.0 → 2.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +2 -1
  4. data/.generator/schemas/v1/openapi.yaml +77 -6
  5. data/.generator/schemas/v2/openapi.yaml +3218 -855
  6. data/.generator/src/generator/formatter.py +2 -2
  7. data/.generator/src/generator/openapi.py +1 -1
  8. data/.generator/src/generator/templates/configuration.j2 +2 -2
  9. data/.github/workflows/publish.yml +16 -8
  10. data/.github/workflows/release.yml +57 -61
  11. data/CHANGELOG.md +35 -0
  12. data/Gemfile +3 -1
  13. data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
  14. data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
  15. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
  16. data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
  17. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
  18. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +32 -0
  19. data/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +3 -2
  20. data/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +8 -0
  21. data/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +8 -2
  22. data/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
  23. data/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +1 -1
  24. data/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +1 -1
  25. data/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +8 -0
  26. data/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +8 -2
  27. data/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +1 -1
  28. data/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +5 -0
  29. data/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +1 -1
  30. data/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +1 -1
  31. data/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +25 -0
  32. data/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +12 -4
  33. data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +3 -4
  34. data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
  35. data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
  36. data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
  37. data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
  38. data/examples/v2/dora-metrics/GetDORADeployment.rb +5 -0
  39. data/examples/v2/dora-metrics/GetDORAFailure.rb +5 -0
  40. data/examples/v2/dora-metrics/ListDORADeployments.rb +16 -0
  41. data/examples/v2/dora-metrics/ListDORAFailures.rb +16 -0
  42. data/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +5 -0
  43. data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +19 -17
  44. data/examples/v2/on-call/CreateOnCallSchedule.rb +11 -15
  45. data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +2 -2
  46. data/examples/v2/on-call/DeleteOnCallSchedule.rb +2 -2
  47. data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +6 -3
  48. data/examples/v2/on-call/GetOnCallSchedule.rb +2 -2
  49. data/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +5 -0
  50. data/examples/v2/on-call/GetScheduleOnCallUser.rb +8 -0
  51. data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
  52. data/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +57 -0
  53. data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +8 -9
  54. data/examples/v2/on-call/UpdateOnCallSchedule.rb +11 -16
  55. data/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +5 -0
  56. data/examples/v2/on-call-paging/CreateOnCallPage.rb +23 -0
  57. data/examples/v2/on-call-paging/EscalateOnCallPage.rb +5 -0
  58. data/examples/v2/on-call-paging/ResolveOnCallPage.rb +5 -0
  59. data/examples/v2/rum-metrics/CreateRumMetric.rb +1 -1
  60. data/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +9 -0
  61. data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
  62. data/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +21 -0
  63. data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
  64. data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
  65. data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
  66. data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
  67. data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -0
  68. data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
  69. data/examples/v2/workflow-automation/CreateWorkflow.rb +0 -1
  70. data/examples/v2/workflow-automation/UpdateWorkflow.rb +0 -1
  71. data/lib/datadog_api_client/configuration.rb +203 -17
  72. data/lib/datadog_api_client/inflector.rb +138 -49
  73. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
  74. data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
  75. data/lib/datadog_api_client/{v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb → v1/models/monitor_draft_status.rb} +11 -6
  76. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  77. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
  78. data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
  79. data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +2 -2
  80. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +2 -2
  81. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +2 -2
  82. data/lib/datadog_api_client/v1/models/synthetics_assertion_target_value.rb +63 -0
  83. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +2 -2
  84. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
  85. data/lib/datadog_api_client/v2/api/csm_threats_api.rb +424 -52
  86. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +344 -16
  87. data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -5
  88. data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +25 -3
  89. data/lib/datadog_api_client/v2/api/on_call_api.rb +301 -24
  90. data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
  91. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  92. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +146 -0
  93. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +322 -0
  94. data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
  95. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams.rb → cloud_workload_security_agent_policies_list_response.rb} +5 -5
  96. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +300 -0
  97. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_attributes.rb +167 -0
  98. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_data.rb +144 -0
  99. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_request.rb +123 -0
  100. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_data.rb +125 -0
  101. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_response.rb +105 -0
  102. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_type.rb +26 -0
  103. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_policy_update_attributes.rb} +46 -33
  104. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_data.rb +154 -0
  105. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_request.rb +123 -0
  106. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_updater_attributes.rb +123 -0
  107. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +24 -4
  108. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
  109. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_rule_action_set.rb} +62 -33
  110. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +67 -19
  111. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +83 -5
  112. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
  113. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +2 -2
  114. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +3 -3
  115. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +4 -4
  116. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +1 -1
  117. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +2 -2
  118. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +1 -1
  119. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +85 -7
  120. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +4 -4
  121. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +2 -2
  122. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +3 -3
  123. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +2 -2
  124. data/lib/datadog_api_client/v2/models/create_page_request.rb +105 -0
  125. data/lib/datadog_api_client/v2/models/create_page_request_data.rb +133 -0
  126. data/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +187 -0
  127. data/lib/datadog_api_client/v2/models/create_page_request_data_attributes_target.rb +115 -0
  128. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → create_page_request_data_type.rb} +3 -3
  129. data/lib/datadog_api_client/v2/models/create_page_response.rb +105 -0
  130. data/lib/datadog_api_client/v2/models/create_page_response_data.rb +133 -0
  131. data/lib/datadog_api_client/v2/models/create_page_response_data_type.rb +26 -0
  132. data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +2 -24
  133. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams.rb → data_relationships_teams.rb} +3 -3
  134. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items.rb → data_relationships_teams_data_items.rb} +3 -3
  135. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items_type.rb → data_relationships_teams_data_items_type.rb} +1 -1
  136. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
  137. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
  138. data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
  139. data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
  140. data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
  141. data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → dora_failure_response.rb} +5 -5
  142. data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
  143. data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
  144. data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
  145. data/lib/datadog_api_client/v2/models/dora_list_deployments_request.rb +123 -0
  146. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_attributes.rb +163 -0
  147. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data.rb +133 -0
  148. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data_type.rb +26 -0
  149. data/lib/datadog_api_client/v2/models/dora_list_failures_request.rb +123 -0
  150. data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +163 -0
  151. data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +133 -0
  152. data/lib/datadog_api_client/v2/models/dora_list_failures_request_data_type.rb +26 -0
  153. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams.rb → dora_list_response.rb} +5 -5
  154. data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +1 -21
  155. data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
  156. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +1 -11
  157. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +2 -2
  158. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +2 -2
  159. data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +1 -1
  160. data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +2 -12
  161. data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +2 -2
  162. data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +2 -3
  163. data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +2 -2
  164. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items.rb → escalation_policy_step_target.rb} +3 -3
  165. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb → escalation_policy_step_target_type.rb} +1 -1
  166. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +1 -11
  167. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +2 -2
  168. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +2 -2
  169. data/lib/datadog_api_client/v2/models/escalation_policy_user.rb +143 -0
  170. data/lib/datadog_api_client/v2/models/escalation_policy_user_attributes.rb +125 -0
  171. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items_type.rb → escalation_policy_user_type.rb} +1 -1
  172. data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
  173. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users.rb → escalation_relationships_responders.rb} +5 -5
  174. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items.rb → escalation_relationships_responders_data_items.rb} +6 -7
  175. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → escalation_relationships_responders_data_items_type.rb} +3 -3
  176. data/lib/datadog_api_client/v2/models/escalation_targets.rb +107 -0
  177. data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
  179. data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +2 -34
  180. data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response.rb +123 -0
  181. data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response_data.rb +125 -0
  182. data/lib/datadog_api_client/v2/models/historical_job_options.rb +2 -2
  183. data/lib/datadog_api_client/v2/models/historical_job_query.rb +1 -1
  184. data/lib/datadog_api_client/v2/models/http_integration.rb +0 -6
  185. data/lib/datadog_api_client/v2/models/http_integration_update.rb +1 -14
  186. data/lib/datadog_api_client/v2/models/incident_severity.rb +1 -0
  187. data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
  188. data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
  189. data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
  190. data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
  191. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → kind_response_meta.rb} +11 -11
  192. data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
  193. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → list_kind_catalog_response.rb} +17 -7
  194. data/lib/datadog_api_client/v2/models/list_relation_catalog_response.rb +139 -0
  195. data/lib/datadog_api_client/v2/models/list_relation_catalog_response_links.rb +125 -0
  196. data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -16
  197. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -16
  198. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -16
  199. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -13
  200. data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +1 -1
  201. data/lib/datadog_api_client/v2/models/on_call_page_target_type.rb +28 -0
  202. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items_type.rb → page_urgency.rb} +4 -3
  203. data/lib/datadog_api_client/v2/models/relation_attributes.rb +125 -0
  204. data/lib/datadog_api_client/v2/models/relation_entity.rb +125 -0
  205. data/lib/datadog_api_client/v2/models/relation_include_type.rb +27 -0
  206. data/lib/datadog_api_client/v2/models/relation_meta.rb +135 -0
  207. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams.rb → relation_relationships.rb} +21 -13
  208. data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
  209. data/lib/datadog_api_client/v2/models/relation_response_meta.rb +115 -0
  210. data/lib/datadog_api_client/v2/models/relation_response_type.rb +26 -0
  211. data/lib/datadog_api_client/v2/models/relation_to_entity.rb +115 -0
  212. data/lib/datadog_api_client/v2/models/resource_filter_attributes.rb +133 -0
  213. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items_type.rb → resource_filter_request_type.rb} +3 -3
  214. data/lib/datadog_api_client/v2/models/routing_rule.rb +153 -0
  215. data/lib/datadog_api_client/v2/models/routing_rule_action.rb +63 -0
  216. data/lib/datadog_api_client/v2/models/routing_rule_attributes.rb +137 -0
  217. data/lib/datadog_api_client/v2/models/routing_rule_relationships.rb +105 -0
  218. data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy.rb +105 -0
  219. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items.rb → routing_rule_relationships_policy_data.rb} +6 -6
  220. data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy_data_type.rb +26 -0
  221. data/lib/datadog_api_client/v2/models/routing_rule_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +1 -1
  223. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +3 -15
  224. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +4 -4
  225. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +2 -2
  226. data/lib/datadog_api_client/v2/models/schedule_data.rb +1 -1
  227. data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +2 -14
  228. data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +1 -1
  229. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items.rb → schedule_request_data_attributes_layers_items_members_items.rb} +3 -3
  230. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items_user.rb → schedule_request_data_attributes_layers_items_members_items_user.rb} +2 -2
  231. data/lib/datadog_api_client/v2/models/schedule_update_request.rb +1 -1
  232. data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +2 -2
  233. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +2 -14
  234. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +4 -4
  235. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +2 -2
  236. data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +13 -3
  237. data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
  238. data/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +1 -1
  239. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
  240. data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +2 -1
  241. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/send_slack_message_action.rb +165 -0
  243. data/lib/datadog_api_client/v2/models/send_slack_message_action_type.rb +26 -0
  244. data/lib/datadog_api_client/v2/models/send_teams_message_action.rb +186 -0
  245. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items_type.rb → send_teams_message_action_type.rb} +3 -3
  246. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams.rb → shift.rb} +19 -9
  247. data/lib/datadog_api_client/v2/models/shift_data.rb +153 -0
  248. data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +115 -0
  249. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items.rb → shift_data_relationships.rb} +5 -6
  250. data/lib/datadog_api_client/v2/models/shift_data_relationships_user.rb +123 -0
  251. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items.rb → shift_data_relationships_user_data.rb} +6 -6
  252. data/lib/datadog_api_client/v2/models/shift_data_relationships_user_data_type.rb +26 -0
  253. data/lib/datadog_api_client/v2/models/shift_data_type.rb +26 -0
  254. data/lib/datadog_api_client/v2/models/shift_included.rb +62 -0
  255. data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
  256. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items.rb → team_on_call_responders_data.rb} +18 -19
  257. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
  258. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
  259. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
  260. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
  261. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
  262. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items.rb → team_on_call_responders_data_relationships_responders_data_items.rb} +6 -6
  263. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
  264. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
  265. data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
  266. data/lib/datadog_api_client/v2/models/team_reference.rb +1 -11
  267. data/lib/datadog_api_client/v2/models/team_routing_rules.rb +117 -0
  268. data/lib/datadog_api_client/v2/models/team_routing_rules_data.rb +143 -0
  269. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships.rb +105 -0
  270. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules.rb +107 -0
  271. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items.rb +144 -0
  272. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items_type.rb +26 -0
  273. data/lib/datadog_api_client/v2/models/team_routing_rules_data_type.rb +26 -0
  274. data/lib/datadog_api_client/v2/models/team_routing_rules_included.rb +62 -0
  275. data/lib/datadog_api_client/v2/models/team_routing_rules_request.rb +105 -0
  276. data/lib/datadog_api_client/v2/models/team_routing_rules_request_data.rb +143 -0
  277. data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_attributes.rb +107 -0
  278. data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_type.rb +26 -0
  279. data/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb +147 -0
  280. data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items.rb → time_restriction.rb} +9 -10
  281. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_interval.rb → time_restrictions.rb} +32 -30
  282. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request.rb +123 -0
  283. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request_data.rb +154 -0
  284. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_response.rb +123 -0
  285. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items.rb → update_resource_evaluation_filters_response_data.rb} +24 -14
  286. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
  287. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
  288. data/lib/datadog_api_client/v2/models/urgency.rb +28 -0
  289. data/lib/datadog_api_client/v2/models/user_attributes_status.rb +28 -0
  290. data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items_end_day.rb → weekday.rb} +2 -2
  291. data/lib/datadog_api_client/version.rb +1 -1
  292. data/repository.datadog.yaml +8 -0
  293. metadata +171 -57
  294. data/.github/workflows/prepare_release.yml +0 -112
  295. data/RELEASING.md +0 -43
  296. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb +0 -28
  297. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +0 -27
  298. data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +0 -32
  299. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
  300. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
  301. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +0 -144
  302. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
  303. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
  304. data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +0 -105
@@ -0,0 +1,125 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The metadata action applied on the scope matching the rule
21
+ class CloudWorkloadSecurityAgentRuleActionMetadata
22
+ include BaseGenericModel
23
+
24
+ # The image tag of the metadata action
25
+ attr_accessor :image_tag
26
+
27
+ # The service of the metadata action
28
+ attr_accessor :service
29
+
30
+ # The short image of the metadata action
31
+ attr_accessor :short_image
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'image_tag' => :'image_tag',
40
+ :'service' => :'service',
41
+ :'short_image' => :'short_image'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'image_tag' => :'String',
50
+ :'service' => :'String',
51
+ :'short_image' => :'String'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param attributes [Hash] Model attributes in the form of hash
57
+ # @!visibility private
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionMetadata` initialize method"
61
+ end
62
+
63
+ self.additional_properties = {}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ self.additional_properties[k.to_sym] = v
68
+ else
69
+ h[k.to_sym] = v
70
+ end
71
+ }
72
+
73
+ if attributes.key?(:'image_tag')
74
+ self.image_tag = attributes[:'image_tag']
75
+ end
76
+
77
+ if attributes.key?(:'service')
78
+ self.service = attributes[:'service']
79
+ end
80
+
81
+ if attributes.key?(:'short_image')
82
+ self.short_image = attributes[:'short_image']
83
+ end
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ image_tag == o.image_tag &&
113
+ service == o.service &&
114
+ short_image == o.short_image &&
115
+ additional_properties == o.additional_properties
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ # @!visibility private
121
+ def hash
122
+ [image_tag, service, short_image, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -17,22 +17,30 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Defines a time restriction object for a layer within a schedule update, including
21
- # start and end days, as well as times.
22
- class ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems
20
+ # The set action applied on the scope matching the rule
21
+ class CloudWorkloadSecurityAgentRuleActionSet
23
22
  include BaseGenericModel
24
23
 
25
- # Defines the day of the week on which the time restriction ends.
26
- attr_accessor :end_day
24
+ # Whether the value should be appended to the field
25
+ attr_accessor :append
27
26
 
28
- # The time at which this restriction ends (hh:mm:ss).
29
- attr_accessor :end_time
27
+ # The field of the set action
28
+ attr_accessor :field
30
29
 
31
- # Defines the day of the week on which the time restriction starts.
32
- attr_accessor :start_day
30
+ # The name of the set action
31
+ attr_accessor :name
33
32
 
34
- # The time at which this restriction starts (hh:mm:ss).
35
- attr_accessor :start_time
33
+ # The scope of the set action
34
+ attr_accessor :scope
35
+
36
+ # The size of the set action
37
+ attr_accessor :size
38
+
39
+ # The time to live of the set action
40
+ attr_accessor :ttl
41
+
42
+ # The value of the set action
43
+ attr_accessor :value
36
44
 
37
45
  attr_accessor :additional_properties
38
46
 
@@ -40,10 +48,13 @@ module DatadogAPIClient::V2
40
48
  # @!visibility private
41
49
  def self.attribute_map
42
50
  {
43
- :'end_day' => :'end_day',
44
- :'end_time' => :'end_time',
45
- :'start_day' => :'start_day',
46
- :'start_time' => :'start_time'
51
+ :'append' => :'append',
52
+ :'field' => :'field',
53
+ :'name' => :'name',
54
+ :'scope' => :'scope',
55
+ :'size' => :'size',
56
+ :'ttl' => :'ttl',
57
+ :'value' => :'value'
47
58
  }
48
59
  end
49
60
 
@@ -51,10 +62,13 @@ module DatadogAPIClient::V2
51
62
  # @!visibility private
52
63
  def self.openapi_types
53
64
  {
54
- :'end_day' => :'ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay',
55
- :'end_time' => :'String',
56
- :'start_day' => :'ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay',
57
- :'start_time' => :'String'
65
+ :'append' => :'Boolean',
66
+ :'field' => :'String',
67
+ :'name' => :'String',
68
+ :'scope' => :'String',
69
+ :'size' => :'Integer',
70
+ :'ttl' => :'Integer',
71
+ :'value' => :'String'
58
72
  }
59
73
  end
60
74
 
@@ -63,7 +77,7 @@ module DatadogAPIClient::V2
63
77
  # @!visibility private
64
78
  def initialize(attributes = {})
65
79
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionSet` initialize method"
67
81
  end
68
82
 
69
83
  self.additional_properties = {}
@@ -76,20 +90,32 @@ module DatadogAPIClient::V2
76
90
  end
77
91
  }
78
92
 
79
- if attributes.key?(:'end_day')
80
- self.end_day = attributes[:'end_day']
93
+ if attributes.key?(:'append')
94
+ self.append = attributes[:'append']
95
+ end
96
+
97
+ if attributes.key?(:'field')
98
+ self.field = attributes[:'field']
99
+ end
100
+
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
105
+ if attributes.key?(:'scope')
106
+ self.scope = attributes[:'scope']
81
107
  end
82
108
 
83
- if attributes.key?(:'end_time')
84
- self.end_time = attributes[:'end_time']
109
+ if attributes.key?(:'size')
110
+ self.size = attributes[:'size']
85
111
  end
86
112
 
87
- if attributes.key?(:'start_day')
88
- self.start_day = attributes[:'start_day']
113
+ if attributes.key?(:'ttl')
114
+ self.ttl = attributes[:'ttl']
89
115
  end
90
116
 
91
- if attributes.key?(:'start_time')
92
- self.start_time = attributes[:'start_time']
117
+ if attributes.key?(:'value')
118
+ self.value = attributes[:'value']
93
119
  end
94
120
  end
95
121
 
@@ -119,10 +145,13 @@ module DatadogAPIClient::V2
119
145
  def ==(o)
120
146
  return true if self.equal?(o)
121
147
  self.class == o.class &&
122
- end_day == o.end_day &&
123
- end_time == o.end_time &&
124
- start_day == o.start_day &&
125
- start_time == o.start_time &&
148
+ append == o.append &&
149
+ field == o.field &&
150
+ name == o.name &&
151
+ scope == o.scope &&
152
+ size == o.size &&
153
+ ttl == o.ttl &&
154
+ value == o.value &&
126
155
  additional_properties == o.additional_properties
127
156
  end
128
157
 
@@ -130,7 +159,7 @@ module DatadogAPIClient::V2
130
159
  # @return [Integer] Hash code
131
160
  # @!visibility private
132
161
  def hash
133
- [end_day, end_time, start_day, start_time, additional_properties].hash
162
+ [append, field, name, scope, size, ttl, value, additional_properties].hash
134
163
  end
135
164
  end
136
165
  end
@@ -17,59 +17,71 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # A Cloud Workload Security Agent rule returned by the API.
20
+ # A Cloud Workload Security Agent rule returned by the API
21
21
  class CloudWorkloadSecurityAgentRuleAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # The array of actions the rule can perform if triggered.
24
+ # The array of actions the rule can perform if triggered
25
25
  attr_accessor :actions
26
26
 
27
- # The version of the agent.
27
+ # The version of the Agent
28
28
  attr_accessor :agent_constraint
29
29
 
30
- # The category of the Agent rule.
30
+ # The blocking policies that the rule belongs to
31
+ attr_accessor :blocking
32
+
33
+ # The category of the Agent rule
31
34
  attr_accessor :category
32
35
 
33
- # The ID of the user who created the rule.
36
+ # The ID of the user who created the rule
34
37
  attr_accessor :creation_author_uu_id
35
38
 
36
- # When the Agent rule was created, timestamp in milliseconds.
39
+ # When the Agent rule was created, timestamp in milliseconds
37
40
  attr_accessor :creation_date
38
41
 
39
- # The attributes of the user who created the Agent rule.
42
+ # The attributes of the user who created the Agent rule
40
43
  attr_accessor :creator
41
44
 
42
- # Whether the rule is included by default.
45
+ # Whether the rule is included by default
43
46
  attr_accessor :default_rule
44
47
 
45
- # The description of the Agent rule.
48
+ # The description of the Agent rule
46
49
  attr_accessor :description
47
50
 
48
- # Whether the Agent rule is enabled.
51
+ # The disabled policies that the rule belongs to
52
+ attr_accessor :disabled
53
+
54
+ # Whether the Agent rule is enabled
49
55
  attr_accessor :enabled
50
56
 
51
- # The SECL expression of the Agent rule.
57
+ # The SECL expression of the Agent rule
52
58
  attr_accessor :expression
53
59
 
54
- # The platforms the Agent rule is supported on.
60
+ # The platforms the Agent rule is supported on
55
61
  attr_accessor :filters
56
62
 
57
- # The name of the Agent rule.
63
+ # The monitoring policies that the rule belongs to
64
+ attr_accessor :monitoring
65
+
66
+ # The name of the Agent rule
58
67
  attr_accessor :name
59
68
 
60
- # The ID of the user who updated the rule.
69
+ # The list of product tags associated with the rule
70
+ attr_accessor :product_tags
71
+
72
+ # The ID of the user who updated the rule
61
73
  attr_accessor :update_author_uu_id
62
74
 
63
- # Timestamp in milliseconds when the Agent rule was last updated.
75
+ # Timestamp in milliseconds when the Agent rule was last updated
64
76
  attr_accessor :update_date
65
77
 
66
- # When the Agent rule was last updated, timestamp in milliseconds.
78
+ # When the Agent rule was last updated, timestamp in milliseconds
67
79
  attr_accessor :updated_at
68
80
 
69
- # The attributes of the user who last updated the Agent rule.
81
+ # The attributes of the user who last updated the Agent rule
70
82
  attr_accessor :updater
71
83
 
72
- # The version of the Agent rule.
84
+ # The version of the Agent rule
73
85
  attr_accessor :version
74
86
 
75
87
  attr_accessor :additional_properties
@@ -80,16 +92,20 @@ module DatadogAPIClient::V2
80
92
  {
81
93
  :'actions' => :'actions',
82
94
  :'agent_constraint' => :'agentConstraint',
95
+ :'blocking' => :'blocking',
83
96
  :'category' => :'category',
84
97
  :'creation_author_uu_id' => :'creationAuthorUuId',
85
98
  :'creation_date' => :'creationDate',
86
99
  :'creator' => :'creator',
87
100
  :'default_rule' => :'defaultRule',
88
101
  :'description' => :'description',
102
+ :'disabled' => :'disabled',
89
103
  :'enabled' => :'enabled',
90
104
  :'expression' => :'expression',
91
105
  :'filters' => :'filters',
106
+ :'monitoring' => :'monitoring',
92
107
  :'name' => :'name',
108
+ :'product_tags' => :'product_tags',
93
109
  :'update_author_uu_id' => :'updateAuthorUuId',
94
110
  :'update_date' => :'updateDate',
95
111
  :'updated_at' => :'updatedAt',
@@ -104,16 +120,20 @@ module DatadogAPIClient::V2
104
120
  {
105
121
  :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
106
122
  :'agent_constraint' => :'String',
123
+ :'blocking' => :'Array<String>',
107
124
  :'category' => :'String',
108
125
  :'creation_author_uu_id' => :'String',
109
126
  :'creation_date' => :'Integer',
110
127
  :'creator' => :'CloudWorkloadSecurityAgentRuleCreatorAttributes',
111
128
  :'default_rule' => :'Boolean',
112
129
  :'description' => :'String',
130
+ :'disabled' => :'Array<String>',
113
131
  :'enabled' => :'Boolean',
114
132
  :'expression' => :'String',
115
133
  :'filters' => :'Array<String>',
134
+ :'monitoring' => :'Array<String>',
116
135
  :'name' => :'String',
136
+ :'product_tags' => :'Array<String>',
117
137
  :'update_author_uu_id' => :'String',
118
138
  :'update_date' => :'Integer',
119
139
  :'updated_at' => :'Integer',
@@ -158,6 +178,12 @@ module DatadogAPIClient::V2
158
178
  self.agent_constraint = attributes[:'agent_constraint']
159
179
  end
160
180
 
181
+ if attributes.key?(:'blocking')
182
+ if (value = attributes[:'blocking']).is_a?(Array)
183
+ self.blocking = value
184
+ end
185
+ end
186
+
161
187
  if attributes.key?(:'category')
162
188
  self.category = attributes[:'category']
163
189
  end
@@ -182,6 +208,12 @@ module DatadogAPIClient::V2
182
208
  self.description = attributes[:'description']
183
209
  end
184
210
 
211
+ if attributes.key?(:'disabled')
212
+ if (value = attributes[:'disabled']).is_a?(Array)
213
+ self.disabled = value
214
+ end
215
+ end
216
+
185
217
  if attributes.key?(:'enabled')
186
218
  self.enabled = attributes[:'enabled']
187
219
  end
@@ -196,10 +228,22 @@ module DatadogAPIClient::V2
196
228
  end
197
229
  end
198
230
 
231
+ if attributes.key?(:'monitoring')
232
+ if (value = attributes[:'monitoring']).is_a?(Array)
233
+ self.monitoring = value
234
+ end
235
+ end
236
+
199
237
  if attributes.key?(:'name')
200
238
  self.name = attributes[:'name']
201
239
  end
202
240
 
241
+ if attributes.key?(:'product_tags')
242
+ if (value = attributes[:'product_tags']).is_a?(Array)
243
+ self.product_tags = value
244
+ end
245
+ end
246
+
203
247
  if attributes.key?(:'update_author_uu_id')
204
248
  self.update_author_uu_id = attributes[:'update_author_uu_id']
205
249
  end
@@ -249,16 +293,20 @@ module DatadogAPIClient::V2
249
293
  self.class == o.class &&
250
294
  actions == o.actions &&
251
295
  agent_constraint == o.agent_constraint &&
296
+ blocking == o.blocking &&
252
297
  category == o.category &&
253
298
  creation_author_uu_id == o.creation_author_uu_id &&
254
299
  creation_date == o.creation_date &&
255
300
  creator == o.creator &&
256
301
  default_rule == o.default_rule &&
257
302
  description == o.description &&
303
+ disabled == o.disabled &&
258
304
  enabled == o.enabled &&
259
305
  expression == o.expression &&
260
306
  filters == o.filters &&
307
+ monitoring == o.monitoring &&
261
308
  name == o.name &&
309
+ product_tags == o.product_tags &&
262
310
  update_author_uu_id == o.update_author_uu_id &&
263
311
  update_date == o.update_date &&
264
312
  updated_at == o.updated_at &&
@@ -271,7 +319,7 @@ module DatadogAPIClient::V2
271
319
  # @return [Integer] Hash code
272
320
  # @!visibility private
273
321
  def hash
274
- [actions, agent_constraint, category, creation_author_uu_id, creation_date, creator, default_rule, description, enabled, expression, filters, name, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
322
+ [actions, agent_constraint, blocking, category, creation_author_uu_id, creation_date, creator, default_rule, description, disabled, enabled, expression, filters, monitoring, name, product_tags, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
275
323
  end
276
324
  end
277
325
  end
@@ -21,32 +21,56 @@ module DatadogAPIClient::V2
21
21
  class CloudWorkloadSecurityAgentRuleCreateAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # The array of actions the rule can perform if triggered
25
+ attr_accessor :actions
26
+
27
+ # The blocking policies that the rule belongs to
28
+ attr_accessor :blocking
29
+
24
30
  # The description of the Agent rule.
25
31
  attr_accessor :description
26
32
 
27
- # Whether the Agent rule is enabled.
33
+ # The disabled policies that the rule belongs to
34
+ attr_accessor :disabled
35
+
36
+ # Whether the Agent rule is enabled
28
37
  attr_accessor :enabled
29
38
 
30
39
  # The SECL expression of the Agent rule.
31
40
  attr_reader :expression
32
41
 
33
- # The platforms the Agent rule is supported on.
42
+ # The platforms the Agent rule is supported on
34
43
  attr_accessor :filters
35
44
 
45
+ # The monitoring policies that the rule belongs to
46
+ attr_accessor :monitoring
47
+
36
48
  # The name of the Agent rule.
37
49
  attr_reader :name
38
50
 
51
+ # The ID of the policy where the Agent rule is saved
52
+ attr_accessor :policy_id
53
+
54
+ # The list of product tags associated with the rule
55
+ attr_accessor :product_tags
56
+
39
57
  attr_accessor :additional_properties
40
58
 
41
59
  # Attribute mapping from ruby-style variable name to JSON key.
42
60
  # @!visibility private
43
61
  def self.attribute_map
44
62
  {
63
+ :'actions' => :'actions',
64
+ :'blocking' => :'blocking',
45
65
  :'description' => :'description',
66
+ :'disabled' => :'disabled',
46
67
  :'enabled' => :'enabled',
47
68
  :'expression' => :'expression',
48
69
  :'filters' => :'filters',
49
- :'name' => :'name'
70
+ :'monitoring' => :'monitoring',
71
+ :'name' => :'name',
72
+ :'policy_id' => :'policy_id',
73
+ :'product_tags' => :'product_tags'
50
74
  }
51
75
  end
52
76
 
@@ -54,14 +78,28 @@ module DatadogAPIClient::V2
54
78
  # @!visibility private
55
79
  def self.openapi_types
56
80
  {
81
+ :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
82
+ :'blocking' => :'Array<String>',
57
83
  :'description' => :'String',
84
+ :'disabled' => :'Array<String>',
58
85
  :'enabled' => :'Boolean',
59
86
  :'expression' => :'String',
60
87
  :'filters' => :'Array<String>',
61
- :'name' => :'String'
88
+ :'monitoring' => :'Array<String>',
89
+ :'name' => :'String',
90
+ :'policy_id' => :'String',
91
+ :'product_tags' => :'Array<String>'
62
92
  }
63
93
  end
64
94
 
95
+ # List of attributes with nullable: true
96
+ # @!visibility private
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'actions',
100
+ ])
101
+ end
102
+
65
103
  # Initializes the object
66
104
  # @param attributes [Hash] Model attributes in the form of hash
67
105
  # @!visibility private
@@ -80,10 +118,28 @@ module DatadogAPIClient::V2
80
118
  end
81
119
  }
82
120
 
121
+ if attributes.key?(:'actions')
122
+ if (value = attributes[:'actions']).is_a?(Array)
123
+ self.actions = value
124
+ end
125
+ end
126
+
127
+ if attributes.key?(:'blocking')
128
+ if (value = attributes[:'blocking']).is_a?(Array)
129
+ self.blocking = value
130
+ end
131
+ end
132
+
83
133
  if attributes.key?(:'description')
84
134
  self.description = attributes[:'description']
85
135
  end
86
136
 
137
+ if attributes.key?(:'disabled')
138
+ if (value = attributes[:'disabled']).is_a?(Array)
139
+ self.disabled = value
140
+ end
141
+ end
142
+
87
143
  if attributes.key?(:'enabled')
88
144
  self.enabled = attributes[:'enabled']
89
145
  end
@@ -98,9 +154,25 @@ module DatadogAPIClient::V2
98
154
  end
99
155
  end
100
156
 
157
+ if attributes.key?(:'monitoring')
158
+ if (value = attributes[:'monitoring']).is_a?(Array)
159
+ self.monitoring = value
160
+ end
161
+ end
162
+
101
163
  if attributes.key?(:'name')
102
164
  self.name = attributes[:'name']
103
165
  end
166
+
167
+ if attributes.key?(:'policy_id')
168
+ self.policy_id = attributes[:'policy_id']
169
+ end
170
+
171
+ if attributes.key?(:'product_tags')
172
+ if (value = attributes[:'product_tags']).is_a?(Array)
173
+ self.product_tags = value
174
+ end
175
+ end
104
176
  end
105
177
 
106
178
  # Check to see if the all the properties in the model are valid
@@ -158,11 +230,17 @@ module DatadogAPIClient::V2
158
230
  def ==(o)
159
231
  return true if self.equal?(o)
160
232
  self.class == o.class &&
233
+ actions == o.actions &&
234
+ blocking == o.blocking &&
161
235
  description == o.description &&
236
+ disabled == o.disabled &&
162
237
  enabled == o.enabled &&
163
238
  expression == o.expression &&
164
239
  filters == o.filters &&
240
+ monitoring == o.monitoring &&
165
241
  name == o.name &&
242
+ policy_id == o.policy_id &&
243
+ product_tags == o.product_tags &&
166
244
  additional_properties == o.additional_properties
167
245
  end
168
246
 
@@ -170,7 +248,7 @@ module DatadogAPIClient::V2
170
248
  # @return [Integer] Hash code
171
249
  # @!visibility private
172
250
  def hash
173
- [description, enabled, expression, filters, name, additional_properties].hash
251
+ [actions, blocking, description, disabled, enabled, expression, filters, monitoring, name, policy_id, product_tags, additional_properties].hash
174
252
  end
175
253
  end
176
254
  end
@@ -17,14 +17,14 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Object for a single Agent rule.
20
+ # Object for a single Agent rule
21
21
  class CloudWorkloadSecurityAgentRuleCreateData
22
22
  include BaseGenericModel
23
23
 
24
24
  # Create a new Cloud Workload Security Agent rule.
25
25
  attr_reader :attributes
26
26
 
27
- # The type of the resource. The value should always be `agent_rule`.
27
+ # The type of the resource, must always be `agent_rule`
28
28
  attr_reader :type
29
29
 
30
30
  attr_accessor :additional_properties