datadog_api_client 2.43.0 → 2.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +263 -29
  3. data/.generator/schemas/v2/openapi.yaml +5051 -432
  4. data/.generator/src/generator/formatter.py +15 -1
  5. data/.generator/src/generator/templates/api.j2 +2 -2
  6. data/.generator/src/generator/templates/model.j2 +1 -1
  7. data/.generator/src/generator/templates/model_generic.j2 +1 -1
  8. data/.generator/tests/test_formatter.rb +69 -0
  9. data/CHANGELOG.md +27 -0
  10. data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +2 -2
  11. data/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb +248 -0
  12. data/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb +248 -0
  13. data/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb +236 -0
  14. data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +2 -2
  15. data/examples/v1/notebooks/CreateNotebook.rb +1 -1
  16. data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
  17. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -0
  18. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  19. data/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb +19 -0
  20. data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
  21. data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +1 -1
  22. data/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +16 -0
  23. data/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +16 -0
  24. data/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +1 -1
  25. data/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb +5 -0
  26. data/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb +5 -0
  27. data/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +1 -1
  28. data/examples/v2/agentless-scanning/GetAzureScanOptions.rb +5 -0
  29. data/examples/v2/agentless-scanning/GetGcpScanOptions.rb +5 -0
  30. data/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +1 -1
  31. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
  32. data/examples/v2/agentless-scanning/ListAzureScanOptions.rb +5 -0
  33. data/examples/v2/agentless-scanning/ListGcpScanOptions.rb +5 -0
  34. data/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +1 -1
  35. data/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb +12 -0
  36. data/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +15 -0
  37. data/examples/v2/case-management/CommentCase.rb +17 -0
  38. data/examples/v2/case-management/CreateCase.rb +1 -1
  39. data/examples/v2/case-management/DeleteCaseComment.rb +11 -0
  40. data/examples/v2/case-management/DeleteCaseCustomAttribute.rb +11 -0
  41. data/examples/v2/case-management/UpdateCaseCustomAttribute.rb +25 -0
  42. data/examples/v2/case-management/UpdateCaseDescription.rb +17 -0
  43. data/examples/v2/case-management/UpdateCaseTitle.rb +17 -0
  44. data/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb +20 -0
  45. data/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb +11 -0
  46. data/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb +8 -0
  47. data/examples/v2/case-management-attribute/GetAllCustomAttributes.rb +5 -0
  48. data/examples/v2/case-management-type/CreateCaseType.rb +16 -0
  49. data/examples/v2/case-management-type/DeleteCaseType.rb +5 -0
  50. data/examples/v2/case-management-type/DeleteCaseType_2790986149.rb +8 -0
  51. data/examples/v2/case-management-type/GetAllCaseTypes.rb +5 -0
  52. data/examples/v2/cloud-cost-management/{UpdateArbitraryCostRule.rb → CreateCustomAllocationRule.rb} +2 -4
  53. data/examples/v2/cloud-cost-management/{CreateRuleset.rb → CreateTagPipelinesRuleset.rb} +2 -2
  54. data/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb +5 -0
  55. data/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb +5 -0
  56. data/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb +5 -0
  57. data/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +5 -0
  58. data/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb +5 -0
  59. data/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb +5 -0
  60. data/examples/v2/cloud-cost-management/{ReorderArbitraryCostRules.rb → ReorderCustomAllocationRules.rb} +2 -2
  61. data/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +22 -0
  62. data/examples/v2/cloud-cost-management/{CreateArbitraryCostRule.rb → UpdateCustomAllocationRule.rb} +2 -2
  63. data/examples/v2/cloud-cost-management/{UpdateRuleset.rb → UpdateTagPipelinesRuleset.rb} +4 -3
  64. data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +1 -1
  65. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +1 -0
  66. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +1 -0
  67. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +33 -0
  68. data/examples/v2/dora-metrics/CreateDORADeployment.rb +1 -1
  69. data/examples/v2/dora-metrics/CreateDORAFailure.rb +1 -1
  70. data/examples/v2/dora-metrics/CreateDORAIncident.rb +1 -1
  71. data/examples/v2/dora-metrics/{CreateDORAIncident_1768887482.rb → CreateDORAIncident_1101664022.rb} +1 -1
  72. data/examples/v2/error-tracking/DeleteIssueAssignee.rb +8 -0
  73. data/examples/v2/fleet-automation/CancelFleetDeployment.rb +8 -0
  74. data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +26 -0
  75. data/examples/v2/fleet-automation/GetFleetDeployment.rb +11 -0
  76. data/examples/v2/fleet-automation/ListFleetDeployments.rb +8 -0
  77. data/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb +30 -0
  78. data/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb +35 -0
  79. data/examples/v2/reference-tables/CreateReferenceTable.rb +44 -0
  80. data/examples/v2/reference-tables/CreateReferenceTableUpload.rb +21 -0
  81. data/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb +41 -0
  82. data/examples/v2/reference-tables/DeleteTable.rb +5 -0
  83. data/examples/v2/reference-tables/GetRowsByID.rb +5 -0
  84. data/examples/v2/reference-tables/GetTable.rb +5 -0
  85. data/examples/v2/reference-tables/ListTables.rb +5 -0
  86. data/examples/v2/reference-tables/UpdateReferenceTable.rb +44 -0
  87. data/examples/v2/roles/ListRoleTemplates.rb +8 -0
  88. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +3 -1
  89. data/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +8 -0
  90. data/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb +17 -0
  91. data/examples/v2/static-analysis/CreateSCAResult.rb +61 -0
  92. data/examples/v2/test-optimization/SearchFlakyTests.rb +27 -0
  93. data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +27 -0
  94. data/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb +26 -0
  95. data/lib/datadog_api_client/configuration.rb +9 -0
  96. data/lib/datadog_api_client/inflector.rb +208 -0
  97. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
  98. data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
  99. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper.rb +211 -0
  100. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_category.rb +165 -0
  101. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_fallback.rb +115 -0
  102. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_targets.rb +115 -0
  103. data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_type.rb +26 -0
  104. data/lib/datadog_api_client/v1/models/logs_schema_data.rb +198 -0
  105. data/lib/datadog_api_client/v1/models/logs_schema_mapper.rb +63 -0
  106. data/lib/datadog_api_client/v1/models/logs_schema_processor.rb +198 -0
  107. data/lib/datadog_api_client/v1/models/logs_schema_processor_type.rb +26 -0
  108. data/lib/datadog_api_client/v1/models/logs_schema_remapper.rb +220 -0
  109. data/lib/datadog_api_client/v1/models/logs_schema_remapper_type.rb +26 -0
  110. data/lib/datadog_api_client/v1/models/monitor.rb +0 -1
  111. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +0 -1
  112. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +13 -1
  113. data/lib/datadog_api_client/v1/models/widget_marker.rb +0 -1
  114. data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +72 -0
  115. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +680 -22
  116. data/lib/datadog_api_client/v2/api/api_management_api.rb +0 -2
  117. data/lib/datadog_api_client/v2/api/case_management_api.rb +433 -0
  118. data/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +293 -0
  119. data/lib/datadog_api_client/v2/api/case_management_type_api.rb +218 -0
  120. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -0
  121. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +336 -336
  122. data/lib/datadog_api_client/v2/api/container_images_api.rb +1 -0
  123. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +9 -9
  124. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +65 -0
  125. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +318 -0
  126. data/lib/datadog_api_client/v2/api/incidents_api.rb +8 -8
  127. data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +0 -1
  128. data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +0 -4
  129. data/lib/datadog_api_client/v2/api/reference_tables_api.rb +519 -0
  130. data/lib/datadog_api_client/v2/api/roles_api.rb +66 -0
  131. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +149 -10
  132. data/lib/datadog_api_client/v2/api/static_analysis_api.rb +166 -0
  133. data/lib/datadog_api_client/v2/api/test_optimization_api.rb +116 -0
  134. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +13 -3
  135. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array_meta.rb +105 -0
  136. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +11 -1
  137. data/lib/datadog_api_client/v2/models/azure_scan_options.rb +105 -0
  138. data/lib/datadog_api_client/v2/models/azure_scan_options_array.rb +125 -0
  139. data/lib/datadog_api_client/v2/models/azure_scan_options_data.rb +154 -0
  140. data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +115 -0
  141. data/lib/datadog_api_client/v2/models/azure_scan_options_data_type.rb +26 -0
  142. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update.rb +105 -0
  143. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data.rb +154 -0
  144. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +115 -0
  145. data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_type.rb +26 -0
  146. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request.rb +105 -0
  147. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data.rb +143 -0
  148. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_attributes.rb +125 -0
  149. data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_type.rb +26 -0
  150. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +0 -1
  151. data/lib/datadog_api_client/v2/models/case_attributes.rb +23 -3
  152. data/lib/datadog_api_client/v2/models/case_comment.rb +144 -0
  153. data/lib/datadog_api_client/v2/models/case_comment_attributes.rb +123 -0
  154. data/lib/datadog_api_client/v2/models/case_comment_request.rb +123 -0
  155. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +14 -14
  156. data/lib/datadog_api_client/v2/models/case_type.rb +2 -0
  157. data/lib/datadog_api_client/v2/models/case_type_create.rb +144 -0
  158. data/lib/datadog_api_client/v2/models/case_type_create_request.rb +123 -0
  159. data/lib/datadog_api_client/v2/models/case_type_resource.rb +125 -0
  160. data/lib/datadog_api_client/v2/models/case_type_resource_attributes.rb +161 -0
  161. data/lib/datadog_api_client/v2/models/case_type_resource_type.rb +26 -0
  162. data/lib/datadog_api_client/v2/models/case_type_response.rb +105 -0
  163. data/lib/datadog_api_client/v2/models/case_types_response.rb +107 -0
  164. data/lib/datadog_api_client/v2/models/case_update_custom_attribute.rb +144 -0
  165. data/lib/datadog_api_client/v2/models/case_update_custom_attribute_request.rb +123 -0
  166. data/lib/datadog_api_client/v2/models/case_update_description.rb +144 -0
  167. data/lib/datadog_api_client/v2/models/case_update_description_attributes.rb +123 -0
  168. data/lib/datadog_api_client/v2/models/case_update_description_request.rb +123 -0
  169. data/lib/datadog_api_client/v2/models/case_update_title.rb +144 -0
  170. data/lib/datadog_api_client/v2/models/case_update_title_attributes.rb +123 -0
  171. data/lib/datadog_api_client/v2/models/case_update_title_request.rb +123 -0
  172. data/lib/datadog_api_client/v2/models/cloud_asset_type.rb +28 -0
  173. data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +0 -2
  174. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +0 -1
  175. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +0 -1
  176. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +0 -1
  177. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +25 -3
  178. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +123 -0
  179. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +35 -5
  180. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +11 -1
  181. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +30 -10
  182. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +23 -3
  183. data/lib/datadog_api_client/v2/models/create_table_request.rb +105 -0
  184. data/lib/datadog_api_client/v2/models/create_table_request_data.rb +143 -0
  185. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +197 -0
  186. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +63 -0
  187. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +119 -0
  188. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  189. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  190. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +165 -0
  191. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +207 -0
  192. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +186 -0
  193. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +148 -0
  194. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +144 -0
  195. data/lib/datadog_api_client/v2/models/create_table_request_data_type.rb +26 -0
  196. data/lib/datadog_api_client/v2/models/create_upload_request.rb +105 -0
  197. data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +143 -0
  198. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +192 -0
  199. data/lib/datadog_api_client/v2/models/create_upload_request_data_type.rb +26 -0
  200. data/lib/datadog_api_client/v2/models/create_upload_response.rb +105 -0
  201. data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +143 -0
  202. data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +107 -0
  203. data/lib/datadog_api_client/v2/models/create_upload_response_data_type.rb +26 -0
  204. data/lib/datadog_api_client/v2/models/custom_attribute_config.rb +125 -0
  205. data/lib/datadog_api_client/v2/models/custom_attribute_config_attributes_create.rb +196 -0
  206. data/lib/datadog_api_client/v2/models/custom_attribute_config_create.rb +144 -0
  207. data/lib/datadog_api_client/v2/models/custom_attribute_config_create_request.rb +123 -0
  208. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_attributes.rb +217 -0
  209. data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/custom_attribute_config_response.rb +105 -0
  211. data/lib/datadog_api_client/v2/models/custom_attribute_configs_response.rb +107 -0
  212. data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +28 -0
  213. data/lib/datadog_api_client/v2/models/custom_attribute_value.rb +165 -0
  214. data/lib/datadog_api_client/v2/models/custom_attribute_values_union.rb +65 -0
  215. data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_array.rb +125 -0
  216. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  217. data/lib/datadog_api_client/v2/models/flaky_test.rb +125 -0
  218. data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +301 -0
  219. data/lib/datadog_api_client/v2/models/flaky_test_attributes_flaky_state.rb +29 -0
  220. data/lib/datadog_api_client/v2/models/flaky_test_pipeline_stats.rb +124 -0
  221. data/lib/datadog_api_client/v2/models/flaky_test_run_metadata.rb +168 -0
  222. data/lib/datadog_api_client/v2/models/flaky_test_stats.rb +113 -0
  223. data/lib/datadog_api_client/v2/models/flaky_test_type.rb +26 -0
  224. data/lib/datadog_api_client/v2/models/flaky_tests_pagination.rb +113 -0
  225. data/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +115 -0
  226. data/lib/datadog_api_client/v2/models/flaky_tests_search_page_options.rb +137 -0
  227. data/lib/datadog_api_client/v2/models/flaky_tests_search_request.rb +105 -0
  228. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +125 -0
  229. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data.rb +115 -0
  230. data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data_type.rb +26 -0
  231. data/lib/datadog_api_client/v2/models/flaky_tests_search_response.rb +117 -0
  232. data/lib/datadog_api_client/v2/models/flaky_tests_search_response_meta.rb +105 -0
  233. data/lib/datadog_api_client/v2/models/flaky_tests_search_sort.rb +37 -0
  234. data/lib/datadog_api_client/v2/models/fleet_deployment.rb +165 -0
  235. data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +147 -0
  236. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_attributes.rb +135 -0
  237. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +144 -0
  238. data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +123 -0
  239. data/lib/datadog_api_client/v2/models/fleet_deployment_file_op.rb +30 -0
  240. data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +161 -0
  241. data/lib/datadog_api_client/v2/models/fleet_deployment_resource_type.rb +26 -0
  242. data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +105 -0
  243. data/lib/datadog_api_client/v2/models/fleet_deployments_page.rb +105 -0
  244. data/lib/datadog_api_client/v2/models/fleet_deployments_response.rb +135 -0
  245. data/lib/datadog_api_client/v2/models/fleet_deployments_response_meta.rb +105 -0
  246. data/lib/datadog_api_client/v2/models/gcp_scan_options.rb +105 -0
  247. data/lib/datadog_api_client/v2/models/gcp_scan_options_array.rb +125 -0
  248. data/lib/datadog_api_client/v2/models/gcp_scan_options_data.rb +154 -0
  249. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +115 -0
  250. data/lib/datadog_api_client/v2/models/gcp_scan_options_data_type.rb +26 -0
  251. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update.rb +105 -0
  252. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data.rb +154 -0
  253. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +115 -0
  254. data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_type.rb +26 -0
  255. data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_meta.rb +0 -1
  256. data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +15 -9
  257. data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +162 -0
  258. data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +160 -0
  259. data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +11 -1
  260. data/lib/datadog_api_client/v2/models/notification_rule_response.rb +0 -1
  261. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +0 -1
  262. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +0 -1
  263. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +0 -1
  264. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +0 -1
  265. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +0 -1
  266. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +0 -1
  267. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +0 -1
  268. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +0 -1
  269. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +0 -1
  270. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +0 -2
  271. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +0 -1
  272. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +0 -1
  273. data/lib/datadog_api_client/v2/models/patch_table_request.rb +105 -0
  274. data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +143 -0
  275. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +147 -0
  276. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +63 -0
  277. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +90 -0
  278. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_local_file.rb +98 -0
  279. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  280. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  281. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  282. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  283. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +148 -0
  284. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +144 -0
  285. data/lib/datadog_api_client/v2/models/patch_table_request_data_type.rb +26 -0
  286. data/lib/datadog_api_client/v2/models/reference_table_create_source_type.rb +29 -0
  287. data/lib/datadog_api_client/v2/models/reference_table_schema_field_type.rb +27 -0
  288. data/lib/datadog_api_client/v2/models/reference_table_sort_type.rb +31 -0
  289. data/lib/datadog_api_client/v2/models/reference_table_source_type.rb +33 -0
  290. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request.rb +105 -0
  291. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data.rb +143 -0
  292. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_attributes.rb +107 -0
  293. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_type.rb +26 -0
  294. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response.rb +105 -0
  295. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data.rb +143 -0
  296. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_attributes.rb +107 -0
  297. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_type.rb +26 -0
  298. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results.rb +117 -0
  299. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols.rb +117 -0
  300. data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols_symbols.rb +125 -0
  301. data/lib/datadog_api_client/v2/models/role_template_array.rb +125 -0
  302. data/lib/datadog_api_client/v2/models/role_template_data.rb +143 -0
  303. data/lib/datadog_api_client/v2/models/role_template_data_attributes.rb +115 -0
  304. data/lib/datadog_api_client/v2/models/role_template_data_type.rb +26 -0
  305. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +11 -1
  306. data/lib/datadog_api_client/v2/models/sbom_format.rb +27 -0
  307. data/lib/datadog_api_client/v2/models/sca_request.rb +105 -0
  308. data/lib/datadog_api_client/v2/models/sca_request_data.rb +143 -0
  309. data/lib/datadog_api_client/v2/models/sca_request_data_attributes.rb +193 -0
  310. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_commit.rb +165 -0
  311. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items.rb +211 -0
  312. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items.rb +135 -0
  313. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_file_position.rb +125 -0
  314. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_position.rb +144 -0
  315. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_reachable_symbol_properties_items.rb +115 -0
  316. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_files_items.rb +115 -0
  317. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_relations_items.rb +117 -0
  318. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_repository.rb +105 -0
  319. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items.rb +127 -0
  320. data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items_affects_items.rb +105 -0
  321. data/lib/datadog_api_client/v2/models/sca_request_data_type.rb +26 -0
  322. data/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb +144 -0
  323. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_asset.rb +144 -0
  324. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_attributes.rb +165 -0
  325. data/lib/datadog_api_client/v2/models/scanned_asset_metadata_last_success.rb +145 -0
  326. data/lib/datadog_api_client/v2/models/scanned_assets_metadata.rb +145 -0
  327. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +0 -1
  328. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +13 -1
  329. data/lib/datadog_api_client/v2/models/table_result_v2.rb +105 -0
  330. data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +125 -0
  331. data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +143 -0
  332. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +207 -0
  333. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +63 -0
  334. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +145 -0
  335. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage_error_type.rb +34 -0
  336. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +125 -0
  337. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +125 -0
  338. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
  339. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
  340. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
  341. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +148 -0
  342. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +144 -0
  343. data/lib/datadog_api_client/v2/models/table_result_v2_data_type.rb +26 -0
  344. data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +125 -0
  345. data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +143 -0
  346. data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +105 -0
  347. data/lib/datadog_api_client/v2/models/table_row_resource_data_type.rb +26 -0
  348. data/lib/datadog_api_client/v2/models/timeline_cell.rb +155 -0
  349. data/lib/datadog_api_client/v2/models/timeline_cell_author.rb +62 -0
  350. data/lib/datadog_api_client/v2/models/timeline_cell_author_user.rb +115 -0
  351. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_content.rb +135 -0
  352. data/lib/datadog_api_client/v2/models/timeline_cell_author_user_type.rb +26 -0
  353. data/lib/datadog_api_client/v2/models/timeline_cell_content.rb +62 -0
  354. data/lib/datadog_api_client/v2/models/timeline_cell_content_comment.rb +105 -0
  355. data/lib/datadog_api_client/v2/models/timeline_cell_resource.rb +165 -0
  356. data/lib/datadog_api_client/v2/models/timeline_cell_resource_type.rb +26 -0
  357. data/lib/datadog_api_client/v2/models/timeline_cell_type.rb +26 -0
  358. data/lib/datadog_api_client/v2/models/timeline_response.rb +107 -0
  359. data/lib/datadog_api_client/v2/models/vulnerability_advisory.rb +143 -0
  360. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
  361. data/lib/datadog_api_client/version.rb +1 -1
  362. metadata +274 -14
  363. data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +0 -5
  364. data/examples/v2/cloud-cost-management/DeleteRuleset.rb +0 -5
  365. data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +0 -5
  366. data/examples/v2/cloud-cost-management/GetRuleset.rb +0 -5
  367. data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +0 -5
  368. data/examples/v2/cloud-cost-management/ListRulesets.rb +0 -5
  369. data/examples/v2/cloud-cost-management/ReorderRulesets.rb +0 -13
