datadog_api_client 2.42.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 (528) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +266 -36
  3. data/.generator/schemas/v2/openapi.yaml +8163 -626
  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/.github/CODEOWNERS +4 -4
  10. data/.github/workflows/reusable-ci.yml +71 -0
  11. data/.github/workflows/reusable-examples.yml +40 -0
  12. data/.github/workflows/{test_integration.yml → reusable-integration-test.yml} +66 -17
  13. data/.github/workflows/reusable-pre-commit.yml +84 -0
  14. data/.github/workflows/reusable-ruby-test.yml +65 -0
  15. data/.github/workflows/test.yml +31 -89
  16. data/CHANGELOG.md +46 -0
  17. data/examples/v1/dashboards/CreateDashboard_607525069.rb +61 -0
  18. data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +2 -2
  19. data/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb +248 -0
  20. data/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb +248 -0
  21. data/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb +236 -0
  22. data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +2 -2
  23. data/examples/v1/notebooks/CreateNotebook.rb +1 -1
  24. data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
  25. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -0
  26. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  27. data/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb +19 -0
  28. data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
  29. data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +1 -1
  30. data/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +16 -0
  31. data/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +16 -0
  32. data/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +1 -1
  33. data/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb +5 -0
  34. data/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb +5 -0
  35. data/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +1 -1
  36. data/examples/v2/agentless-scanning/GetAzureScanOptions.rb +5 -0
  37. data/examples/v2/agentless-scanning/GetGcpScanOptions.rb +5 -0
  38. data/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +1 -1
  39. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
  40. data/examples/v2/agentless-scanning/ListAzureScanOptions.rb +5 -0
  41. data/examples/v2/agentless-scanning/ListGcpScanOptions.rb +5 -0
  42. data/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +1 -1
  43. data/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb +12 -0
  44. data/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +15 -0
  45. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +5 -0
  46. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +5 -0
  47. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +5 -0
  48. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +5 -0
  49. data/examples/v2/case-management/CommentCase.rb +17 -0
  50. data/examples/v2/case-management/CreateCase.rb +1 -1
  51. data/examples/v2/case-management/DeleteCaseComment.rb +11 -0
  52. data/examples/v2/case-management/DeleteCaseCustomAttribute.rb +11 -0
  53. data/examples/v2/case-management/UpdateCaseCustomAttribute.rb +25 -0
  54. data/examples/v2/case-management/UpdateCaseDescription.rb +17 -0
  55. data/examples/v2/case-management/UpdateCaseTitle.rb +17 -0
  56. data/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb +20 -0
  57. data/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb +11 -0
  58. data/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb +8 -0
  59. data/examples/v2/case-management-attribute/GetAllCustomAttributes.rb +5 -0
  60. data/examples/v2/case-management-type/CreateCaseType.rb +16 -0
  61. data/examples/v2/case-management-type/DeleteCaseType.rb +5 -0
  62. data/examples/v2/case-management-type/DeleteCaseType_2790986149.rb +8 -0
  63. data/examples/v2/case-management-type/GetAllCaseTypes.rb +5 -0
  64. data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +0 -1
  65. data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +1 -1
  66. data/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb +61 -0
  67. data/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb +32 -0
  68. data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
  69. data/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb +5 -0
  70. data/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb +5 -0
  71. data/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb +5 -0
  72. data/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +5 -0
  73. data/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb +5 -0
  74. data/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb +5 -0
  75. data/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +5 -0
  76. data/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +1 -1
  77. data/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb +5 -0
  78. data/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb +5 -0
  79. data/examples/v2/cloud-cost-management/ReorderCustomAllocationRules.rb +22 -0
  80. data/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +22 -0
  81. data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
  82. data/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb +63 -0
  83. data/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb +32 -0
  84. data/examples/v2/cloud-cost-management/ValidateQuery.rb +14 -0
  85. data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +1 -1
  86. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +1 -0
  87. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +1 -0
  88. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +33 -0
  89. data/examples/v2/dora-metrics/CreateDORADeployment.rb +1 -1
  90. data/examples/v2/dora-metrics/CreateDORAFailure.rb +1 -1
  91. data/examples/v2/dora-metrics/CreateDORAIncident.rb +1 -1
  92. data/examples/v2/dora-metrics/{CreateDORAIncident_1768887482.rb → CreateDORAIncident_1101664022.rb} +1 -1
  93. data/examples/v2/dora-metrics/DeleteDORADeployment.rb +5 -0
  94. data/examples/v2/dora-metrics/DeleteDORAFailure.rb +5 -0
  95. data/examples/v2/error-tracking/DeleteIssueAssignee.rb +8 -0
  96. data/examples/v2/fleet-automation/CancelFleetDeployment.rb +8 -0
  97. data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +26 -0
  98. data/examples/v2/fleet-automation/GetFleetDeployment.rb +11 -0
  99. data/examples/v2/fleet-automation/ListFleetDeployments.rb +8 -0
  100. data/examples/v2/incidents/CreateIncidentImpact.rb +22 -0
  101. data/examples/v2/incidents/DeleteIncidentImpact.rb +12 -0
  102. data/examples/v2/incidents/ListIncidentImpacts.rb +11 -0
  103. data/examples/v2/key-management/GetCurrentUserApplicationKey.rb +4 -1
  104. data/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb +30 -0
  105. data/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb +35 -0
  106. data/examples/v2/reference-tables/CreateReferenceTable.rb +44 -0
  107. data/examples/v2/reference-tables/CreateReferenceTableUpload.rb +21 -0
  108. data/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb +41 -0
  109. data/examples/v2/reference-tables/DeleteTable.rb +5 -0
  110. data/examples/v2/reference-tables/GetRowsByID.rb +5 -0
  111. data/examples/v2/reference-tables/GetTable.rb +5 -0
  112. data/examples/v2/reference-tables/ListTables.rb +5 -0
  113. data/examples/v2/reference-tables/UpdateReferenceTable.rb +44 -0
  114. data/examples/v2/roles/ListRoleTemplates.rb +8 -0
  115. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb +68 -0
  116. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +3 -1
  117. data/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +8 -0
  118. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +70 -0
  119. data/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb +17 -0
  120. data/examples/v2/static-analysis/CreateSCAResult.rb +61 -0
  121. data/examples/v2/test-optimization/SearchFlakyTests.rb +27 -0
  122. data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +27 -0
  123. data/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb +26 -0
  124. data/lib/datadog_api_client/configuration.rb +12 -0
  125. data/lib/datadog_api_client/inflector.rb +312 -1
  126. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
  127. data/lib/datadog_api_client/v1/api/synthetics_api.rb +1 -3
  128. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  129. data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
  130. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper.rb +211 -0
  131. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_category.rb +165 -0
  132. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_fallback.rb +115 -0
  133. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_targets.rb +115 -0
  134. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_type.rb +26 -0
  135. data/lib/datadog_api_client/v1/models/logs_schema_data.rb +198 -0
  136. data/lib/datadog_api_client/v1/models/logs_schema_mapper.rb +63 -0
  137. data/lib/datadog_api_client/v1/models/logs_schema_processor.rb +198 -0
  138. data/lib/datadog_api_client/v1/models/logs_schema_processor_type.rb +26 -0
  139. data/lib/datadog_api_client/v1/models/logs_schema_remapper.rb +220 -0
  140. data/lib/datadog_api_client/v1/models/logs_schema_remapper_type.rb +26 -0
  141. data/lib/datadog_api_client/v1/models/monitor.rb +0 -1
  142. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +0 -1
  143. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +13 -1
  144. data/lib/datadog_api_client/v1/models/widget_marker.rb +0 -1
  145. data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +72 -0
  146. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +680 -22
  147. data/lib/datadog_api_client/v2/api/api_management_api.rb +0 -2
  148. data/lib/datadog_api_client/v2/api/aws_integration_api.rb +120 -0
  149. data/lib/datadog_api_client/v2/api/case_management_api.rb +433 -0
  150. data/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +293 -0
  151. data/lib/datadog_api_client/v2/api/case_management_type_api.rb +218 -0
  152. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -0
  153. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1229 -144
  154. data/lib/datadog_api_client/v2/api/container_images_api.rb +1 -0
  155. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +139 -9
  156. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +65 -0
  157. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +318 -0
  158. data/lib/datadog_api_client/v2/api/incidents_api.rb +237 -8
  159. data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +0 -1
  160. data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +0 -4
  161. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +519 -0
  162. data/lib/datadog_api_client/v2/api/roles_api.rb +66 -0
  163. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +151 -10
  164. data/lib/datadog_api_client/v2/api/static_analysis_api.rb +166 -0
  165. data/lib/datadog_api_client/v2/api/test_optimization_api.rb +116 -0
  166. data/lib/datadog_api_client/v2/models/account_filtering_config.rb +8 -0
  167. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request.rb +105 -0
  168. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data.rb +143 -0
  169. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes.rb +241 -0
  170. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_costs_to_allocate_items.rb +174 -0
  171. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy.rb +215 -0
  172. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
  173. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items.rb +146 -0
  174. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
  175. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_based_on_costs_items.rb +174 -0
  176. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
  177. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_type.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/arbitrary_rule_response.rb +105 -0
  179. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +135 -0
  180. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array_meta.rb +105 -0
  181. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data.rb +143 -0
  182. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +361 -0
  183. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_costs_to_allocate_items.rb +174 -0
  184. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy.rb +215 -0
  185. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
  186. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items.rb +146 -0
  187. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
  188. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_based_on_costs_items.rb +174 -0
  189. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
  190. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_type.rb +26 -0
  191. data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +8 -0
  192. data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +1 -12
  193. data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +5 -5
  194. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data.rb +143 -0
  195. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes.rb +225 -0
  196. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes_account_filters.rb +137 -0
  197. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_type.rb +26 -0
  198. data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +19 -1
  199. data/lib/datadog_api_client/v2/models/azure_scan_options.rb +105 -0
  200. data/lib/datadog_api_client/v2/models/azure_scan_options_array.rb +125 -0
  201. data/lib/datadog_api_client/v2/models/azure_scan_options_data.rb +154 -0
  202. data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +115 -0
  203. data/lib/datadog_api_client/v2/models/azure_scan_options_data_type.rb +26 -0
  204. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update.rb +105 -0
  205. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data.rb +154 -0
  206. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +115 -0
  207. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +9 -1
  209. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +1 -12
  210. data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +1 -12
  211. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +3 -13
  212. data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +19 -1
  213. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request.rb +105 -0
  214. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data.rb +143 -0
  215. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_attributes.rb +125 -0
  216. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_type.rb +26 -0
  217. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +0 -1
  218. data/lib/datadog_api_client/v2/models/case_attributes.rb +23 -3
  219. data/lib/datadog_api_client/v2/models/case_comment.rb +144 -0
  220. data/lib/datadog_api_client/v2/models/case_comment_attributes.rb +123 -0
  221. data/lib/datadog_api_client/v2/models/case_comment_request.rb +123 -0
  222. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +14 -14
  223. data/lib/datadog_api_client/v2/models/case_type.rb +2 -0
  224. data/lib/datadog_api_client/v2/models/case_type_create.rb +144 -0
  225. data/lib/datadog_api_client/v2/models/case_type_create_request.rb +123 -0
  226. data/lib/datadog_api_client/v2/models/case_type_resource.rb +125 -0
  227. data/lib/datadog_api_client/v2/models/case_type_resource_attributes.rb +161 -0
  228. data/lib/datadog_api_client/v2/models/case_type_resource_type.rb +26 -0
  229. data/lib/datadog_api_client/v2/models/case_type_response.rb +105 -0
  230. data/lib/datadog_api_client/v2/models/case_types_response.rb +107 -0
  231. data/lib/datadog_api_client/v2/models/case_update_custom_attribute.rb +144 -0
  232. data/lib/datadog_api_client/v2/models/case_update_custom_attribute_request.rb +123 -0
  233. data/lib/datadog_api_client/v2/models/case_update_description.rb +144 -0
  234. data/lib/datadog_api_client/v2/models/case_update_description_attributes.rb +123 -0
  235. data/lib/datadog_api_client/v2/models/case_update_description_request.rb +123 -0
  236. data/lib/datadog_api_client/v2/models/case_update_title.rb +144 -0
  237. data/lib/datadog_api_client/v2/models/case_update_title_attributes.rb +123 -0
  238. data/lib/datadog_api_client/v2/models/case_update_title_request.rb +123 -0
  239. data/lib/datadog_api_client/v2/models/cloud_asset_type.rb +28 -0
  240. data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +0 -2
  241. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +0 -1
  242. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +0 -1
  243. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +0 -1
  244. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +25 -3
  245. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +123 -0
  246. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +35 -5
  247. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +11 -1
  248. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +30 -10
  249. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +23 -3
  250. data/lib/datadog_api_client/v2/models/create_ruleset_request.rb +105 -0
  251. data/lib/datadog_api_client/v2/models/create_ruleset_request_data.rb +143 -0
  252. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes.rb +135 -0
  253. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +195 -0
  254. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
  255. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +172 -0
  256. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
  257. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
  258. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  259. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_type.rb +26 -0
  260. data/lib/datadog_api_client/v2/models/create_table_request.rb +105 -0
  261. data/lib/datadog_api_client/v2/models/create_table_request_data.rb +143 -0
  262. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +197 -0
  263. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +63 -0
  264. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +119 -0
  265. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  266. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  267. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +165 -0
  268. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +207 -0
  269. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +186 -0
  270. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +148 -0
  271. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +144 -0
  272. data/lib/datadog_api_client/v2/models/create_table_request_data_type.rb +26 -0
  273. data/lib/datadog_api_client/v2/models/create_upload_request.rb +105 -0
  274. data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +143 -0
  275. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +192 -0
  276. data/lib/datadog_api_client/v2/models/create_upload_request_data_type.rb +26 -0
  277. data/lib/datadog_api_client/v2/models/create_upload_response.rb +105 -0
  278. data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +143 -0
  279. data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +107 -0
  280. data/lib/datadog_api_client/v2/models/create_upload_response_data_type.rb +26 -0
  281. data/lib/datadog_api_client/v2/models/custom_attribute_config.rb +125 -0
  282. data/lib/datadog_api_client/v2/models/custom_attribute_config_attributes_create.rb +196 -0
  283. data/lib/datadog_api_client/v2/models/custom_attribute_config_create.rb +144 -0
  284. data/lib/datadog_api_client/v2/models/custom_attribute_config_create_request.rb +123 -0
  285. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_attributes.rb +217 -0
  286. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_type.rb +26 -0
  287. data/lib/datadog_api_client/v2/models/custom_attribute_config_response.rb +105 -0
  288. data/lib/datadog_api_client/v2/models/custom_attribute_configs_response.rb +107 -0
  289. data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +28 -0
  290. data/lib/datadog_api_client/v2/models/custom_attribute_value.rb +165 -0
  291. data/lib/datadog_api_client/v2/models/custom_attribute_values_union.rb +65 -0
  292. data/lib/datadog_api_client/v2/models/datastore_trigger.rb +105 -0
  293. data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +135 -0
  294. data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_array.rb +125 -0
  295. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  296. data/lib/datadog_api_client/v2/models/flaky_test.rb +125 -0
  297. data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +301 -0
  298. data/lib/datadog_api_client/v2/models/flaky_test_attributes_flaky_state.rb +29 -0
  299. data/lib/datadog_api_client/v2/models/flaky_test_pipeline_stats.rb +124 -0
  300. data/lib/datadog_api_client/v2/models/flaky_test_run_metadata.rb +168 -0
  301. data/lib/datadog_api_client/v2/models/flaky_test_stats.rb +113 -0
  302. data/lib/datadog_api_client/v2/models/flaky_test_type.rb +26 -0
  303. data/lib/datadog_api_client/v2/models/flaky_tests_pagination.rb +113 -0
  304. data/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +115 -0
  305. data/lib/datadog_api_client/v2/models/flaky_tests_search_page_options.rb +137 -0
  306. data/lib/datadog_api_client/v2/models/flaky_tests_search_request.rb +105 -0
  307. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +125 -0
  308. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data.rb +115 -0
  309. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data_type.rb +26 -0
  310. data/lib/datadog_api_client/v2/models/flaky_tests_search_response.rb +117 -0
  311. data/lib/datadog_api_client/v2/models/flaky_tests_search_response_meta.rb +105 -0
  312. data/lib/datadog_api_client/v2/models/flaky_tests_search_sort.rb +37 -0
  313. data/lib/datadog_api_client/v2/models/fleet_deployment.rb +165 -0
  314. data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +147 -0
  315. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_attributes.rb +135 -0
  316. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +144 -0
  317. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +123 -0
  318. data/lib/datadog_api_client/v2/models/fleet_deployment_file_op.rb +30 -0
  319. data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +161 -0
  320. data/lib/datadog_api_client/v2/models/fleet_deployment_resource_type.rb +26 -0
  321. data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +105 -0
  322. data/lib/datadog_api_client/v2/models/fleet_deployments_page.rb +105 -0
  323. data/lib/datadog_api_client/v2/models/fleet_deployments_response.rb +135 -0
  324. data/lib/datadog_api_client/v2/models/fleet_deployments_response_meta.rb +105 -0
  325. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +19 -1
  326. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +12 -1
  327. data/lib/datadog_api_client/v2/models/gcp_scan_options.rb +105 -0
  328. data/lib/datadog_api_client/v2/models/gcp_scan_options_array.rb +125 -0
  329. data/lib/datadog_api_client/v2/models/gcp_scan_options_data.rb +154 -0
  330. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +115 -0
  331. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_type.rb +26 -0
  332. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update.rb +105 -0
  333. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data.rb +154 -0
  334. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +115 -0
  335. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_type.rb +26 -0
  336. data/lib/datadog_api_client/v2/models/gcp_uc_config_response.rb +105 -0
  337. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data.rb +143 -0
  338. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_attributes.rb +235 -0
  339. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_type.rb +26 -0
  340. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +4 -4
  341. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +13 -13
  342. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +3 -3
  343. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +2 -2
  344. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +1 -1
  345. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +1 -1
  346. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +4 -15
  347. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +2 -2
  348. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +7 -7
  349. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +1 -1
  350. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +2 -2
  351. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +1 -1
  352. data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +21 -3
  353. data/lib/datadog_api_client/v2/models/historical_job_options.rb +11 -1
  354. data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +203 -0
  355. data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +173 -0
  356. data/lib/datadog_api_client/v2/models/incident_impact_create_data.rb +144 -0
  357. data/lib/datadog_api_client/v2/models/incident_impact_create_request.rb +123 -0
  358. data/lib/datadog_api_client/v2/models/incident_impact_related_object.rb +28 -0
  359. data/lib/datadog_api_client/v2/models/incident_impact_relationships.rb +125 -0
  360. data/lib/datadog_api_client/v2/models/incident_impact_response.rb +135 -0
  361. data/lib/datadog_api_client/v2/models/incident_impact_response_data.rb +164 -0
  362. data/lib/datadog_api_client/v2/models/incident_impact_type.rb +26 -0
  363. data/lib/datadog_api_client/v2/models/incident_impacts_response.rb +137 -0
  364. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +33 -1
  365. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +11 -1
  366. data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_meta.rb +0 -1
  367. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +15 -9
  368. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +162 -0
  369. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +160 -0
  370. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +11 -1
  371. data/lib/datadog_api_client/v2/models/notification_rule_response.rb +0 -1
  372. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +0 -1
  373. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +0 -1
  374. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +0 -1
  375. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +0 -1
  376. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +0 -1
  377. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +2 -1
  378. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +0 -1
  379. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +0 -1
  380. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +250 -0
  381. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_encoding.rb +27 -0
  382. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_type.rb +26 -0
  383. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +0 -1
  384. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +0 -2
  385. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +0 -1
  386. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +0 -1
  387. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +19 -1
  388. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +12 -1
  389. data/lib/datadog_api_client/v2/models/patch_table_request.rb +105 -0
  390. data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +143 -0
  391. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +147 -0
  392. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +63 -0
  393. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +90 -0
  394. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  395. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  396. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  397. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  398. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  399. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +148 -0
  400. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +144 -0
  401. data/lib/datadog_api_client/v2/models/patch_table_request_data_type.rb +26 -0
  402. data/lib/datadog_api_client/v2/models/reference_table_create_source_type.rb +29 -0
  403. data/lib/datadog_api_client/v2/models/reference_table_schema_field_type.rb +27 -0
  404. data/lib/datadog_api_client/v2/models/reference_table_sort_type.rb +31 -0
  405. data/lib/datadog_api_client/v2/models/reference_table_source_type.rb +33 -0
  406. data/lib/datadog_api_client/v2/models/relationship_to_incident.rb +123 -0
  407. data/lib/datadog_api_client/v2/models/relationship_to_incident_data.rb +144 -0
  408. data/lib/datadog_api_client/v2/models/reorder_rule_resource_array.rb +125 -0
  409. data/lib/datadog_api_client/v2/models/reorder_rule_resource_data.rb +133 -0
  410. data/lib/datadog_api_client/v2/models/reorder_rule_resource_data_type.rb +26 -0
  411. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_array.rb +125 -0
  412. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data.rb +133 -0
  413. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data_type.rb +26 -0
  414. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request.rb +105 -0
  415. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data.rb +143 -0
  416. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_attributes.rb +107 -0
  417. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_type.rb +26 -0
  418. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response.rb +105 -0
  419. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data.rb +143 -0
  420. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_attributes.rb +107 -0
  421. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_type.rb +26 -0
  422. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results.rb +117 -0
  423. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols.rb +117 -0
  424. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols_symbols.rb +125 -0
  425. data/lib/datadog_api_client/v2/models/role_template_array.rb +125 -0
  426. data/lib/datadog_api_client/v2/models/role_template_data.rb +143 -0
  427. data/lib/datadog_api_client/v2/models/role_template_data_attributes.rb +115 -0
  428. data/lib/datadog_api_client/v2/models/role_template_data_type.rb +26 -0
  429. data/lib/datadog_api_client/v2/models/rules_validate_query_request.rb +105 -0
  430. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data.rb +143 -0
  431. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_attributes.rb +123 -0
  432. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_type.rb +26 -0
  433. data/lib/datadog_api_client/v2/models/rules_validate_query_response.rb +105 -0
  434. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data.rb +143 -0
  435. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_attributes.rb +123 -0
  436. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_type.rb +26 -0
  437. data/lib/datadog_api_client/v2/models/ruleset_resp.rb +105 -0
  438. data/lib/datadog_api_client/v2/models/ruleset_resp_array.rb +125 -0
  439. data/lib/datadog_api_client/v2/models/ruleset_resp_data.rb +143 -0
  440. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +286 -0
  441. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_created.rb +133 -0
  442. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_modified.rb +133 -0
  443. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +195 -0
  444. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_mapping.rb +167 -0
  445. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +172 -0
  446. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query_addition.rb +144 -0
  447. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +189 -0
  448. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  449. data/lib/datadog_api_client/v2/models/ruleset_resp_data_type.rb +26 -0
  450. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +22 -1
  451. data/lib/datadog_api_client/v2/models/sbom_format.rb +27 -0
  452. data/lib/datadog_api_client/v2/models/sca_request.rb +105 -0
  453. data/lib/datadog_api_client/v2/models/sca_request_data.rb +143 -0
  454. data/lib/datadog_api_client/v2/models/sca_request_data_attributes.rb +193 -0
  455. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_commit.rb +165 -0
  456. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items.rb +211 -0
  457. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items.rb +135 -0
  458. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_file_position.rb +125 -0
  459. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_position.rb +144 -0
  460. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_reachable_symbol_properties_items.rb +115 -0
  461. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_files_items.rb +115 -0
  462. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_relations_items.rb +117 -0
  463. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_repository.rb +105 -0
  464. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items.rb +127 -0
  465. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items_affects_items.rb +105 -0
  466. data/lib/datadog_api_client/v2/models/sca_request_data_type.rb +26 -0
  467. data/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb +144 -0
  468. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_asset.rb +144 -0
  469. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_attributes.rb +165 -0
  470. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_last_success.rb +145 -0
  471. data/lib/datadog_api_client/v2/models/scanned_assets_metadata.rb +145 -0
  472. data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
  473. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -2
  474. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_options.rb +119 -0
  475. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step.rb +126 -0
  476. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step_transition.rb +126 -0
  477. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +13 -1
  478. data/lib/datadog_api_client/v2/models/table_result_v2.rb +105 -0
  479. data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +125 -0
  480. data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +143 -0
  481. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +207 -0
  482. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +63 -0
  483. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +145 -0
  484. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage_error_type.rb +34 -0
  485. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +125 -0
  486. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  487. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  488. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  489. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  490. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +148 -0
  491. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +144 -0
  492. data/lib/datadog_api_client/v2/models/table_result_v2_data_type.rb +26 -0
  493. data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +125 -0
  494. data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +143 -0
  495. data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +105 -0
  496. data/lib/datadog_api_client/v2/models/table_row_resource_data_type.rb +26 -0
  497. data/lib/datadog_api_client/v2/models/timeline_cell.rb +155 -0
  498. data/lib/datadog_api_client/v2/models/timeline_cell_author.rb +62 -0
  499. data/lib/datadog_api_client/v2/models/timeline_cell_author_user.rb +115 -0
  500. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_content.rb +135 -0
  501. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_type.rb +26 -0
  502. data/lib/datadog_api_client/v2/models/timeline_cell_content.rb +62 -0
  503. data/lib/datadog_api_client/v2/models/timeline_cell_content_comment.rb +105 -0
  504. data/lib/datadog_api_client/v2/models/timeline_cell_resource.rb +165 -0
  505. data/lib/datadog_api_client/v2/models/timeline_cell_resource_type.rb +26 -0
  506. data/lib/datadog_api_client/v2/models/timeline_cell_type.rb +26 -0
  507. data/lib/datadog_api_client/v2/models/timeline_response.rb +107 -0
  508. data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
  509. data/lib/datadog_api_client/v2/models/uc_config_pair.rb +105 -0
  510. data/lib/datadog_api_client/v2/models/uc_config_pair_data.rb +143 -0
  511. data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes.rb +107 -0
  512. data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes_configs_items.rb +255 -0
  513. data/lib/datadog_api_client/v2/models/uc_config_pair_data_type.rb +26 -0
  514. data/lib/datadog_api_client/v2/models/update_ruleset_request.rb +105 -0
  515. data/lib/datadog_api_client/v2/models/update_ruleset_request_data.rb +143 -0
  516. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes.rb +156 -0
  517. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +195 -0
  518. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
  519. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +172 -0
  520. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
  521. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
  522. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  523. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_type.rb +26 -0
  524. data/lib/datadog_api_client/v2/models/vulnerability_advisory.rb +143 -0
  525. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
  526. data/lib/datadog_api_client/version.rb +1 -1
  527. metadata +398 -4
  528. data/examples/v1/synthetics/SearchTests_195957771.rb +0 -14
