datadog_api_client 2.16.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +799 -16
  4. data/.generator/schemas/v2/openapi.yaml +2732 -409
  5. data/.generator/src/generator/cli.py +5 -0
  6. data/.generator/src/generator/formatter.py +4 -0
  7. data/.generator/src/generator/openapi.py +2 -0
  8. data/.generator/src/generator/templates/api_client.j2 +3 -0
  9. data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
  10. data/.generator/src/generator/templates/inflector.j2 +1 -1
  11. data/.generator/src/generator/templates/model_base.j2 +4 -0
  12. data/.pre-commit-config.yaml +1 -1
  13. data/CHANGELOG.md +54 -0
  14. data/Gemfile +1 -0
  15. data/LICENSE-3rdparty.csv +1 -0
  16. data/datadog_api_client.gemspec +2 -0
  17. data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
  18. data/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb +12 -0
  19. data/examples/v1/aws-integration/CreateAWSTagFilter.rb +1 -1
  20. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -1
  21. data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
  22. data/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb +11 -0
  23. data/examples/v1/aws-integration/ListAWSEventBridgeSources.rb +5 -0
  24. data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
  25. data/examples/v1/azure-integration/CreateAzureIntegration.rb +2 -0
  26. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -0
  27. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +2 -0
  28. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +2 -0
  29. data/examples/v1/dashboards/CreateDashboard_1213075383.rb +7 -0
  30. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
  31. data/examples/v1/monitors/CreateMonitor_1539578087.rb +0 -1
  32. data/examples/v1/synthetics/PatchTest.rb +22 -0
  33. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
  34. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
  35. data/examples/v2/confluent-cloud/DeleteConfluentAccount.rb +4 -1
  36. data/examples/v2/confluent-cloud/DeleteConfluentResource.rb +5 -0
  37. data/examples/v2/container-images/ListContainerImages.rb +0 -3
  38. data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
  39. data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
  40. data/examples/v2/containers/ListContainers.rb +5 -0
  41. data/examples/v2/containers/ListContainers_2175733917.rb +8 -0
  42. data/examples/v2/containers/ListContainers_931009654.rb +8 -0
  43. data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
  44. data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
  45. data/examples/v2/downtimes/ListMonitorDowntimes.rb +1 -1
  46. data/examples/v2/events/ListEvents.rb +0 -3
  47. data/examples/v2/events/ListEvents_1527584014.rb +0 -3
  48. data/examples/v2/events/ListEvents_2663715109.rb +0 -3
  49. data/examples/v2/events/SearchEvents.rb +0 -3
  50. data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
  51. data/examples/v2/key-management/CreateCurrentUserApplicationKey.rb +2 -7
  52. data/examples/v2/key-management/DeleteApplicationKey.rb +4 -1
  53. data/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb +4 -1
  54. data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
  55. data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
  56. data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
  57. data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
  58. data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
  59. data/examples/v2/powerpack/CreatePowerpack.rb +1 -0
  60. data/examples/v2/powerpack/UpdatePowerpack.rb +1 -0
  61. data/examples/v2/security-monitoring/MuteFindings.rb +29 -0
  62. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
  63. data/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb +27 -0
  64. data/examples/v2/service-scorecards/CreateScorecardRule.rb +19 -0
  65. data/examples/v2/service-scorecards/DeleteScorecardRule.rb +11 -0
  66. data/examples/v2/service-scorecards/ListScorecardOutcomes.rb +8 -0
  67. data/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.rb +13 -0
  68. data/examples/v2/service-scorecards/ListScorecardRules.rb +8 -0
  69. data/examples/v2/service-scorecards/ListScorecardRules_4057666343.rb +13 -0
  70. data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +3 -1
  71. data/examples/v2/teams/ListTeams_3429963470.rb +12 -0
  72. data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
  73. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
  74. data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
  75. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +4 -1
  76. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +4 -1
  77. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +4 -1
  78. data/examples/v2/users/GetUser.rb +5 -2
  79. data/lib/datadog_api_client/api_client.rb +3 -0
  80. data/lib/datadog_api_client/configuration.rb +11 -4
  81. data/lib/datadog_api_client/inflector.rb +137 -9
  82. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +194 -0
  83. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
  84. data/lib/datadog_api_client/v1/api/monitors_api.rb +5 -1
  85. data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
  86. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  87. data/lib/datadog_api_client/v1/model_base.rb +4 -0
  88. data/lib/datadog_api_client/v1/models/aws_account.rb +2 -1
  89. data/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +105 -0
  90. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +112 -0
  91. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +110 -0
  92. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_status.rb +26 -0
  93. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +100 -0
  94. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +80 -0
  95. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_status.rb +26 -0
  96. data/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +92 -0
  97. data/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +90 -0
  98. data/lib/datadog_api_client/v1/models/azure_account.rb +24 -2
  99. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +21 -0
  100. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  101. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +42 -0
  102. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +421 -1
  103. data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
  104. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
  105. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
  106. data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +11 -1
  107. data/lib/datadog_api_client/v1/models/toplist_widget_display.rb +63 -0
  108. data/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +98 -0
  109. data/lib/datadog_api_client/v1/models/toplist_widget_flat_type.rb +26 -0
  110. data/lib/datadog_api_client/v1/models/toplist_widget_legend.rb +28 -0
  111. data/lib/datadog_api_client/v1/models/toplist_widget_scaling.rb +27 -0
  112. data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +119 -0
  113. data/lib/datadog_api_client/v1/models/toplist_widget_stacked_type.rb +26 -0
  114. data/lib/datadog_api_client/v1/models/toplist_widget_style.rb +90 -0
  115. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  116. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
  117. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
  118. data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
  119. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +6 -0
  120. data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
  121. data/lib/datadog_api_client/v2/api/containers_api.rb +123 -0
  122. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
  123. data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
  124. data/lib/datadog_api_client/v2/api/key_management_api.rb +8 -0
  125. data/lib/datadog_api_client/v2/api/metrics_api.rb +6 -3
  126. data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
  127. data/lib/datadog_api_client/v2/api/roles_api.rb +2 -0
  128. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +66 -72
  129. data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +457 -0
  130. data/lib/datadog_api_client/v2/api/teams_api.rb +2 -0
  131. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
  132. data/lib/datadog_api_client/v2/model_base.rb +4 -0
  133. data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
  134. data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
  135. data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
  136. data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
  137. data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
  138. data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
  139. data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
  140. data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
  141. data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +98 -0
  143. data/lib/datadog_api_client/v2/models/{mute_finding_request_attributes.rb → bulk_mute_findings_request_attributes.rb} +5 -5
  144. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +161 -0
  145. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +82 -0
  146. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +80 -0
  147. data/lib/datadog_api_client/v2/models/{mute_finding_request_properties.rb → bulk_mute_findings_request_properties.rb} +6 -6
  148. data/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +98 -0
  149. data/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +90 -0
  150. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
  151. data/lib/datadog_api_client/v2/models/{mute_finding_response_data.rb → container.rb} +9 -9
  152. data/lib/datadog_api_client/v2/models/container_attributes.rb +183 -0
  153. data/lib/datadog_api_client/v2/models/container_group.rb +110 -0
  154. data/lib/datadog_api_client/v2/models/container_group_attributes.rb +90 -0
  155. data/lib/datadog_api_client/v2/models/container_group_relationships.rb +80 -0
  156. data/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +92 -0
  157. data/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +80 -0
  158. data/lib/datadog_api_client/v2/models/container_group_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/container_item.rb +63 -0
  160. data/lib/datadog_api_client/v2/models/container_meta.rb +80 -0
  161. data/lib/datadog_api_client/v2/models/container_meta_page.rb +160 -0
  162. data/lib/datadog_api_client/v2/models/container_meta_page_type.rb +26 -0
  163. data/lib/datadog_api_client/v2/models/container_type.rb +26 -0
  164. data/lib/datadog_api_client/v2/models/containers_response.rb +102 -0
  165. data/lib/datadog_api_client/v2/models/containers_response_links.rb +130 -0
  166. data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
  167. data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
  168. data/lib/datadog_api_client/v2/models/create_rule_request.rb +80 -0
  169. data/lib/datadog_api_client/v2/models/create_rule_request_data.rb +90 -0
  170. data/lib/datadog_api_client/v2/models/create_rule_response.rb +80 -0
  171. data/lib/datadog_api_client/v2/models/create_rule_response_data.rb +110 -0
  172. data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
  173. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
  174. data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
  175. data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
  176. data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
  177. data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
  179. data/lib/datadog_api_client/v2/models/{mute_finding_response.rb → dora_incident_request.rb} +6 -6
  180. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
  181. data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
  182. data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
  183. data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
  184. data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
  185. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
  186. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
  187. data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
  188. data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
  189. data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
  190. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
  191. data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
  192. data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
  193. data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
  194. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
  195. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
  196. data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
  197. data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
  198. data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
  199. data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
  200. data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
  201. data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
  202. data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
  203. data/lib/datadog_api_client/v2/models/list_rules_response.rb +92 -0
  204. data/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +110 -0
  205. data/lib/datadog_api_client/v2/models/list_rules_response_links.rb +80 -0
  206. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +13 -1
  207. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +12 -1
  208. data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +13 -1
  209. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +13 -1
  210. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +13 -1
  211. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
  212. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
  213. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
  214. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
  215. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
  216. data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
  217. data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
  218. data/lib/datadog_api_client/v2/models/{mute_finding_request.rb → okta_account_request.rb} +6 -6
  219. data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
  220. data/lib/datadog_api_client/v2/models/{mute_finding_request_data.rb → okta_account_response_data.rb} +9 -9
  221. data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
  223. data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
  224. data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
  225. data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
  226. data/lib/datadog_api_client/v2/models/outcome_type.rb +26 -0
  227. data/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +82 -0
  228. data/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +80 -0
  229. data/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +90 -0
  230. data/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +150 -0
  231. data/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +121 -0
  232. data/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +120 -0
  233. data/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +90 -0
  234. data/lib/datadog_api_client/v2/models/outcomes_batch_type.rb +26 -0
  235. data/lib/datadog_api_client/v2/models/outcomes_response.rb +104 -0
  236. data/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +110 -0
  237. data/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +100 -0
  238. data/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +90 -0
  239. data/lib/datadog_api_client/v2/models/outcomes_response_links.rb +80 -0
  240. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
  241. data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +14 -4
  242. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
  243. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
  244. data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
  245. data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
  246. data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
  247. data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
  248. data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
  249. data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
  250. data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
  251. data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
  252. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
  253. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
  254. data/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +80 -0
  255. data/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +90 -0
  256. data/lib/datadog_api_client/v2/models/relationship_to_rule.rb +80 -0
  257. data/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +80 -0
  258. data/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +90 -0
  259. data/lib/datadog_api_client/v2/models/rule_attributes.rb +160 -0
  260. data/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +80 -0
  261. data/lib/datadog_api_client/v2/models/rule_type.rb +26 -0
  262. data/lib/datadog_api_client/v2/models/scorecard_type.rb +26 -0
  263. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  264. data/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +7 -7
  265. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  266. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +13 -1
  267. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +8 -8
  268. data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
  269. data/lib/datadog_api_client/v2/models/state.rb +28 -0
  270. data/lib/datadog_api_client/v2/models/teams_field.rb +40 -0
  271. data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +1 -1
  272. data/lib/datadog_api_client/v2/models/widget_live_span.rb +40 -0
  273. data/lib/datadog_api_client/version.rb +1 -1
  274. data/lib/datadog_api_client.rb +16 -1
  275. metadata +186 -25
  276. data/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.rb +0 -8
  277. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -5
  278. data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +0 -14
  279. data/examples/v2/key-management/DeleteApplicationKey_771691550.rb +0 -8
  280. data/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.rb +0 -8
  281. data/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.rb +0 -8
  282. data/examples/v2/key-management/ListApplicationKeys_2237010090.rb +0 -5
  283. data/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.rb +0 -5
  284. data/examples/v2/security-monitoring/UpdateFinding.rb +0 -23
  285. data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +0 -5
  286. data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +0 -9
  287. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +0 -8
  288. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +0 -8
  289. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +0 -8
  290. data/examples/v2/users/GetUser_3047557953.rb +0 -8
  291. data/lib/datadog_api_client/v2/models/mute_finding_response_attributes.rb +0 -191
  292. data/lib/datadog_api_client/v2/models/mute_finding_response_properties.rb +0 -114
