datadog_api_client 2.43.0 → 2.44.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 (369) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +263 -29
  3. data/.generator/schemas/v2/openapi.yaml +5051 -432
  4. data/.generator/src/generator/formatter.py +15 -1
  5. data/.generator/src/generator/templates/api.j2 +2 -2
  6. data/.generator/src/generator/templates/model.j2 +1 -1
  7. data/.generator/src/generator/templates/model_generic.j2 +1 -1
  8. data/.generator/tests/test_formatter.rb +69 -0
  9. data/CHANGELOG.md +27 -0
  10. data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +2 -2
  11. data/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb +248 -0
  12. data/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb +248 -0
  13. data/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb +236 -0
  14. data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +2 -2
  15. data/examples/v1/notebooks/CreateNotebook.rb +1 -1
  16. data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
  17. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -0
  18. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  19. data/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb +19 -0
  20. data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
  21. data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +1 -1
  22. data/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +16 -0
  23. data/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +16 -0
  24. data/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +1 -1
  25. data/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb +5 -0
  26. data/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb +5 -0
  27. data/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +1 -1
  28. data/examples/v2/agentless-scanning/GetAzureScanOptions.rb +5 -0
  29. data/examples/v2/agentless-scanning/GetGcpScanOptions.rb +5 -0
  30. data/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +1 -1
  31. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
  32. data/examples/v2/agentless-scanning/ListAzureScanOptions.rb +5 -0
  33. data/examples/v2/agentless-scanning/ListGcpScanOptions.rb +5 -0
  34. data/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +1 -1
  35. data/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb +12 -0
  36. data/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +15 -0
  37. data/examples/v2/case-management/CommentCase.rb +17 -0
  38. data/examples/v2/case-management/CreateCase.rb +1 -1
  39. data/examples/v2/case-management/DeleteCaseComment.rb +11 -0
  40. data/examples/v2/case-management/DeleteCaseCustomAttribute.rb +11 -0
  41. data/examples/v2/case-management/UpdateCaseCustomAttribute.rb +25 -0
  42. data/examples/v2/case-management/UpdateCaseDescription.rb +17 -0
  43. data/examples/v2/case-management/UpdateCaseTitle.rb +17 -0
  44. data/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb +20 -0
  45. data/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb +11 -0
  46. data/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb +8 -0
  47. data/examples/v2/case-management-attribute/GetAllCustomAttributes.rb +5 -0
  48. data/examples/v2/case-management-type/CreateCaseType.rb +16 -0
  49. data/examples/v2/case-management-type/DeleteCaseType.rb +5 -0
  50. data/examples/v2/case-management-type/DeleteCaseType_2790986149.rb +8 -0
  51. data/examples/v2/case-management-type/GetAllCaseTypes.rb +5 -0
  52. data/examples/v2/cloud-cost-management/{UpdateArbitraryCostRule.rb → CreateCustomAllocationRule.rb} +2 -4
  53. data/examples/v2/cloud-cost-management/{CreateRuleset.rb → CreateTagPipelinesRuleset.rb} +2 -2
  54. data/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb +5 -0
  55. data/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb +5 -0
  56. data/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb +5 -0
  57. data/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +5 -0
  58. data/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb +5 -0
  59. data/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb +5 -0
  60. data/examples/v2/cloud-cost-management/{ReorderArbitraryCostRules.rb → ReorderCustomAllocationRules.rb} +2 -2
  61. data/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +22 -0
  62. data/examples/v2/cloud-cost-management/{CreateArbitraryCostRule.rb → UpdateCustomAllocationRule.rb} +2 -2
  63. data/examples/v2/cloud-cost-management/{UpdateRuleset.rb → UpdateTagPipelinesRuleset.rb} +4 -3
  64. data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +1 -1
  65. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +1 -0
  66. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +1 -0
  67. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +33 -0
  68. data/examples/v2/dora-metrics/CreateDORADeployment.rb +1 -1
  69. data/examples/v2/dora-metrics/CreateDORAFailure.rb +1 -1
  70. data/examples/v2/dora-metrics/CreateDORAIncident.rb +1 -1
  71. data/examples/v2/dora-metrics/{CreateDORAIncident_1768887482.rb → CreateDORAIncident_1101664022.rb} +1 -1
  72. data/examples/v2/error-tracking/DeleteIssueAssignee.rb +8 -0
  73. data/examples/v2/fleet-automation/CancelFleetDeployment.rb +8 -0
  74. data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +26 -0
  75. data/examples/v2/fleet-automation/GetFleetDeployment.rb +11 -0
  76. data/examples/v2/fleet-automation/ListFleetDeployments.rb +8 -0
  77. data/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb +30 -0
  78. data/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb +35 -0
  79. data/examples/v2/reference-tables/CreateReferenceTable.rb +44 -0
  80. data/examples/v2/reference-tables/CreateReferenceTableUpload.rb +21 -0
  81. data/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb +41 -0
  82. data/examples/v2/reference-tables/DeleteTable.rb +5 -0
  83. data/examples/v2/reference-tables/GetRowsByID.rb +5 -0
  84. data/examples/v2/reference-tables/GetTable.rb +5 -0
  85. data/examples/v2/reference-tables/ListTables.rb +5 -0
  86. data/examples/v2/reference-tables/UpdateReferenceTable.rb +44 -0
  87. data/examples/v2/roles/ListRoleTemplates.rb +8 -0
  88. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +3 -1
  89. data/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +8 -0
  90. data/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb +17 -0
  91. data/examples/v2/static-analysis/CreateSCAResult.rb +61 -0
  92. data/examples/v2/test-optimization/SearchFlakyTests.rb +27 -0
  93. data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +27 -0
  94. data/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb +26 -0
  95. data/lib/datadog_api_client/configuration.rb +9 -0
  96. data/lib/datadog_api_client/inflector.rb +208 -0
  97. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
  98. data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
  99. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper.rb +211 -0
  100. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_category.rb +165 -0
  101. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_fallback.rb +115 -0
  102. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_targets.rb +115 -0
  103. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_type.rb +26 -0
  104. data/lib/datadog_api_client/v1/models/logs_schema_data.rb +198 -0
  105. data/lib/datadog_api_client/v1/models/logs_schema_mapper.rb +63 -0
  106. data/lib/datadog_api_client/v1/models/logs_schema_processor.rb +198 -0
  107. data/lib/datadog_api_client/v1/models/logs_schema_processor_type.rb +26 -0
  108. data/lib/datadog_api_client/v1/models/logs_schema_remapper.rb +220 -0
  109. data/lib/datadog_api_client/v1/models/logs_schema_remapper_type.rb +26 -0
  110. data/lib/datadog_api_client/v1/models/monitor.rb +0 -1
  111. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +0 -1
  112. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +13 -1
  113. data/lib/datadog_api_client/v1/models/widget_marker.rb +0 -1
  114. data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +72 -0
  115. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +680 -22
  116. data/lib/datadog_api_client/v2/api/api_management_api.rb +0 -2
  117. data/lib/datadog_api_client/v2/api/case_management_api.rb +433 -0
  118. data/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +293 -0
  119. data/lib/datadog_api_client/v2/api/case_management_type_api.rb +218 -0
  120. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -0
  121. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +336 -336
  122. data/lib/datadog_api_client/v2/api/container_images_api.rb +1 -0
  123. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +9 -9
  124. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +65 -0
  125. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +318 -0
  126. data/lib/datadog_api_client/v2/api/incidents_api.rb +8 -8
  127. data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +0 -1
  128. data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +0 -4
  129. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +519 -0
  130. data/lib/datadog_api_client/v2/api/roles_api.rb +66 -0
  131. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +149 -10
  132. data/lib/datadog_api_client/v2/api/static_analysis_api.rb +166 -0
  133. data/lib/datadog_api_client/v2/api/test_optimization_api.rb +116 -0
  134. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +13 -3
  135. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array_meta.rb +105 -0
  136. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +11 -1
  137. data/lib/datadog_api_client/v2/models/azure_scan_options.rb +105 -0
  138. data/lib/datadog_api_client/v2/models/azure_scan_options_array.rb +125 -0
  139. data/lib/datadog_api_client/v2/models/azure_scan_options_data.rb +154 -0
  140. data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +115 -0
  141. data/lib/datadog_api_client/v2/models/azure_scan_options_data_type.rb +26 -0
  142. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update.rb +105 -0
  143. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data.rb +154 -0
  144. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +115 -0
  145. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_type.rb +26 -0
  146. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request.rb +105 -0
  147. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data.rb +143 -0
  148. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_attributes.rb +125 -0
  149. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_type.rb +26 -0
  150. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +0 -1
  151. data/lib/datadog_api_client/v2/models/case_attributes.rb +23 -3
  152. data/lib/datadog_api_client/v2/models/case_comment.rb +144 -0
  153. data/lib/datadog_api_client/v2/models/case_comment_attributes.rb +123 -0
  154. data/lib/datadog_api_client/v2/models/case_comment_request.rb +123 -0
  155. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +14 -14
  156. data/lib/datadog_api_client/v2/models/case_type.rb +2 -0
  157. data/lib/datadog_api_client/v2/models/case_type_create.rb +144 -0
  158. data/lib/datadog_api_client/v2/models/case_type_create_request.rb +123 -0
  159. data/lib/datadog_api_client/v2/models/case_type_resource.rb +125 -0
  160. data/lib/datadog_api_client/v2/models/case_type_resource_attributes.rb +161 -0
  161. data/lib/datadog_api_client/v2/models/case_type_resource_type.rb +26 -0
  162. data/lib/datadog_api_client/v2/models/case_type_response.rb +105 -0
  163. data/lib/datadog_api_client/v2/models/case_types_response.rb +107 -0
  164. data/lib/datadog_api_client/v2/models/case_update_custom_attribute.rb +144 -0
  165. data/lib/datadog_api_client/v2/models/case_update_custom_attribute_request.rb +123 -0
  166. data/lib/datadog_api_client/v2/models/case_update_description.rb +144 -0
  167. data/lib/datadog_api_client/v2/models/case_update_description_attributes.rb +123 -0
  168. data/lib/datadog_api_client/v2/models/case_update_description_request.rb +123 -0
  169. data/lib/datadog_api_client/v2/models/case_update_title.rb +144 -0
  170. data/lib/datadog_api_client/v2/models/case_update_title_attributes.rb +123 -0
  171. data/lib/datadog_api_client/v2/models/case_update_title_request.rb +123 -0
  172. data/lib/datadog_api_client/v2/models/cloud_asset_type.rb +28 -0
  173. data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +0 -2
  174. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +0 -1
  175. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +0 -1
  176. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +0 -1
  177. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +25 -3
  178. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +123 -0
  179. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +35 -5
  180. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +11 -1
  181. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +30 -10
  182. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +23 -3
  183. data/lib/datadog_api_client/v2/models/create_table_request.rb +105 -0
  184. data/lib/datadog_api_client/v2/models/create_table_request_data.rb +143 -0
  185. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +197 -0
  186. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +63 -0
  187. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +119 -0
  188. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  189. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  190. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +165 -0
  191. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +207 -0
  192. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +186 -0
  193. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +148 -0
  194. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +144 -0
  195. data/lib/datadog_api_client/v2/models/create_table_request_data_type.rb +26 -0
  196. data/lib/datadog_api_client/v2/models/create_upload_request.rb +105 -0
  197. data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +143 -0
  198. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +192 -0
  199. data/lib/datadog_api_client/v2/models/create_upload_request_data_type.rb +26 -0
  200. data/lib/datadog_api_client/v2/models/create_upload_response.rb +105 -0
  201. data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +143 -0
  202. data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +107 -0
  203. data/lib/datadog_api_client/v2/models/create_upload_response_data_type.rb +26 -0
  204. data/lib/datadog_api_client/v2/models/custom_attribute_config.rb +125 -0
  205. data/lib/datadog_api_client/v2/models/custom_attribute_config_attributes_create.rb +196 -0
  206. data/lib/datadog_api_client/v2/models/custom_attribute_config_create.rb +144 -0
  207. data/lib/datadog_api_client/v2/models/custom_attribute_config_create_request.rb +123 -0
  208. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_attributes.rb +217 -0
  209. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/custom_attribute_config_response.rb +105 -0
  211. data/lib/datadog_api_client/v2/models/custom_attribute_configs_response.rb +107 -0
  212. data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +28 -0
  213. data/lib/datadog_api_client/v2/models/custom_attribute_value.rb +165 -0
  214. data/lib/datadog_api_client/v2/models/custom_attribute_values_union.rb +65 -0
  215. data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_array.rb +125 -0
  216. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  217. data/lib/datadog_api_client/v2/models/flaky_test.rb +125 -0
  218. data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +301 -0
  219. data/lib/datadog_api_client/v2/models/flaky_test_attributes_flaky_state.rb +29 -0
  220. data/lib/datadog_api_client/v2/models/flaky_test_pipeline_stats.rb +124 -0
  221. data/lib/datadog_api_client/v2/models/flaky_test_run_metadata.rb +168 -0
  222. data/lib/datadog_api_client/v2/models/flaky_test_stats.rb +113 -0
  223. data/lib/datadog_api_client/v2/models/flaky_test_type.rb +26 -0
  224. data/lib/datadog_api_client/v2/models/flaky_tests_pagination.rb +113 -0
  225. data/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +115 -0
  226. data/lib/datadog_api_client/v2/models/flaky_tests_search_page_options.rb +137 -0
  227. data/lib/datadog_api_client/v2/models/flaky_tests_search_request.rb +105 -0
  228. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +125 -0
  229. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data.rb +115 -0
  230. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data_type.rb +26 -0
  231. data/lib/datadog_api_client/v2/models/flaky_tests_search_response.rb +117 -0
  232. data/lib/datadog_api_client/v2/models/flaky_tests_search_response_meta.rb +105 -0
  233. data/lib/datadog_api_client/v2/models/flaky_tests_search_sort.rb +37 -0
  234. data/lib/datadog_api_client/v2/models/fleet_deployment.rb +165 -0
  235. data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +147 -0
  236. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_attributes.rb +135 -0
  237. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +144 -0
  238. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +123 -0
  239. data/lib/datadog_api_client/v2/models/fleet_deployment_file_op.rb +30 -0
  240. data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +161 -0
  241. data/lib/datadog_api_client/v2/models/fleet_deployment_resource_type.rb +26 -0
  242. data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +105 -0
  243. data/lib/datadog_api_client/v2/models/fleet_deployments_page.rb +105 -0
  244. data/lib/datadog_api_client/v2/models/fleet_deployments_response.rb +135 -0
  245. data/lib/datadog_api_client/v2/models/fleet_deployments_response_meta.rb +105 -0
  246. data/lib/datadog_api_client/v2/models/gcp_scan_options.rb +105 -0
  247. data/lib/datadog_api_client/v2/models/gcp_scan_options_array.rb +125 -0
  248. data/lib/datadog_api_client/v2/models/gcp_scan_options_data.rb +154 -0
  249. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +115 -0
  250. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_type.rb +26 -0
  251. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update.rb +105 -0
  252. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data.rb +154 -0
  253. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +115 -0
  254. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_type.rb +26 -0
  255. data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_meta.rb +0 -1
  256. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +15 -9
  257. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +162 -0
  258. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +160 -0
  259. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +11 -1
  260. data/lib/datadog_api_client/v2/models/notification_rule_response.rb +0 -1
  261. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +0 -1
  262. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +0 -1
  263. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +0 -1
  264. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +0 -1
  265. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +0 -1
  266. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +0 -1
  267. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +0 -1
  268. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +0 -1
  269. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +0 -1
  270. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +0 -2
  271. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +0 -1
  272. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +0 -1
  273. data/lib/datadog_api_client/v2/models/patch_table_request.rb +105 -0
  274. data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +143 -0
  275. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +147 -0
  276. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +63 -0
  277. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +90 -0
  278. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  279. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  280. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  281. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  282. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  283. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +148 -0
  284. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +144 -0
  285. data/lib/datadog_api_client/v2/models/patch_table_request_data_type.rb +26 -0
  286. data/lib/datadog_api_client/v2/models/reference_table_create_source_type.rb +29 -0
  287. data/lib/datadog_api_client/v2/models/reference_table_schema_field_type.rb +27 -0
  288. data/lib/datadog_api_client/v2/models/reference_table_sort_type.rb +31 -0
  289. data/lib/datadog_api_client/v2/models/reference_table_source_type.rb +33 -0
  290. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request.rb +105 -0
  291. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data.rb +143 -0
  292. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_attributes.rb +107 -0
  293. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_type.rb +26 -0
  294. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response.rb +105 -0
  295. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data.rb +143 -0
  296. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_attributes.rb +107 -0
  297. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_type.rb +26 -0
  298. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results.rb +117 -0
  299. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols.rb +117 -0
  300. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols_symbols.rb +125 -0
  301. data/lib/datadog_api_client/v2/models/role_template_array.rb +125 -0
  302. data/lib/datadog_api_client/v2/models/role_template_data.rb +143 -0
  303. data/lib/datadog_api_client/v2/models/role_template_data_attributes.rb +115 -0
  304. data/lib/datadog_api_client/v2/models/role_template_data_type.rb +26 -0
  305. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +11 -1
  306. data/lib/datadog_api_client/v2/models/sbom_format.rb +27 -0
  307. data/lib/datadog_api_client/v2/models/sca_request.rb +105 -0
  308. data/lib/datadog_api_client/v2/models/sca_request_data.rb +143 -0
  309. data/lib/datadog_api_client/v2/models/sca_request_data_attributes.rb +193 -0
  310. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_commit.rb +165 -0
  311. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items.rb +211 -0
  312. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items.rb +135 -0
  313. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_file_position.rb +125 -0
  314. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_position.rb +144 -0
  315. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_reachable_symbol_properties_items.rb +115 -0
  316. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_files_items.rb +115 -0
  317. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_relations_items.rb +117 -0
  318. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_repository.rb +105 -0
  319. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items.rb +127 -0
  320. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items_affects_items.rb +105 -0
  321. data/lib/datadog_api_client/v2/models/sca_request_data_type.rb +26 -0
  322. data/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb +144 -0
  323. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_asset.rb +144 -0
  324. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_attributes.rb +165 -0
  325. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_last_success.rb +145 -0
  326. data/lib/datadog_api_client/v2/models/scanned_assets_metadata.rb +145 -0
  327. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +0 -1
  328. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +13 -1
  329. data/lib/datadog_api_client/v2/models/table_result_v2.rb +105 -0
  330. data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +125 -0
  331. data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +143 -0
  332. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +207 -0
  333. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +63 -0
  334. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +145 -0
  335. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage_error_type.rb +34 -0
  336. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +125 -0
  337. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  338. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  339. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  340. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  341. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +148 -0
  342. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +144 -0
  343. data/lib/datadog_api_client/v2/models/table_result_v2_data_type.rb +26 -0
  344. data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +125 -0
  345. data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +143 -0
  346. data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +105 -0
  347. data/lib/datadog_api_client/v2/models/table_row_resource_data_type.rb +26 -0
  348. data/lib/datadog_api_client/v2/models/timeline_cell.rb +155 -0
  349. data/lib/datadog_api_client/v2/models/timeline_cell_author.rb +62 -0
  350. data/lib/datadog_api_client/v2/models/timeline_cell_author_user.rb +115 -0
  351. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_content.rb +135 -0
  352. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_type.rb +26 -0
  353. data/lib/datadog_api_client/v2/models/timeline_cell_content.rb +62 -0
  354. data/lib/datadog_api_client/v2/models/timeline_cell_content_comment.rb +105 -0
  355. data/lib/datadog_api_client/v2/models/timeline_cell_resource.rb +165 -0
  356. data/lib/datadog_api_client/v2/models/timeline_cell_resource_type.rb +26 -0
  357. data/lib/datadog_api_client/v2/models/timeline_cell_type.rb +26 -0
  358. data/lib/datadog_api_client/v2/models/timeline_response.rb +107 -0
  359. data/lib/datadog_api_client/v2/models/vulnerability_advisory.rb +143 -0
  360. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
  361. data/lib/datadog_api_client/version.rb +1 -1
  362. metadata +274 -14
  363. data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +0 -5
  364. data/examples/v2/cloud-cost-management/DeleteRuleset.rb +0 -5
  365. data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +0 -5
  366. data/examples/v2/cloud-cost-management/GetRuleset.rb +0 -5
  367. data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +0 -5
  368. data/examples/v2/cloud-cost-management/ListRulesets.rb +0 -5
  369. data/examples/v2/cloud-cost-management/ReorderRulesets.rb +0 -13