@@ -37,7 +37,7 @@ module DatadogAPIClient::V2
37
37
  #
38
38
  # @param body [AwsCURConfigPostRequest]
39
39
  # @param opts [Hash] the optional parameters
40
- # @return [Array<(AwsCURConfigResponse, Integer, Hash)>] AwsCURConfigResponse data, response status code and response headers
40
+ # @return [Array<(AwsCurConfigResponse, Integer, Hash)>] AwsCurConfigResponse data, response status code and response headers
41
41
  def create_cost_awscur_config_with_http_info(body, opts = {})
42
42
 
43
43
  if @api_client.config.debugging
@@ -67,7 +67,7 @@ module DatadogAPIClient::V2
67
67
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
68
68
 
69
69
  # return_type
70
- return_type = opts[:debug_return_type] || 'AwsCURConfigResponse'
70
+ return_type = opts[:debug_return_type] || 'AwsCurConfigResponse'
71
71
 
72
72
  # auth_names
73
73
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
@@ -157,7 +157,7 @@ module DatadogAPIClient::V2
157
157
  return data, status_code, headers
158
158
  end
159
159
 
160
- # Create Cloud Cost Management GCP Usage Cost config.
160
+ # Create Google Cloud Usage Cost config.
161
161
  #
162
162
  # @see #create_cost_gcp_usage_cost_config_with_http_info