@@ -0,0 +1,181 @@
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 'cgi'
17
+
18
+ module DatadogAPIClient::V2
19
+ class DORAMetricsAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Send a deployment event for DORA Metrics.
27
+ #
28
+ # @see #create_dora_deployment_with_http_info
29
+ def create_dora_deployment(body, opts = {})
30
+ data, _status_code, _headers = create_dora_deployment_with_http_info(body, opts)
31
+ data
32
+ end
33
+
34
+ # Send a deployment event for DORA Metrics.
35
+ #
36
+ # Use this API endpoint to provide data about deployments for DORA metrics.
37
+ #
38
+ # This is necessary for:
39
+ # - Deployment Frequency
40
+ # - Change Lead Time
41
+ # - Change Failure Rate
42
+ #
43
+ # @param body [DORADeploymentRequest]
44
+ # @param opts [Hash] the optional parameters
45
+ # @return [Array<(DORADeploymentResponse, Integer, Hash)>] DORADeploymentResponse data, response status code and response headers
46
+ def create_dora_deployment_with_http_info(body, opts = {})
47
+ unstable_enabled = @api_client.config.unstable_operations["v2.create_dora_deployment".to_sym]
48
+ if unstable_enabled
49
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_deployment")
50
+ else
51
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_deployment"))
52
+ end
53
+
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_deployment ...'
56
+ end
57
+ # verify the required parameter 'body' is set
58
+ if @api_client.config.client_side_validation && body.nil?
59
+ fail ArgumentError, "Missing the required parameter 'body' when calling DORAMetricsAPI.create_dora_deployment"
60
+ end
61
+ # resource path
62
+ local_var_path = '/api/v2/dora/deployment'
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+ # HTTP header 'Content-Type'
72
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
79
+
80
+ # return_type
81
+ return_type = opts[:debug_return_type] || 'DORADeploymentResponse'
82
+
83
+ # auth_names
84
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
85
+
86
+ new_options = opts.merge(
87
+ :operation => :create_dora_deployment,
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => return_type,
94
+ :api_version => "V2"
95
+ )
96
+
97
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug "API called: DORAMetricsAPI#create_dora_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
+ end
101
+ return data, status_code, headers
102
+ end
103
+
104
+ # Send an incident event for DORA Metrics.
105
+ #
106
+ # @see #create_dora_incident_with_http_info
107
+ def create_dora_incident(body, opts = {})
108
+ data, _status_code, _headers = create_dora_incident_with_http_info(body, opts)
109
+ data
110
+ end
111
+
112
+ # Send an incident event for DORA Metrics.
113
+ #
114
+ # Use this API endpoint to provide data about incidents for DORA metrics.
115
+ #
116
+ # This is necessary for:
117
+ # - Change Failure Rate
118
+ # - Time to Restore
119
+ #
120
+ # @param body [DORAIncidentRequest]
121
+ # @param opts [Hash] the optional parameters
122
+ # @return [Array<(DORAIncidentResponse, Integer, Hash)>] DORAIncidentResponse data, response status code and response headers
123
+ def create_dora_incident_with_http_info(body, opts = {})
124
+ unstable_enabled = @api_client.config.unstable_operations["v2.create_dora_incident".to_sym]
125
+ if unstable_enabled
126
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_incident")
127
+ else
128
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_incident"))
129
+ end
130
+
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_incident ...'
133
+ end
134
+ # verify the required parameter 'body' is set
135
+ if @api_client.config.client_side_validation && body.nil?
136
+ fail ArgumentError, "Missing the required parameter 'body' when calling DORAMetricsAPI.create_dora_incident"
137
+ end
138
+ # resource path
139
+ local_var_path = '/api/v2/dora/incident'
140
+
141
+ # query parameters
142
+ query_params = opts[:query_params] || {}
143
+
144
+ # header parameters
145
+ header_params = opts[:header_params] || {}
146
+ # HTTP header 'Accept' (if needed)
147
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
148
+ # HTTP header 'Content-Type'
149
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
150
+
151
+ # form parameters
152
+ form_params = opts[:form_params] || {}
153
+
154
+ # http body (model)
155
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
156
+
157
+ # return_type
158
+ return_type = opts[:debug_return_type] || 'DORAIncidentResponse'
159
+
160
+ # auth_names
161
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
162
+
163
+ new_options = opts.merge(
164
+ :operation => :create_dora_incident,
165
+ :header_params => header_params,
166
+ :query_params => query_params,
167
+ :form_params => form_params,
168
+ :body => post_body,
169
+ :auth_names => auth_names,
170
+ :return_type => return_type,
171
+ :api_version => "V2"
172
+ )
173
+
174
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "API called: DORAMetricsAPI#create_dora_incident\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
+ end
178
+ return data, status_code, headers
179
+ end
180
+ end
181
+ end
@@ -47,12 +47,6 @@ module DatadogAPIClient::V2
47
47
  # @option opts [Integer] :page_limit Maximum number of events in the response.
