datadog_api_client 2.27.1 → 2.28.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +0 -3
  4. data/.generator/schemas/v1/openapi.yaml +385 -616
  5. data/.generator/schemas/v2/openapi.yaml +1498 -386
  6. data/.generator/src/generator/formatter.py +2 -43
  7. data/.generator/src/generator/keywords.json +43 -0
  8. data/.generator/src/generator/templates/api.j2 +4 -0
  9. data/.generator/src/generator/templates/api_client.j2 +1 -0
  10. data/CHANGELOG.md +39 -0
  11. data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
  12. data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
  13. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
  14. data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
  15. data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
  16. data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
  17. data/examples/v1/monitors/ValidateMonitor.rb +0 -1
  18. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
  19. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
  20. data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +1 -1
  21. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
  22. data/examples/v1/synthetics/UpdateMobileTest.rb +1 -1
  23. data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
  24. data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
  25. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
  26. data/examples/v2/incidents/CreateIncidentType.rb +19 -0
  27. data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
  28. data/examples/v2/incidents/GetIncidentType.rb +8 -0
  29. data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
  30. data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
  31. data/examples/v2/metrics/QueryScalarData.rb +0 -3
  32. data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
  33. data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
  34. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
  35. data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
  36. data/examples/v2/microsoft-teams-integration/{CreateApiHandle_1540689753.rb → CreateTenantBasedHandle_1540689753.rb} +5 -5
  37. data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
  38. data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
  39. data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
  40. data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
  41. data/examples/v2/microsoft-teams-integration/{ListApiHandles.rb → ListTenantBasedHandles.rb} +2 -2
  42. data/examples/v2/microsoft-teams-integration/{ListApiHandles_769592979.rb → ListTenantBasedHandles_769592979.rb} +1 -1
  43. data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
  44. data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
  45. data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
  46. data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
  47. data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
  48. data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
  49. data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
  50. data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
  51. data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
  52. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
  53. data/lib/datadog_api_client/api_client.rb +1 -0
  54. data/lib/datadog_api_client/configuration.rb +6 -2
  55. data/lib/datadog_api_client/inflector.rb +81 -28
  56. data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
  57. data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -0
  58. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
  59. data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
  60. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -3
  61. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  62. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -6
  63. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -61
  64. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
  65. data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
  66. data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
  67. data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
  68. data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +32 -6
  69. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
  70. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
  71. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
  72. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
  73. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
  74. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
  75. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
  76. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
  77. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_initial_application_arguments.rb → synthetics_mobile_step_params_positions_items.rb} +21 -11
  78. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
  79. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_ci_options.rb → synthetics_mobile_step_params_variable.rb} +38 -17
  80. data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +2 -2
  81. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +1 -1
  82. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +42 -16
  83. data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +24 -5
  84. data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
  85. data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
  86. data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
  87. data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
  88. data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
  89. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_options_monitor_options_notification_preset_name.rb → synthetics_test_options_monitor_options_notification_preset_name.rb} +2 -2
  90. data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
  91. data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
  92. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items.rb → synthetics_test_restriction_policy_binding.rb} +11 -11
  93. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items_role.rb → synthetics_test_restriction_policy_binding_relation.rb} +2 -2
  94. data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
  95. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  96. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  97. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  98. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
  99. data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
  100. data/lib/datadog_api_client/v2/api/incidents_api.rb +361 -0
  101. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -13
  102. data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +98 -161
  103. data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
  104. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
  105. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
  106. data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
  107. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
  108. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
  109. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
  110. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
  111. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
  112. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
  113. data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
  114. data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
  117. data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → domain_allowlist_attributes.rb} +20 -18
  118. data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
  119. data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_binding.rb → v2/models/domain_allowlist_response.rb} +13 -13
  120. data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
  121. data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
  122. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_type.rb → domain_allowlist_type.rb} +3 -3
  123. data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
  124. data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
  126. data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
  127. data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
  128. data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
  129. data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
  130. data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
  131. data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
  132. data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
  133. data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
  134. data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
  135. data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
  136. data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
  137. data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
  138. data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
  139. data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
  140. data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
  141. data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
  142. data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
  143. data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
  144. data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
  145. data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
  146. data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
  147. data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
  148. data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
  149. data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
  150. data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
  151. data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
  152. data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
  153. data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
  154. data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
  155. data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
  156. data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
  157. data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
  158. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
  159. data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
  160. data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
  161. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
  162. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  163. data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
  164. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_data.rb → incident_type_create_data.rb} +7 -7
  165. data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_request.rb → incident_type_create_request.rb} +5 -5
  166. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handles_response.rb → incident_type_list_response.rb} +5 -5
  167. data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
  168. data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
  169. data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_response.rb → incident_type_patch_request.rb} +5 -5
  170. data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request.rb → incident_type_response.rb} +5 -5
  171. data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
  172. data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
  173. data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
  174. data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
  175. data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
  176. data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
  177. data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
  178. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_attributes.rb → microsoft_teams_tenant_based_handle_attributes.rb} +4 -4
  179. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_attributes.rb → microsoft_teams_tenant_based_handle_info_response_attributes.rb} +4 -4
  180. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_response_data.rb → microsoft_teams_tenant_based_handle_info_response_data.rb} +8 -8
  181. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_attributes.rb → microsoft_teams_tenant_based_handle_request_attributes.rb} +4 -4
  183. data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request_data.rb → microsoft_teams_tenant_based_handle_request_data.rb} +7 -7
  184. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
  185. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_data.rb → microsoft_teams_tenant_based_handle_response_data.rb} +8 -8
  186. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
  187. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
  188. data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
  189. data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
  190. data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
  191. data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
  192. data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
  193. data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
  194. data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
  195. data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
  196. data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
  197. data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
  198. data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
  199. data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
  200. data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
  201. data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
  202. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response.rb → rum_metric_response.rb} +5 -5
  203. data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
  204. data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
  205. data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
  206. data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb → v2/models/rum_metric_response_filter.rb} +13 -13
  207. data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
  208. data/lib/datadog_api_client/v2/models/rum_metric_response_uniqueness.rb +105 -0
  209. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_type.rb → rum_metric_type.rb} +3 -3
  210. data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
  211. data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
  212. data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
  213. data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
  214. data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
  215. data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
  216. data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
  217. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
  218. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
  219. data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
  220. data/lib/datadog_api_client/version.rb +1 -1
  221. metadata +110 -43
  222. data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
  223. data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +0 -17
  224. data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +0 -5
  225. data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +0 -8
  226. data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +0 -5
  227. data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +0 -5
  228. data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +0 -8
  229. data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +0 -8
  230. data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +0 -17
  231. data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +0 -18
  232. data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +0 -251
  233. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +0 -155
