datadog_api_client 2.45.0 → 2.47.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 (342) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +186 -7
  3. data/.generator/schemas/v2/openapi.yaml +5147 -312
  4. data/.pre-commit-config.yaml +4 -0
  5. data/CHANGELOG.md +46 -0
  6. data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
  7. data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
  8. data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
  9. data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
  10. data/examples/v2/apm/GetServiceList.rb +5 -0
  11. data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
  12. data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
  13. data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
  14. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
  15. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
  16. data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
  17. data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
  18. data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
  19. data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
  20. data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
  21. data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
  22. data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
  23. data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
  24. data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
  25. data/examples/v2/events/CreateEvent.rb +1 -0
  26. data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
  27. data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
  28. data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
  29. data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
  30. data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
  31. data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
  32. data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
  33. data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
  34. data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
  35. data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
  36. data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
  37. data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
  38. data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
  39. data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
  40. data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
  41. data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
  42. data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
  43. data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
  44. data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
  45. data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
  46. data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
  47. data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
  48. data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
  49. data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
  50. data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
  51. data/examples/v2/reference-tables/DeleteRows.rb +14 -0
  52. data/examples/v2/reference-tables/UpsertRows.rb +19 -0
  53. data/examples/v2/security-monitoring/AttachCase.rb +26 -0
  54. data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
  55. data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
  56. data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
  57. data/examples/v2/security-monitoring/CreateCases.rb +56 -0
  58. data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
  59. data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
  60. data/examples/v2/security-monitoring/CreateJiraIssues.rb +41 -0
  61. data/examples/v2/security-monitoring/DetachCase.rb +21 -0
  62. data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
  63. data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
  64. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
  65. data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
  66. data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
  67. data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
  68. data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
  69. data/examples/v2/teams/GetTeamSync.rb +8 -0
  70. data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
  71. data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
  72. data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
  73. data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
  74. data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
  75. data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
  76. data/lib/datadog_api_client/configuration.rb +29 -6
  77. data/lib/datadog_api_client/inflector.rb +180 -5
  78. data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
  79. data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
  80. data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
  81. data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
  82. data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
  83. data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
  84. data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
  85. data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
  86. data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
  87. data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
  88. data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
  89. data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
  90. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
  91. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
  92. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
  93. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
  94. data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
  95. data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +703 -0
  96. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
  97. data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
  98. data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
  99. data/lib/datadog_api_client/v2/api/on_call_api.rb +279 -2
  100. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
  101. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +448 -10
  102. data/lib/datadog_api_client/v2/api/teams_api.rb +634 -1
  103. data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
  104. data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
  105. data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
  106. data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
  107. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +143 -0
  108. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
  109. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
  110. data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
  111. data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
  112. data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
  113. data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
  114. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
  115. data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
  116. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
  117. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
  118. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
  119. data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
  120. data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
  121. data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
  122. data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
  123. data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
  124. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
  125. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
  126. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
  127. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
  128. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
  129. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set_value.rb +64 -0
  130. data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
  131. data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
  132. data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
  133. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
  134. data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
  135. data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
  136. data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
  137. data/lib/datadog_api_client/v2/models/create_case_request_data.rb +143 -0
  138. data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
  139. data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
  140. data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
  142. data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
  143. data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
  144. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
  145. data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
  146. data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
  147. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +125 -0
  148. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +143 -0
  149. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +145 -0
  150. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +144 -0
  151. data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
  152. data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
  153. data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
  154. data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
  155. data/lib/datadog_api_client/v2/models/create_user_notification_channel_request.rb +123 -0
  156. data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
  157. data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
  159. data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
  160. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
  161. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
  162. data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
  163. data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
  164. data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
  165. data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
  166. data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
  167. data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
  168. data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
  169. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
  170. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
  171. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
  172. data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
  173. data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
  174. data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
  175. data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +133 -0
  176. data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
  177. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
  178. data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
  179. data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
  180. data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
  181. data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
  182. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
  183. data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
  184. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
  185. data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
  186. data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
  187. data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
  188. data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
  189. data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
  190. data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
  191. data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
  192. data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
  193. data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
  194. data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
  195. data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
  196. data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
  197. data/lib/datadog_api_client/v2/models/findings.rb +107 -0
  198. data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
  199. data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
  200. data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
  201. data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
  202. data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
  203. data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
  204. data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
  205. data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
  206. data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
  207. data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
  208. data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
  209. data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
  210. data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
  211. data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
  212. data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
  213. data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
  214. data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
  215. data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
  216. data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
  217. data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
  218. data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
  219. data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
  220. data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
  221. data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
  222. data/lib/datadog_api_client/v2/models/library.rb +13 -1
  223. data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
  224. data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
  225. data/lib/datadog_api_client/v2/models/list_deployment_rules_response_data_attributes.rb +107 -0
  226. data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
  227. data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
  228. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
  229. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
  230. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
  231. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
  232. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
  233. data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
  234. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
  235. data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
  236. data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
  237. data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
  238. data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
  239. data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
  240. data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
  241. data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
  242. data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
  243. data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
  244. data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
  245. data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
  246. data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
  247. data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
  248. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
  249. data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
  250. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
  251. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
  252. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
  253. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
  254. data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
  255. data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
  256. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
  257. data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
  258. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
  259. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
  260. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
  261. data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
  262. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
  263. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
  264. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
  265. data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
  266. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
  267. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
  268. data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
  269. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
  270. data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
  271. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
  272. data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
  273. data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
  274. data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
  275. data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
  276. data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
  277. data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
  278. data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
  279. data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
  280. data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
  281. data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
  282. data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
  283. data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
  284. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
  285. data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
  286. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
  287. data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
  288. data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
  289. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
  290. data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
  291. data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
  292. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
  293. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
  294. data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
  295. data/lib/datadog_api_client/v2/models/service_list_data.rb +143 -0
  296. data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
  297. data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
  298. data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
  299. data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
  300. data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
  301. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
  302. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
  303. data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
  304. data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
  305. data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
  306. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
  307. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
  308. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
  309. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
  310. data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
  311. data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
  312. data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
  313. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
  314. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
  315. data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
  316. data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
  317. data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
  318. data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
  319. data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
  320. data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
  321. data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
  322. data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
  323. data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
  324. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
  325. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
  326. data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
  327. data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
  328. data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
  329. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
  330. data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
  331. data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
  332. data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
  333. data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
  334. data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
  335. data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
  336. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
  337. data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
  338. data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
  339. data/lib/datadog_api_client/version.rb +1 -1
  340. metadata +238 -11
  341. data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
  342. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