48
48
  # @return [Array<(EventsListResponse, Integer, Hash)>] EventsListResponse data, response status code and response headers
49
49
  def list_events_with_http_info(opts = {})
50
- unstable_enabled = @api_client.config.unstable_operations["v2.list_events".to_sym]
51
- if unstable_enabled
52
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_events")
53
- else
54
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_events"))
55
- end
56
50
 
57
51
  if @api_client.config.debugging
58
52
  @api_client.config.logger.debug 'Calling API: EventsAPI.list_events ...'
@@ -151,12 +145,6 @@ module DatadogAPIClient::V2
151
145
  # @option opts [EventsListRequest] :body
152
146
  # @return [Array<(EventsListResponse, Integer, Hash)>] EventsListResponse data, response status code and response headers
153
147
  def search_events_with_http_info(opts = {})
154
- unstable_enabled = @api_client.config.unstable_operations["v2.search_events".to_sym]
155
- if unstable_enabled
156
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.search_events")
157
- else
158
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.search_events"))
159
- end
160
148
 
161
149
  if @api_client.config.debugging
162
150
  @api_client.config.logger.debug 'Calling API: EventsAPI.search_events ...'
@@ -573,6 +573,8 @@ module DatadogAPIClient::V2
573
573
  # @option opts [String] :filter_modified_at_start Only include API keys modified on or after the specified date.
