datadog_api_client 2.19.0 → 2.21.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 (256) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +5 -0
  4. data/.generator/schemas/v1/openapi.yaml +430 -172
  5. data/.generator/schemas/v2/openapi.yaml +3146 -165
  6. data/.generator/src/generator/templates/api.j2 +5 -5
  7. data/CHANGELOG.md +48 -0
  8. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +3 -0
  9. data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +25 -0
  10. data/examples/v1/logs-indexes/CreateLogsIndex.rb +5 -0
  11. data/examples/v1/logs-indexes/UpdateLogsIndex.rb +5 -0
  12. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
  13. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +29 -0
  14. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  15. data/examples/v1/synthetics/TriggerCITests.rb +1 -1
  16. data/examples/v1/synthetics/UpdateBrowserTest.rb +2 -1
  17. data/examples/v1/usage-metering/GetUsageLambda.rb +5 -2
  18. data/examples/v2/api-management/CreateOpenAPI.rb +11 -0
  19. data/examples/v2/api-management/DeleteOpenAPI.rb +11 -0
  20. data/examples/v2/api-management/GetOpenAPI.rb +11 -0
  21. data/examples/v2/api-management/UpdateOpenAPI.rb +14 -0
  22. data/examples/v2/case-management/ArchiveCase.rb +14 -0
  23. data/examples/v2/case-management/AssignCase.rb +20 -0
  24. data/examples/v2/case-management/CreateCase.rb +33 -0
  25. data/examples/v2/case-management/CreateProject.rb +15 -0
  26. data/examples/v2/case-management/DeleteProject.rb +5 -0
  27. data/examples/v2/case-management/GetCase.rb +8 -0
  28. data/examples/v2/case-management/GetProject.rb +5 -0
  29. data/examples/v2/case-management/GetProjects.rb +5 -0
  30. data/examples/v2/case-management/SearchCases.rb +5 -0
  31. data/examples/v2/case-management/SearchCases_3433960044.rb +5 -0
  32. data/examples/v2/case-management/UnarchiveCase.rb +14 -0
  33. data/examples/v2/case-management/UnassignCase.rb +14 -0
  34. data/examples/v2/case-management/UpdatePriority.rb +17 -0
  35. data/examples/v2/case-management/UpdateStatus.rb +17 -0
  36. data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +17 -0
  37. data/examples/v2/cloud-workload-security/DeleteCSMThreatsAgentRule.rb +8 -0
  38. data/examples/v2/cloud-workload-security/DownloadCSMThreatsPolicy.rb +5 -0
  39. data/examples/v2/cloud-workload-security/GetCSMThreatsAgentRule.rb +8 -0
  40. data/examples/v2/cloud-workload-security/ListCSMThreatsAgentRules.rb +5 -0
  41. data/examples/v2/cloud-workload-security/UpdateCSMThreatsAgentRule.rb +20 -0
  42. data/examples/v2/dora-metrics/CreateDORAIncident.rb +6 -3
  43. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +18 -0
  44. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +21 -0
  45. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb +31 -0
  46. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb +31 -0
  47. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb +27 -0
  48. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb +32 -0
  49. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb +31 -0
  50. data/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb +8 -0
  51. data/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb +8 -0
  52. data/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb +5 -0
  53. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +18 -0
  54. data/examples/v2/metrics/ListMetricAssets.rb +5 -0
  55. data/examples/v2/okta-integration/CreateOktaAccount.rb +1 -1
  56. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +19 -0
  57. data/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb +8 -0
  58. data/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb +8 -0
  59. data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb +5 -0
  60. data/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb +17 -0
  61. data/examples/v2/teams/GetTeamMemberships_3799131168.rb +8 -0
  62. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +1 -1
  63. data/lib/datadog_api_client/configuration.rb +4 -0
  64. data/lib/datadog_api_client/inflector.rb +134 -0
  65. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -3
  66. data/lib/datadog_api_client/v1/api/organizations_api.rb +1 -1
  67. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +8 -8
  68. data/lib/datadog_api_client/v1/models/dashboard.rb +5 -1
  69. data/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +2 -0
  70. data/lib/datadog_api_client/v1/models/gcp_account.rb +14 -1
  71. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +6 -0
  72. data/lib/datadog_api_client/v1/models/log.rb +1 -1
  73. data/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +90 -0
  74. data/lib/datadog_api_client/v1/models/logs_index.rb +36 -1
  75. data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +36 -1
  76. data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
  77. data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
  78. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
  79. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
  80. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +84 -4
  81. data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
  82. data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +1 -1
  83. data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
  84. data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +2 -2
  85. data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
  87. data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +1 -1
  88. data/lib/datadog_api_client/v1/models/split_config.rb +6 -6
  89. data/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +1 -0
  90. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
  91. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +1 -1
  92. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  93. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  94. data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +1 -1
  95. data/lib/datadog_api_client/v1/models/usage_lambda_response.rb +1 -1
  96. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +81 -1
  97. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +83 -3
  98. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +182 -102
  99. data/lib/datadog_api_client/v2/api/api_management_api.rb +319 -0
  100. data/lib/datadog_api_client/v2/api/case_management_api.rb +942 -0
  101. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +2 -2
  102. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +392 -0
  103. data/lib/datadog_api_client/v2/api/incident_services_api.rb +15 -0
  104. data/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb +355 -0
  105. data/lib/datadog_api_client/v2/api/metrics_api.rb +69 -1
  106. data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
  107. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +329 -0
  108. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -1
  109. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  110. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +6 -6
  111. data/lib/datadog_api_client/v2/models/case.rb +150 -0
  112. data/lib/datadog_api_client/v2/models/case3rd_party_ticket_status.rb +28 -0
  113. data/lib/datadog_api_client/v2/models/case_assign.rb +119 -0
  114. data/lib/datadog_api_client/v2/models/case_assign_attributes.rb +98 -0
  115. data/lib/datadog_api_client/v2/models/case_assign_request.rb +98 -0
  116. data/lib/datadog_api_client/v2/models/case_attributes.rb +202 -0
  117. data/lib/datadog_api_client/v2/models/case_create.rb +129 -0
  118. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +139 -0
  119. data/lib/datadog_api_client/v2/models/case_create_relationships.rb +116 -0
  120. data/lib/datadog_api_client/v2/models/case_create_request.rb +98 -0
  121. data/lib/datadog_api_client/v2/models/case_empty.rb +98 -0
  122. data/lib/datadog_api_client/v2/models/case_empty_request.rb +98 -0
  123. data/lib/datadog_api_client/v2/models/case_priority.rb +31 -0
  124. data/lib/datadog_api_client/v2/models/case_relationships.rb +120 -0
  125. data/lib/datadog_api_client/v2/models/case_resource_type.rb +26 -0
  126. data/lib/datadog_api_client/v2/models/case_response.rb +80 -0
  127. data/lib/datadog_api_client/v2/models/case_sortable_field.rb +28 -0
  128. data/lib/datadog_api_client/v2/models/case_status.rb +28 -0
  129. data/lib/datadog_api_client/v2/models/case_type.rb +26 -0
  130. data/lib/datadog_api_client/v2/models/case_update_priority.rb +119 -0
  131. data/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +98 -0
  132. data/lib/datadog_api_client/v2/models/case_update_priority_request.rb +98 -0
  133. data/lib/datadog_api_client/v2/models/case_update_status.rb +119 -0
  134. data/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +98 -0
  135. data/lib/datadog_api_client/v2/models/case_update_status_request.rb +98 -0
  136. data/lib/datadog_api_client/v2/models/cases_response.rb +92 -0
  137. data/lib/datadog_api_client/v2/models/cases_response_meta.rb +80 -0
  138. data/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +100 -0
  139. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +1 -1
  140. data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +1 -1
  141. data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +1 -1
  142. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +90 -0
  143. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +21 -1
  144. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +80 -0
  145. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +11 -1
  146. data/lib/datadog_api_client/v2/models/create_open_api_response.rb +80 -0
  147. data/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +82 -0
  148. data/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +90 -0
  149. data/lib/datadog_api_client/v2/models/custom_destination_attribute_tags_restriction_list_type.rb +31 -0
  150. data/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +80 -0
  151. data/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +193 -0
  152. data/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +119 -0
  153. data/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +119 -0
  154. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +64 -0
  155. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +181 -0
  156. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch_type.rb +26 -0
  157. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +141 -0
  158. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +141 -0
  160. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk_type.rb +26 -0
  161. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth.rb +63 -0
  162. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +140 -0
  163. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic_type.rb +26 -0
  164. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +140 -0
  165. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header_type.rb +26 -0
  166. data/lib/datadog_api_client/v2/models/custom_destination_response.rb +80 -0
  167. data/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +171 -0
  168. data/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +100 -0
  169. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +64 -0
  170. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +181 -0
  171. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch_type.rb +26 -0
  172. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +141 -0
  173. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http_type.rb +26 -0
  174. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +120 -0
  175. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk_type.rb +26 -0
  176. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth.rb +63 -0
  177. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +98 -0
  178. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic_type.rb +26 -0
  179. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +119 -0
  180. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header_type.rb +26 -0
  181. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +80 -0
  183. data/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +169 -0
  184. data/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +129 -0
  185. data/lib/datadog_api_client/v2/models/custom_destinations_response.rb +82 -0
  186. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
  187. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +31 -20
  188. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +14 -1
  189. data/lib/datadog_api_client/v2/models/jira_issue.rb +90 -0
  190. data/lib/datadog_api_client/v2/models/jira_issue_result.rb +110 -0
  191. data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +1 -12
  192. data/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +80 -0
  193. data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +90 -0
  194. data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +82 -0
  195. data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +90 -0
  196. data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +82 -0
  197. data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +90 -0
  198. data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +82 -0
  199. data/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +129 -0
  200. data/lib/datadog_api_client/v2/models/metric_asset_response_included.rb +65 -0
  201. data/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +110 -0
  202. data/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +90 -0
  203. data/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +82 -0
  204. data/lib/datadog_api_client/v2/models/metric_assets_response.rb +92 -0
  205. data/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +129 -0
  206. data/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +112 -0
  207. data/lib/datadog_api_client/v2/models/metric_dashboard_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +129 -0
  209. data/lib/datadog_api_client/v2/models/metric_monitor_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +129 -0
  211. data/lib/datadog_api_client/v2/models/metric_notebook_type.rb +26 -0
  212. data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
  213. data/lib/datadog_api_client/v2/models/metric_slo_asset.rb +129 -0
  214. data/lib/datadog_api_client/v2/models/metric_slo_type.rb +26 -0
  215. data/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +88 -0
  216. data/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +119 -0
  217. data/lib/datadog_api_client/v2/models/open_api_endpoint.rb +90 -0
  218. data/lib/datadog_api_client/v2/models/open_api_file.rb +80 -0
  219. data/lib/datadog_api_client/v2/models/project.rb +150 -0
  220. data/lib/datadog_api_client/v2/models/project_attributes.rb +90 -0
  221. data/lib/datadog_api_client/v2/models/project_create.rb +119 -0
  222. data/lib/datadog_api_client/v2/models/project_create_attributes.rb +119 -0
  223. data/lib/datadog_api_client/v2/models/project_create_request.rb +98 -0
  224. data/lib/datadog_api_client/v2/models/project_relationship.rb +98 -0
  225. data/lib/datadog_api_client/v2/models/project_relationship_data.rb +119 -0
  226. data/lib/datadog_api_client/v2/models/project_relationships.rb +90 -0
  227. data/lib/datadog_api_client/v2/models/project_resource_type.rb +26 -0
  228. data/lib/datadog_api_client/v2/models/project_response.rb +80 -0
  229. data/lib/datadog_api_client/v2/models/projects_response.rb +82 -0
  230. data/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +100 -0
  231. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +198 -0
  232. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +181 -0
  233. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +119 -0
  234. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +98 -0
  235. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +80 -0
  236. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_type.rb +26 -0
  237. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +166 -0
  238. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +119 -0
  239. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +98 -0
  240. data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +82 -0
  241. data/lib/datadog_api_client/v2/models/security_monitoring_user.rb +98 -0
  242. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +1 -1
  243. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +1 -1
  244. data/lib/datadog_api_client/v2/models/service_now_ticket.rb +90 -0
  245. data/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +80 -0
  246. data/lib/datadog_api_client/v2/models/update_open_api_response.rb +80 -0
  247. data/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +82 -0
  248. data/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +90 -0
  249. data/lib/datadog_api_client/v2/models/user_relationship_data.rb +119 -0
  250. data/lib/datadog_api_client/v2/models/user_resource_type.rb +26 -0
  251. data/lib/datadog_api_client/v2/models/user_team_included.rb +62 -0
  252. data/lib/datadog_api_client/v2/models/user_team_response.rb +16 -4
  253. data/lib/datadog_api_client/v2/models/users_relationship.rb +100 -0
  254. data/lib/datadog_api_client/version.rb +1 -1
  255. metadata +179 -3
  256. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +0 -8