163
163
  def create_cost_gcp_usage_cost_config(body, opts = {})
@@ -165,9 +165,9 @@ module DatadogAPIClient::V2
165
165
  data
166
166
  end
167
167
 
168
- # Create Cloud Cost Management GCP Usage Cost config.
168
+ # Create Google Cloud Usage Cost config.
169
169
  #
170
- # Create a Cloud Cost Management account for an GCP Usage Cost config.
170
+ # Create a Cloud Cost Management account for an Google Cloud Usage Cost config.
171
171
  #
172
172
  # @param body [GCPUsageCostConfigPostRequest]
173
173
  # @param opts [Hash] the optional parameters
@@ -224,6 +224,152 @@ module DatadogAPIClient::V2
224
224
  return data, status_code, headers
225
225
  end
226
226
 
227
+ # Create custom allocation rule.
228
+ #
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)
232
+ data
233
+ end
234
+
235
+ # Create custom allocation rule.
236
+ #
237
+ # Create a new custom allocation rule with the specified filters and allocation strategy.
238
+ #
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]
252
+ # @param opts [Hash] the optional parameters
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 = {})
255
+
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_custom_allocation_rule ...'
258
+ end
259
+ # verify the required parameter 'body' is set
260
+ if @api_client.config.client_side_validation && body.nil?
261
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_custom_allocation_rule"
262
+ end
263
+ # resource path
264
+ local_var_path = '/api/v2/cost/arbitrary_rule'
265
+
266
+ # query parameters
267
+ query_params = opts[:query_params] || {}
268
+
269
+ # header parameters
270
+ header_params = opts[:header_params] || {}
271
+ # HTTP header 'Accept' (if needed)
272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
273
+ # HTTP header 'Content-Type'
274
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
275
+
276
+ # form parameters
277
+ form_params = opts[:form_params] || {}
278
+
279
+ # http body (model)
280
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
281
+
282
+ # return_type
283
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
284
+
285
+ # auth_names
286
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
287
+
288
+ new_options = opts.merge(
289
+ :operation => :create_custom_allocation_rule,
290
+ :header_params => header_params,
291
+ :query_params => query_params,
292
+ :form_params => form_params,
293
+ :body => post_body,
294
+ :auth_names => auth_names,
295
+ :return_type => return_type,
296
+ :api_version => "V2"
297
+ )
298
+
299
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
+ end
303
+ return data, status_code, headers
304
+ end
305
+
306
+ # Create tag pipeline ruleset.
307
+ #
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
312
+ end
313
+
314
+ # Create tag pipeline ruleset.
315
+ #
316
+ # Create a new tag pipeline ruleset with the specified rules and configuration
317
+ #
318
+ # @param body [CreateRulesetRequest]
319
+ # @param opts [Hash] the optional parameters
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 = {})
322
+
323
+ if @api_client.config.debugging
324
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_tag_pipelines_ruleset ...'
325
+ end
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"
329
+ end
330
+ # resource path
331
+ local_var_path = '/api/v2/tags/enrichment'
332
+
333
+ # query parameters
334
+ query_params = opts[:query_params] || {}
335
+
336
+ # header parameters
337
+ header_params = opts[:header_params] || {}
338
+ # HTTP header 'Accept' (if needed)
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'])
342
+
343
+ # form parameters
344
+ form_params = opts[:form_params] || {}
345
+
346
+ # http body (model)
347
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
348
+
349
+ # return_type
350
+ return_type = opts[:debug_return_type] || 'RulesetResp'
351
+
352
+ # auth_names
353
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
354
+
355
+ new_options = opts.merge(
356
+ :operation => :create_tag_pipelines_ruleset,
357
+ :header_params => header_params,
358
+ :query_params => query_params,
359
+ :form_params => form_params,
360
+ :body => post_body,
361
+ :auth_names => auth_names,
362
+ :return_type => return_type,
363
+ :api_version => "V2"
364
+ )
365
+
366
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
367
+ if @api_client.config.debugging
368
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#create_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
369
+ end
370
+ return data, status_code, headers
371
+ end
372
+
227
373
  # Delete a budget.