574
574
  # @option opts [String] :filter_modified_at_end Only include API keys modified on or before the specified date.
575
575
  # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`.
576
+ # @option opts [Boolean] :filter_remote_config_read_enabled Filter API keys by remote config read enabled status.
577
+ # @option opts [String] :filter_category Filter API keys by category.
576
578
  # @return [Array<(APIKeysResponse, Integer, Hash)>] APIKeysResponse data, response status code and response headers
577
579
  def list_api_keys_with_http_info(opts = {})
578
580
 
@@ -597,6 +599,8 @@ module DatadogAPIClient::V2
597
599
  query_params[:'filter[modified_at][start]'] = opts[:'filter_modified_at_start'] if !opts[:'filter_modified_at_start'].nil?
598
600
  query_params[:'filter[modified_at][end]'] = opts[:'filter_modified_at_end'] if !opts[:'filter_modified_at_end'].nil?
599
601
  query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
602
+ query_params[:'filter[remote_config_read_enabled]'] = opts[:'filter_remote_config_read_enabled'] if !opts[:'filter_remote_config_read_enabled'].nil?
603
+ query_params[:'filter[category]'] = opts[:'filter_category'] if !opts[:'filter_category'].nil?
600
604
 
601
605
  # header parameters
602
606
  header_params = opts[:header_params] || {}