@@ -23,85 +23,6 @@ module DatadogAPIClient::V2
23
23
  @api_client = api_client
24
24
  end
25
25
 
26
- # Create arbitrary cost rule.
27
- #
28
- # @see #create_arbitrary_cost_rule_with_http_info
29
- def create_arbitrary_cost_rule(body, opts = {})
30
- data, _status_code, _headers = create_arbitrary_cost_rule_with_http_info(body, opts)
31
- data
32
- end
33
-
34
- # Create arbitrary cost rule.
35
- #
36
- # Create a new arbitrary cost rule with the specified filters and allocation strategy.
37
- #
38
- # **Strategy Methods:**
39
- # - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
40
- # - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
41
- # - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
42
- #
43
- # **Filter Conditions:**
44
- # - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
45
- # - Use **values** for multi-value conditions: "in", "not in"
46
- # - Cannot use both value and values simultaneously.
47
- #
48
- # **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
49
- #
50
- # @param body [ArbitraryCostUpsertRequest]
51
- # @param opts [Hash] the optional parameters
52
- # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
53
- def create_arbitrary_cost_rule_with_http_info(body, opts = {})
54
-
55
- if @api_client.config.debugging
56
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_arbitrary_cost_rule ...'
57
- end
58
- # verify the required parameter 'body' is set
59
- if @api_client.config.client_side_validation && body.nil?
60
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_arbitrary_cost_rule"
61
- end
62
- # resource path
63
- local_var_path = '/api/v2/cost/arbitrary_rule'
64
-
65
- # query parameters
66
- query_params = opts[:query_params] || {}
67
-
68
- # header parameters
69
- header_params = opts[:header_params] || {}
70
- # HTTP header 'Accept' (if needed)
71
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
72
- # HTTP header 'Content-Type'
73
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
74
-
75
- # form parameters
76
- form_params = opts[:form_params] || {}
77
-
78
- # http body (model)
79
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
80
-
81
- # return_type
82
- return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
83
-
84
- # auth_names
85
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
86
-
87
- new_options = opts.merge(
88
- :operation => :create_arbitrary_cost_rule,
89
- :header_params => header_params,
90
- :query_params => query_params,
91
- :form_params => form_params,
92
- :body => post_body,
93
- :auth_names => auth_names,
94
- :return_type => return_type,
95
- :api_version => "V2"
96
- )
97
-
98
- data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
99
- if @api_client.config.debugging
100
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_arbitrary_cost_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
- end
102
- return data, status_code, headers
103
- end
104
-
105
26
  # Create Cloud Cost Management AWS CUR config.
