datadog_api_client 2.33.0 → 2.34.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 (245) 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 +18 -3
  5. data/.generator/schemas/v2/openapi.yaml +2577 -883
  6. data/.generator/src/generator/templates/configuration.j2 +2 -2
  7. data/.github/workflows/publish.yml +16 -8
  8. data/.github/workflows/release.yml +57 -61
  9. data/CHANGELOG.md +16 -0
  10. data/Gemfile +2 -1
  11. data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
  12. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
  13. data/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +3 -2
  14. data/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +8 -0
  15. data/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +8 -2
  16. data/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
  17. data/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +1 -1
  18. data/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +1 -1
  19. data/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +8 -0
  20. data/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +8 -2
  21. data/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +1 -1
  22. data/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +5 -0
  23. data/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +1 -1
  24. data/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +1 -1
  25. data/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +25 -0
  26. data/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +12 -4
  27. data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +3 -4
  28. data/examples/v2/dora-metrics/GetDORADeployment.rb +5 -0
  29. data/examples/v2/dora-metrics/GetDORAFailure.rb +5 -0
  30. data/examples/v2/dora-metrics/ListDORADeployments.rb +16 -0
  31. data/examples/v2/dora-metrics/ListDORAFailures.rb +16 -0
  32. data/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +5 -0
  33. data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +19 -17
  34. data/examples/v2/on-call/CreateOnCallSchedule.rb +11 -15
  35. data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +2 -2
  36. data/examples/v2/on-call/DeleteOnCallSchedule.rb +2 -2
  37. data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +6 -3
  38. data/examples/v2/on-call/GetOnCallSchedule.rb +2 -2
  39. data/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +5 -0
  40. data/examples/v2/on-call/GetScheduleOnCallUser.rb +8 -0
  41. data/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +57 -0
  42. data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +8 -9
  43. data/examples/v2/on-call/UpdateOnCallSchedule.rb +11 -16
  44. data/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +5 -0
  45. data/examples/v2/on-call-paging/CreateOnCallPage.rb +23 -0
  46. data/examples/v2/on-call-paging/EscalateOnCallPage.rb +5 -0
  47. data/examples/v2/on-call-paging/ResolveOnCallPage.rb +5 -0
  48. data/examples/v2/rum-metrics/CreateRumMetric.rb +1 -1
  49. data/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +9 -0
  50. data/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +21 -0
  51. data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
  52. data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -0
  53. data/examples/v2/workflow-automation/CreateWorkflow.rb +0 -1
  54. data/examples/v2/workflow-automation/UpdateWorkflow.rb +0 -1
  55. data/lib/datadog_api_client/configuration.rb +203 -15
  56. data/lib/datadog_api_client/inflector.rb +104 -43
  57. data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +2 -2
  58. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +2 -2
  59. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +2 -2
  60. data/lib/datadog_api_client/v1/models/synthetics_assertion_target_value.rb +63 -0
  61. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +2 -2
  62. data/lib/datadog_api_client/v2/api/csm_threats_api.rb +424 -52
  63. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +265 -1
  64. data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -5
  65. data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +25 -3
  66. data/lib/datadog_api_client/v2/api/on_call_api.rb +234 -24
  67. data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
  68. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +133 -0
  69. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +101 -0
  70. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams.rb → cloud_workload_security_agent_policies_list_response.rb} +5 -5
  71. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +300 -0
  72. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_attributes.rb +167 -0
  73. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items.rb → cloud_workload_security_agent_policy_create_data.rb} +19 -19
  74. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_request.rb +123 -0
  75. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_data.rb +125 -0
  76. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_response.rb +105 -0
  77. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_type.rb +26 -0
  78. 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
  79. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_data.rb +154 -0
  80. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_request.rb +123 -0
  81. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_updater_attributes.rb +123 -0
  82. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +1 -1
  83. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +31 -19
  84. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +27 -5
  85. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
  86. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +2 -2
  87. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +3 -3
  88. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +4 -4
  89. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +1 -1
  90. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +2 -2
  91. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +1 -1
  92. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +29 -7
  93. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +4 -4
  94. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +2 -2
  95. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +3 -3
  96. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +2 -2
  97. data/lib/datadog_api_client/v2/models/create_page_request.rb +105 -0
  98. data/lib/datadog_api_client/v2/models/create_page_request_data.rb +133 -0
  99. data/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +187 -0
  100. data/lib/datadog_api_client/v2/models/create_page_request_data_attributes_target.rb +115 -0
  101. data/lib/datadog_api_client/v2/models/create_page_request_data_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/create_page_response.rb +105 -0
  103. data/lib/datadog_api_client/v2/models/create_page_response_data.rb +133 -0
  104. data/lib/datadog_api_client/v2/models/create_page_response_data_type.rb +26 -0
  105. data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +2 -24
  106. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams.rb → data_relationships_teams.rb} +3 -3
  107. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items.rb → data_relationships_teams_data_items.rb} +3 -3
  108. data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items_type.rb → data_relationships_teams_data_items_type.rb} +1 -1
  109. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
  110. data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
  111. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +1 -1
  112. data/lib/datadog_api_client/v2/models/dora_list_deployments_request.rb +123 -0
  113. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_attributes.rb +163 -0
  114. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data.rb +133 -0
  115. data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data_type.rb +26 -0
  116. data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams.rb → dora_list_failures_request.rb} +25 -9
  117. data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +163 -0
  118. data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +133 -0
  119. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → dora_list_failures_request_data_type.rb} +3 -3
  120. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams.rb → dora_list_response.rb} +5 -5
  121. data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +1 -21
  122. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +1 -11
  123. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +2 -2
  124. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +2 -2
  125. data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +1 -1
  126. data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +2 -12
  127. data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +2 -2
  128. data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +2 -3
  129. data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +2 -2
  130. 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
  131. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb → escalation_policy_step_target_type.rb} +1 -1
  132. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +1 -11
  133. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +2 -2
  134. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +2 -2
  135. data/lib/datadog_api_client/v2/models/escalation_policy_user.rb +143 -0
  136. data/lib/datadog_api_client/v2/models/escalation_policy_user_attributes.rb +125 -0
  137. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items_type.rb → escalation_policy_user_type.rb} +1 -1
  138. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users.rb → escalation_targets.rb} +5 -5
  139. data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +2 -34
  140. data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response_data.rb +125 -0
  142. data/lib/datadog_api_client/v2/models/historical_job_options.rb +2 -2
  143. data/lib/datadog_api_client/v2/models/historical_job_query.rb +1 -1
  144. data/lib/datadog_api_client/v2/models/http_integration.rb +0 -6
  145. data/lib/datadog_api_client/v2/models/http_integration_update.rb +1 -14
  146. data/lib/datadog_api_client/v2/models/incident_severity.rb +1 -0
  147. data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
  148. data/lib/datadog_api_client/v2/models/list_relation_catalog_response.rb +139 -0
  149. data/lib/datadog_api_client/v2/models/list_relation_catalog_response_links.rb +125 -0
  150. data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -16
  151. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -16
  152. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -16
  153. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -13
  154. data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +1 -1
  155. data/lib/datadog_api_client/v2/models/on_call_page_target_type.rb +28 -0
  156. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items_type.rb → page_urgency.rb} +4 -3
  157. data/lib/datadog_api_client/v2/models/relation_attributes.rb +125 -0
  158. data/lib/datadog_api_client/v2/models/relation_entity.rb +125 -0
  159. data/lib/datadog_api_client/v2/models/relation_include_type.rb +27 -0
  160. data/lib/datadog_api_client/v2/models/relation_meta.rb +135 -0
  161. data/lib/datadog_api_client/v2/models/relation_relationships.rb +115 -0
  162. data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
  163. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → relation_response_meta.rb} +21 -13
  164. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → relation_response_type.rb} +3 -3
  165. data/lib/datadog_api_client/v2/models/relation_to_entity.rb +115 -0
  166. data/lib/datadog_api_client/v2/models/resource_filter_attributes.rb +133 -0
  167. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items_type.rb → resource_filter_request_type.rb} +3 -3
  168. data/lib/datadog_api_client/v2/models/routing_rule.rb +153 -0
  169. data/lib/datadog_api_client/v2/models/routing_rule_action.rb +63 -0
  170. data/lib/datadog_api_client/v2/models/routing_rule_attributes.rb +137 -0
  171. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → routing_rule_relationships.rb} +11 -11
  172. data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy.rb +105 -0
  173. data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items.rb → routing_rule_relationships_policy_data.rb} +6 -6
  174. data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy_data_type.rb +26 -0
  175. data/lib/datadog_api_client/v2/models/routing_rule_type.rb +26 -0
  176. data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +1 -1
  177. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +3 -15
  178. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +4 -4
  179. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +2 -2
  180. data/lib/datadog_api_client/v2/models/schedule_data.rb +1 -1
  181. data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +2 -14
  182. data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +1 -1
  183. 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
  184. 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
  185. data/lib/datadog_api_client/v2/models/schedule_update_request.rb +1 -1
  186. data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +2 -2
  187. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +2 -14
  188. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +4 -4
  189. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +2 -2
  190. data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +13 -3
  191. data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
  192. data/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +1 -1
  193. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
  194. data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +2 -1
  195. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
  196. data/lib/datadog_api_client/v2/models/send_slack_message_action.rb +165 -0
  197. data/lib/datadog_api_client/v2/models/send_slack_message_action_type.rb +26 -0
  198. data/lib/datadog_api_client/v2/models/send_teams_message_action.rb +186 -0
  199. 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
  200. data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams.rb → shift.rb} +19 -9
  201. data/lib/datadog_api_client/v2/models/shift_data.rb +153 -0
  202. data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +115 -0
  203. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items.rb → shift_data_relationships.rb} +5 -6
  204. data/lib/datadog_api_client/v2/models/shift_data_relationships_user.rb +123 -0
  205. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items.rb → shift_data_relationships_user_data.rb} +6 -6
  206. data/lib/datadog_api_client/v2/models/shift_data_relationships_user_data_type.rb +26 -0
  207. data/lib/datadog_api_client/v2/models/shift_data_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/shift_included.rb +62 -0
  209. data/lib/datadog_api_client/v2/models/team_reference.rb +1 -11
  210. data/lib/datadog_api_client/v2/models/team_routing_rules.rb +117 -0
  211. data/lib/datadog_api_client/v2/models/team_routing_rules_data.rb +143 -0
  212. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships.rb +105 -0
  213. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules.rb +107 -0
  214. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items.rb → team_routing_rules_data_relationships_rules_data_items.rb} +6 -7
  215. data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items_type.rb +26 -0
  216. data/lib/datadog_api_client/v2/models/team_routing_rules_data_type.rb +26 -0
  217. data/lib/datadog_api_client/v2/models/team_routing_rules_included.rb +62 -0
  218. data/lib/datadog_api_client/v2/models/team_routing_rules_request.rb +105 -0
  219. data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items.rb → team_routing_rules_request_data.rb} +18 -19
  220. data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_attributes.rb +107 -0
  221. data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → team_routing_rules_request_rule.rb} +44 -33
  223. data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items.rb → time_restriction.rb} +9 -10
  224. data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_interval.rb → time_restrictions.rb} +32 -30
  225. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request.rb +123 -0
  226. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request_data.rb +154 -0
  227. data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_response.rb +123 -0
  228. 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
  229. data/lib/datadog_api_client/v2/models/urgency.rb +28 -0
  230. data/lib/datadog_api_client/v2/models/user_attributes_status.rb +28 -0
  231. data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items_end_day.rb → weekday.rb} +2 -2
  232. data/lib/datadog_api_client/version.rb +1 -1
  233. metadata +128 -51
  234. data/.github/workflows/prepare_release.yml +0 -112
  235. data/RELEASING.md +0 -43
  236. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb +0 -27
  237. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +0 -27
  238. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +0 -28
  239. data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +0 -32
  240. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
  241. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
  242. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +0 -144
  243. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
  244. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
  245. 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