@@ -652,6 +656,7 @@ module DatadogAPIClient::V2
652
656
  # @option opts [String] :filter Filter application keys by the specified string.
653
657
  # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date.
654
658
  # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date.
659
+ # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported.
655
660
  # @return [Array<(ListApplicationKeysResponse, Integer, Hash)>] ListApplicationKeysResponse data, response status code and response headers
656
661
  def list_application_keys_with_http_info(opts = {})
657
662
 
@@ -673,6 +678,7 @@ module DatadogAPIClient::V2
673
678
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
674
679
  query_params[:'filter[created_at][start]'] = opts[:'filter_created_at_start'] if !opts[:'filter_created_at_start'].nil?
675
680
  query_params[:'filter[created_at][end]'] = opts[:'filter_created_at_end'] if !opts[:'filter_created_at_end'].nil?
681
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
676
682
 
677
683
  # header parameters
678
684
  header_params = opts[:header_params] || {}
@@ -728,6 +734,7 @@ module DatadogAPIClient::V2
728
734
  # @option opts [String] :filter Filter application keys by the specified string.
729
735
  # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date.
730
736
  # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date.
737
+ # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported.
731
738
  # @return [Array<(ListApplicationKeysResponse, Integer, Hash)>] ListApplicationKeysResponse data, response status code and response headers