@@ -5,49 +5,8 @@ import re
5
5
  from functools import singledispatch
6
6
 
7
7
 
8
- KEYWORDS = {
9
- "__FILE__",
10
- "and",
11
- "def",
12
- "end",
13
- "in",
14
- "or",
15
- "self",
16
- "unless",
17
- "__LINE__",
18
- "begin",
19
- "defined?",
20
- "ensure",
21
- "module",
22
- "redo",
23
- "super",
24
- "until",
25
- "BEGIN",
26
- "break",
27
- "do",
28
- "false",
29
- "next",
30
- "rescue",
31
- "then",
32
- "when",
33
- "END",
34
- "case",
35
- "else",
36
- "for",
37
- "nil",
38
- "retry",
39
- "true",
40
- "while",
41
- "alias",
42
- "class",
43
- "elsif",
44
- "if",
45
- "not",
46
- "return",
47
- "undef",
48
- "yield",
49
- "hash",
50
- }
8
+ with (pathlib.Path(__file__).parent / "keywords.json").open() as f:
9
+ KEYWORDS = json.load(f)
51
10
 
52
11
  with (pathlib.Path(__file__).parent / "replacement.json").open() as f:
53
12
  EDGE_CASES = json.load(f)
@@ -0,0 +1,43 @@
1
+ [
2
+ "__FILE__",
3
+ "and",
4
+ "def",
5
+ "end",
6
+ "in",
7
+ "or",
8
+ "self",
9
+ "unless",
10
+ "__LINE__",
11
+ "begin",
12
+ "defined?",
13
+ "ensure",
14
+ "module",
15
+ "redo",
16
+ "super",
17
+ "until",
18
+ "BEGIN",
19
+ "break",
20
+ "do",
21
+ "false",
22
+ "next",
23
+ "rescue",
24
+ "then",
25
+ "when",
26
+ "END",
27
+ "case",
28
+ "else",
29
+ "for",
30
+ "nil",
31
+ "retry",
32
+ "true",
33
+ "while",
34
+ "alias",
35
+ "class",
36
+ "elsif",
37
+ "if",
38
+ "not",
39
+ "return",
40
+ "undef",
41
+ "yield",
42
+ "hash"
43
+ ]
@@ -207,6 +207,10 @@ module {{ module_name }}::{{ version|upper }}
207
207
  :return_type => return_type,