@@ -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
+ # Type of the HTTP destination.
21
+ class CustomDestinationResponseForwardDestinationHttpType
22
+ include BaseEnumModel
23
+
24
+ HTTP = "http".freeze
25
+ end
26
+ end
@@ -0,0 +1,120 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The Splunk HTTP Event Collector (HEC) destination.
21
+ class CustomDestinationResponseForwardDestinationSplunk
22
+ include BaseGenericModel
23
+
24
+ # The destination for which logs will be forwarded to.
25
+ # Must have HTTPS scheme and forwarding back to Datadog is not allowed.
26
+ attr_reader :endpoint
27
+
28
+ # Type of the Splunk HTTP Event Collector (HEC) destination.
29
+ attr_reader :type
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ # @!visibility private
33
+ def self.attribute_map
34
+ {
35
+ :'endpoint' => :'endpoint',
36
+ :'type' => :'type'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ # @!visibility private
42
+ def self.openapi_types
43
+ {
44
+ :'endpoint' => :'String',
45
+ :'type' => :'CustomDestinationResponseForwardDestinationSplunkType'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param attributes [Hash] Model attributes in the form of hash
51
+ # @!visibility private
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationSplunk` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationSplunk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'endpoint')
66
+ self.endpoint = attributes[:'endpoint']
67
+ end
68
+
69
+ if attributes.key?(:'type')
70
+ self.type = attributes[:'type']
71
+ end
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ # @!visibility private
77
+ def valid?
78
+ return false if @endpoint.nil?
79
+ return false if @type.nil?
80
+ true
81
+ end
82
+
83
+ # Custom attribute writer method with validation
84
+ # @param endpoint [Object] Object to be assigned
85
+ # @!visibility private
86
+ def endpoint=(endpoint)
87
+ if endpoint.nil?
88
+ fail ArgumentError, 'invalid value for "endpoint", endpoint cannot be nil.'
89
+ end
90
+ @endpoint = endpoint
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param type [Object] Object to be assigned
95
+ # @!visibility private
96
+ def type=(type)
97
+ if type.nil?
98
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
99
+ end
100
+ @type = type
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param o [Object] Object to be compared
105
+ # @!visibility private
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ endpoint == o.endpoint &&
110
+ type == o.type
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ # @!visibility private
116
+ def hash
117
+ [endpoint, type].hash
118
+ end
119
+ end
120
+ 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
+ # Type of the Splunk HTTP Event Collector (HEC) destination.
21
+ class CustomDestinationResponseForwardDestinationSplunkType
22
+ include BaseEnumModel
23
+
24
+ SPLUNK_HEC = "splunk_hec".freeze
25
+ end
26
+ end
@@ -0,0 +1,63 @@
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
+ # Authentication method of the HTTP requests.
21
+ module CustomDestinationResponseHttpDestinationAuth
22
+ class << self
23
+ include BaseOneOfModel
24
+ include BaseOneOfModelNoDiscriminator
25
+
26
+ # List of class defined in oneOf (OpenAPI v3)
27
+ def openapi_one_of
28
+ [
29
+ :'CustomDestinationResponseHttpDestinationAuthBasic',
30
+ :'CustomDestinationResponseHttpDestinationAuthCustomHeader'
31
+ ]
32
+ end
33
+ # Builds the object
34
+ # @param data [Mixed] Data to be matched against the list of oneOf items
35
+ # @return [Object] Returns the model or the data itself
36
+ def build(data)
37
+ # Go through the list of oneOf items and attempt to identify the appropriate one.
38
+ # Note:
39
+ # - We do not attempt to check whether exactly one item matches.
40
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
41
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
42
+ # - TODO: scalar values are de facto behaving as if they were nullable.
43
+ # - TODO: logging when debugging is set.
44
+ openapi_one_of.each do |klass|
45
+ begin
46
+ next if klass == :AnyType # "nullable: true"
47
+ typed_data = find_and_cast_into_type(klass, data)
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
+ return typed_data if typed_data
50
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
+ end
52
+ end
53
+
54
+ if openapi_one_of.include?(:AnyType)
55
+ data
56
+ else
57
+ self._unparsed = true
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,98 @@
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
+ # Basic access authentication.
21
+ class CustomDestinationResponseHttpDestinationAuthBasic
22
+ include BaseGenericModel
23
+
24
+ # Type of the basic access authentication.
25
+ attr_reader :type
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'type' => :'type'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'type' => :'CustomDestinationResponseHttpDestinationAuthBasicType'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthBasic` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthBasic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'type')
60
+ self.type = attributes[:'type']
61
+ end
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ # @!visibility private
67
+ def valid?
68
+ return false if @type.nil?
69
+ true
70
+ end
71
+
72
+ # Custom attribute writer method with validation
73
+ # @param type [Object] Object to be assigned
74
+ # @!visibility private
75
+ def type=(type)
76
+ if type.nil?
77
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
78
+ end
79
+ @type = type
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param o [Object] Object to be compared
84
+ # @!visibility private
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ type == o.type
89
+ end
90
+
91
+ # Calculates hash code according to all attributes.
92
+ # @return [Integer] Hash code
93
+ # @!visibility private
94
+ def hash
95
+ [type].hash
96
+ end
97
+ end
98
+ 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
+ # Type of the basic access authentication.
21
+ class CustomDestinationResponseHttpDestinationAuthBasicType
22
+ include BaseEnumModel
23
+
24
+ BASIC = "basic".freeze
25
+ end
26
+ end
@@ -0,0 +1,119 @@
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
+ # Custom header access authentication.
21
+ class CustomDestinationResponseHttpDestinationAuthCustomHeader
22
+ include BaseGenericModel
23
+
24
+ # The header name of the authentication.
25
+ attr_reader :header_name
26
+
27
+ # Type of the custom header access authentication.
28
+ attr_reader :type
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ # @!visibility private
32
+ def self.attribute_map
33
+ {
34
+ :'header_name' => :'header_name',
35
+ :'type' => :'type'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'header_name' => :'String',
44
+ :'type' => :'CustomDestinationResponseHttpDestinationAuthCustomHeaderType'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param attributes [Hash] Model attributes in the form of hash
50
+ # @!visibility private
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthCustomHeader` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthCustomHeader`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'header_name')
65
+ self.header_name = attributes[:'header_name']
66
+ end
67
+
68
+ if attributes.key?(:'type')
69
+ self.type = attributes[:'type']
70
+ end
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ # @!visibility private
76
+ def valid?
77
+ return false if @header_name.nil?
78
+ return false if @type.nil?
79
+ true
80
+ end
81
+
82
+ # Custom attribute writer method with validation
83
+ # @param header_name [Object] Object to be assigned
84
+ # @!visibility private
85
+ def header_name=(header_name)
86
+ if header_name.nil?
87
+ fail ArgumentError, 'invalid value for "header_name", header_name cannot be nil.'
88
+ end
89
+ @header_name = header_name
90
+ end
91
+
92
+ # Custom attribute writer method with validation
93
+ # @param type [Object] Object to be assigned
94
+ # @!visibility private
95
+ def type=(type)
96
+ if type.nil?
97
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
98
+ end
99
+ @type = type
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param o [Object] Object to be compared
104
+ # @!visibility private
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ header_name == o.header_name &&
109
+ type == o.type
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ # @!visibility private
115
+ def hash
116
+ [header_name, type].hash
117
+ end
118
+ end
119
+ 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
+ # Type of the custom header access authentication.
21
+ class CustomDestinationResponseHttpDestinationAuthCustomHeaderType
22
+ include BaseEnumModel
23
+
24
+ CUSTOM_HEADER = "custom_header".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
+ # The type of the resource. The value should always be `custom_destination`.
21
+ class CustomDestinationType
22
+ include BaseEnumModel
23
+
24
+ custom_destination = "custom_destination".freeze
25
+ end
26
+ end
@@ -0,0 +1,80 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The custom destination.
21
+ class CustomDestinationUpdateRequest
22
+ include BaseGenericModel
23
+
24
+ # The definition of a custom destination.
25
+ attr_accessor :data
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'data' => :'data'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'data' => :'CustomDestinationUpdateRequestDefinition'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequest` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'data')
60
+ self.data = attributes[:'data']
61
+ end
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param o [Object] Object to be compared
66
+ # @!visibility private
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ data == o.data
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Integer] Hash code
75
+ # @!visibility private
76
+ def hash
77
+ [data].hash
78
+ end
79
+ end
80
+ end