732
739
  def list_current_user_application_keys_with_http_info(opts = {})
733
740
 
@@ -749,6 +756,7 @@ module DatadogAPIClient::V2
749
756
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
750
757
  query_params[:'filter[created_at][start]'] = opts[:'filter_created_at_start'] if !opts[:'filter_created_at_start'].nil?
751
758
  query_params[:'filter[created_at][end]'] = opts[:'filter_created_at_end'] if !opts[:'filter_created_at_end'].nil?
759
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
752
760
 
753
761
  # header parameters
754
762
  header_params = opts[:header_params] || {}
@@ -37,7 +37,8 @@ module DatadogAPIClient::V2
37
37
  # Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations.
38
38
  # Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
39
39
  # If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not
40
- # expect deterministic ordering of concurrent calls.
40
+ # expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to
41
+ # the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric.
41
42
  # Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
42
43
  #
43
44
  # @param body [MetricBulkTagConfigCreateRequest]
@@ -107,7 +108,8 @@ module DatadogAPIClient::V2
107
108
  #
108
109
  # Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
109
110
  # Optionally, include percentile aggregations on any distribution metric or configure custom aggregations
110
- # on any count, rate, or gauge metric.
111
+ # on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
112
+ # from an allow-list to a deny-list, and tags in the defined list will not be queryable.
111
113
  # Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
112
114
  #
113
115
  # @param metric_name [String] The name of the metric.
@@ -976,7 +978,8 @@ module DatadogAPIClient::V2
976
978
  # Update a tag configuration.
977
979
  #
978
980
  # Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations
979
- # of a count, rate, or gauge metric.
981
+ # of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
982
+ # from an allow-list to a deny-list, and tags in the defined list will not be queryable.
980
983
  # Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
981
984
  #
982
985
  # @param metric_name [String] The name of the metric.