+ # Relation attributes.
21
+ class RelationAttributes
22
+ include BaseGenericModel
23
+
24
+ # Relation entity reference.
25
+ attr_accessor :from
26
+
27
+ # Relation entity reference.
28
+ attr_accessor :to
29
+
30
+ # Supported relation types.
31
+ attr_accessor :type
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
+ :'from' => :'from',
40
+ :'to' => :'to',
41
+ :'type' => :'type'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'from' => :'RelationEntity',
50
+ :'to' => :'RelationEntity',
51
+ :'type' => :'RelationType'
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::RelationAttributes` 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?(:'from')
74
+ self.from = attributes[:'from']
75
+ end
76
+
77
+ if attributes.key?(:'to')
78
+ self.to = attributes[:'to']
79
+ end
80
+
81
+ if attributes.key?(:'type')
82
+ self.type = attributes[:'type']
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
+ from == o.from &&
113
+ to == o.to &&
114
+ type == o.type &&
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
+ [from, to, type, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -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
+ # Relation entity reference.
21
+ class RelationEntity
22
+ include BaseGenericModel
23
+
24
+ # Entity kind.
25
+ attr_accessor :kind
26
+
27
+ # Entity name.
28
+ attr_accessor :name
29
+
30
+ # Entity namespace.
31
+ attr_accessor :namespace
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
+ :'kind' => :'kind',
40
+ :'name' => :'name',
41
+ :'namespace' => :'namespace'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'kind' => :'String',
50
+ :'name' => :'String',
51
+ :'namespace' => :'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::RelationEntity` 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?(:'kind')
74
+ self.kind = attributes[:'kind']
75
+ end
76
+
77
+ if attributes.key?(:'name')
78
+ self.name = attributes[:'name']
79
+ end
80
+
81
+ if attributes.key?(:'namespace')
82
+ self.namespace = attributes[:'namespace']
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
+ kind == o.kind &&
113
+ name == o.name &&
114
+ namespace == o.namespace &&
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
+ [kind, name, namespace, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,27 @@
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
+ # Supported include types for relations.
21
+ class RelationIncludeType
22
+ include BaseEnumModel
23
+
24
+ ENTITY = "entity".freeze
25
+ SCHEMA = "schema".freeze
26
+ end
27
+ end
@@ -0,0 +1,135 @@
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
+ # Relation metadata.
21
+ class RelationMeta
22
+ include BaseGenericModel
23
+
24
+ # Relation creation time.
25
+ attr_accessor :created_at
26
+
27
+ # Relation defined by.
28
+ attr_accessor :defined_by
29
+
30
+ # Relation modification time.
31
+ attr_accessor :modified_at
32
+
33
+ # Relation source.
34
+ attr_accessor :source
35
+
36
+ attr_accessor :additional_properties
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ # @!visibility private
40
+ def self.attribute_map
41
+ {
42
+ :'created_at' => :'createdAt',
43
+ :'defined_by' => :'definedBy',
44
+ :'modified_at' => :'modifiedAt',
45
+ :'source' => :'source'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ # @!visibility private
51
+ def self.openapi_types
52
+ {
53
+ :'created_at' => :'Time',
54
+ :'defined_by' => :'String',
55
+ :'modified_at' => :'Time',
56
+ :'source' => :'String'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param attributes [Hash] Model attributes in the form of hash
62
+ # @!visibility private
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationMeta` initialize method"
66
+ end
67
+
68
+ self.additional_properties = {}
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ self.additional_properties[k.to_sym] = v
73
+ else
74
+ h[k.to_sym] = v
75
+ end
76
+ }
77
+
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
+ end
81
+
82
+ if attributes.key?(:'defined_by')
83
+ self.defined_by = attributes[:'defined_by']
84
+ end
85
+
86
+ if attributes.key?(:'modified_at')
87
+ self.modified_at = attributes[:'modified_at']
88
+ end
89
+
90
+ if attributes.key?(:'source')
91
+ self.source = attributes[:'source']
92
+ end
93
+ end
94
+
95
+ # Returns the object in the form of hash, with additionalProperties support.
96
+ # @return [Hash] Returns the object in the form of hash
97
+ # @!visibility private
98
+ def to_hash
99
+ hash = {}
100
+ self.class.attribute_map.each_pair do |attr, param|
101
+ value = self.send(attr)
102
+ if value.nil?
103
+ is_nullable = self.class.openapi_nullable.include?(attr)
104
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
105
+ end
106
+
107
+ hash[param] = _to_hash(value)
108
+ end
109
+ self.additional_properties.each_pair do |attr, value|
110
+ hash[attr] = value
111
+ end
112
+ hash
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param o [Object] Object to be compared
117
+ # @!visibility private
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ created_at == o.created_at &&
122
+ defined_by == o.defined_by &&
123
+ modified_at == o.modified_at &&
124
+ source == o.source &&
125
+ additional_properties == o.additional_properties
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ # @!visibility private
131
+ def hash
132
+ [created_at, defined_by, modified_at, source, additional_properties].hash
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,115 @@
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
+ # Relation relationships.
21
+ class RelationRelationships
22
+ include BaseGenericModel
23
+
24
+ # Relation to entity.
25
+ attr_accessor :from_entity
26
+
27
+ # Relation to entity.
28
+ attr_accessor :to_entity
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
+ :'from_entity' => :'fromEntity',
37
+ :'to_entity' => :'toEntity'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'from_entity' => :'RelationToEntity',
46
+ :'to_entity' => :'RelationToEntity'
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::V2::RelationRelationships` 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?(:'from_entity')
69
+ self.from_entity = attributes[:'from_entity']
70
+ end
71
+
72
+ if attributes.key?(:'to_entity')
73
+ self.to_entity = attributes[:'to_entity']
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
+ from_entity == o.from_entity &&
104
+ to_entity == o.to_entity &&
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
+ [from_entity, to_entity, additional_properties].hash
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,155 @@
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
+ # Relation response data.
21
+ class RelationResponse
22
+ include BaseGenericModel
23
+
24
+ # Relation attributes.
25
+ attr_accessor :attributes
26
+
27
+ # Relation ID.
28
+ attr_accessor :id
29
+
30
+ # Relation metadata.
31
+ attr_accessor :meta
32
+
33
+ # Relation relationships.
34
+ attr_accessor :relationships
35
+
36
+ # Relation subtype.
37
+ attr_accessor :subtype
38
+
39
+ # Relation type.
40
+ attr_accessor :type
41
+
42
+ attr_accessor :additional_properties
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ # @!visibility private
46
+ def self.attribute_map
47
+ {
48
+ :'attributes' => :'attributes',
49
+ :'id' => :'id',
50
+ :'meta' => :'meta',
51
+ :'relationships' => :'relationships',
52
+ :'subtype' => :'subtype',
53
+ :'type' => :'type'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ # @!visibility private
59
+ def self.openapi_types
60
+ {
61
+ :'attributes' => :'RelationAttributes',
62
+ :'id' => :'String',
63
+ :'meta' => :'RelationMeta',
64
+ :'relationships' => :'RelationRelationships',
65
+ :'subtype' => :'String',
66
+ :'type' => :'RelationResponseType'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param attributes [Hash] Model attributes in the form of hash
72
+ # @!visibility private
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationResponse` initialize method"
76
+ end
77
+
78
+ self.additional_properties = {}
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ self.additional_properties[k.to_sym] = v
83
+ else
84
+ h[k.to_sym] = v
85
+ end
86
+ }
87
+
88
+ if attributes.key?(:'attributes')
89
+ self.attributes = attributes[:'attributes']
90
+ end
91
+
92
+ if attributes.key?(:'id')
93
+ self.id = attributes[:'id']
94
+ end
95
+
96
+ if attributes.key?(:'meta')
97
+ self.meta = attributes[:'meta']
98
+ end
99
+
100
+ if attributes.key?(:'relationships')
101
+ self.relationships = attributes[:'relationships']
102
+ end
103
+
104
+ if attributes.key?(:'subtype')
105
+ self.subtype = attributes[:'subtype']
106
+ end
107
+
108
+ if attributes.key?(:'type')
109
+ self.type = attributes[:'type']
110
+ end
111
+ end
112
+
113
+ # Returns the object in the form of hash, with additionalProperties support.
114
+ # @return [Hash] Returns the object in the form of hash
115
+ # @!visibility private
116
+ def to_hash
117
+ hash = {}
118
+ self.class.attribute_map.each_pair do |attr, param|
119
+ value = self.send(attr)
120
+ if value.nil?
121
+ is_nullable = self.class.openapi_nullable.include?(attr)
122
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
123
+ end
124
+
125
+ hash[param] = _to_hash(value)
126
+ end
127
+ self.additional_properties.each_pair do |attr, value|
128
+ hash[attr] = value
129
+ end
130
+ hash
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param o [Object] Object to be compared
135
+ # @!visibility private
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ attributes == o.attributes &&
140
+ id == o.id &&
141
+ meta == o.meta &&
142
+ relationships == o.relationships &&
143
+ subtype == o.subtype &&
144
+ type == o.type &&
145
+ additional_properties == o.additional_properties
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ # @!visibility private
151
+ def hash
152
+ [attributes, id, meta, relationships, subtype, type, additional_properties].hash
153
+ end
154
+ end
155
+ end