106
27
  #
107
28
  # @see #create_cost_awscur_config_with_http_info
@@ -303,32 +224,44 @@ module DatadogAPIClient::V2
303
224
  return data, status_code, headers
304
225
  end
305
226
 
306
- # Create ruleset.
227
+ # Create custom allocation rule.
307
228
  #
308
- # @see #create_ruleset_with_http_info
309
- def create_ruleset(body, opts = {})
310
- data, _status_code, _headers = create_ruleset_with_http_info(body, opts)
229
+ # @see #create_custom_allocation_rule_with_http_info
230
+ def create_custom_allocation_rule(body, opts = {})
231
+ data, _status_code, _headers = create_custom_allocation_rule_with_http_info(body, opts)
311
232
  data
312
233
  end
313
234
 
314
- # Create ruleset.
235
+ # Create custom allocation rule.
315
236
  #
316
- # Create a new tag pipeline ruleset with the specified rules and configuration
237
+ # Create a new custom allocation rule with the specified filters and allocation strategy.
317
238
  #
318
- # @param body [CreateRulesetRequest]
239
+ # **Strategy Methods:**
240
+ # - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
241
+ # - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
242
+ # - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
243
+ #
244
+ # **Filter Conditions:**
245
+ # - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
246
+ # - Use **values** for multi-value conditions: "in", "not in"
247
+ # - Cannot use both value and values simultaneously.
248
+ #
249
+ # **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
250
+ #
251
+ # @param body [ArbitraryCostUpsertRequest]
319
252
  # @param opts [Hash] the optional parameters
320
- # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
321
- def create_ruleset_with_http_info(body, opts = {})
253
+ # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
254
+ def create_custom_allocation_rule_with_http_info(body, opts = {})
322
255
 
323
256
  if @api_client.config.debugging
324
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_ruleset ...'
257
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_custom_allocation_rule ...'
325
258
  end
326
259
  # verify the required parameter 'body' is set
327
260
  if @api_client.config.client_side_validation && body.nil?
328
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_ruleset"
261
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_custom_allocation_rule"
329
262
  end
330
263
  # resource path
331
- local_var_path = '/api/v2/tags/enrichment'
264
+ local_var_path = '/api/v2/cost/arbitrary_rule'
332
265
 
333
266
  # query parameters
334
267
  query_params = opts[:query_params] || {}
@@ -347,13 +280,13 @@ module DatadogAPIClient::V2
347
280
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
348
281
 
349
282
  # return_type