@@ -0,0 +1,355 @@
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 'cgi'
17
+
18
+ module DatadogAPIClient::V2
19
+ class OktaIntegrationAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Add Okta account.
27
+ #
28
+ # @see #create_okta_account_with_http_info
29
+ def create_okta_account(body, opts = {})
30
+ data, _status_code, _headers = create_okta_account_with_http_info(body, opts)
31
+ data
32
+ end
33
+
34
+ # Add Okta account.
35
+ #
36
+ # Create an Okta account.
37
+ #
38
+ # @param body [OktaAccountRequest]
39
+ # @param opts [Hash] the optional parameters
40
+ # @return [Array<(OktaAccountResponse, Integer, Hash)>] OktaAccountResponse data, response status code and response headers
41
+ def create_okta_account_with_http_info(body, opts = {})
42
+
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug 'Calling API: OktaIntegrationAPI.create_okta_account ...'
45
+ end
46
+ # verify the required parameter 'body' is set
47
+ if @api_client.config.client_side_validation && body.nil?
48
+ fail ArgumentError, "Missing the required parameter 'body' when calling OktaIntegrationAPI.create_okta_account"
49
+ end
50
+ # resource path
51
+ local_var_path = '/api/v2/integrations/okta/accounts'
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
60
+ # HTTP header 'Content-Type'
61
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'OktaAccountResponse'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
74
+
75
+ new_options = opts.merge(
76
+ :operation => :create_okta_account,
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type,
83
+ :api_version => "V2"
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: OktaIntegrationAPI#create_okta_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # Delete Okta account.
94
+ #
95
+ # @see #delete_okta_account_with_http_info
96
+ def delete_okta_account(account_id, opts = {})
97
+ delete_okta_account_with_http_info(account_id, opts)
98
+ nil
99
+ end
100
+
101
+ # Delete Okta account.
102
+ #
103
+ # Delete an Okta account.
104
+ #
105
+ # @param account_id [String] None
106
+ # @param opts [Hash] the optional parameters
107
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
108
+ def delete_okta_account_with_http_info(account_id, opts = {})
109
+
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: OktaIntegrationAPI.delete_okta_account ...'
112
+ end
113
+ # verify the required parameter 'account_id' is set
114
+ if @api_client.config.client_side_validation && account_id.nil?
115
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OktaIntegrationAPI.delete_okta_account"
116
+ end
117
+ # resource path
118
+ local_var_path = '/api/v2/integrations/okta/accounts/{account_id}'.sub('{account_id}', CGI.escape(account_id.to_s).gsub('%2F', '/'))
119
+
120
+ # query parameters
121
+ query_params = opts[:query_params] || {}
122
+
123
+ # header parameters
124
+ header_params = opts[:header_params] || {}
125
+ # HTTP header 'Accept' (if needed)
126
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
127
+
128
+ # form parameters
129
+ form_params = opts[:form_params] || {}
130
+
131
+ # http body (model)
132
+ post_body = opts[:debug_body]
133
+
134
+ # return_type
135
+ return_type = opts[:debug_return_type]
136
+
137
+ # auth_names
138
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
139
+
140
+ new_options = opts.merge(
141
+ :operation => :delete_okta_account,
142
+ :header_params => header_params,
143
+ :query_params => query_params,
144
+ :form_params => form_params,
145
+ :body => post_body,
146
+ :auth_names => auth_names,
147
+ :return_type => return_type,
148
+ :api_version => "V2"
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: OktaIntegrationAPI#delete_okta_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+
158
+ # Get Okta account.
159
+ #
160
+ # @see #get_okta_account_with_http_info
161
+ def get_okta_account(account_id, opts = {})
162
+ data, _status_code, _headers = get_okta_account_with_http_info(account_id, opts)
163
+ data
164
+ end
165
+
166
+ # Get Okta account.
167
+ #
168
+ # Get an Okta account.
169
+ #
170
+ # @param account_id [String] None
171
+ # @param opts [Hash] the optional parameters
172
+ # @return [Array<(OktaAccountResponse, Integer, Hash)>] OktaAccountResponse data, response status code and response headers
173
+ def get_okta_account_with_http_info(account_id, opts = {})
174
+
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug 'Calling API: OktaIntegrationAPI.get_okta_account ...'
177
+ end
178
+ # verify the required parameter 'account_id' is set
179
+ if @api_client.config.client_side_validation && account_id.nil?
180
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OktaIntegrationAPI.get_okta_account"
181
+ end
182
+ # resource path
183
+ local_var_path = '/api/v2/integrations/okta/accounts/{account_id}'.sub('{account_id}', CGI.escape(account_id.to_s).gsub('%2F', '/'))
184
+
185
+ # query parameters
186
+ query_params = opts[:query_params] || {}
187
+
188
+ # header parameters
189
+ header_params = opts[:header_params] || {}
190
+ # HTTP header 'Accept' (if needed)
191
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
192
+
193
+ # form parameters
194
+ form_params = opts[:form_params] || {}
195
+
196
+ # http body (model)
197
+ post_body = opts[:debug_body]
198
+
199
+ # return_type
200
+ return_type = opts[:debug_return_type] || 'OktaAccountResponse'
201
+
202
+ # auth_names
203
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
204
+
205
+ new_options = opts.merge(
206
+ :operation => :get_okta_account,
207
+ :header_params => header_params,
208
+ :query_params => query_params,
209
+ :form_params => form_params,
210
+ :body => post_body,
211
+ :auth_names => auth_names,
212
+ :return_type => return_type,
213
+ :api_version => "V2"
214
+ )
215
+
216
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "API called: OktaIntegrationAPI#get_okta_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+
223
+ # List Okta accounts.
224
+ #
225
+ # @see #list_okta_accounts_with_http_info
226
+ def list_okta_accounts(opts = {})
227
+ data, _status_code, _headers = list_okta_accounts_with_http_info(opts)
228
+ data
229
+ end
230
+
231
+ # List Okta accounts.
232
+ #
233
+ # List Okta accounts.
234
+ #
235
+ # @param opts [Hash] the optional parameters
236
+ # @return [Array<(OktaAccountsResponse, Integer, Hash)>] OktaAccountsResponse data, response status code and response headers
237
+ def list_okta_accounts_with_http_info(opts = {})
238
+
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug 'Calling API: OktaIntegrationAPI.list_okta_accounts ...'
241
+ end
242
+ # resource path
243
+ local_var_path = '/api/v2/integrations/okta/accounts'
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+
248
+ # header parameters
249
+ header_params = opts[:header_params] || {}
250
+ # HTTP header 'Accept' (if needed)
251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:debug_body]
258
+
259
+ # return_type
260
+ return_type = opts[:debug_return_type] || 'OktaAccountsResponse'
261
+
262
+ # auth_names
263
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
264
+
265
+ new_options = opts.merge(
266
+ :operation => :list_okta_accounts,
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type,
273
+ :api_version => "V2"
274
+ )
275
+
276
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug "API called: OktaIntegrationAPI#list_okta_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
+ end
280
+ return data, status_code, headers
281
+ end
282
+
283
+ # Update Okta account.
284
+ #
285
+ # @see #update_okta_account_with_http_info
286
+ def update_okta_account(account_id, body, opts = {})
287
+ data, _status_code, _headers = update_okta_account_with_http_info(account_id, body, opts)
288
+ data
289
+ end
290
+
291
+ # Update Okta account.
292
+ #
293
+ # Update an Okta account.
294
+ #
295
+ # @param account_id [String] None
296
+ # @param body [OktaAccountUpdateRequest]
297
+ # @param opts [Hash] the optional parameters
298
+ # @return [Array<(OktaAccountResponse, Integer, Hash)>] OktaAccountResponse data, response status code and response headers
299
+ def update_okta_account_with_http_info(account_id, body, opts = {})
300
+
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug 'Calling API: OktaIntegrationAPI.update_okta_account ...'
303
+ end
304
+ # verify the required parameter 'account_id' is set
305
+ if @api_client.config.client_side_validation && account_id.nil?
306
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OktaIntegrationAPI.update_okta_account"
307
+ end
308
+ # verify the required parameter 'body' is set
309
+ if @api_client.config.client_side_validation && body.nil?
310
+ fail ArgumentError, "Missing the required parameter 'body' when calling OktaIntegrationAPI.update_okta_account"
311
+ end
312
+ # resource path
313
+ local_var_path = '/api/v2/integrations/okta/accounts/{account_id}'.sub('{account_id}', CGI.escape(account_id.to_s).gsub('%2F', '/'))
314
+
315
+ # query parameters
316
+ query_params = opts[:query_params] || {}
317
+
318
+ # header parameters
319
+ header_params = opts[:header_params] || {}
320
+ # HTTP header 'Accept' (if needed)
321
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
322
+ # HTTP header 'Content-Type'
323
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
324
+
325
+ # form parameters
326
+ form_params = opts[:form_params] || {}
327
+
328
+ # http body (model)
329
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
330
+
331
+ # return_type
332
+ return_type = opts[:debug_return_type] || 'OktaAccountResponse'
333
+
334
+ # auth_names
335
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
336
+
337
+ new_options = opts.merge(
338
+ :operation => :update_okta_account,
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => return_type,
345
+ :api_version => "V2"
346
+ )
347
+
348
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
349
+ if @api_client.config.debugging
350
+ @api_client.config.logger.debug "API called: OktaIntegrationAPI#update_okta_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
351
+ end
352
+ return data, status_code, headers
353
+ end
354
+ end
355
+ end
@@ -578,6 +578,7 @@ module DatadogAPIClient::V2
578
578
  # @option opts [Integer] :page_number Specific page number to return.
579
579
  # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`.
580
580
  # @option opts [String] :filter Filter all roles by the given string.
581
+ # @option opts [String] :filter_id Filter all roles by the given list of role IDs.
581
582
  # @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers
582
583
  def list_roles_with_http_info(opts = {})
583
584
 
@@ -597,6 +598,7 @@ module DatadogAPIClient::V2
597
598
  query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
598
599
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
599
600
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
601
+ query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
600
602
 
601
603
  # header parameters
602
604
  header_params = opts[:header_params] || {}