@@ -0,0 +1,167 @@
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
+ # Email notification channel configuration
21
+ class NotificationChannelEmailConfig
22
+ include BaseGenericModel
23
+
24
+ # The e-mail address to be notified
25
+ attr_reader :address
26
+
27
+ # Preferred content formats for notifications.
28
+ attr_reader :formats
29
+
30
+ # Indicates that the notification channel is an e-mail address
31
+ attr_reader :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
+ :'address' => :'address',
40
+ :'formats' => :'formats',
41
+ :'type' => :'type'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'address' => :'String',
50
+ :'formats' => :'Array<NotificationChannelEmailFormatType>',
51
+ :'type' => :'NotificationChannelEmailConfigType'
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::NotificationChannelEmailConfig` 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?(:'address')
74
+ self.address = attributes[:'address']
75
+ end
76
+
77
+ if attributes.key?(:'formats')
78
+ if (value = attributes[:'formats']).is_a?(Array)
79
+ self.formats = value
80
+ end
81
+ end
82
+
83
+ if attributes.key?(:'type')
84
+ self.type = attributes[:'type']
85
+ end
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ # @!visibility private
91
+ def valid?
92
+ return false if @address.nil?
93
+ return false if @formats.nil?
94
+ return false if @type.nil?
95
+ true
96
+ end
97
+
98
+ # Custom attribute writer method with validation
99
+ # @param address [Object] Object to be assigned
100
+ # @!visibility private
101
+ def address=(address)
102
+ if address.nil?
103
+ fail ArgumentError, 'invalid value for "address", address cannot be nil.'
104
+ end
105
+ @address = address
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param formats [Object] Object to be assigned
110
+ # @!visibility private
111
+ def formats=(formats)
112
+ if formats.nil?
113
+ fail ArgumentError, 'invalid value for "formats", formats cannot be nil.'
114
+ end
115
+ @formats = formats
116
+ end
117
+
118
+ # Custom attribute writer method with validation
119
+ # @param type [Object] Object to be assigned
120
+ # @!visibility private
121
+ def type=(type)
122
+ if type.nil?
123
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
124
+ end
125
+ @type = type
126
+ end
127
+
128
+ # Returns the object in the form of hash, with additionalProperties support.
129
+ # @return [Hash] Returns the object in the form of hash
130
+ # @!visibility private
131
+ def to_hash
132
+ hash = {}
133
+ self.class.attribute_map.each_pair do |attr, param|
134
+ value = self.send(attr)
135
+ if value.nil?
136
+ is_nullable = self.class.openapi_nullable.include?(attr)
137
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
138
+ end
139
+
140
+ hash[param] = _to_hash(value)
141
+ end
142
+ self.additional_properties.each_pair do |attr, value|
143
+ hash[attr] = value
144
+ end
145
+ hash
146
+ end
147
+
148
+ # Checks equality by comparing each attribute.
149
+ # @param o [Object] Object to be compared
150
+ # @!visibility private
151
+ def ==(o)
152
+ return true if self.equal?(o)
153
+ self.class == o.class &&
154
+ address == o.address &&
155
+ formats == o.formats &&
156
+ type == o.type &&
157
+ additional_properties == o.additional_properties
158
+ end
159
+
160
+ # Calculates hash code according to all attributes.
161
+ # @return [Integer] Hash code
162
+ # @!visibility private
163
+ def hash
164
+ [address, formats, type, additional_properties].hash
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,26 @@
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
+ # Indicates that the notification channel is an e-mail address
21
+ class NotificationChannelEmailConfigType
22
+ include BaseEnumModel
23
+
24
+ EMAIL = "email".freeze
25
+ end
26
+ 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
+ # Specifies the format of the e-mail that is sent for On-Call notifications
21
+ class NotificationChannelEmailFormatType
22
+ include BaseEnumModel
23
+
24
+ HTML = "html".freeze
25
+ TEXT = "text".freeze
26
+ end
27
+ end
@@ -0,0 +1,225 @@
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
+ # Phone notification channel configuration
21
+ class NotificationChannelPhoneConfig
22
+ include BaseGenericModel
23
+
24
+ # The formatted international version of Number (e.g. +33 7 1 23 45 67).
25
+ attr_reader :formatted_number
26
+
27
+ # The E-164 formatted phone number (e.g. +3371234567)
28
+ attr_reader :number
29
+
30
+ # The ISO 3166-1 alpha-2 two-letter country code.
31
+ attr_reader :region
32
+
33
+ # If present, the date the user subscribed this number to SMS messages
34
+ attr_accessor :sms_subscribed_at
35
+
36
+ # Indicates that the notification channel is a phone
37
+ attr_reader :type
38
+
39
+ # Indicates whether this phone has been verified by the user in Datadog On-Call
40
+ attr_reader :verified
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
+ :'formatted_number' => :'formatted_number',
49
+ :'number' => :'number',
50
+ :'region' => :'region',
51
+ :'sms_subscribed_at' => :'sms_subscribed_at',
52
+ :'type' => :'type',
53
+ :'verified' => :'verified'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ # @!visibility private
59
+ def self.openapi_types
60
+ {
61
+ :'formatted_number' => :'String',
62
+ :'number' => :'String',
63
+ :'region' => :'String',
64
+ :'sms_subscribed_at' => :'Time',
65
+ :'type' => :'NotificationChannelPhoneConfigType',
66
+ :'verified' => :'Boolean'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ # @!visibility private
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ :'sms_subscribed_at',
75
+ ])
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param attributes [Hash] Model attributes in the form of hash
80
+ # @!visibility private
81
+ def initialize(attributes = {})
82
+ if (!attributes.is_a?(Hash))
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::NotificationChannelPhoneConfig` initialize method"
84
+ end
85
+
86
+ self.additional_properties = {}
87
+ # check to see if the attribute exists and convert string to symbol for hash key
88
+ attributes = attributes.each_with_object({}) { |(k, v), h|
89
+ if (!self.class.attribute_map.key?(k.to_sym))
90
+ self.additional_properties[k.to_sym] = v
91
+ else
92
+ h[k.to_sym] = v
93
+ end
94
+ }
95
+
96
+ if attributes.key?(:'formatted_number')
97
+ self.formatted_number = attributes[:'formatted_number']
98
+ end
99
+
100
+ if attributes.key?(:'number')
101
+ self.number = attributes[:'number']
102
+ end
103
+
104
+ if attributes.key?(:'region')
105
+ self.region = attributes[:'region']
106
+ end
107
+
108
+ if attributes.key?(:'sms_subscribed_at')
109
+ self.sms_subscribed_at = attributes[:'sms_subscribed_at']
110
+ end
111
+
112
+ if attributes.key?(:'type')
113
+ self.type = attributes[:'type']
114
+ end
115
+
116
+ if attributes.key?(:'verified')
117
+ self.verified = attributes[:'verified']
118
+ end
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ # @!visibility private
124
+ def valid?
125
+ return false if @formatted_number.nil?
126
+ return false if @number.nil?
127
+ return false if @region.nil?
128
+ return false if @type.nil?
129
+ return false if @verified.nil?
130
+ true
131
+ end
132
+
133
+ # Custom attribute writer method with validation
134
+ # @param formatted_number [Object] Object to be assigned
135
+ # @!visibility private
136
+ def formatted_number=(formatted_number)
137
+ if formatted_number.nil?
138
+ fail ArgumentError, 'invalid value for "formatted_number", formatted_number cannot be nil.'
139
+ end
140
+ @formatted_number = formatted_number
141
+ end
142
+
143
+ # Custom attribute writer method with validation
144
+ # @param number [Object] Object to be assigned
145
+ # @!visibility private
146
+ def number=(number)
147
+ if number.nil?
148
+ fail ArgumentError, 'invalid value for "number", number cannot be nil.'
149
+ end
150
+ @number = number
151
+ end
152
+
153
+ # Custom attribute writer method with validation
154
+ # @param region [Object] Object to be assigned
155
+ # @!visibility private
156
+ def region=(region)
157
+ if region.nil?
158
+ fail ArgumentError, 'invalid value for "region", region cannot be nil.'
159
+ end
160
+ @region = region
161
+ end
162
+
163
+ # Custom attribute writer method with validation
164
+ # @param type [Object] Object to be assigned
165
+ # @!visibility private
166
+ def type=(type)
167
+ if type.nil?
168
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
169
+ end
170
+ @type = type
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param verified [Object] Object to be assigned
175
+ # @!visibility private
176
+ def verified=(verified)
177
+ if verified.nil?
178
+ fail ArgumentError, 'invalid value for "verified", verified cannot be nil.'
179
+ end
180
+ @verified = verified
181
+ end
182
+
183
+ # Returns the object in the form of hash, with additionalProperties support.
184
+ # @return [Hash] Returns the object in the form of hash
185
+ # @!visibility private
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ self.additional_properties.each_pair do |attr, value|
198
+ hash[attr] = value
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Checks equality by comparing each attribute.
204
+ # @param o [Object] Object to be compared
205
+ # @!visibility private
206
+ def ==(o)
207
+ return true if self.equal?(o)
208
+ self.class == o.class &&
209
+ formatted_number == o.formatted_number &&
210
+ number == o.number &&
211
+ region == o.region &&
212
+ sms_subscribed_at == o.sms_subscribed_at &&
213
+ type == o.type &&
214
+ verified == o.verified &&
215
+ additional_properties == o.additional_properties
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Integer] Hash code
220
+ # @!visibility private
221
+ def hash
222
+ [formatted_number, number, region, sms_subscribed_at, type, verified, additional_properties].hash
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,26 @@
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
+ # Indicates that the notification channel is a phone
21
+ class NotificationChannelPhoneConfigType
22
+ include BaseEnumModel
23
+
24
+ PHONE = "phone".freeze
25
+ end
26
+ end
@@ -0,0 +1,165 @@
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
+ # Push notification channel configuration
21
+ class NotificationChannelPushConfig
22
+ include BaseGenericModel
23
+
24
+ # The name of the application used to receive push notifications
25
+ attr_reader :application_name
26
+
27
+ # The name of the mobile device being used
28
+ attr_reader :device_name
29
+
30
+ # Indicates that the notification channel is a mobile device for push notifications
31
+ attr_reader :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
+ :'application_name' => :'application_name',
40
+ :'device_name' => :'device_name',
41
+ :'type' => :'type'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'application_name' => :'String',
50
+ :'device_name' => :'String',
51
+ :'type' => :'NotificationChannelPushConfigType'
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::NotificationChannelPushConfig` 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?(:'application_name')
74
+ self.application_name = attributes[:'application_name']
75
+ end
76
+
77
+ if attributes.key?(:'device_name')
78
+ self.device_name = attributes[:'device_name']
79
+ end
80
+
81
+ if attributes.key?(:'type')
82
+ self.type = attributes[:'type']
83
+ end
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ # @!visibility private
89
+ def valid?
90
+ return false if @application_name.nil?
91
+ return false if @device_name.nil?
92
+ return false if @type.nil?
93
+ true
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param application_name [Object] Object to be assigned
98
+ # @!visibility private
99
+ def application_name=(application_name)
100
+ if application_name.nil?
101
+ fail ArgumentError, 'invalid value for "application_name", application_name cannot be nil.'
102
+ end
103
+ @application_name = application_name
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param device_name [Object] Object to be assigned
108
+ # @!visibility private
109
+ def device_name=(device_name)
110
+ if device_name.nil?
111
+ fail ArgumentError, 'invalid value for "device_name", device_name cannot be nil.'
112
+ end
113
+ @device_name = device_name
114
+ end
115
+
116
+ # Custom attribute writer method with validation
117
+ # @param type [Object] Object to be assigned
118
+ # @!visibility private
119
+ def type=(type)
120
+ if type.nil?
121
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
122
+ end
123
+ @type = type
124
+ end
125
+
126
+ # Returns the object in the form of hash, with additionalProperties support.
127
+ # @return [Hash] Returns the object in the form of hash
128
+ # @!visibility private
129
+ def to_hash
130
+ hash = {}
131
+ self.class.attribute_map.each_pair do |attr, param|
132
+ value = self.send(attr)
133
+ if value.nil?
134
+ is_nullable = self.class.openapi_nullable.include?(attr)
135
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
136
+ end
137
+
138
+ hash[param] = _to_hash(value)
139
+ end
140
+ self.additional_properties.each_pair do |attr, value|
141
+ hash[attr] = value
142
+ end
143
+ hash
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param o [Object] Object to be compared
148
+ # @!visibility private
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ application_name == o.application_name &&
153
+ device_name == o.device_name &&
154
+ type == o.type &&
155
+ additional_properties == o.additional_properties
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Integer] Hash code
160
+ # @!visibility private
161
+ def hash
162
+ [application_name, device_name, type, additional_properties].hash
163
+ end
164
+ end
165
+ end
@@ -0,0 +1,26 @@
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
+ # Indicates that the notification channel is a mobile device for push notifications
21
+ class NotificationChannelPushConfigType
22
+ include BaseEnumModel
23
+
24
+ PUSH = "push".freeze
25
+ end
26
+ end
@@ -0,0 +1,26 @@
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
+ # Indicates that the resource is of type 'notification_channels'.
21
+ class NotificationChannelType
22
+ include BaseEnumModel
23
+
24
+ NOTIFICATION_CHANNELS = "notification_channels".freeze
25
+ end
26
+ end