350
- return_type = opts[:debug_return_type] || 'RulesetResp'
283
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
351
284
 
352
285
  # auth_names
353
286
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
354
287
 
355
288
  new_options = opts.merge(
356
- :operation => :create_ruleset,
289
+ :operation => :create_custom_allocation_rule,
357
290
  :header_params => header_params,
358
291
  :query_params => query_params,
359
292
  :form_params => form_params,
@@ -365,37 +298,37 @@ module DatadogAPIClient::V2
365
298
 
366
299
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
367
300
  if @api_client.config.debugging
368
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
369
302
  end
370
303
  return data, status_code, headers
371
304
  end
372
305
 
373
- # Delete arbitrary cost rule.
306
+ # Create tag pipeline ruleset.
374
307
  #
375
- # @see #delete_arbitrary_cost_rule_with_http_info
376
- def delete_arbitrary_cost_rule(rule_id, opts = {})
377
- delete_arbitrary_cost_rule_with_http_info(rule_id, opts)
378
- nil
308
+ # @see #create_tag_pipelines_ruleset_with_http_info
309
+ def create_tag_pipelines_ruleset(body, opts = {})
310
+ data, _status_code, _headers = create_tag_pipelines_ruleset_with_http_info(body, opts)
311
+ data
379
312
  end
380
313
 
381
- # Delete arbitrary cost rule.
314
+ # Create tag pipeline ruleset.
382
315
  #
383
- # Delete an arbitrary cost rule - Delete an existing arbitrary cost rule by its ID
316
+ # Create a new tag pipeline ruleset with the specified rules and configuration
384
317
  #
385
- # @param rule_id [Integer] The unique identifier of the arbitrary cost rule
318
+ # @param body [CreateRulesetRequest]
386
319
  # @param opts [Hash] the optional parameters
387
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
388
- def delete_arbitrary_cost_rule_with_http_info(rule_id, opts = {})
320
+ # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
321
+ def create_tag_pipelines_ruleset_with_http_info(body, opts = {})
389
322
 
390
323
  if @api_client.config.debugging
391
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_arbitrary_cost_rule ...'
324
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_tag_pipelines_ruleset ...'
392
325
  end
393
- # verify the required parameter 'rule_id' is set
394
- if @api_client.config.client_side_validation && rule_id.nil?
395
- fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.delete_arbitrary_cost_rule"
326
+ # verify the required parameter 'body' is set
327
+ if @api_client.config.client_side_validation && body.nil?
328
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_tag_pipelines_ruleset"
396
329
  end
397
330
  # resource path
398
- local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
331
+ local_var_path = '/api/v2/tags/enrichment'
399
332
 
400
333
  # query parameters
401
334
  query_params = opts[:query_params] || {}
@@ -403,22 +336,24 @@ module DatadogAPIClient::V2
403
336
  # header parameters
404
337
  header_params = opts[:header_params] || {}
405
338
  # HTTP header 'Accept' (if needed)
406
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
339
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
340
+ # HTTP header 'Content-Type'
341
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
407
342
 
408
343
  # form parameters
409
344
  form_params = opts[:form_params] || {}
410
345
 
411
346
  # http body (model)
412
- post_body = opts[:debug_body]
347
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
413
348
 
414
349
  # return_type
415
- return_type = opts[:debug_return_type]
350
+ return_type = opts[:debug_return_type] || 'RulesetResp'
416
351
 
417
352
  # auth_names
418
353
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
419
354
 
420
355
  new_options = opts.merge(
421
- :operation => :delete_arbitrary_cost_rule,
356
+ :operation => :create_tag_pipelines_ruleset,
422
357
  :header_params => header_params,
423
358
  :query_params => query_params,
424
359
  :form_params => form_params,
@@ -428,9 +363,9 @@ module DatadogAPIClient::V2
428
363
  :api_version => "V2"
429
364
  )
430
365
 
431
- data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
366
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
432
367
  if @api_client.config.debugging
433
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_arbitrary_cost_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
368
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
434
369
  end
435
370
  return data, status_code, headers
436
371
  end
@@ -695,32 +630,32 @@ module DatadogAPIClient::V2
695
630
  return data, status_code, headers
696
631
  end
697
632
 
698
- # Delete Custom Costs file.
633
+ # Delete custom allocation rule.
699
634
  #
700
- # @see #delete_custom_costs_file_with_http_info
701
- def delete_custom_costs_file(file_id, opts = {})
702
- delete_custom_costs_file_with_http_info(file_id, opts)
635
+ # @see #delete_custom_allocation_rule_with_http_info
636
+ def delete_custom_allocation_rule(rule_id, opts = {})
637
+ delete_custom_allocation_rule_with_http_info(rule_id, opts)
703
638
  nil
704
639
  end
705
640
 
706
- # Delete Custom Costs file.
641
+ # Delete custom allocation rule.
707
642
  #
708
- # Delete the specified Custom Costs file.
643
+ # Delete a custom allocation rule - Delete an existing custom allocation rule by its ID
709
644
  #
710
- # @param file_id [String] File ID.
645
+ # @param rule_id [Integer] The unique identifier of the custom allocation rule
711
646
  # @param opts [Hash] the optional parameters
712
647
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
713
- def delete_custom_costs_file_with_http_info(file_id, opts = {})
648
+ def delete_custom_allocation_rule_with_http_info(rule_id, opts = {})
714
649
 
715
650
  if @api_client.config.debugging
716
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_costs_file ...'
651
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_allocation_rule ...'
717
652
  end
718
- # verify the required parameter 'file_id' is set
719
- if @api_client.config.client_side_validation && file_id.nil?
720
- fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.delete_custom_costs_file"
653
+ # verify the required parameter 'rule_id' is set
654
+ if @api_client.config.client_side_validation && rule_id.nil?
655
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.delete_custom_allocation_rule"
721
656
  end
722
657
  # resource path
723
- local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
658
+ local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
724
659
 
725
660
  # query parameters
726
661
  query_params = opts[:query_params] || {}
@@ -743,7 +678,7 @@ module DatadogAPIClient::V2
743
678
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
744
679
 
745
680
  new_options = opts.merge(
746
- :operation => :delete_custom_costs_file,
681
+ :operation => :delete_custom_allocation_rule,
747
682
  :header_params => header_params,
748
683
  :query_params => query_params,
749
684
  :form_params => form_params,
@@ -755,37 +690,37 @@ module DatadogAPIClient::V2
755
690
 
756
691
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
757
692
  if @api_client.config.debugging
758
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
759
694
  end
760
695
  return data, status_code, headers
761
696
  end
762
697
 
763
- # Delete ruleset.
698
+ # Delete Custom Costs file.
764
699
  #
765
- # @see #delete_ruleset_with_http_info
766
- def delete_ruleset(ruleset_id, opts = {})
767
- delete_ruleset_with_http_info(ruleset_id, opts)
700
+ # @see #delete_custom_costs_file_with_http_info
701
+ def delete_custom_costs_file(file_id, opts = {})
702
+ delete_custom_costs_file_with_http_info(file_id, opts)
768
703
  nil
769
704
  end
770
705
 
771
- # Delete ruleset.
706
+ # Delete Custom Costs file.
772
707
  #
773
- # Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
708
+ # Delete the specified Custom Costs file.
774
709
  #
775
- # @param ruleset_id [String] The unique identifier of the ruleset
710
+ # @param file_id [String] File ID.
776
711
  # @param opts [Hash] the optional parameters
777
712
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
778
- def delete_ruleset_with_http_info(ruleset_id, opts = {})
713
+ def delete_custom_costs_file_with_http_info(file_id, opts = {})
779
714
 
780
715
  if @api_client.config.debugging
781
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_ruleset ...'
716
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_costs_file ...'
782
717
  end
783
- # verify the required parameter 'ruleset_id' is set
784
- if @api_client.config.client_side_validation && ruleset_id.nil?
785
- fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.delete_ruleset"
718
+ # verify the required parameter 'file_id' is set
719
+ if @api_client.config.client_side_validation && file_id.nil?
720
+ fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.delete_custom_costs_file"
786
721
  end
787
722
  # resource path
788
- local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
723
+ local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
789
724
 
790
725
  # query parameters
791
726
  query_params = opts[:query_params] || {}
@@ -808,7 +743,7 @@ module DatadogAPIClient::V2
808
743
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
809
744
 
810
745
  new_options = opts.merge(
811
- :operation => :delete_ruleset,
746
+ :operation => :delete_custom_costs_file,
812
747
  :header_params => header_params,
813
748
  :query_params => query_params,
814
749
  :form_params => form_params,
@@ -820,37 +755,37 @@ module DatadogAPIClient::V2
820
755
 
821
756
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
822
757
  if @api_client.config.debugging
823
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
758
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
824
759
  end
825
760
  return data, status_code, headers
826
761
  end
827
762
 
828
- # Get arbitrary cost rule.
763
+ # Delete tag pipeline ruleset.
829
764
  #
830
- # @see #get_arbitrary_cost_rule_with_http_info
831
- def get_arbitrary_cost_rule(rule_id, opts = {})
832
- data, _status_code, _headers = get_arbitrary_cost_rule_with_http_info(rule_id, opts)
833
- data
765
+ # @see #delete_tag_pipelines_ruleset_with_http_info
766
+ def delete_tag_pipelines_ruleset(ruleset_id, opts = {})
767
+ delete_tag_pipelines_ruleset_with_http_info(ruleset_id, opts)
768
+ nil
834
769
  end
835
770
 
836
- # Get arbitrary cost rule.
771
+ # Delete tag pipeline ruleset.
837
772
  #
838
- # Get a specific arbitrary cost rule - Retrieve a specific arbitrary cost rule by its ID
773
+ # Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
839
774
  #
840
- # @param rule_id [Integer] The unique identifier of the arbitrary cost rule
775
+ # @param ruleset_id [String] The unique identifier of the ruleset
841
776
  # @param opts [Hash] the optional parameters
842
- # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
843
- def get_arbitrary_cost_rule_with_http_info(rule_id, opts = {})
777
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
778
+ def delete_tag_pipelines_ruleset_with_http_info(ruleset_id, opts = {})
844
779
 
845
780
  if @api_client.config.debugging
846
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_arbitrary_cost_rule ...'
781
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_tag_pipelines_ruleset ...'
847
782
  end
848
- # verify the required parameter 'rule_id' is set
849
- if @api_client.config.client_side_validation && rule_id.nil?
850
- fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.get_arbitrary_cost_rule"
783
+ # verify the required parameter 'ruleset_id' is set
784
+ if @api_client.config.client_side_validation && ruleset_id.nil?
785
+ fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.delete_tag_pipelines_ruleset"
851
786
  end
852
787
  # resource path
853
- local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
788
+ local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
854
789
 
855
790
  # query parameters
856
791
  query_params = opts[:query_params] || {}
@@ -858,7 +793,7 @@ module DatadogAPIClient::V2
858
793
  # header parameters
859
794
  header_params = opts[:header_params] || {}
860
795
  # HTTP header 'Accept' (if needed)
861
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
796
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
862
797
 
863
798
  # form parameters
864
799
  form_params = opts[:form_params] || {}
@@ -867,13 +802,13 @@ module DatadogAPIClient::V2
867
802
  post_body = opts[:debug_body]
868
803
 
869
804
  # return_type
870
- return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
805
+ return_type = opts[:debug_return_type]
871
806
 
872
807
  # auth_names
873
808
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
874
809
 
875
810
  new_options = opts.merge(
876
- :operation => :get_arbitrary_cost_rule,
811
+ :operation => :delete_tag_pipelines_ruleset,
877
812
  :header_params => header_params,
878
813
  :query_params => query_params,
879
814
  :form_params => form_params,
@@ -883,9 +818,9 @@ module DatadogAPIClient::V2
883
818
  :api_version => "V2"
884
819
  )
885
820
 
886
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
821
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
887
822
  if @api_client.config.debugging
888
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_arbitrary_cost_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
823
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
889
824
  end
890
825
  return data, status_code, headers
891
826
  end
@@ -1150,32 +1085,32 @@ module DatadogAPIClient::V2
1150
1085
  return data, status_code, headers
1151
1086
  end
1152
1087
 
1153
- # Get Custom Costs file.
1088
+ # Get custom allocation rule.
1154
1089
  #
1155
- # @see #get_custom_costs_file_with_http_info
1156
- def get_custom_costs_file(file_id, opts = {})
1157
- data, _status_code, _headers = get_custom_costs_file_with_http_info(file_id, opts)
1090
+ # @see #get_custom_allocation_rule_with_http_info
1091
+ def get_custom_allocation_rule(rule_id, opts = {})
1092
+ data, _status_code, _headers = get_custom_allocation_rule_with_http_info(rule_id, opts)
1158
1093
  data
1159
1094
  end
1160
1095
 
1161
- # Get Custom Costs file.
1096
+ # Get custom allocation rule.
1162
1097
  #
1163
- # Fetch the specified Custom Costs file.
1098
+ # Get a specific custom allocation rule - Retrieve a specific custom allocation rule by its ID
1164
1099
  #
1165
- # @param file_id [String] File ID.
1100
+ # @param rule_id [Integer] The unique identifier of the custom allocation rule
1166
1101
  # @param opts [Hash] the optional parameters
1167
- # @return [Array<(CustomCostsFileGetResponse, Integer, Hash)>] CustomCostsFileGetResponse data, response status code and response headers
1168
- def get_custom_costs_file_with_http_info(file_id, opts = {})
1102
+ # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
1103
+ def get_custom_allocation_rule_with_http_info(rule_id, opts = {})
1169
1104
 
1170
1105
  if @api_client.config.debugging
1171
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
1106
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_allocation_rule ...'
1172
1107
  end
1173
- # verify the required parameter 'file_id' is set
1174
- if @api_client.config.client_side_validation && file_id.nil?
1175
- fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.get_custom_costs_file"
1108
+ # verify the required parameter 'rule_id' is set
1109
+ if @api_client.config.client_side_validation && rule_id.nil?
1110
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.get_custom_allocation_rule"
1176
1111
  end
1177
1112
  # resource path
1178
- local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
1113
+ local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
1179
1114
 
1180
1115
  # query parameters
1181
1116
  query_params = opts[:query_params] || {}
@@ -1192,13 +1127,13 @@ module DatadogAPIClient::V2
1192
1127
  post_body = opts[:debug_body]
1193
1128
 
1194
1129
  # return_type
1195
- return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
1130
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
1196
1131
 
1197
1132
  # auth_names
1198
1133
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1199
1134
 
1200
1135
  new_options = opts.merge(
1201
- :operation => :get_custom_costs_file,
1136
+ :operation => :get_custom_allocation_rule,
1202
1137
  :header_params => header_params,
1203
1138
  :query_params => query_params,
1204
1139
  :form_params => form_params,
@@ -1210,37 +1145,37 @@ module DatadogAPIClient::V2
1210
1145
 
1211
1146
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1212
1147
  if @api_client.config.debugging
1213
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1148
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1214
1149
  end
1215
1150
  return data, status_code, headers
1216
1151
  end
1217
1152
 
1218
- # Get ruleset.
1153
+ # Get Custom Costs file.
1219
1154
  #
1220
- # @see #get_ruleset_with_http_info
1221
- def get_ruleset(ruleset_id, opts = {})
1222
- data, _status_code, _headers = get_ruleset_with_http_info(ruleset_id, opts)
1155
+ # @see #get_custom_costs_file_with_http_info
1156
+ def get_custom_costs_file(file_id, opts = {})
1157
+ data, _status_code, _headers = get_custom_costs_file_with_http_info(file_id, opts)
1223
1158
  data
1224
1159
  end
1225
1160
 
1226
- # Get ruleset.
1161
+ # Get Custom Costs file.
1227
1162
  #
1228
- # Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
1163
+ # Fetch the specified Custom Costs file.
1229
1164
  #
1230
- # @param ruleset_id [String] The unique identifier of the ruleset
1165
+ # @param file_id [String] File ID.
1231
1166
  # @param opts [Hash] the optional parameters
1232
- # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
1233
- def get_ruleset_with_http_info(ruleset_id, opts = {})
1167
+ # @return [Array<(CustomCostsFileGetResponse, Integer, Hash)>] CustomCostsFileGetResponse data, response status code and response headers
1168
+ def get_custom_costs_file_with_http_info(file_id, opts = {})
1234
1169
 
1235
1170
  if @api_client.config.debugging
1236
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_ruleset ...'
1171
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
1237
1172
  end
1238
- # verify the required parameter 'ruleset_id' is set
1239
- if @api_client.config.client_side_validation && ruleset_id.nil?
1240
- fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.get_ruleset"
1173
+ # verify the required parameter 'file_id' is set
1174
+ if @api_client.config.client_side_validation && file_id.nil?
1175
+ fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.get_custom_costs_file"
1241
1176
  end
1242
1177
  # resource path
1243
- local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
1178
+ local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
1244
1179
 
1245
1180
  # query parameters
1246
1181
  query_params = opts[:query_params] || {}
@@ -1257,13 +1192,13 @@ module DatadogAPIClient::V2
1257
1192
  post_body = opts[:debug_body]
1258
1193
 
1259
1194
  # return_type
1260
- return_type = opts[:debug_return_type] || 'RulesetResp'
1195
+ return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
1261
1196
 
1262
1197
  # auth_names
1263
1198
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1264
1199
 
1265
1200
  new_options = opts.merge(
1266
- :operation => :get_ruleset,
1201
+ :operation => :get_custom_costs_file,
1267
1202
  :header_params => header_params,
1268
1203
  :query_params => query_params,
1269
1204
  :form_params => form_params,
@@ -1275,32 +1210,37 @@ module DatadogAPIClient::V2
1275
1210
 
1276
1211
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1277
1212
  if @api_client.config.debugging
1278
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1213
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1279
1214
  end
1280
1215
  return data, status_code, headers
1281
1216
  end
1282
1217
 
1283
- # List arbitrary cost rules.
1218
+ # Get a tag pipeline ruleset.
1284
1219
  #
1285
- # @see #list_arbitrary_cost_rules_with_http_info
1286
- def list_arbitrary_cost_rules(opts = {})
1287
- data, _status_code, _headers = list_arbitrary_cost_rules_with_http_info(opts)
1220
+ # @see #get_tag_pipelines_ruleset_with_http_info
1221
+ def get_tag_pipelines_ruleset(ruleset_id, opts = {})
1222
+ data, _status_code, _headers = get_tag_pipelines_ruleset_with_http_info(ruleset_id, opts)
1288
1223
  data
1289
1224
  end
1290
1225
 
1291
- # List arbitrary cost rules.
1226
+ # Get a tag pipeline ruleset.
1292
1227
  #
1293
- # List all arbitrary cost rules - Retrieve a list of all arbitrary cost rules for the organization
1228
+ # Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
1294
1229
  #
1230
+ # @param ruleset_id [String] The unique identifier of the ruleset
1295
1231
  # @param opts [Hash] the optional parameters
1296
- # @return [Array<(ArbitraryRuleResponseArray, Integer, Hash)>] ArbitraryRuleResponseArray data, response status code and response headers
1297
- def list_arbitrary_cost_rules_with_http_info(opts = {})
1232
+ # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
1233
+ def get_tag_pipelines_ruleset_with_http_info(ruleset_id, opts = {})
1298
1234
 
1299
1235
  if @api_client.config.debugging
1300
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_arbitrary_cost_rules ...'
1236
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_tag_pipelines_ruleset ...'
1237
+ end
1238
+ # verify the required parameter 'ruleset_id' is set
1239
+ if @api_client.config.client_side_validation && ruleset_id.nil?
1240
+ fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.get_tag_pipelines_ruleset"
1301
1241
  end
1302
1242
  # resource path
1303
- local_var_path = '/api/v2/cost/arbitrary_rule'
1243
+ local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
1304
1244
 
1305
1245
  # query parameters
1306
1246
  query_params = opts[:query_params] || {}
@@ -1317,13 +1257,13 @@ module DatadogAPIClient::V2
1317
1257
  post_body = opts[:debug_body]
1318
1258
 
1319
1259
  # return_type
1320
- return_type = opts[:debug_return_type] || 'ArbitraryRuleResponseArray'
1260
+ return_type = opts[:debug_return_type] || 'RulesetResp'
1321
1261
 
1322
1262
  # auth_names
1323
1263
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1324
1264
 
1325
1265
  new_options = opts.merge(
1326
- :operation => :list_arbitrary_cost_rules,
1266
+ :operation => :get_tag_pipelines_ruleset,
1327
1267
  :header_params => header_params,
1328
1268
  :query_params => query_params,
1329
1269
  :form_params => form_params,
@@ -1335,7 +1275,7 @@ module DatadogAPIClient::V2
1335
1275
 
1336
1276
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1337
1277
  if @api_client.config.debugging
1338
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_arbitrary_cost_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1278
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
1279
  end
1340
1280
  return data, status_code, headers
1341
1281
  end
@@ -1580,38 +1520,30 @@ module DatadogAPIClient::V2
1580
1520
  return data, status_code, headers
1581
1521
  end
1582
1522
 
1583
- # List Custom Costs files.
1523
+ # List custom allocation rules.
1584
1524
  #
1585
- # @see #list_custom_costs_files_with_http_info
1586
- def list_custom_costs_files(opts = {})
1587
- data, _status_code, _headers = list_custom_costs_files_with_http_info(opts)
1525
+ # @see #list_custom_allocation_rules_with_http_info
1526
+ def list_custom_allocation_rules(opts = {})
1527
+ data, _status_code, _headers = list_custom_allocation_rules_with_http_info(opts)
1588
1528
  data
1589
1529
  end
1590
1530
 
1591
- # List Custom Costs files.
1531
+ # List custom allocation rules.
1592
1532
  #
1593
- # List the Custom Costs files.
1533
+ # List all custom allocation rules - Retrieve a list of all custom allocation rules for the organization
1594
1534
  #
1595
1535
  # @param opts [Hash] the optional parameters
1596
- # @option opts [Integer] :page_number Page number for pagination
1597
- # @option opts [Integer] :page_size Page size for pagination
1598
- # @option opts [String] :filter_status Filter by file status
1599
- # @option opts [String] :sort Sort key with optional descending prefix
1600
- # @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
1601
- def list_custom_costs_files_with_http_info(opts = {})
1536
+ # @return [Array<(ArbitraryRuleResponseArray, Integer, Hash)>] ArbitraryRuleResponseArray data, response status code and response headers
1537
+ def list_custom_allocation_rules_with_http_info(opts = {})
1602
1538
 
1603
1539
  if @api_client.config.debugging
1604
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
1540
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_allocation_rules ...'
1605
1541
  end
1606
1542
  # resource path
1607
- local_var_path = '/api/v2/cost/custom_costs'
1543
+ local_var_path = '/api/v2/cost/arbitrary_rule'
1608
1544
 
1609
1545
  # query parameters
1610
1546
  query_params = opts[:query_params] || {}
1611
- query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
1612
- query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1613
- query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
1614
- query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1615
1547
 
1616
1548
  # header parameters
1617
1549
  header_params = opts[:header_params] || {}
@@ -1625,13 +1557,13 @@ module DatadogAPIClient::V2
1625
1557
  post_body = opts[:debug_body]
1626
1558
 
1627
1559
  # return_type
1628
- return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
1560
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponseArray'
1629
1561
 
1630
1562
  # auth_names
1631
1563
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1632
1564
 
1633
1565
  new_options = opts.merge(
1634
- :operation => :list_custom_costs_files,
1566
+ :operation => :list_custom_allocation_rules,
1635
1567
  :header_params => header_params,
1636
1568
  :query_params => query_params,
1637
1569
  :form_params => form_params,
@@ -1643,35 +1575,43 @@ module DatadogAPIClient::V2
1643
1575
 
1644
1576
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1645
1577
  if @api_client.config.debugging
1646
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_costs_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1578
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_allocation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1647
1579
  end
1648
1580
  return data, status_code, headers
1649
1581
  end
1650
1582
 
1651
- # List rulesets.
1583
+ # List Custom Costs files.
1652
1584
  #
1653
- # @see #list_rulesets_with_http_info
1654
- def list_rulesets(opts = {})
1655
- data, _status_code, _headers = list_rulesets_with_http_info(opts)
1585
+ # @see #list_custom_costs_files_with_http_info
1586
+ def list_custom_costs_files(opts = {})
1587
+ data, _status_code, _headers = list_custom_costs_files_with_http_info(opts)
1656
1588
  data
1657
1589
  end
1658
1590
 
1659
- # List rulesets.
1591
+ # List Custom Costs files.
1660
1592
  #
1661
- # List all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
1593
+ # List the Custom Costs files.
1662
1594
  #
1663
1595
  # @param opts [Hash] the optional parameters
1664
- # @return [Array<(RulesetRespArray, Integer, Hash)>] RulesetRespArray data, response status code and response headers
1665
- def list_rulesets_with_http_info(opts = {})
1596
+ # @option opts [Integer] :page_number Page number for pagination
1597
+ # @option opts [Integer] :page_size Page size for pagination
1598
+ # @option opts [String] :filter_status Filter by file status
1599
+ # @option opts [String] :sort Sort key with optional descending prefix
1600
+ # @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
1601
+ def list_custom_costs_files_with_http_info(opts = {})
1666
1602
 
1667
1603
  if @api_client.config.debugging
1668
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_rulesets ...'
1604
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
1669
1605
  end
1670
1606
  # resource path
1671
- local_var_path = '/api/v2/tags/enrichment'
1607
+ local_var_path = '/api/v2/cost/custom_costs'
1672
1608
 
1673
1609
  # query parameters
1674
1610
  query_params = opts[:query_params] || {}
1611
+ query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
1612
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1613
+ query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
1614
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1675
1615
 
1676
1616
  # header parameters
1677
1617
  header_params = opts[:header_params] || {}
@@ -1685,13 +1625,13 @@ module DatadogAPIClient::V2
1685
1625
  post_body = opts[:debug_body]
1686
1626
 
1687
1627
  # return_type
1688
- return_type = opts[:debug_return_type] || 'RulesetRespArray'
1628
+ return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
1689
1629
 
1690
1630
  # auth_names
1691
1631
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1692
1632
 
1693
1633
  new_options = opts.merge(
1694
- :operation => :list_rulesets,
1634
+ :operation => :list_custom_costs_files,
1695
1635
  :header_params => header_params,
1696
1636
  :query_params => query_params,
1697
1637
  :form_params => form_params,
@@ -1703,43 +1643,32 @@ module DatadogAPIClient::V2
1703
1643
 
1704
1644
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1705
1645
  if @api_client.config.debugging
1706
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1646
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_costs_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1707
1647
  end
1708
1648
  return data, status_code, headers
1709
1649
  end
1710
1650
 
1711
- # Reorder arbitrary cost rules.
1651
+ # List tag pipeline rulesets.
1712
1652
  #
1713
- # @see #reorder_arbitrary_cost_rules_with_http_info
1714
- def reorder_arbitrary_cost_rules(body, opts = {})
1715
- reorder_arbitrary_cost_rules_with_http_info(body, opts)
1716
- nil
1653
+ # @see #list_tag_pipelines_rulesets_with_http_info
1654
+ def list_tag_pipelines_rulesets(opts = {})
1655
+ data, _status_code, _headers = list_tag_pipelines_rulesets_with_http_info(opts)
1656
+ data
1717
1657
  end
1718
1658
 
1719
- # Reorder arbitrary cost rules.
1720
- #
1721
- # Reorder arbitrary cost rules - Change the execution order of arbitrary cost rules.
1659
+ # List tag pipeline rulesets.
1722
1660
  #
1723
- # **Important**: You must provide the **complete list** of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
1724
- #
1725
- # Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
1726
- #
1727
- # **Example**: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
1661
+ # List all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
1728
1662
  #
1729
- # @param body [ReorderRuleResourceArray]
1730
1663
  # @param opts [Hash] the optional parameters
1731
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1732
- def reorder_arbitrary_cost_rules_with_http_info(body, opts = {})
1664
+ # @return [Array<(RulesetRespArray, Integer, Hash)>] RulesetRespArray data, response status code and response headers
1665
+ def list_tag_pipelines_rulesets_with_http_info(opts = {})
1733
1666
 
1734
1667
  if @api_client.config.debugging
1735
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_arbitrary_cost_rules ...'
1736
- end
1737
- # verify the required parameter 'body' is set
1738
- if @api_client.config.client_side_validation && body.nil?
1739
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_arbitrary_cost_rules"
1668
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_tag_pipelines_rulesets ...'
1740
1669
  end
1741
1670
  # resource path
1742
- local_var_path = '/api/v2/cost/arbitrary_rule/reorder'
1671
+ local_var_path = '/api/v2/tags/enrichment'
1743
1672
 
1744
1673
  # query parameters
1745
1674
  query_params = opts[:query_params] || {}
@@ -1747,24 +1676,22 @@ module DatadogAPIClient::V2
1747
1676
  # header parameters
1748
1677
  header_params = opts[:header_params] || {}
1749
1678
  # HTTP header 'Accept' (if needed)
1750
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1751
- # HTTP header 'Content-Type'
1752
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1679
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1753
1680
 
1754
1681
  # form parameters
1755
1682
  form_params = opts[:form_params] || {}
1756
1683
 
1757
1684
  # http body (model)
1758
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1685
+ post_body = opts[:debug_body]
1759
1686
 
1760
1687
  # return_type
1761
- return_type = opts[:debug_return_type]
1688
+ return_type = opts[:debug_return_type] || 'RulesetRespArray'
1762
1689
 
1763
1690
  # auth_names
1764
1691
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1765
1692
 
1766
1693
  new_options = opts.merge(
1767
- :operation => :reorder_arbitrary_cost_rules,
1694
+ :operation => :list_tag_pipelines_rulesets,
1768
1695
  :header_params => header_params,
1769
1696
  :query_params => query_params,
1770
1697
  :form_params => form_params,
@@ -1774,39 +1701,45 @@ module DatadogAPIClient::V2
1774
1701
  :api_version => "V2"
1775
1702
  )
1776
1703
 
1777
- data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
1704
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1778
1705
  if @api_client.config.debugging
1779
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_arbitrary_cost_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1706
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_tag_pipelines_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1780
1707
  end
1781
1708
  return data, status_code, headers
1782
1709
  end
1783
1710
 
1784
- # Reorder rulesets.
1711
+ # Reorder custom allocation rules.
1785
1712
  #
1786
- # @see #reorder_rulesets_with_http_info
1787
- def reorder_rulesets(body, opts = {})
1788
- reorder_rulesets_with_http_info(body, opts)
1713
+ # @see #reorder_custom_allocation_rules_with_http_info
1714
+ def reorder_custom_allocation_rules(body, opts = {})
1715
+ reorder_custom_allocation_rules_with_http_info(body, opts)
1789
1716
  nil
1790
1717
  end
1791
1718
 
1792
- # Reorder rulesets.
1719
+ # Reorder custom allocation rules.
1793
1720
  #
1794
- # Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
1721
+ # Reorder custom allocation rules - Change the execution order of custom allocation rules.
1795
1722
  #
1796
- # @param body [ReorderRulesetResourceArray]
1723
+ # **Important**: You must provide the **complete list** of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
1724
+ #
1725
+ # Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
1726
+ #
1727
+ # **Example**: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
1728
+ #
1729
+ # @param body [ReorderRuleResourceArray]
1797
1730
  # @param opts [Hash] the optional parameters
1798
1731
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1799
- def reorder_rulesets_with_http_info(body, opts = {})
1732
+ def reorder_custom_allocation_rules_with_http_info(body, opts = {})
1800
1733
 
1801
1734
  if @api_client.config.debugging
1802
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_rulesets ...'
1735
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_custom_allocation_rules ...'
1803
1736
  end
1804
1737
  # verify the required parameter 'body' is set
1805
1738
  if @api_client.config.client_side_validation && body.nil?
1806
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_rulesets"
1739
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_custom_allocation_rules"
1807
1740
  end
1808
1741
  # resource path
1809
- local_var_path = '/api/v2/tags/enrichment/reorder'
1742
+ local_var_path = '/api/v2/cost/arbitrary_rule/reorder'
1810
1743
 
1811
1744
  # query parameters
1812
1745
  query_params = opts[:query_params] || {}
@@ -1831,7 +1764,7 @@ module DatadogAPIClient::V2
1831
1764
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1832
1765
 
1833
1766
  new_options = opts.merge(
1834
- :operation => :reorder_rulesets,
1767
+ :operation => :reorder_custom_allocation_rules,
1835
1768
  :header_params => header_params,
1836
1769
  :query_params => query_params,
1837
1770
  :form_params => form_params,
@@ -1843,55 +1776,37 @@ module DatadogAPIClient::V2
1843
1776
 
1844
1777
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
1845
1778
  if @api_client.config.debugging
1846
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1779
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_custom_allocation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1847
1780
  end
1848
1781
  return data, status_code, headers
1849
1782
  end
1850
1783
 
1851
- # Update arbitrary cost rule.
1784
+ # Reorder tag pipeline rulesets.
1852
1785
  #
1853
- # @see #update_arbitrary_cost_rule_with_http_info
1854
- def update_arbitrary_cost_rule(rule_id, body, opts = {})
1855
- data, _status_code, _headers = update_arbitrary_cost_rule_with_http_info(rule_id, body, opts)
1856
- data
1786
+ # @see #reorder_tag_pipelines_rulesets_with_http_info
1787
+ def reorder_tag_pipelines_rulesets(body, opts = {})
1788
+ reorder_tag_pipelines_rulesets_with_http_info(body, opts)
1789
+ nil
1857
1790
  end
1858
1791
 
1859
- # Update arbitrary cost rule.
1860
- #
1861
- # Update an existing arbitrary cost rule with new filters and allocation strategy.
1862
- #
1863
- # **Strategy Methods:**
1864
- # - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
1865
- # - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
1866
- # - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
1867
- # - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies).
1868
- #
1869
- # **Filter Conditions:**
1870
- # - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
1871
- # - Use **values** for multi-value conditions: "in", "not in"
1872
- # - Cannot use both value and values simultaneously.
1792
+ # Reorder tag pipeline rulesets.
1873
1793
  #
1874
- # **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
1794
+ # Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
1875
1795
  #
1876
- # @param rule_id [Integer] The unique identifier of the arbitrary cost rule
1877
- # @param body [ArbitraryCostUpsertRequest]
1796
+ # @param body [ReorderRulesetResourceArray]
1878
1797
  # @param opts [Hash] the optional parameters
1879
- # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
1880
- def update_arbitrary_cost_rule_with_http_info(rule_id, body, opts = {})
1798
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1799
+ def reorder_tag_pipelines_rulesets_with_http_info(body, opts = {})
1881
1800
 
1882
1801
  if @api_client.config.debugging
1883
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_arbitrary_cost_rule ...'
1884
- end
1885
- # verify the required parameter 'rule_id' is set
1886
- if @api_client.config.client_side_validation && rule_id.nil?
1887
- fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.update_arbitrary_cost_rule"
1802
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_tag_pipelines_rulesets ...'
1888
1803
  end
1889
1804
  # verify the required parameter 'body' is set
1890
1805
  if @api_client.config.client_side_validation && body.nil?
1891
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_arbitrary_cost_rule"
1806
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_tag_pipelines_rulesets"
1892
1807
  end
1893
1808
  # resource path
1894
- local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
1809
+ local_var_path = '/api/v2/tags/enrichment/reorder'
1895
1810
 
1896
1811
  # query parameters
1897
1812
  query_params = opts[:query_params] || {}
@@ -1899,7 +1814,7 @@ module DatadogAPIClient::V2
1899
1814
  # header parameters
1900
1815
  header_params = opts[:header_params] || {}
1901
1816
  # HTTP header 'Accept' (if needed)
1902
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1817
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1903
1818
  # HTTP header 'Content-Type'
1904
1819
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1905
1820
 
@@ -1910,13 +1825,13 @@ module DatadogAPIClient::V2
1910
1825
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1911
1826
 
1912
1827
  # return_type
1913
- return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
1828
+ return_type = opts[:debug_return_type]
1914
1829
 
1915
1830
  # auth_names
1916
1831
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1917
1832
 
1918
1833
  new_options = opts.merge(
1919
- :operation => :update_arbitrary_cost_rule,
1834
+ :operation => :reorder_tag_pipelines_rulesets,
1920
1835
  :header_params => header_params,
1921
1836
  :query_params => query_params,
1922
1837
  :form_params => form_params,
@@ -1926,9 +1841,9 @@ module DatadogAPIClient::V2
1926
1841
  :api_version => "V2"
1927
1842
  )
1928
1843
 
1929
- data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
1844
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
1930
1845
  if @api_client.config.debugging
1931
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#update_arbitrary_cost_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1846
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_tag_pipelines_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1932
1847
  end
1933
1848
  return data, status_code, headers
1934
1849
  end
@@ -2149,15 +2064,100 @@ module DatadogAPIClient::V2
2149
2064
  return data, status_code, headers
2150
2065
  end
2151
2066
 
2152
- # Update ruleset.
2067
+ # Update custom allocation rule.
2068
+ #
2069
+ # @see #update_custom_allocation_rule_with_http_info
2070
+ def update_custom_allocation_rule(rule_id, body, opts = {})
2071
+ data, _status_code, _headers = update_custom_allocation_rule_with_http_info(rule_id, body, opts)
2072
+ data
2073
+ end
2074
+
2075
+ # Update custom allocation rule.
2076
+ #
2077
+ # Update an existing custom allocation rule with new filters and allocation strategy.
2078
+ #
2079
+ # **Strategy Methods:**
2080
+ # - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
2081
+ # - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
2082
+ # - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
2083
+ # - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies).
2084
+ #
2085
+ # **Filter Conditions:**
2086
+ # - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
2087
+ # - Use **values** for multi-value conditions: "in", "not in"
2088
+ # - Cannot use both value and values simultaneously.
2089
+ #
2090
+ # **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
2091
+ #
2092
+ # @param rule_id [Integer] The unique identifier of the custom allocation rule
2093
+ # @param body [ArbitraryCostUpsertRequest]
2094
+ # @param opts [Hash] the optional parameters
2095
+ # @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
2096
+ def update_custom_allocation_rule_with_http_info(rule_id, body, opts = {})
2097
+
2098
+ if @api_client.config.debugging
2099
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_custom_allocation_rule ...'
2100
+ end
2101
+ # verify the required parameter 'rule_id' is set
2102
+ if @api_client.config.client_side_validation && rule_id.nil?
2103
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.update_custom_allocation_rule"
2104
+ end
2105
+ # verify the required parameter 'body' is set
2106
+ if @api_client.config.client_side_validation && body.nil?
2107
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_custom_allocation_rule"
2108
+ end
2109
+ # resource path
2110
+ local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
2111
+
2112
+ # query parameters
2113
+ query_params = opts[:query_params] || {}
2114
+
2115
+ # header parameters
2116
+ header_params = opts[:header_params] || {}
2117
+ # HTTP header 'Accept' (if needed)
2118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2119
+ # HTTP header 'Content-Type'
2120
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2121
+
2122
+ # form parameters
2123
+ form_params = opts[:form_params] || {}
2124
+
2125
+ # http body (model)
2126
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2127
+
2128
+ # return_type
2129
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
2130
+
2131
+ # auth_names
2132
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
2133
+
2134
+ new_options = opts.merge(
2135
+ :operation => :update_custom_allocation_rule,
2136
+ :header_params => header_params,
2137
+ :query_params => query_params,
2138
+ :form_params => form_params,
2139
+ :body => post_body,
2140
+ :auth_names => auth_names,
2141
+ :return_type => return_type,
2142
+ :api_version => "V2"
2143
+ )
2144
+
2145
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
2146
+ if @api_client.config.debugging
2147
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#update_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2148
+ end
2149
+ return data, status_code, headers
2150
+ end
2151
+
2152
+ # Update tag pipeline ruleset.
2153
2153
  #
2154
- # @see #update_ruleset_with_http_info
2155
- def update_ruleset(ruleset_id, body, opts = {})
2156
- data, _status_code, _headers = update_ruleset_with_http_info(ruleset_id, body, opts)
2154
+ # @see #update_tag_pipelines_ruleset_with_http_info
2155
+ def update_tag_pipelines_ruleset(ruleset_id, body, opts = {})
2156
+ data, _status_code, _headers = update_tag_pipelines_ruleset_with_http_info(ruleset_id, body, opts)
2157
2157
  data
2158
2158
  end
2159
2159
 
2160
- # Update ruleset.
2160
+ # Update tag pipeline ruleset.
2161
2161
  #
2162
2162
  # Update a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration
2163
2163
  #
@@ -2165,18 +2165,18 @@ module DatadogAPIClient::V2
2165
2165
  # @param body [UpdateRulesetRequest]
2166
2166
  # @param opts [Hash] the optional parameters
2167
2167
  # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
2168
- def update_ruleset_with_http_info(ruleset_id, body, opts = {})
2168
+ def update_tag_pipelines_ruleset_with_http_info(ruleset_id, body, opts = {})
2169
2169
 
2170
2170
  if @api_client.config.debugging
2171
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_ruleset ...'
2171
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_tag_pipelines_ruleset ...'
2172
2172
  end
2173
2173
  # verify the required parameter 'ruleset_id' is set
2174
2174
  if @api_client.config.client_side_validation && ruleset_id.nil?
2175
- fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.update_ruleset"
2175
+ fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
2176
2176
  end
2177
2177
  # verify the required parameter 'body' is set
2178
2178
  if @api_client.config.client_side_validation && body.nil?
2179
- fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_ruleset"
2179
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
2180
2180
  end
2181
2181
  # resource path
2182
2182
  local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
@@ -2204,7 +2204,7 @@ module DatadogAPIClient::V2
2204
2204
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
2205
2205
 
2206
2206
  new_options = opts.merge(
2207
- :operation => :update_ruleset,
2207
+ :operation => :update_tag_pipelines_ruleset,
2208
2208
  :header_params => header_params,
2209
2209
  :query_params => query_params,
2210
2210
  :form_params => form_params,
@@ -2216,7 +2216,7 @@ module DatadogAPIClient::V2
2216
2216
 
2217
2217
  data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
2218
2218
  if @api_client.config.debugging
2219
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#update_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2219
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#update_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2220
2220
  end
2221
2221
  return data, status_code, headers
2222
2222
  end