228
374
  #
229
375
  # @see #delete_budget_with_http_info
@@ -419,7 +565,7 @@ module DatadogAPIClient::V2
419
565
  return data, status_code, headers
420
566
  end
421
567
 
422
- # Delete Cloud Cost Management GCP Usage Cost config.
568
+ # Delete Google Cloud Usage Cost config.
423
569
  #
424
570
  # @see #delete_cost_gcp_usage_cost_config_with_http_info
425
571
  def delete_cost_gcp_usage_cost_config(cloud_account_id, opts = {})
@@ -427,7 +573,7 @@ module DatadogAPIClient::V2
427
573
  nil
428
574
  end
429
575
 
430
- # Delete Cloud Cost Management GCP Usage Cost config.
576
+ # Delete Google Cloud Usage Cost config.
431
577
  #
432
578
  # Archive a Cloud Cost Management account.
433
579
  #
@@ -484,32 +630,32 @@ module DatadogAPIClient::V2
484
630
  return data, status_code, headers
485
631
  end
486
632
 
487
- # Delete Custom Costs file.
633
+ # Delete custom allocation rule.
488
634
  #
489
- # @see #delete_custom_costs_file_with_http_info
490
- def delete_custom_costs_file(file_id, opts = {})
491
- 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)
492
638
  nil
493
639
  end
494
640
 
495
- # Delete Custom Costs file.
641
+ # Delete custom allocation rule.
496
642
  #
497
- # Delete the specified Custom Costs file.
643
+ # Delete a custom allocation rule - Delete an existing custom allocation rule by its ID
498
644
  #
499
- # @param file_id [String] File ID.
645
+ # @param rule_id [Integer] The unique identifier of the custom allocation rule
500
646
  # @param opts [Hash] the optional parameters
501
647
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
502
- def delete_custom_costs_file_with_http_info(file_id, opts = {})
648
+ def delete_custom_allocation_rule_with_http_info(rule_id, opts = {})
503
649
 
504
650
  if @api_client.config.debugging
505
- @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 ...'
506
652
  end
507
- # verify the required parameter 'file_id' is set
508
- if @api_client.config.client_side_validation && file_id.nil?
509
- 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"
510
656
  end
511
657
  # resource path
512
- 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', '/'))
513
659
 
514
660
  # query parameters
515
661
  query_params = opts[:query_params] || {}
@@ -532,7 +678,7 @@ module DatadogAPIClient::V2
532
678
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
533
679
 
534
680
  new_options = opts.merge(
535
- :operation => :delete_custom_costs_file,
681
+ :operation => :delete_custom_allocation_rule,
536
682
  :header_params => header_params,
537
683
  :query_params => query_params,
538
684
  :form_params => form_params,
@@ -544,37 +690,37 @@ module DatadogAPIClient::V2
544
690
 
545
691
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
546
692
  if @api_client.config.debugging
547
- @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}"
548
694
  end
549
695
  return data, status_code, headers
550
696
  end
551
697
 
552
- # Get a budget.
698
+ # Delete Custom Costs file.
553
699
  #
554
- # @see #get_budget_with_http_info
555
- def get_budget(budget_id, opts = {})
556
- data, _status_code, _headers = get_budget_with_http_info(budget_id, opts)
557
- data
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)
703
+ nil
558
704
  end
559
705
 
560
- # Get a budget.
706
+ # Delete Custom Costs file.
561
707
  #
562
- # Get a budget.
708
+ # Delete the specified Custom Costs file.
563
709
  #
564
- # @param budget_id [String] Budget id.
710
+ # @param file_id [String] File ID.
565
711
  # @param opts [Hash] the optional parameters
566
- # @return [Array<(BudgetWithEntries, Integer, Hash)>] BudgetWithEntries data, response status code and response headers
567
- def get_budget_with_http_info(budget_id, opts = {})
712
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
713
+ def delete_custom_costs_file_with_http_info(file_id, opts = {})
568
714
 
569
715
  if @api_client.config.debugging
570
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_budget ...'
716
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_costs_file ...'
571
717
  end
572
- # verify the required parameter 'budget_id' is set
573
- if @api_client.config.client_side_validation && budget_id.nil?
574
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling CloudCostManagementAPI.get_budget"
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"
575
721
  end
576
722
  # resource path
577
- local_var_path = '/api/v2/cost/budget/{budget_id}'.sub('{budget_id}', CGI.escape(budget_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', '/'))
578
724
 
579
725
  # query parameters
580
726
  query_params = opts[:query_params] || {}
@@ -582,7 +728,7 @@ module DatadogAPIClient::V2
582
728
  # header parameters
583
729
  header_params = opts[:header_params] || {}
584
730
  # HTTP header 'Accept' (if needed)
585
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
731
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
586
732
 
587
733
  # form parameters
588
734
  form_params = opts[:form_params] || {}
@@ -591,13 +737,13 @@ module DatadogAPIClient::V2
591
737
  post_body = opts[:debug_body]
592
738
 
593
739
  # return_type
594
- return_type = opts[:debug_return_type] || 'BudgetWithEntries'
740
+ return_type = opts[:debug_return_type]
595
741
 
596
742
  # auth_names
597
743
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
598
744
 
599
745
  new_options = opts.merge(
600
- :operation => :get_budget,
746
+ :operation => :delete_custom_costs_file,
601
747
  :header_params => header_params,
602
748
  :query_params => query_params,
603
749
  :form_params => form_params,
@@ -607,39 +753,39 @@ module DatadogAPIClient::V2
607
753
  :api_version => "V2"
608
754
  )
609
755
 
610
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
756
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
611
757
  if @api_client.config.debugging
612
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_budget\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}"
613
759
  end
614
760
  return data, status_code, headers
615
761
  end
616
762
 
617
- # Get Custom Costs file.
763
+ # Delete tag pipeline ruleset.
618
764
  #
619
- # @see #get_custom_costs_file_with_http_info
620
- def get_custom_costs_file(file_id, opts = {})
621
- data, _status_code, _headers = get_custom_costs_file_with_http_info(file_id, opts)
622
- 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
623
769
  end
624
770
 
625
- # Get Custom Costs file.
771
+ # Delete tag pipeline ruleset.
626
772
  #
627
- # Fetch the specified Custom Costs file.
773
+ # Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
628
774
  #
629
- # @param file_id [String] File ID.
775
+ # @param ruleset_id [String] The unique identifier of the ruleset
630
776
  # @param opts [Hash] the optional parameters
631
- # @return [Array<(CustomCostsFileGetResponse, Integer, Hash)>] CustomCostsFileGetResponse data, response status code and response headers
632
- def get_custom_costs_file_with_http_info(file_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 = {})
633
779
 
634
780
  if @api_client.config.debugging
635
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
781
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_tag_pipelines_ruleset ...'
636
782
  end
637
- # verify the required parameter 'file_id' is set
638
- if @api_client.config.client_side_validation && file_id.nil?
639
- fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.get_custom_costs_file"
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"
640
786
  end
641
787
  # resource path
642
- local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_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', '/'))
643
789
 
644
790
  # query parameters
645
791
  query_params = opts[:query_params] || {}
@@ -647,7 +793,7 @@ module DatadogAPIClient::V2
647
793
  # header parameters
648
794
  header_params = opts[:header_params] || {}
649
795
  # HTTP header 'Accept' (if needed)
650
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
796
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
651
797
 
652
798
  # form parameters
653
799
  form_params = opts[:form_params] || {}
@@ -656,13 +802,13 @@ module DatadogAPIClient::V2
656
802
  post_body = opts[:debug_body]
657
803
 
658
804
  # return_type
659
- return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
805
+ return_type = opts[:debug_return_type]
660
806
 
661
807
  # auth_names
662
808
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
663
809
 
664
810
  new_options = opts.merge(
665
- :operation => :get_custom_costs_file,
811
+ :operation => :delete_tag_pipelines_ruleset,
666
812
  :header_params => header_params,
667
813
  :query_params => query_params,
668
814
  :form_params => form_params,
@@ -672,34 +818,39 @@ module DatadogAPIClient::V2
672
818
  :api_version => "V2"
673
819
  )
674
820
 
675
- 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)
676
822
  if @api_client.config.debugging
677
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_costs_file\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}"
678
824
  end
679
825
  return data, status_code, headers
680
826
  end
681
827
 
682
- # List budgets.
828
+ # Get a budget.
683
829
  #
684
- # @see #list_budgets_with_http_info
685
- def list_budgets(opts = {})
686
- data, _status_code, _headers = list_budgets_with_http_info(opts)
830
+ # @see #get_budget_with_http_info
831
+ def get_budget(budget_id, opts = {})
832
+ data, _status_code, _headers = get_budget_with_http_info(budget_id, opts)
687
833
  data