208
208
  :api_version => "{{ version|upper }}"
209
209
  )
210
+ {%- set query_multi_params = operation|parameters | map(attribute=1) | selectattr("in", "equalto", "query")| map("collection_format")| select("eq", "multi") | first-%}
211
+ {%- if query_multi_params %}
212
+ new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
213
+ {%- endif %}
210
214
 
211
215
  data, status_code, headers = @api_client.call_api(Net::HTTP::{{ httpMethod|camel_case }}, local_var_path, new_options)
212
216
  if @api_client.config.debugging
@@ -188,6 +188,7 @@ module {{ module_name }}
188
188
 
189
189
  req_opts[:pem] = File.read(@config.cert_file) if @config.cert_file
190
190
  req_opts[:pem_password] = File.read(@config.key_file) if @config.key_file
191
+ req_opts[:query_string_normalizer] = opts[:query_string_normalizer] if opts[:query_string_normalizer]
191
192
 
192
193
  opts[:stream_body] = true if opts[:return_type] == 'File'
193
194
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.28.1 / 2024-11-07
4
+
5
+ ### Fixed
6
+ * Fix Toplist widget's stacked display style - remove legend as required field by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2030
7
+ * Remove user fields that are unsupported by the Incidents API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2043
8
+ * Fix Synthetics batch status by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2084
9
+ ### Added
10
+ * Add MSTeams integration metadata info by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2045
11
+ * Add `code_analysis_sa_committers_hwm` and `code_analysis_sca_committers_hwm` to UsageMetering by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2046
12
+ * Update GCP API Spec to support `is_resource_change_collection_enabled` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2049
13
+ * Add vulnerability type to Findings API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2048
14
+ * Update Documentation for Data Stream Monitoring by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2055
15
+ * Add LLM Observability to ListStreamSource by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2054
16
+ * Add synthetics stepDetail.allowFailure and stepDetail.failure by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2064
17
+ * Integrate incident types into Incidents API documentation by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2047
18
+ * Add `use_recommended_keywords` attribute to sensitive data scanner rule spec by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2075
19
+ * Add domain allowlist endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2072
20
+ * Add v2 endpoints for RUM custom metrics. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2076
21
+ * Documentation for beta /v2/usage/billing_dimension_mapping by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1995
22
+ * Add `alwaysExecute` and `exitIfSucceed` to Synthetics steps by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2085
23
+ * Add metric_namespace_configs to GCP v2 API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2087
24
+ ### Changed
25
+ * Edit Naming for v2 Microsoft Teams Integration Endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2044
26
+ * Change the mobile device ids from enum to string by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2042
27
+ * Mark Cost Attribution end_month parameter as not required by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2027
28
+ * Allow for any type for additionalProperties in HTTPLogItem by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2062
29
+ * Make some amendments to the new mobiles schema by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2061
30
+ * Make value be oneOf number or string by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2077
31
+ * Add examples for resources for Cloudflare by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2070
32
+ ### Removed
33
+ * Remove deprecated estimated usage types for usage attribution by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2068
34
+ ### Deprecated
35
+ * Deprecate two sds metadata fields by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2060
36
+ * Delete `api/v2/cost/aws_related_accounts` from spec by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2078
37
+ * Deprecate `api/v2/cost/enabled` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2080
38
+
39
+
40
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.27.1...v2.28.1
41
+
3
42
  ## 2.27.1 / 2024-10-02
4
43
 
5
44
  ### Fixed