@@ -0,0 +1,161 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # A single configuration file operation to perform on the target hosts.
21
+ class FleetDeploymentOperation
22
+ include BaseGenericModel
23
+
24
+ # Type of file operation to perform on the target configuration file.
25
+ # - `merge-patch`: Merges the provided patch data with the existing configuration file.
26
+ # Creates the file if it doesn't exist.
27
+ # - `delete`: Removes the specified configuration file from the target hosts.
28
+ attr_reader :file_op
29
+
30
+ # Absolute path to the target configuration file on the host.
31
+ attr_reader :file_path
32
+
33
+ # Patch data in JSON format to apply to the configuration file.
34
+ # When using `merge-patch`, this object is merged with the existing configuration,
35
+ # allowing you to add, update, or override specific fields without replacing the entire file.
36
+ # The structure must match the target configuration file format (for example, YAML structure for Datadog Agent config).
37
+ # Not applicable when using the `delete` operation.
38
+ attr_accessor :patch
39
+
40
+ attr_accessor :additional_properties
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ # @!visibility private
44
+ def self.attribute_map
45
+ {
46
+ :'file_op' => :'file_op',
47
+ :'file_path' => :'file_path',
48
+ :'patch' => :'patch'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ # @!visibility private
54
+ def self.openapi_types
55
+ {
56
+ :'file_op' => :'FleetDeploymentFileOp',
57
+ :'file_path' => :'String',
58
+ :'patch' => :'Hash<String, Object>'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param attributes [Hash] Model attributes in the form of hash
64
+ # @!visibility private
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentOperation` initialize method"
68
+ end
69
+
70
+ self.additional_properties = {}
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!self.class.attribute_map.key?(k.to_sym))
74
+ self.additional_properties[k.to_sym] = v
75
+ else
76
+ h[k.to_sym] = v
77
+ end
78
+ }
79
+
80
+ if attributes.key?(:'file_op')
81
+ self.file_op = attributes[:'file_op']
82
+ end
83
+
84
+ if attributes.key?(:'file_path')
85
+ self.file_path = attributes[:'file_path']
86
+ end
87
+
88
+ if attributes.key?(:'patch')
89
+ self.patch = attributes[:'patch']
90
+ end
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ # @!visibility private
96
+ def valid?
97
+ return false if @file_op.nil?
98
+ return false if @file_path.nil?
99
+ true
100
+ end
101
+
102
+ # Custom attribute writer method with validation
103
+ # @param file_op [Object] Object to be assigned
104
+ # @!visibility private
105
+ def file_op=(file_op)
106
+ if file_op.nil?
107
+ fail ArgumentError, 'invalid value for "file_op", file_op cannot be nil.'
108
+ end
109
+ @file_op = file_op
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param file_path [Object] Object to be assigned
114
+ # @!visibility private
115
+ def file_path=(file_path)
116
+ if file_path.nil?
117
+ fail ArgumentError, 'invalid value for "file_path", file_path cannot be nil.'
118
+ end
119
+ @file_path = file_path
120
+ end
121
+
122
+ # Returns the object in the form of hash, with additionalProperties support.
123
+ # @return [Hash] Returns the object in the form of hash
124
+ # @!visibility private
125
+ def to_hash
126
+ hash = {}
127
+ self.class.attribute_map.each_pair do |attr, param|
128
+ value = self.send(attr)
129
+ if value.nil?
130
+ is_nullable = self.class.openapi_nullable.include?(attr)
131
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
132
+ end
133
+
134
+ hash[param] = _to_hash(value)
135
+ end
136
+ self.additional_properties.each_pair do |attr, value|
137
+ hash[attr] = value
138
+ end
139
+ hash
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param o [Object] Object to be compared
144
+ # @!visibility private
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ file_op == o.file_op &&
149
+ file_path == o.file_path &&
150
+ patch == o.patch &&
151
+ additional_properties == o.additional_properties
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Integer] Hash code
156
+ # @!visibility private
157
+ def hash
158
+ [file_op, file_path, patch, additional_properties].hash
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The type of deployment resource.
21
+ class FleetDeploymentResourceType
22
+ include BaseEnumModel
23
+
24
+ DEPLOYMENT = "deployment".freeze
25
+ end
26
+ end
@@ -0,0 +1,105 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Response containing a single deployment.
21
+ class FleetDeploymentResponse
22
+ include BaseGenericModel
23
+
24
+ # A deployment that defines automated configuration changes for a fleet of hosts.
25
+ attr_accessor :data
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'data' => :'data'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'FleetDeployment'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentResponse` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'data')
64
+ self.data = attributes[:'data']
65
+ end
66
+ end
67
+
68
+ # Returns the object in the form of hash, with additionalProperties support.
69
+ # @return [Hash] Returns the object in the form of hash
70
+ # @!visibility private
71
+ def to_hash
72
+ hash = {}
73
+ self.class.attribute_map.each_pair do |attr, param|
74
+ value = self.send(attr)
75
+ if value.nil?
76
+ is_nullable = self.class.openapi_nullable.include?(attr)
77
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78
+ end
79
+
80
+ hash[param] = _to_hash(value)
81
+ end
82
+ self.additional_properties.each_pair do |attr, value|
83
+ hash[attr] = value
84
+ end
85
+ hash
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param o [Object] Object to be compared
90
+ # @!visibility private
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ data == o.data &&
95
+ additional_properties == o.additional_properties
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ # @!visibility private
101
+ def hash
102
+ [data, additional_properties].hash
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,105 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Pagination details for the list of deployments.
21
+ class FleetDeploymentsPage
22
+ include BaseGenericModel
23
+
24
+ # Total number of deployments available across all pages.
25
+ attr_accessor :total_count
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'total_count' => :'total_count'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'total_count' => :'Integer'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentsPage` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'total_count')
64
+ self.total_count = attributes[:'total_count']
65
+ end
66
+ end
67
+
68
+ # Returns the object in the form of hash, with additionalProperties support.
69
+ # @return [Hash] Returns the object in the form of hash
70
+ # @!visibility private
71
+ def to_hash
72
+ hash = {}
73
+ self.class.attribute_map.each_pair do |attr, param|
74
+ value = self.send(attr)
75
+ if value.nil?
76
+ is_nullable = self.class.openapi_nullable.include?(attr)
77
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78
+ end
79
+
80
+ hash[param] = _to_hash(value)
81
+ end
82
+ self.additional_properties.each_pair do |attr, value|
83
+ hash[attr] = value
84
+ end
85
+ hash
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param o [Object] Object to be compared
90
+ # @!visibility private
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ total_count == o.total_count &&
95
+ additional_properties == o.additional_properties
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ # @!visibility private
101
+ def hash
102
+ [total_count, additional_properties].hash
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,135 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Response containing a paginated list of deployments.
21
+ class FleetDeploymentsResponse
22
+ include BaseGenericModel
23
+
24
+ # Array of deployments matching the query criteria.
25
+ attr_reader :data
26
+
27
+ # Metadata for the list of deployments, including pagination information.
28
+ attr_accessor :meta
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'data' => :'data',
37
+ :'meta' => :'meta'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'data' => :'Array<FleetDeployment>',
46
+ :'meta' => :'FleetDeploymentsResponseMeta'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentsResponse` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'data')
69
+ if (value = attributes[:'data']).is_a?(Array)
70
+ self.data = value
71
+ end
72
+ end
73
+
74
+ if attributes.key?(:'meta')
75
+ self.meta = attributes[:'meta']
76
+ end
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ # @!visibility private
82
+ def valid?
83
+ return false if @data.nil?
84
+ true
85
+ end
86
+
87
+ # Custom attribute writer method with validation
88
+ # @param data [Object] Object to be assigned
89
+ # @!visibility private
90
+ def data=(data)
91
+ if data.nil?
92
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
93
+ end
94
+ @data = data
95
+ end
96
+
97
+ # Returns the object in the form of hash, with additionalProperties support.
98
+ # @return [Hash] Returns the object in the form of hash
99
+ # @!visibility private
100
+ def to_hash
101
+ hash = {}
102
+ self.class.attribute_map.each_pair do |attr, param|
103
+ value = self.send(attr)
104
+ if value.nil?
105
+ is_nullable = self.class.openapi_nullable.include?(attr)
106
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
107
+ end
108
+
109
+ hash[param] = _to_hash(value)
110
+ end
111
+ self.additional_properties.each_pair do |attr, value|
112
+ hash[attr] = value
113
+ end
114
+ hash
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param o [Object] Object to be compared
119
+ # @!visibility private
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ data == o.data &&
124
+ meta == o.meta &&
125
+ additional_properties == o.additional_properties
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ # @!visibility private
131
+ def hash
132
+ [data, meta, additional_properties].hash
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,105 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Metadata for the list of deployments, including pagination information.
21
+ class FleetDeploymentsResponseMeta
22
+ include BaseGenericModel
23
+
24
+ # Pagination details for the list of deployments.
25
+ attr_accessor :page
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'page' => :'page'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'page' => :'FleetDeploymentsPage'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentsResponseMeta` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'page')
64
+ self.page = attributes[:'page']
65
+ end
66
+ end
67
+
68
+ # Returns the object in the form of hash, with additionalProperties support.
69
+ # @return [Hash] Returns the object in the form of hash
70
+ # @!visibility private
71
+ def to_hash
72
+ hash = {}
73
+ self.class.attribute_map.each_pair do |attr, param|
74
+ value = self.send(attr)
75
+ if value.nil?
76
+ is_nullable = self.class.openapi_nullable.include?(attr)
77
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78
+ end
79
+
80
+ hash[param] = _to_hash(value)
81
+ end
82
+ self.additional_properties.each_pair do |attr, value|
83
+ hash[attr] = value
84
+ end
85
+ hash
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param o [Object] Object to be compared
90
+ # @!visibility private
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ page == o.page &&
95
+ additional_properties == o.additional_properties
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ # @!visibility private
101
+ def hash
102
+ [page, additional_properties].hash
103
+ end
104
+ end
105
+ end