688
834
  end
689
835
 
690
- # List budgets.
836
+ # Get a budget.
691
837
  #
692
- # List budgets.
838
+ # Get a budget.
693
839
  #
840
+ # @param budget_id [String] Budget id.
694
841
  # @param opts [Hash] the optional parameters
695
- # @return [Array<(BudgetArray, Integer, Hash)>] BudgetArray data, response status code and response headers
696
- def list_budgets_with_http_info(opts = {})
842
+ # @return [Array<(BudgetWithEntries, Integer, Hash)>] BudgetWithEntries data, response status code and response headers
843
+ def get_budget_with_http_info(budget_id, opts = {})
697
844
 
698
845
  if @api_client.config.debugging
699
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_budgets ...'
846
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_budget ...'
847
+ end
848
+ # verify the required parameter 'budget_id' is set
849
+ if @api_client.config.client_side_validation && budget_id.nil?
850
+ fail ArgumentError, "Missing the required parameter 'budget_id' when calling CloudCostManagementAPI.get_budget"
700
851
  end
701
852
  # resource path
702
- local_var_path = '/api/v2/cost/budgets'
853
+ local_var_path = '/api/v2/cost/budget/{budget_id}'.sub('{budget_id}', CGI.escape(budget_id.to_s).gsub('%2F', '/'))
703
854
 
704
855
  # query parameters
705
856
  query_params = opts[:query_params] || {}
@@ -716,13 +867,13 @@ module DatadogAPIClient::V2
716
867
  post_body = opts[:debug_body]
717
868
 
718
869
  # return_type
719
- return_type = opts[:debug_return_type] || 'BudgetArray'
870
+ return_type = opts[:debug_return_type] || 'BudgetWithEntries'
720
871
 
721
872
  # auth_names
722
873
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
723
874
 