@@ -0,0 +1,66 @@
1
+ # Create a new dashboard with a toplist widget with stacked type and no legend specified
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5
+
6
+ body = DatadogAPIClient::V1::Dashboard.new({
7
+ title: "Example-Dashboard",
8
+ description: "",
9
+ widgets: [
10
+ DatadogAPIClient::V1::Widget.new({
11
+ layout: DatadogAPIClient::V1::WidgetLayout.new({
12
+ x: 0,
13
+ y: 0,
14
+ width: 47,
15
+ height: 15,
16
+ }),
17
+ definition: DatadogAPIClient::V1::ToplistWidgetDefinition.new({
18
+ title: "",
19
+ title_size: "16",
20
+ title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
21
+ time: DatadogAPIClient::V1::WidgetLegacyLiveSpan.new({}),
22
+ style: DatadogAPIClient::V1::ToplistWidgetStyle.new({
23
+ display: DatadogAPIClient::V1::ToplistWidgetStacked.new({
24
+ type: DatadogAPIClient::V1::ToplistWidgetStackedType::STACKED,
25
+ }),
26
+ scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
27
+ palette: "dog_classic",
28
+ }),
29
+ type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
30
+ requests: [
31
+ DatadogAPIClient::V1::ToplistWidgetRequest.new({
32
+ queries: [
33
+ DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
34
+ data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
35
+ name: "query1",
36
+ query: "avg:system.cpu.user{*} by {service}",
37
+ aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::AVG,
38
+ }),
39
+ ],
40
+ formulas: [
41
+ DatadogAPIClient::V1::WidgetFormula.new({
42
+ formula: "query1",
43
+ }),
44
+ ],
45
+ sort: DatadogAPIClient::V1::WidgetSortBy.new({
46
+ count: 10,
47
+ order_by: [
48
+ DatadogAPIClient::V1::WidgetGroupSort.new({
49
+ type: DatadogAPIClient::V1::GroupType::GROUP,
50
+ name: "service",
51
+ order: DatadogAPIClient::V1::WidgetSort::ASCENDING,
52
+ }),
53
+ ],
54
+ }),
55
+ response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::SCALAR,
56
+ }),
57
+ ],
58
+ }),
59
+ }),
60
+ ],
61
+ template_variables: [],
62
+ layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE,
63
+ is_read_only: false,
64
+ notify_list: [],
65
+ })
66
+ p api_instance.create_dashboard(body)
@@ -0,0 +1,65 @@
1
+ # Create a new dashboard with llm_observability_stream list_stream widget
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5
+
6
+ body = DatadogAPIClient::V1::Dashboard.new({
7
+ layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
8
+ title: "Example-Dashboard with list_stream widget",
9
+ widgets: [
10
+ DatadogAPIClient::V1::Widget.new({
11
+ definition: DatadogAPIClient::V1::ListStreamWidgetDefinition.new({
12
+ type: DatadogAPIClient::V1::ListStreamWidgetDefinitionType::LIST_STREAM,
13
+ requests: [
14
+ DatadogAPIClient::V1::ListStreamWidgetRequest.new({
15
+ response_format: DatadogAPIClient::V1::ListStreamResponseFormat::EVENT_LIST,
16
+ query: DatadogAPIClient::V1::ListStreamQuery.new({
17
+ data_source: DatadogAPIClient::V1::ListStreamSource::LLM_OBSERVABILITY_STREAM,
18
+ query_string: "@event_type:span @parent_id:undefined",
19
+ indexes: [],
20
+ }),
21
+ columns: [
22
+ DatadogAPIClient::V1::ListStreamColumn.new({
23
+ field: "@status",
24
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::COMPACT,
25
+ }),
26
+ DatadogAPIClient::V1::ListStreamColumn.new({
27
+ field: "@content.prompt",
28
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
29
+ }),
30
+ DatadogAPIClient::V1::ListStreamColumn.new({
31
+ field: "@content.response.content",
32
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
33
+ }),
34
+ DatadogAPIClient::V1::ListStreamColumn.new({
35
+ field: "timestamp",
36
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
37
+ }),
38
+ DatadogAPIClient::V1::ListStreamColumn.new({
39
+ field: "@ml_app",
40
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
41
+ }),
42
+ DatadogAPIClient::V1::ListStreamColumn.new({
43
+ field: "service",
44
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
45
+ }),
46
+ DatadogAPIClient::V1::ListStreamColumn.new({
47
+ field: "@meta.evaluations.quality",
48
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
49
+ }),
50
+ DatadogAPIClient::V1::ListStreamColumn.new({
51
+ field: "@meta.evaluations.security",
52
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
53
+ }),
54
+ DatadogAPIClient::V1::ListStreamColumn.new({
55
+ field: "@duration",
56
+ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
57
+ }),
58
+ ],
59
+ }),
60
+ ],
61
+ }),
62
+ }),
63
+ ],
64
+ })
65
+ p api_instance.create_dashboard(body)
@@ -15,6 +15,7 @@ body = DatadogAPIClient::V1::GCPAccount.new({
15
15
  ],
16
16
  is_cspm_enabled: true,
17
17
  is_security_command_center_enabled: true,
18
+ is_resource_change_collection_enabled: true,
18
19
  private_key: "private_key",
19
20
  private_key_id: "123456789abcdefghi123456789abcdefghijklm",
20
21
  project_id: "datadog-apitest",
@@ -12,6 +12,7 @@ body = DatadogAPIClient::V1::GCPAccount.new({
12
12
  host_filters: "key:value,filter:example",
13
13
  is_cspm_enabled: true,
14
14
  is_security_command_center_enabled: true,
15
+ is_resource_change_collection_enabled: true,
15
16
  private_key: "private_key",
16
17
  private_key_id: "123456789abcdefghi123456789abcdefghijklm",
17
18
  project_id: "datadog-apitest",
@@ -15,6 +15,7 @@ body = DatadogAPIClient::V1::GCPAccount.new({
15
15
  ],
16
16
  is_cspm_enabled: true,
17
17
  is_security_command_center_enabled: true,
18
+ is_resource_change_collection_enabled: true,
18
19
  private_key: "private_key",
19
20
  private_key_id: "123456789abcdefghi123456789abcdefghijklm",
20
21
  project_id: "datadog-apitest",
@@ -20,7 +20,6 @@ body = DatadogAPIClient::V1::Monitor.new({
20
20
  enable_logs_sample: true,
21
21
  escalation_message: "the situation has escalated",
22
22
  evaluation_delay: 700,
23
- groupby_simple_monitor: true,
24
23
  include_tags: true,
25
24
  locked: false,
26
25
  new_host_delay: 600,
@@ -17,7 +17,6 @@ body = DatadogAPIClient::V1::Monitor.new({
17
17
  enable_logs_sample: true,
18
18
  escalation_message: "the situation has escalated",
19
19
  evaluation_delay: 700,
20
- groupby_simple_monitor: true,
21
20
  include_tags: true,
22
21
  locked: false,
23
22
  new_host_delay: 600,
@@ -18,7 +18,6 @@ body = DatadogAPIClient::V1::Monitor.new({
18
18
  escalation_message: "the situation has escalated",
19
19
  evaluation_delay: 700,
20
20
  group_retention_duration: "2d",
21
- groupby_simple_monitor: false,
22
21
  include_tags: true,
23
22
  locked: false,
24
23
  new_host_delay: 600,
@@ -30,7 +30,9 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
30
30
  DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
31
31
  ],
32
32
  http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP1,
33
- monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({}),
33
+ monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({
34
+ notification_preset_name: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptionsNotificationPresetName::SHOW_ALL,
35
+ }),
34
36
  restricted_roles: [
35
37
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
36
38
  ],
@@ -13,7 +13,7 @@ body = DatadogAPIClient::V1::SyntheticsMobileTest.new({
13
13
  message: "",
14
14
  options: DatadogAPIClient::V1::SyntheticsMobileTestOptions.new({
15
15
  device_ids: [
16
- DatadogAPIClient::V1::SyntheticsMobileDeviceID::SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17,
16
+ "synthetics:mobile:device:iphone_15_ios_17",
17
17
  ],
18
18
  mobile_application: DatadogAPIClient::V1::SyntheticsMobileTestsMobileApplication.new({
19
19
  application_id: "ab0e0aed-536d-411a-9a99-5428c27d8f8e",
@@ -56,7 +56,9 @@ body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({
56
56
  DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
57
57
  ],
58
58
  http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP1,
59
- monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({}),
59
+ monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({
60
+ notification_preset_name: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptionsNotificationPresetName::SHOW_ALL,
61
+ }),
60
62
  restricted_roles: [
61
63
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
62
64
  ],
@@ -16,7 +16,7 @@ body = DatadogAPIClient::V1::SyntheticsMobileTest.new({
16
16
  message: "",
17
17
  options: DatadogAPIClient::V1::SyntheticsMobileTestOptions.new({
18
18
  device_ids: [
19
- DatadogAPIClient::V1::SyntheticsMobileDeviceID::SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17,
19
+ "synthetics:mobile:device:iphone_15_ios_17",
20
20
  ],
21
21
  mobile_application: DatadogAPIClient::V1::SyntheticsMobileTestsMobileApplication.new({
22
22
  application_id: "ab0e0aed-536d-411a-9a99-5428c27d8f8e",
@@ -0,0 +1,5 @@
1
+ # Get Domain Allowlist returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new
5
+ p api_instance.get_domain_allowlist()
@@ -0,0 +1,17 @@
1
+ # Sets Domain Allowlist returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new
5
+
6
+ body = DatadogAPIClient::V2::DomainAllowlistRequest.new({
7
+ data: DatadogAPIClient::V2::DomainAllowlist.new({
8
+ attributes: DatadogAPIClient::V2::DomainAllowlistAttributes.new({
9
+ domains: [
10
+ "@static-test-domain.test",
11
+ ],
12
+ enabled: false,
13
+ }),
14
+ type: DatadogAPIClient::V2::DomainAllowlistType::DOMAIN_ALLOWLIST,
15
+ }),
16
+ })
17
+ p api_instance.patch_domain_allowlist(body)
@@ -7,6 +7,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({
8
8
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
9
9
  is_security_command_center_enabled: true,
10
+ is_resource_change_collection_enabled: true,
10
11
  client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
11
12
  host_filters: [],
12
13
  }),
@@ -0,0 +1,19 @@
1
+ # Create an incident type returns "CREATED" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.create_incident_type".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8
+
9
+ body = DatadogAPIClient::V2::IncidentTypeCreateRequest.new({
10
+ data: DatadogAPIClient::V2::IncidentTypeCreateData.new({
11
+ attributes: DatadogAPIClient::V2::IncidentTypeAttributes.new({
12
+ description: "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.",
13
+ is_default: false,
14
+ name: "Security Incident",
15
+ }),
16
+ type: DatadogAPIClient::V2::IncidentTypeType::INCIDENT_TYPES,
17
+ }),
18
+ })
19
+ p api_instance.create_incident_type(body)
@@ -0,0 +1,11 @@
1
+ # Delete an incident type returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.delete_incident_type".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8
+
9
+ # there is a valid "incident_type" in the system
10
+ INCIDENT_TYPE_DATA_ID = ENV["INCIDENT_TYPE_DATA_ID"]
11
+ api_instance.delete_incident_type(INCIDENT_TYPE_DATA_ID)
@@ -0,0 +1,8 @@
1
+ # Get incident type details returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.get_incident_type".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8
+ p api_instance.get_incident_type("incident_type_id")
@@ -0,0 +1,8 @@
1
+ # Get a list of incident types returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.list_incident_types".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8
+ p api_instance.list_incident_types()
@@ -0,0 +1,22 @@
1
+ # Update an incident type returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.update_incident_type".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8
+
9
+ # there is a valid "incident_type" in the system
10
+ INCIDENT_TYPE_DATA_ATTRIBUTES_NAME = ENV["INCIDENT_TYPE_DATA_ATTRIBUTES_NAME"]
11
+ INCIDENT_TYPE_DATA_ID = ENV["INCIDENT_TYPE_DATA_ID"]
12
+
13
+ body = DatadogAPIClient::V2::IncidentTypePatchRequest.new({
14
+ data: DatadogAPIClient::V2::IncidentTypePatchData.new({
15
+ id: INCIDENT_TYPE_DATA_ID,
16
+ attributes: DatadogAPIClient::V2::IncidentTypeUpdateAttributes.new({
17
+ name: "Security Incident-updated",
18
+ }),
19
+ type: DatadogAPIClient::V2::IncidentTypeType::INCIDENT_TYPES,
20
+ }),
21
+ })
22
+ p api_instance.update_incident_type(INCIDENT_TYPE_DATA_ID, body)
@@ -1,9 +1,6 @@
1
1
  # Query scalar data across multiple products returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.query_scalar_data".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V2::MetricsAPI.new
8
5
 
9
6
  body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
@@ -1,9 +1,6 @@
1
1
  # Scalar cross product query returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.query_scalar_data".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V2::MetricsAPI.new
8
5
 
9
6
  body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
@@ -1,9 +1,6 @@
1
1
  # Query timeseries data across multiple products returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.query_timeseries_data".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V2::MetricsAPI.new
8
5
 
9
6
  body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
@@ -1,9 +1,6 @@
1
1
  # Timeseries cross product query returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.query_timeseries_data".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V2::MetricsAPI.new
8
5
 
9
6
  body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
@@ -0,0 +1,17 @@
1
+ # Create tenant-based handle returns "CREATED" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
+
6
+ body = DatadogAPIClient::V2::MicrosoftTeamsCreateTenantBasedHandleRequest.new({
7
+ data: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleRequestData.new({
8
+ attributes: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleRequestAttributes.new({
9
+ channel_id: "fake-channel-id",
10
+ name: "fake-handle-name",
11
+ team_id: "00000000-0000-0000-0000-000000000000",
12
+ tenant_id: "00000000-0000-0000-0000-000000000001",
13
+ }),
14
+ type: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
15
+ }),
16
+ })
17
+ p api_instance.create_tenant_based_handle(body)
@@ -3,15 +3,15 @@
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
5
 
6
- body = DatadogAPIClient::V2::MicrosoftTeamsCreateApiHandleRequest.new({
7
- data: DatadogAPIClient::V2::MicrosoftTeamsApiHandleRequestData.new({
8
- attributes: DatadogAPIClient::V2::MicrosoftTeamsApiHandleRequestAttributes.new({
6
+ body = DatadogAPIClient::V2::MicrosoftTeamsCreateTenantBasedHandleRequest.new({
7
+ data: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleRequestData.new({
8
+ attributes: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleRequestAttributes.new({
9
9
  channel_id: "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2",
10
10
  name: "Example-Microsoft-Teams-Integration",
11
11
  team_id: "e5f50a58-c929-4fb3-8866-e2cd836de3c2",
12
12
  tenant_id: "4d3bac44-0230-4732-9e70-cc00736f0a97",
13
13
  }),
14
- type: DatadogAPIClient::V2::MicrosoftTeamsApiHandleType::HANDLE,
14
+ type: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
15
15
  }),
16
16
  })
17
- p api_instance.create_api_handle(body)
17
+ p api_instance.create_tenant_based_handle(body)
@@ -0,0 +1,5 @@
1
+ # Delete tenant-based handle returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
+ api_instance.delete_tenant_based_handle("handle_id")
@@ -0,0 +1,8 @@
1
+ # Delete api handle returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
+
6
+ # there is a valid "tenant_based_handle" in the system
7
+ TENANT_BASED_HANDLE_DATA_ID = ENV["TENANT_BASED_HANDLE_DATA_ID"]
8
+ api_instance.delete_tenant_based_handle(TENANT_BASED_HANDLE_DATA_ID)
@@ -0,0 +1,5 @@
1
+ # Get tenant-based handle information returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
+ p api_instance.get_tenant_based_handle("handle_id")
@@ -0,0 +1,8 @@
1
+ # Get api handle information returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
+
6
+ # there is a valid "tenant_based_handle" in the system
7
+ TENANT_BASED_HANDLE_DATA_ID = ENV["TENANT_BASED_HANDLE_DATA_ID"]
8
+ p api_instance.get_tenant_based_handle(TENANT_BASED_HANDLE_DATA_ID)
@@ -1,5 +1,5 @@
1
- # Get all handles returns "OK" response
1
+ # Get all tenant-based handles returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
- p api_instance.list_api_handles()
5
+ p api_instance.list_tenant_based_handles()
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new
5
- p api_instance.list_api_handles()
5
+ p api_instance.list_tenant_based_handles()