724
875
  new_options = opts.merge(
725
- :operation => :list_budgets,
876
+ :operation => :get_budget,
726
877
  :header_params => header_params,
727
878
  :query_params => query_params,
728
879
  :form_params => form_params,
@@ -734,32 +885,37 @@ module DatadogAPIClient::V2
734
885
 
735
886
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
736
887
  if @api_client.config.debugging
737
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_budgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
888
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
738
889
  end
739
890
  return data, status_code, headers
740
891
  end
741
892
 
742
- # List Cloud Cost Management AWS CUR configs.
893
+ # Get cost AWS CUR config.
743
894
  #
744
- # @see #list_cost_awscur_configs_with_http_info
745
- def list_cost_awscur_configs(opts = {})
746
- data, _status_code, _headers = list_cost_awscur_configs_with_http_info(opts)
895
+ # @see #get_cost_awscur_config_with_http_info
896
+ def get_cost_awscur_config(cloud_account_id, opts = {})
897
+ data, _status_code, _headers = get_cost_awscur_config_with_http_info(cloud_account_id, opts)
747
898
  data
748
899
  end
749
900
 
750
- # List Cloud Cost Management AWS CUR configs.
901
+ # Get cost AWS CUR config.
751
902
  #
752
- # List the AWS CUR configs.
903
+ # Get a specific AWS CUR config.
753
904
  #
905
+ # @param cloud_account_id [Integer] The unique identifier of the cloud account
754
906
  # @param opts [Hash] the optional parameters
755
- # @return [Array<(AwsCURConfigsResponse, Integer, Hash)>] AwsCURConfigsResponse data, response status code and response headers
756
- def list_cost_awscur_configs_with_http_info(opts = {})
907
+ # @return [Array<(AwsCurConfigResponse, Integer, Hash)>] AwsCurConfigResponse data, response status code and response headers
908
+ def get_cost_awscur_config_with_http_info(cloud_account_id, opts = {})
757
909
 
758
910
  if @api_client.config.debugging
759
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_awscur_configs ...'
911
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_awscur_config ...'
912
+ end
913
+ # verify the required parameter 'cloud_account_id' is set
914
+ if @api_client.config.client_side_validation && cloud_account_id.nil?
915
+ fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_awscur_config"
760
916
  end
761
917
  # resource path
762
- local_var_path = '/api/v2/cost/aws_cur_config'
918
+ local_var_path = '/api/v2/cost/aws_cur_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
763
919
 
764
920
  # query parameters
765
921
  query_params = opts[:query_params] || {}
@@ -776,13 +932,13 @@ module DatadogAPIClient::V2
776
932
  post_body = opts[:debug_body]
777
933
 
778
934
  # return_type
779
- return_type = opts[:debug_return_type] || 'AwsCURConfigsResponse'
935
+ return_type = opts[:debug_return_type] || 'AwsCurConfigResponse'
780
936
 
781
937
  # auth_names
782
938
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
783
939
 
784
940
  new_options = opts.merge(
785
- :operation => :list_cost_awscur_configs,
941
+ :operation => :get_cost_awscur_config,
786
942
  :header_params => header_params,
787
943
  :query_params => query_params,
788
944
  :form_params => form_params,
@@ -794,32 +950,37 @@ module DatadogAPIClient::V2
794
950
 
795
951
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
796
952
  if @api_client.config.debugging
797
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_awscur_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
953
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_awscur_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
798
954
  end
799
955
  return data, status_code, headers
800
956
  end
801
957
 
802
- # List Cloud Cost Management Azure configs.
958
+ # Get cost Azure UC config.
803
959
  #
804
- # @see #list_cost_azure_uc_configs_with_http_info
805
- def list_cost_azure_uc_configs(opts = {})
806
- data, _status_code, _headers = list_cost_azure_uc_configs_with_http_info(opts)
960
+ # @see #get_cost_azure_uc_config_with_http_info
961
+ def get_cost_azure_uc_config(cloud_account_id, opts = {})
962
+ data, _status_code, _headers = get_cost_azure_uc_config_with_http_info(cloud_account_id, opts)
807
963
  data
808
964
  end
809
965
 
810
- # List Cloud Cost Management Azure configs.
966
+ # Get cost Azure UC config.
811
967
  #
812
- # List the Azure configs.
968
+ # Get a specific Azure config.
813
969
  #
970
+ # @param cloud_account_id [Integer] The unique identifier of the cloud account
814
971
  # @param opts [Hash] the optional parameters
815
- # @return [Array<(AzureUCConfigsResponse, Integer, Hash)>] AzureUCConfigsResponse data, response status code and response headers
816
- def list_cost_azure_uc_configs_with_http_info(opts = {})
972
+ # @return [Array<(UCConfigPair, Integer, Hash)>] UCConfigPair data, response status code and response headers
973
+ def get_cost_azure_uc_config_with_http_info(cloud_account_id, opts = {})
817
974
 
818
975
  if @api_client.config.debugging
819
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_azure_uc_configs ...'
976
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_azure_uc_config ...'
977
+ end
978
+ # verify the required parameter 'cloud_account_id' is set
979
+ if @api_client.config.client_side_validation && cloud_account_id.nil?
980
+ fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_azure_uc_config"
820
981
  end
821
982
  # resource path
822
- local_var_path = '/api/v2/cost/azure_uc_config'
983
+ local_var_path = '/api/v2/cost/azure_uc_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
823
984
 
824
985
  # query parameters
825
986
  query_params = opts[:query_params] || {}
@@ -836,13 +997,13 @@ module DatadogAPIClient::V2
836
997
  post_body = opts[:debug_body]
837
998
 
838
999
  # return_type
839
- return_type = opts[:debug_return_type] || 'AzureUCConfigsResponse'
1000
+ return_type = opts[:debug_return_type] || 'UCConfigPair'
840
1001
 
841
1002
  # auth_names
842
1003
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
843
1004
 
844
1005
  new_options = opts.merge(
845
- :operation => :list_cost_azure_uc_configs,
1006
+ :operation => :get_cost_azure_uc_config,
846
1007
  :header_params => header_params,
847
1008
  :query_params => query_params,
848
1009
  :form_params => form_params,
@@ -854,32 +1015,731 @@ module DatadogAPIClient::V2
854
1015
 
855
1016
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
856
1017
  if @api_client.config.debugging
857
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_azure_uc_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1018
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_azure_uc_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
1019
  end
859
1020
  return data, status_code, headers
860
1021
  end
861
1022
 
862
- # List Cloud Cost Management GCP Usage Cost configs.
1023
+ # Get Google Cloud Usage Cost config.
863
1024
  #
864
- # @see #list_cost_gcp_usage_cost_configs_with_http_info
865
- def list_cost_gcp_usage_cost_configs(opts = {})
866
- data, _status_code, _headers = list_cost_gcp_usage_cost_configs_with_http_info(opts)
1025
+ # @see #get_cost_gcp_usage_cost_config_with_http_info
1026
+ def get_cost_gcp_usage_cost_config(cloud_account_id, opts = {})
1027
+ data, _status_code, _headers = get_cost_gcp_usage_cost_config_with_http_info(cloud_account_id, opts)
867
1028
  data
868
1029
  end
869
1030
 
870
- # List Cloud Cost Management GCP Usage Cost configs.
1031
+ # Get Google Cloud Usage Cost config.
871
1032
  #
872
- # List the GCP Usage Cost configs.
1033
+ # Get a specific Google Cloud Usage Cost config.
873
1034
  #
1035
+ # @param cloud_account_id [Integer] The unique identifier of the cloud account
874
1036
  # @param opts [Hash] the optional parameters
875
- # @return [Array<(GCPUsageCostConfigsResponse, Integer, Hash)>] GCPUsageCostConfigsResponse data, response status code and response headers
1037
+ # @return [Array<(GcpUcConfigResponse, Integer, Hash)>] GcpUcConfigResponse data, response status code and response headers
1038
+ def get_cost_gcp_usage_cost_config_with_http_info(cloud_account_id, opts = {})
1039
+
1040
+ if @api_client.config.debugging
1041
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_gcp_usage_cost_config ...'
1042
+ end
1043
+ # verify the required parameter 'cloud_account_id' is set
1044
+ if @api_client.config.client_side_validation && cloud_account_id.nil?
1045
+ fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_gcp_usage_cost_config"
1046
+ end
1047
+ # resource path
1048
+ local_var_path = '/api/v2/cost/gcp_uc_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
1049
+
1050
+ # query parameters
1051
+ query_params = opts[:query_params] || {}
1052
+
1053
+ # header parameters
1054
+ header_params = opts[:header_params] || {}
1055
+ # HTTP header 'Accept' (if needed)
1056
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1057
+
1058
+ # form parameters
1059
+ form_params = opts[:form_params] || {}
1060
+
1061
+ # http body (model)
1062
+ post_body = opts[:debug_body]
1063
+
1064
+ # return_type
1065
+ return_type = opts[:debug_return_type] || 'GcpUcConfigResponse'
1066
+
1067
+ # auth_names
1068
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1069
+
1070
+ new_options = opts.merge(
1071
+ :operation => :get_cost_gcp_usage_cost_config,
1072
+ :header_params => header_params,
1073
+ :query_params => query_params,
1074
+ :form_params => form_params,
1075
+ :body => post_body,
1076
+ :auth_names => auth_names,
1077
+ :return_type => return_type,
1078
+ :api_version => "V2"
1079
+ )
1080
+
1081
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1082
+ if @api_client.config.debugging
1083
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_gcp_usage_cost_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1084
+ end
1085
+ return data, status_code, headers
1086
+ end
1087
+
1088
+ # Get custom allocation rule.
1089
+ #
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)
1093
+ data
1094
+ end
1095
+
1096
+ # Get custom allocation rule.
1097
+ #
1098
+ # Get a specific custom allocation rule - Retrieve a specific custom allocation rule by its ID
1099
+ #
1100
+ # @param rule_id [Integer] The unique identifier of the custom allocation rule
1101
+ # @param opts [Hash] the optional parameters
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 = {})
1104
+
1105
+ if @api_client.config.debugging
1106
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_allocation_rule ...'
1107
+ end
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"
1111
+ end
1112
+ # resource path
1113
+ local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
1114
+
1115
+ # query parameters
1116
+ query_params = opts[:query_params] || {}
1117
+
1118
+ # header parameters
1119
+ header_params = opts[:header_params] || {}
1120
+ # HTTP header 'Accept' (if needed)
1121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1122
+
1123
+ # form parameters
1124
+ form_params = opts[:form_params] || {}
1125
+
1126
+ # http body (model)
1127
+ post_body = opts[:debug_body]
1128
+
1129
+ # return_type
1130
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
1131
+
1132
+ # auth_names
1133
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1134
+
1135
+ new_options = opts.merge(
1136
+ :operation => :get_custom_allocation_rule,
1137
+ :header_params => header_params,
1138
+ :query_params => query_params,
1139
+ :form_params => form_params,
1140
+ :body => post_body,
1141
+ :auth_names => auth_names,
1142
+ :return_type => return_type,
1143
+ :api_version => "V2"
1144
+ )
1145
+
1146
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1147
+ if @api_client.config.debugging
1148
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1149
+ end
1150
+ return data, status_code, headers
1151
+ end
1152
+
1153
+ # Get Custom Costs file.
1154
+ #
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)
1158
+ data
1159
+ end
1160
+
1161
+ # Get Custom Costs file.
1162
+ #
1163
+ # Fetch the specified Custom Costs file.
1164
+ #
1165
+ # @param file_id [String] File ID.
1166
+ # @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 = {})
1169
+
1170
+ if @api_client.config.debugging
1171
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
1172
+ 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"
1176
+ end
1177
+ # resource path
1178
+ local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
1179
+
1180
+ # query parameters
1181
+ query_params = opts[:query_params] || {}
1182
+
1183
+ # header parameters
1184
+ header_params = opts[:header_params] || {}
1185
+ # HTTP header 'Accept' (if needed)
1186
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1187
+
1188
+ # form parameters
1189
+ form_params = opts[:form_params] || {}
1190
+
1191
+ # http body (model)
1192
+ post_body = opts[:debug_body]
1193
+
1194
+ # return_type
1195
+ return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
1196
+
1197
+ # auth_names
1198
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1199
+
1200
+ new_options = opts.merge(
1201
+ :operation => :get_custom_costs_file,
1202
+ :header_params => header_params,
1203
+ :query_params => query_params,
1204
+ :form_params => form_params,
1205
+ :body => post_body,
1206
+ :auth_names => auth_names,
1207
+ :return_type => return_type,
1208
+ :api_version => "V2"
1209
+ )
1210
+
1211
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1212
+ 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}"
1214
+ end
1215
+ return data, status_code, headers
1216
+ end
1217
+
1218
+ # Get a tag pipeline ruleset.
1219
+ #
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)
1223
+ data
1224
+ end
1225
+
1226
+ # Get a tag pipeline ruleset.
1227
+ #
1228
+ # Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
1229
+ #
1230
+ # @param ruleset_id [String] The unique identifier of the ruleset
1231
+ # @param opts [Hash] the optional parameters
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 = {})
1234
+
1235
+ if @api_client.config.debugging
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"
1241
+ end
1242
+ # resource path
1243
+ local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
1244
+
1245
+ # query parameters
1246
+ query_params = opts[:query_params] || {}
1247
+
1248
+ # header parameters
1249
+ header_params = opts[:header_params] || {}
1250
+ # HTTP header 'Accept' (if needed)
1251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1252
+
1253
+ # form parameters
1254
+ form_params = opts[:form_params] || {}
1255
+
1256
+ # http body (model)
1257
+ post_body = opts[:debug_body]
1258
+
1259
+ # return_type
1260
+ return_type = opts[:debug_return_type] || 'RulesetResp'
1261
+
1262
+ # auth_names
1263
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1264
+
1265
+ new_options = opts.merge(
1266
+ :operation => :get_tag_pipelines_ruleset,
1267
+ :header_params => header_params,
1268
+ :query_params => query_params,
1269
+ :form_params => form_params,
1270
+ :body => post_body,
1271
+ :auth_names => auth_names,
1272
+ :return_type => return_type,
1273
+ :api_version => "V2"
1274
+ )
1275
+
1276
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1277
+ if @api_client.config.debugging
1278
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#get_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1279
+ end
1280
+ return data, status_code, headers
1281
+ end
1282
+
1283
+ # List budgets.
1284
+ #
1285
+ # @see #list_budgets_with_http_info
1286
+ def list_budgets(opts = {})
1287
+ data, _status_code, _headers = list_budgets_with_http_info(opts)
1288
+ data
1289
+ end
1290
+
1291
+ # List budgets.
1292
+ #
1293
+ # List budgets.
1294
+ #
1295
+ # @param opts [Hash] the optional parameters
1296
+ # @return [Array<(BudgetArray, Integer, Hash)>] BudgetArray data, response status code and response headers
1297
+ def list_budgets_with_http_info(opts = {})
1298
+
1299
+ if @api_client.config.debugging
1300
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_budgets ...'
1301
+ end
1302
+ # resource path
1303
+ local_var_path = '/api/v2/cost/budgets'
1304
+
1305
+ # query parameters
1306
+ query_params = opts[:query_params] || {}
1307
+
1308
+ # header parameters
1309
+ header_params = opts[:header_params] || {}
1310
+ # HTTP header 'Accept' (if needed)
1311
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1312
+
1313
+ # form parameters
1314
+ form_params = opts[:form_params] || {}
1315
+
1316
+ # http body (model)
1317
+ post_body = opts[:debug_body]
1318
+
1319
+ # return_type
1320
+ return_type = opts[:debug_return_type] || 'BudgetArray'
1321
+
1322
+ # auth_names
1323
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1324
+
1325
+ new_options = opts.merge(
1326
+ :operation => :list_budgets,
1327
+ :header_params => header_params,
1328
+ :query_params => query_params,
1329
+ :form_params => form_params,
1330
+ :body => post_body,
1331
+ :auth_names => auth_names,
1332
+ :return_type => return_type,
1333
+ :api_version => "V2"
1334
+ )
1335
+
1336
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_budgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
+ end
1340
+ return data, status_code, headers
1341
+ end
1342
+
1343
+ # List Cloud Cost Management AWS CUR configs.
1344
+ #
1345
+ # @see #list_cost_awscur_configs_with_http_info
1346
+ def list_cost_awscur_configs(opts = {})
1347
+ data, _status_code, _headers = list_cost_awscur_configs_with_http_info(opts)
1348
+ data
1349
+ end
1350
+
1351
+ # List Cloud Cost Management AWS CUR configs.
1352
+ #
1353
+ # List the AWS CUR configs.
1354
+ #
1355
+ # @param opts [Hash] the optional parameters
1356
+ # @return [Array<(AwsCURConfigsResponse, Integer, Hash)>] AwsCURConfigsResponse data, response status code and response headers
1357
+ def list_cost_awscur_configs_with_http_info(opts = {})
1358
+
1359
+ if @api_client.config.debugging
1360
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_awscur_configs ...'
1361
+ end
1362
+ # resource path
1363
+ local_var_path = '/api/v2/cost/aws_cur_config'
1364
+
1365
+ # query parameters
1366
+ query_params = opts[:query_params] || {}
1367
+
1368
+ # header parameters
1369
+ header_params = opts[:header_params] || {}
1370
+ # HTTP header 'Accept' (if needed)
1371
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1372
+
1373
+ # form parameters
1374
+ form_params = opts[:form_params] || {}
1375
+
1376
+ # http body (model)
1377
+ post_body = opts[:debug_body]
1378
+
1379
+ # return_type
1380
+ return_type = opts[:debug_return_type] || 'AwsCURConfigsResponse'
1381
+
1382
+ # auth_names
1383
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1384
+
1385
+ new_options = opts.merge(
1386
+ :operation => :list_cost_awscur_configs,
1387
+ :header_params => header_params,
1388
+ :query_params => query_params,
1389
+ :form_params => form_params,
1390
+ :body => post_body,
1391
+ :auth_names => auth_names,
1392
+ :return_type => return_type,
1393
+ :api_version => "V2"
1394
+ )
1395
+
1396
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1397
+ if @api_client.config.debugging
1398
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_awscur_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1399
+ end
1400
+ return data, status_code, headers
1401
+ end
1402
+
1403
+ # List Cloud Cost Management Azure configs.
1404
+ #
1405
+ # @see #list_cost_azure_uc_configs_with_http_info
1406
+ def list_cost_azure_uc_configs(opts = {})
1407
+ data, _status_code, _headers = list_cost_azure_uc_configs_with_http_info(opts)
1408
+ data
1409
+ end
1410
+
1411
+ # List Cloud Cost Management Azure configs.
1412
+ #
1413
+ # List the Azure configs.
1414
+ #
1415
+ # @param opts [Hash] the optional parameters
1416
+ # @return [Array<(AzureUCConfigsResponse, Integer, Hash)>] AzureUCConfigsResponse data, response status code and response headers
1417
+ def list_cost_azure_uc_configs_with_http_info(opts = {})
1418
+
1419
+ if @api_client.config.debugging
1420
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_azure_uc_configs ...'
1421
+ end
1422
+ # resource path
1423
+ local_var_path = '/api/v2/cost/azure_uc_config'
1424
+
1425
+ # query parameters
1426
+ query_params = opts[:query_params] || {}
1427
+
1428
+ # header parameters
1429
+ header_params = opts[:header_params] || {}
1430
+ # HTTP header 'Accept' (if needed)
1431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1432
+
1433
+ # form parameters
1434
+ form_params = opts[:form_params] || {}
1435
+
1436
+ # http body (model)
1437
+ post_body = opts[:debug_body]
1438
+
1439
+ # return_type
1440
+ return_type = opts[:debug_return_type] || 'AzureUCConfigsResponse'
1441
+
1442
+ # auth_names
1443
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1444
+
1445
+ new_options = opts.merge(
1446
+ :operation => :list_cost_azure_uc_configs,
1447
+ :header_params => header_params,
1448
+ :query_params => query_params,
1449
+ :form_params => form_params,
1450
+ :body => post_body,
1451
+ :auth_names => auth_names,
1452
+ :return_type => return_type,
1453
+ :api_version => "V2"
1454
+ )
1455
+
1456
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1457
+ if @api_client.config.debugging
1458
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_azure_uc_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1459
+ end
1460
+ return data, status_code, headers
1461
+ end
1462
+
1463
+ # List Google Cloud Usage Cost configs.
1464
+ #
1465
+ # @see #list_cost_gcp_usage_cost_configs_with_http_info
1466
+ def list_cost_gcp_usage_cost_configs(opts = {})
1467
+ data, _status_code, _headers = list_cost_gcp_usage_cost_configs_with_http_info(opts)
1468
+ data
1469
+ end
1470
+
1471
+ # List Google Cloud Usage Cost configs.
1472
+ #
1473
+ # List the Google Cloud Usage Cost configs.
1474
+ #
1475
+ # @param opts [Hash] the optional parameters
1476
+ # @return [Array<(GCPUsageCostConfigsResponse, Integer, Hash)>] GCPUsageCostConfigsResponse data, response status code and response headers
876
1477
  def list_cost_gcp_usage_cost_configs_with_http_info(opts = {})
877
1478
 
878
1479
  if @api_client.config.debugging
879
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_gcp_usage_cost_configs ...'
1480
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_gcp_usage_cost_configs ...'
1481
+ end
1482
+ # resource path
1483
+ local_var_path = '/api/v2/cost/gcp_uc_config'
1484
+
1485
+ # query parameters
1486
+ query_params = opts[:query_params] || {}
1487
+
1488
+ # header parameters
1489
+ header_params = opts[:header_params] || {}
1490
+ # HTTP header 'Accept' (if needed)
1491
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1492
+
1493
+ # form parameters
1494
+ form_params = opts[:form_params] || {}
1495
+
1496
+ # http body (model)
1497
+ post_body = opts[:debug_body]
1498
+
1499
+ # return_type
1500
+ return_type = opts[:debug_return_type] || 'GCPUsageCostConfigsResponse'
1501
+
1502
+ # auth_names
1503
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1504
+
1505
+ new_options = opts.merge(
1506
+ :operation => :list_cost_gcp_usage_cost_configs,
1507
+ :header_params => header_params,
1508
+ :query_params => query_params,
1509
+ :form_params => form_params,
1510
+ :body => post_body,
1511
+ :auth_names => auth_names,
1512
+ :return_type => return_type,
1513
+ :api_version => "V2"
1514
+ )
1515
+
1516
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1517
+ if @api_client.config.debugging
1518
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_gcp_usage_cost_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1519
+ end
1520
+ return data, status_code, headers
1521
+ end
1522
+
1523
+ # List custom allocation rules.
1524
+ #
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)
1528
+ data
1529
+ end
1530
+
1531
+ # List custom allocation rules.
1532
+ #
1533
+ # List all custom allocation rules - Retrieve a list of all custom allocation rules for the organization
1534
+ #
1535
+ # @param opts [Hash] the optional parameters
1536
+ # @return [Array<(ArbitraryRuleResponseArray, Integer, Hash)>] ArbitraryRuleResponseArray data, response status code and response headers
1537
+ def list_custom_allocation_rules_with_http_info(opts = {})
1538
+
1539
+ if @api_client.config.debugging
1540
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_allocation_rules ...'
1541
+ end
1542
+ # resource path
1543
+ local_var_path = '/api/v2/cost/arbitrary_rule'
1544
+
1545
+ # query parameters
1546
+ query_params = opts[:query_params] || {}
1547
+
1548
+ # header parameters
1549
+ header_params = opts[:header_params] || {}
1550
+ # HTTP header 'Accept' (if needed)
1551
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1552
+
1553
+ # form parameters
1554
+ form_params = opts[:form_params] || {}
1555
+
1556
+ # http body (model)
1557
+ post_body = opts[:debug_body]
1558
+
1559
+ # return_type
1560
+ return_type = opts[:debug_return_type] || 'ArbitraryRuleResponseArray'
1561
+
1562
+ # auth_names
1563
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1564
+
1565
+ new_options = opts.merge(
1566
+ :operation => :list_custom_allocation_rules,
1567
+ :header_params => header_params,
1568
+ :query_params => query_params,
1569
+ :form_params => form_params,
1570
+ :body => post_body,
1571
+ :auth_names => auth_names,
1572
+ :return_type => return_type,
1573
+ :api_version => "V2"
1574
+ )
1575
+
1576
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1577
+ if @api_client.config.debugging
1578
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_allocation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1579
+ end
1580
+ return data, status_code, headers
1581
+ end
1582
+
1583
+ # List Custom Costs files.
1584
+ #
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)
1588
+ data
1589
+ end
1590
+
1591
+ # List Custom Costs files.
1592
+ #
1593
+ # List the Custom Costs files.
1594
+ #
1595
+ # @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 = {})
1602
+
1603
+ if @api_client.config.debugging
1604
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
1605
+ end
1606
+ # resource path
1607
+ local_var_path = '/api/v2/cost/custom_costs'
1608
+
1609
+ # query parameters
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?
1615
+
1616
+ # header parameters
1617
+ header_params = opts[:header_params] || {}
1618
+ # HTTP header 'Accept' (if needed)
1619
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1620
+
1621
+ # form parameters
1622
+ form_params = opts[:form_params] || {}
1623
+
1624
+ # http body (model)
1625
+ post_body = opts[:debug_body]
1626
+
1627
+ # return_type
1628
+ return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
1629
+
1630
+ # auth_names
1631
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1632
+
1633
+ new_options = opts.merge(
1634
+ :operation => :list_custom_costs_files,
1635
+ :header_params => header_params,
1636
+ :query_params => query_params,
1637
+ :form_params => form_params,
1638
+ :body => post_body,
1639
+ :auth_names => auth_names,
1640
+ :return_type => return_type,
1641
+ :api_version => "V2"
1642
+ )
1643
+
1644
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1645
+ 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}"
1647
+ end
1648
+ return data, status_code, headers
1649
+ end
1650
+
1651
+ # List tag pipeline rulesets.
1652
+ #
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
1657
+ end
1658
+
1659
+ # List tag pipeline rulesets.
1660
+ #
1661
+ # List all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
1662
+ #
1663
+ # @param opts [Hash] the optional parameters
1664
+ # @return [Array<(RulesetRespArray, Integer, Hash)>] RulesetRespArray data, response status code and response headers
1665
+ def list_tag_pipelines_rulesets_with_http_info(opts = {})
1666
+
1667
+ if @api_client.config.debugging
1668
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_tag_pipelines_rulesets ...'
1669
+ end
1670
+ # resource path
1671
+ local_var_path = '/api/v2/tags/enrichment'
1672
+
1673
+ # query parameters
1674
+ query_params = opts[:query_params] || {}
1675
+
1676
+ # header parameters
1677
+ header_params = opts[:header_params] || {}
1678
+ # HTTP header 'Accept' (if needed)
1679
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1680
+
1681
+ # form parameters
1682
+ form_params = opts[:form_params] || {}
1683
+
1684
+ # http body (model)
1685
+ post_body = opts[:debug_body]
1686
+
1687
+ # return_type
1688
+ return_type = opts[:debug_return_type] || 'RulesetRespArray'
1689
+
1690
+ # auth_names
1691
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1692
+
1693
+ new_options = opts.merge(
1694
+ :operation => :list_tag_pipelines_rulesets,
1695
+ :header_params => header_params,
1696
+ :query_params => query_params,
1697
+ :form_params => form_params,
1698
+ :body => post_body,
1699
+ :auth_names => auth_names,
1700
+ :return_type => return_type,
1701
+ :api_version => "V2"
1702
+ )
1703
+
1704
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1705
+ if @api_client.config.debugging
1706
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_tag_pipelines_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1707
+ end
1708
+ return data, status_code, headers
1709
+ end
1710
+
1711
+ # Reorder custom allocation rules.
1712
+ #
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)
1716
+ nil
1717
+ end
1718
+
1719
+ # Reorder custom allocation rules.
1720
+ #
1721
+ # Reorder custom allocation rules - Change the execution order of custom allocation rules.
1722
+ #
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]
1730
+ # @param opts [Hash] the optional parameters
1731
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1732
+ def reorder_custom_allocation_rules_with_http_info(body, opts = {})
1733
+
1734
+ if @api_client.config.debugging
1735
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_custom_allocation_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_custom_allocation_rules"
880
1740
  end
881
1741
  # resource path
882
- local_var_path = '/api/v2/cost/gcp_uc_config'
1742
+ local_var_path = '/api/v2/cost/arbitrary_rule/reorder'
883
1743
 
884
1744
  # query parameters
885
1745
  query_params = opts[:query_params] || {}
@@ -887,22 +1747,24 @@ module DatadogAPIClient::V2
887
1747
  # header parameters
888
1748
  header_params = opts[:header_params] || {}
889
1749
  # HTTP header 'Accept' (if needed)
890
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
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'])
891
1753
 
892
1754
  # form parameters
893
1755
  form_params = opts[:form_params] || {}
894
1756
 
895
1757
  # http body (model)
896
- post_body = opts[:debug_body]
1758
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
897
1759
 
898
1760
  # return_type
899
- return_type = opts[:debug_return_type] || 'GCPUsageCostConfigsResponse'
1761
+ return_type = opts[:debug_return_type]
900
1762
 
901
1763
  # auth_names
902
1764
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
903
1765
 
904
1766
  new_options = opts.merge(
905
- :operation => :list_cost_gcp_usage_cost_configs,
1767
+ :operation => :reorder_custom_allocation_rules,
906
1768
  :header_params => header_params,
907
1769
  :query_params => query_params,
908
1770
  :form_params => form_params,
@@ -912,65 +1774,64 @@ module DatadogAPIClient::V2
912
1774
  :api_version => "V2"
913
1775
  )
914
1776
 
915
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1777
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
916
1778
  if @api_client.config.debugging
917
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_gcp_usage_cost_configs\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}"
918
1780
  end
919
1781
  return data, status_code, headers
920
1782
  end
921
1783
 
922
- # List Custom Costs files.
1784
+ # Reorder tag pipeline rulesets.
923
1785
  #
924
- # @see #list_custom_costs_files_with_http_info
925
- def list_custom_costs_files(opts = {})
926
- data, _status_code, _headers = list_custom_costs_files_with_http_info(opts)
927
- 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
928
1790
  end
929
1791
 
930
- # List Custom Costs files.
1792
+ # Reorder tag pipeline rulesets.
931
1793
  #
932
- # List the Custom Costs files.
1794
+ # Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
933
1795
  #
1796
+ # @param body [ReorderRulesetResourceArray]
934
1797
  # @param opts [Hash] the optional parameters
935
- # @option opts [Integer] :page_number Page number for pagination
936
- # @option opts [Integer] :page_size Page size for pagination
937
- # @option opts [String] :filter_status Filter by file status
938
- # @option opts [String] :sort Sort key with optional descending prefix
939
- # @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
940
- def list_custom_costs_files_with_http_info(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 = {})
941
1800
 
942
1801
  if @api_client.config.debugging
943
- @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
1802
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_tag_pipelines_rulesets ...'
1803
+ end
1804
+ # verify the required parameter 'body' is set
1805
+ if @api_client.config.client_side_validation && body.nil?
1806
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_tag_pipelines_rulesets"
944
1807
  end
945
1808
  # resource path
946
- local_var_path = '/api/v2/cost/custom_costs'
1809
+ local_var_path = '/api/v2/tags/enrichment/reorder'
947
1810
 
948
1811
  # query parameters
949
1812
  query_params = opts[:query_params] || {}
950
- query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
951
- query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
952
- query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
953
- query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
954
1813
 
955
1814
  # header parameters
956
1815
  header_params = opts[:header_params] || {}
957
1816
  # HTTP header 'Accept' (if needed)
958
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1817
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1818
+ # HTTP header 'Content-Type'
1819
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
959
1820
 
960
1821
  # form parameters
961
1822
  form_params = opts[:form_params] || {}
962
1823
 
963
1824
  # http body (model)
964
- post_body = opts[:debug_body]
1825
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
965
1826
 
966
1827
  # return_type
967
- return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
1828
+ return_type = opts[:debug_return_type]
968
1829
 
969
1830
  # auth_names
970
1831
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
971
1832
 
972
1833
  new_options = opts.merge(
973
- :operation => :list_custom_costs_files,
1834
+ :operation => :reorder_tag_pipelines_rulesets,
974
1835
  :header_params => header_params,
975
1836
  :query_params => query_params,
976
1837
  :form_params => form_params,
@@ -980,9 +1841,9 @@ module DatadogAPIClient::V2
980
1841
  :api_version => "V2"
981
1842
  )
982
1843
 
983
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1844
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
984
1845
  if @api_client.config.debugging
985
- @api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_costs_files\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}"
986
1847
  end
987
1848
  return data, status_code, headers
988
1849
  end
@@ -1131,7 +1992,7 @@ module DatadogAPIClient::V2
1131
1992
  return data, status_code, headers
1132
1993
  end
1133
1994
 
1134
- # Update Cloud Cost Management GCP Usage Cost config.
1995
+ # Update Google Cloud Usage Cost config.
1135
1996
  #
1136
1997
  # @see #update_cost_gcp_usage_cost_config_with_http_info
1137
1998
  def update_cost_gcp_usage_cost_config(cloud_account_id, body, opts = {})
@@ -1139,9 +2000,9 @@ module DatadogAPIClient::V2
1139
2000
  data
1140
2001
  end
1141
2002
 
1142
- # Update Cloud Cost Management GCP Usage Cost config.
2003
+ # Update Google Cloud Usage Cost config.
1143
2004
  #
1144
- # Update the status of an GCP Usage Cost config (active/archived).
2005
+ # Update the status of an Google Cloud Usage Cost config (active/archived).
1145
2006
  #
1146
2007
  # @param cloud_account_id [Integer] Cloud Account id.
1147
2008
  # @param body [GCPUsageCostConfigPatchRequest]
@@ -1203,6 +2064,163 @@ module DatadogAPIClient::V2
1203
2064
  return data, status_code, headers
1204
2065
  end
1205
2066
 
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
+ #
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
+ data
2158
+ end
2159
+
2160
+ # Update tag pipeline ruleset.
2161
+ #
2162
+ # Update a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration
2163
+ #
2164
+ # @param ruleset_id [String] The unique identifier of the ruleset
2165
+ # @param body [UpdateRulesetRequest]
2166
+ # @param opts [Hash] the optional parameters
2167
+ # @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
2168
+ def update_tag_pipelines_ruleset_with_http_info(ruleset_id, body, opts = {})
2169
+
2170
+ if @api_client.config.debugging
2171
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_tag_pipelines_ruleset ...'
2172
+ end
2173
+ # verify the required parameter 'ruleset_id' is set
2174
+ if @api_client.config.client_side_validation && ruleset_id.nil?
2175
+ fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
2176
+ end
2177
+ # verify the required parameter 'body' is set
2178
+ if @api_client.config.client_side_validation && body.nil?
2179
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
2180
+ end
2181
+ # resource path
2182
+ local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
2183
+
2184
+ # query parameters
2185
+ query_params = opts[:query_params] || {}
2186
+
2187
+ # header parameters
2188
+ header_params = opts[:header_params] || {}
2189
+ # HTTP header 'Accept' (if needed)
2190
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2191
+ # HTTP header 'Content-Type'
2192
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2193
+
2194
+ # form parameters
2195
+ form_params = opts[:form_params] || {}
2196
+
2197
+ # http body (model)
2198
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2199
+
2200
+ # return_type
2201
+ return_type = opts[:debug_return_type] || 'RulesetResp'
2202
+
2203
+ # auth_names
2204
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
2205
+
2206
+ new_options = opts.merge(
2207
+ :operation => :update_tag_pipelines_ruleset,
2208
+ :header_params => header_params,
2209
+ :query_params => query_params,
2210
+ :form_params => form_params,
2211
+ :body => post_body,
2212
+ :auth_names => auth_names,
2213
+ :return_type => return_type,
2214
+ :api_version => "V2"
2215
+ )
2216
+
2217
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
2218
+ if @api_client.config.debugging
2219
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#update_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2220
+ end
2221
+ return data, status_code, headers
2222
+ end
2223
+
1206
2224
  # Upload Custom Costs file.
1207
2225
  #
1208
2226
  # @see #upload_custom_costs_file_with_http_info
@@ -1336,5 +2354,72 @@ module DatadogAPIClient::V2
1336
2354
  end
1337
2355
  return data, status_code, headers
1338
2356
  end
2357
+
2358
+ # Validate query.
2359
+ #
2360
+ # @see #validate_query_with_http_info
2361
+ def validate_query(body, opts = {})
2362
+ data, _status_code, _headers = validate_query_with_http_info(body, opts)
2363
+ data
2364
+ end
2365
+
2366
+ # Validate query.
2367
+ #
2368
+ # Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query
2369
+ #
2370
+ # @param body [RulesValidateQueryRequest]
2371
+ # @param opts [Hash] the optional parameters
2372
+ # @return [Array<(RulesValidateQueryResponse, Integer, Hash)>] RulesValidateQueryResponse data, response status code and response headers
2373
+ def validate_query_with_http_info(body, opts = {})
2374
+
2375
+ if @api_client.config.debugging
2376
+ @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.validate_query ...'
2377
+ end
2378
+ # verify the required parameter 'body' is set
2379
+ if @api_client.config.client_side_validation && body.nil?
2380
+ fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.validate_query"
2381
+ end
2382
+ # resource path
2383
+ local_var_path = '/api/v2/tags/enrichment/validate-query'
2384
+
2385
+ # query parameters
2386
+ query_params = opts[:query_params] || {}
2387
+
2388
+ # header parameters
2389
+ header_params = opts[:header_params] || {}
2390
+ # HTTP header 'Accept' (if needed)
2391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2392
+ # HTTP header 'Content-Type'
2393
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2394
+
2395
+ # form parameters
2396
+ form_params = opts[:form_params] || {}
2397
+
2398
+ # http body (model)
2399
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2400
+
2401
+ # return_type
2402
+ return_type = opts[:debug_return_type] || 'RulesValidateQueryResponse'
2403
+
2404
+ # auth_names
2405
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
2406
+
2407
+ new_options = opts.merge(
2408
+ :operation => :validate_query,
2409
+ :header_params => header_params,
2410
+ :query_params => query_params,
2411
+ :form_params => form_params,
2412
+ :body => post_body,
2413
+ :auth_names => auth_names,
2414
+ :return_type => return_type,
2415
+ :api_version => "V2"
2416
+ )
2417
+
2418
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
2419
+ if @api_client.config.debugging
2420
+ @api_client.config.logger.debug "API called: CloudCostManagementAPI#validate_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2421
+ end
2422
+ return data, status_code, headers
2423
+ end
1339
2424
  end
1340
2425
  end