datadog_api_client 2.18.0 → 2.20.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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +1 -1
  4. data/.generator/poetry.lock +69 -69
  5. data/.generator/schemas/v1/openapi.yaml +286 -55
  6. data/.generator/schemas/v2/openapi.yaml +2021 -226
  7. data/.generator/src/generator/templates/api.j2 +5 -5
  8. data/.generator/src/generator/templates/model_generic.j2 +2 -2
  9. data/CHANGELOG.md +38 -0
  10. data/examples/v1/azure-integration/CreateAzureIntegration.rb +4 -4
  11. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -15
  12. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +4 -4
  13. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +4 -5
  14. data/examples/v1/gcp-integration/DeleteGCPIntegration.rb +2 -14
  15. data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +4 -5
  16. data/examples/v1/logs-indexes/CreateLogsIndex.rb +5 -0
  17. data/examples/v1/logs-indexes/UpdateLogsIndex.rb +5 -0
  18. data/examples/v1/service-level-objectives/CreateSLO_3765703239.rb +46 -0
  19. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
  20. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  21. data/examples/v1/synthetics/TriggerCITests.rb +1 -1
  22. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -1
  23. data/examples/v1/usage-metering/GetUsageLambda.rb +5 -2
  24. data/examples/v2/api-management/CreateOpenAPI.rb +11 -0
  25. data/examples/v2/api-management/DeleteOpenAPI.rb +11 -0
  26. data/examples/v2/api-management/GetOpenAPI.rb +11 -0
  27. data/examples/v2/api-management/UpdateOpenAPI.rb +14 -0
  28. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  29. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -3
  30. data/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb +18 -0
  31. data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +29 -0
  32. data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +5 -0
  33. data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +5 -0
  34. data/examples/v2/cloud-cost-management/GetCloudCostActivity.rb +5 -0
  35. data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +5 -0
  36. data/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb +5 -0
  37. data/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb +5 -0
  38. data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +14 -0
  39. data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +14 -0
  40. data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +1 -1
  41. data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +4 -1
  42. data/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb +5 -0
  43. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +16 -0
  44. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +16 -0
  45. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +17 -0
  46. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +19 -0
  47. data/examples/v2/okta-integration/CreateOktaAccount.rb +1 -1
  48. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb +46 -0
  49. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +19 -0
  50. data/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb +8 -0
  51. data/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb +8 -0
  52. data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb +5 -0
  53. data/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb +17 -0
  54. data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +7 -0
  55. data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +7 -10
  56. data/examples/v2/teams/CreateTeamMembership.rb +6 -0
  57. data/examples/v2/teams/GetTeamMemberships_3799131168.rb +8 -0
  58. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +1 -1
  59. data/lib/datadog_api_client/configuration.rb +4 -1
  60. data/lib/datadog_api_client/inflector.rb +74 -0
  61. data/lib/datadog_api_client/v1/api/downtimes_api.rb +28 -7
  62. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
  63. data/lib/datadog_api_client/v1/api/organizations_api.rb +1 -1
  64. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  65. data/lib/datadog_api_client/v1/models/dashboard.rb +5 -1
  66. data/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +2 -0
  67. data/lib/datadog_api_client/v1/models/gcp_account.rb +22 -2
  68. data/lib/datadog_api_client/v1/models/log.rb +1 -1
  69. data/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +90 -0
  70. data/lib/datadog_api_client/v1/models/logs_index.rb +36 -1
  71. data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +36 -1
  72. data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
  73. data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
  74. data/lib/datadog_api_client/v1/models/organization.rb +1 -1
  75. data/lib/datadog_api_client/v1/models/service_level_objective.rb +11 -1
  76. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +11 -1
  77. data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
  78. data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +1 -1
  79. data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
  80. data/lib/datadog_api_client/v1/models/slo_data_source_query_definition.rb +62 -0
  81. data/lib/datadog_api_client/v1/models/slo_formula.rb +98 -0
  82. data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +2 -2
  83. data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +1 -1
  84. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
  85. data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/slo_response_data.rb +11 -1
  87. data/lib/datadog_api_client/v1/models/slo_sli_spec.rb +62 -0
  88. data/lib/datadog_api_client/v1/models/slo_time_slice_comparator.rb +29 -0
  89. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +141 -0
  90. data/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +131 -0
  91. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +99 -0
  92. data/lib/datadog_api_client/v1/models/slo_type.rb +1 -0
  93. data/lib/datadog_api_client/v1/models/slo_type_numeric.rb +1 -0
  94. data/lib/datadog_api_client/v1/models/split_config.rb +6 -6
  95. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  96. data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +1 -1
  97. data/lib/datadog_api_client/v1/models/usage_lambda_response.rb +1 -1
  98. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  99. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
  100. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  101. data/lib/datadog_api_client/v2/api/api_management_api.rb +319 -0
  102. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +0 -6
  103. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +680 -0
  104. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -0
  105. data/lib/datadog_api_client/v2/api/metrics_api.rb +3 -2
  106. data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
  107. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +329 -0
  108. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  109. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +3 -3
  110. data/lib/datadog_api_client/v2/models/aws_cur_config.rb +129 -0
  111. data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +305 -0
  112. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +119 -0
  113. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +98 -0
  114. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +98 -0
  115. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_type.rb +26 -0
  116. data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +119 -0
  117. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +98 -0
  118. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +202 -0
  119. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_type.rb +26 -0
  120. data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +80 -0
  121. data/lib/datadog_api_client/v2/models/aws_cur_config_type.rb +26 -0
  122. data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +82 -0
  123. data/lib/datadog_api_client/v2/models/aws_related_account.rb +129 -0
  124. data/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +90 -0
  125. data/lib/datadog_api_client/v2/models/aws_related_account_type.rb +26 -0
  126. data/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +82 -0
  127. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +378 -0
  128. data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +129 -0
  129. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +110 -0
  130. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_type.rb +26 -0
  131. data/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +80 -0
  132. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +119 -0
  133. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +98 -0
  134. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +98 -0
  135. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_type.rb +26 -0
  136. data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +119 -0
  137. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +98 -0
  138. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +192 -0
  139. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_type.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +82 -0
  141. data/lib/datadog_api_client/v2/models/bill_config.rb +161 -0
  142. data/lib/datadog_api_client/v2/models/ci_app_git_info.rb +2 -2
  143. data/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +119 -0
  144. data/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +98 -0
  145. data/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +80 -0
  146. data/lib/datadog_api_client/v2/models/cloud_cost_activity_type.rb +26 -0
  147. data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +28 -4
  148. data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +28 -4
  149. data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +28 -4
  150. data/lib/datadog_api_client/v2/models/create_open_api_response.rb +80 -0
  151. data/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +82 -0
  152. data/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +90 -0
  153. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
  154. data/lib/datadog_api_client/v2/models/dora_git_info.rb +2 -2
  155. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +11 -1
  156. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +25 -5
  157. data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
  158. data/lib/datadog_api_client/v2/models/open_api_endpoint.rb +90 -0
  159. data/lib/datadog_api_client/v2/models/open_api_file.rb +80 -0
  160. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +98 -0
  161. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +119 -0
  162. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +14 -4
  163. data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +114 -0
  164. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
  165. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
  166. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
  167. data/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +100 -0
  168. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +198 -0
  169. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +181 -0
  170. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +119 -0
  171. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +98 -0
  172. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +80 -0
  173. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_type.rb +26 -0
  174. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +166 -0
  175. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +119 -0
  176. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +98 -0
  177. data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +82 -0
  178. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +92 -0
  179. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +112 -0
  180. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +130 -0
  181. data/lib/datadog_api_client/v2/models/security_monitoring_user.rb +98 -0
  182. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +134 -0
  183. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +46 -1
  184. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +33 -1
  185. data/lib/datadog_api_client/v2/models/update_open_api_response.rb +80 -0
  186. data/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +82 -0
  187. data/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +90 -0
  188. data/lib/datadog_api_client/v2/models/user_team_attributes.rb +24 -1
  189. data/lib/datadog_api_client/v2/models/user_team_relationships.rb +11 -1
  190. data/lib/datadog_api_client/v2/models/user_team_team_type.rb +26 -0
  191. data/lib/datadog_api_client/version.rb +1 -1
  192. metadata +103 -3
  193. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +0 -8
@@ -0,0 +1,19 @@
1
+ # Update STS Service Account returns "OK" response with enable resource collection turned on
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new
5
+
6
+ # there is a valid "gcp_sts_account" in the system
7
+ GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"]
8
+
9
+ body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({
10
+ data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({
11
+ attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
12
+ client_email: "252bf553ef04b351@example.com",
13
+ resource_collection_enabled: true,
14
+ }),
15
+ id: GCP_STS_ACCOUNT_DATA_ID,
16
+ type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
17
+ }),
18
+ })
19
+ p api_instance.update_gcpsts_account(GCP_STS_ACCOUNT_DATA_ID, body)
@@ -8,7 +8,7 @@ body = DatadogAPIClient::V2::OktaAccountRequest.new({
8
8
  attributes: DatadogAPIClient::V2::OktaAccountAttributes.new({
9
9
  auth_method: "oauth",
10
10
  domain: "https://example.okta.com/",
11
- name: "Okta_Prod",
11
+ name: "exampleoktaintegration",
12
12
  client_id: "client_id",
13
13
  client_secret: "client_secret",
14
14
  }),
@@ -0,0 +1,46 @@
1
+ # Create a detection rule with detection method 'third_party' returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+
6
+ body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({
7
+ name: "Example-Security-Monitoring",
8
+ type: DatadogAPIClient::V2::SecurityMonitoringRuleTypeCreate::LOG_DETECTION,
9
+ is_enabled: true,
10
+ third_party_cases: [
11
+ DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCaseCreate.new({
12
+ query: "status:error",
13
+ name: "high",
14
+ status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::HIGH,
15
+ }),
16
+ DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCaseCreate.new({
17
+ query: "status:info",
18
+ name: "low",
19
+ status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::LOW,
20
+ }),
21
+ ],
22
+ queries: [],
23
+ cases: [],
24
+ message: "This is a third party rule",
25
+ options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
26
+ detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::THIRD_PARTY,
27
+ keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ZERO_MINUTES,
28
+ max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ZERO_MINUTES,
29
+ third_party_rule_options: DatadogAPIClient::V2::SecurityMonitoringRuleThirdPartyOptions.new({
30
+ default_status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
31
+ root_queries: [
32
+ DatadogAPIClient::V2::SecurityMonitoringThirdPartyRootQuery.new({
33
+ query: "source:guardduty @details.alertType:*EC2*",
34
+ group_by_fields: [
35
+ "instance-id",
36
+ ],
37
+ }),
38
+ DatadogAPIClient::V2::SecurityMonitoringThirdPartyRootQuery.new({
39
+ query: "source:guardduty",
40
+ group_by_fields: [],
41
+ }),
42
+ ],
43
+ }),
44
+ }),
45
+ })
46
+ p api_instance.create_security_monitoring_rule(body)
@@ -0,0 +1,19 @@
1
+ # Create a suppression rule returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+
6
+ body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({
7
+ data: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateData.new({
8
+ attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes.new({
9
+ description: "This rule suppresses low-severity signals in staging environments.",
10
+ enabled: true,
11
+ expiration_date: 1703187336000,
12
+ name: "Example-Security-Monitoring",
13
+ rule_query: "type:log_detection source:cloudtrail",
14
+ suppression_query: "env:staging status:low",
15
+ }),
16
+ type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS,
17
+ }),
18
+ })
19
+ p api_instance.create_security_monitoring_suppression(body)
@@ -0,0 +1,8 @@
1
+ # Delete a suppression rule returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+
6
+ # there is a valid "suppression" in the system
7
+ SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
8
+ api_instance.delete_security_monitoring_suppression(SUPPRESSION_DATA_ID)
@@ -0,0 +1,8 @@
1
+ # Get a suppression rule returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+
6
+ # there is a valid "suppression" in the system
7
+ SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
8
+ p api_instance.get_security_monitoring_suppression(SUPPRESSION_DATA_ID)
@@ -0,0 +1,5 @@
1
+ # Get all suppression rules returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+ p api_instance.list_security_monitoring_suppressions()
@@ -0,0 +1,17 @@
1
+ # Update a suppression rule returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
+
6
+ # there is a valid "suppression" in the system
7
+ SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
8
+
9
+ body = DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateRequest.new({
10
+ data: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateData.new({
11
+ attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateAttributes.new({
12
+ suppression_query: "env:staging status:low",
13
+ }),
14
+ type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS,
15
+ }),
16
+ })
17
+ p api_instance.update_security_monitoring_suppression(SUPPRESSION_DATA_ID, body)
@@ -26,6 +26,13 @@ body = DatadogAPIClient::V2::SensitiveDataScannerRuleCreateRequest.new({
26
26
  "sensitive_data:true",
27
27
  ],
28
28
  is_enabled: true,
29
+ priority: 1,
30
+ included_keyword_configuration: DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration.new({
31
+ keywords: [
32
+ "credit card",
33
+ ],
34
+ character_count: 35,
35
+ }),
29
36
  }),
30
37
  relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
31
38
  group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
@@ -6,9 +6,6 @@ api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
6
6
  # the "scanning_group" has a "scanning_rule"
7
7
  RULE_DATA_ID = ENV["RULE_DATA_ID"]
8
8
 
9
- # there is a valid "scanning_group" in the system
10
- GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
11
-
12
9
  body = DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateRequest.new({
13
10
  meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
14
11
  data: DatadogAPIClient::V2::SensitiveDataScannerRuleUpdate.new({
@@ -24,13 +21,13 @@ body = DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateRequest.new({
24
21
  "sensitive_data:true",
25
22
  ],
26
23
  is_enabled: true,
27
- }),
28
- relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
29
- group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
30
- data: DatadogAPIClient::V2::SensitiveDataScannerGroup.new({
31
- type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
32
- id: GROUP_DATA_ID,
33
- }),
24
+ priority: 5,
25
+ included_keyword_configuration: DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration.new({
26
+ keywords: [
27
+ "credit card",
28
+ "cc",
29
+ ],
30
+ character_count: 35,
34
31
  }),
35
32
  }),
36
33
  }),
@@ -9,6 +9,12 @@ body = DatadogAPIClient::V2::UserTeamRequest.new({
9
9
  role: DatadogAPIClient::V2::UserTeamRole::ADMIN,
10
10
  }),
11
11
  relationships: DatadogAPIClient::V2::UserTeamRelationships.new({
12
+ team: DatadogAPIClient::V2::RelationshipToUserTeamTeam.new({
13
+ data: DatadogAPIClient::V2::RelationshipToUserTeamTeamData.new({
14
+ id: "d7e15d9d-d346-43da-81d8-3d9e71d9a5e9",
15
+ type: DatadogAPIClient::V2::UserTeamTeamType::TEAM,
16
+ }),
17
+ }),
12
18
  user: DatadogAPIClient::V2::RelationshipToUserTeamUser.new({
13
19
  data: DatadogAPIClient::V2::RelationshipToUserTeamUserData.new({
14
20
  id: "b8626d7e-cedd-11eb-abf5-da7ad0900001",
@@ -0,0 +1,8 @@
1
+ # Get team memberships returns "Represents a user's association to a team" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::TeamsAPI.new
5
+ opts = {
6
+ page_size: 2,
7
+ }
8
+ api_instance.get_team_memberships_with_pagination("2e06bf2c-193b-41d4-b3c2-afccc080458f", opts) { |item| puts item }
@@ -1,4 +1,4 @@
1
- # Get hourly usage for lambda traced invocations returns "OK" response
1
+ # Get hourly usage for Lambda traced invocations returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
@@ -189,7 +189,10 @@ module DatadogAPIClient
189
189
  @http_proxypass = nil
190
190
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
191
191
  @unstable_operations = {
192
- "v2.create_ci_app_pipeline_event": false,
192
+ "v2.create_open_api": false,
193
+ "v2.delete_open_api": false,
194
+ "v2.get_open_api": false,
195
+ "v2.update_open_api": false,
193
196
  "v2.get_active_billing_dimensions": false,
194
197
  "v2.get_monthly_cost_attribution": false,
195
198
  "v2.create_dora_deployment": false,
@@ -234,6 +234,7 @@ module DatadogAPIClient
234
234
  "v1.logs_category_processor" => "LogsCategoryProcessor",
235
235
  "v1.logs_category_processor_category" => "LogsCategoryProcessorCategory",
236
236
  "v1.logs_category_processor_type" => "LogsCategoryProcessorType",
237
+ "v1.logs_daily_limit_reset" => "LogsDailyLimitReset",
237
238
  "v1.logs_date_remapper" => "LogsDateRemapper",
238
239
  "v1.logs_date_remapper_type" => "LogsDateRemapperType",
239
240
  "v1.logs_exclusion" => "LogsExclusion",
@@ -474,8 +475,10 @@ module DatadogAPIClient
474
475
  "v1.slo_correction_update_request" => "SLOCorrectionUpdateRequest",
475
476
  "v1.slo_correction_update_request_attributes" => "SLOCorrectionUpdateRequestAttributes",
476
477
  "v1.slo_creator" => "SLOCreator",
478
+ "v1.slo_data_source_query_definition" => "SLODataSourceQueryDefinition",
477
479
  "v1.slo_delete_response" => "SLODeleteResponse",
478
480
  "v1.slo_error_timeframe" => "SLOErrorTimeframe",
481
+ "v1.slo_formula" => "SLOFormula",
479
482
  "v1.slo_history_metrics" => "SLOHistoryMetrics",
480
483
  "v1.slo_history_metrics_series" => "SLOHistoryMetricsSeries",
481
484
  "v1.slo_history_metrics_series_metadata" => "SLOHistoryMetricsSeriesMetadata",
@@ -498,10 +501,15 @@ module DatadogAPIClient
498
501
  "v1.slo_raw_error_budget_remaining" => "SLORawErrorBudgetRemaining",
499
502
  "v1.slo_response" => "SLOResponse",
500
503
  "v1.slo_response_data" => "SLOResponseData",
504
+ "v1.slo_sli_spec" => "SLOSliSpec",
501
505
  "v1.slo_state" => "SLOState",
502
506
  "v1.slo_status" => "SLOStatus",
503
507
  "v1.slo_threshold" => "SLOThreshold",
504
508
  "v1.slo_timeframe" => "SLOTimeframe",
509
+ "v1.slo_time_slice_comparator" => "SLOTimeSliceComparator",
510
+ "v1.slo_time_slice_condition" => "SLOTimeSliceCondition",
511
+ "v1.slo_time_slice_query" => "SLOTimeSliceQuery",
512
+ "v1.slo_time_slice_spec" => "SLOTimeSliceSpec",
505
513
  "v1.slo_type" => "SLOType",
506
514
  "v1.slo_type_numeric" => "SLOTypeNumeric",
507
515
  "v1.slo_widget_definition" => "SLOWidgetDefinition",
@@ -905,6 +913,38 @@ module DatadogAPIClient
905
913
  "v2.authn_mapping_update_data" => "AuthNMappingUpdateData",
906
914
  "v2.authn_mapping_update_relationships" => "AuthNMappingUpdateRelationships",
907
915
  "v2.authn_mapping_update_request" => "AuthNMappingUpdateRequest",
916
+ "v2.aws_cur_config" => "AwsCURConfig",
917
+ "v2.aws_cur_config_attributes" => "AwsCURConfigAttributes",
918
+ "v2.aws_cur_config_patch_data" => "AwsCURConfigPatchData",
919
+ "v2.aws_cur_config_patch_request" => "AwsCURConfigPatchRequest",
920
+ "v2.aws_cur_config_patch_request_attributes" => "AwsCURConfigPatchRequestAttributes",
921
+ "v2.aws_cur_config_patch_request_type" => "AwsCURConfigPatchRequestType",
922
+ "v2.aws_cur_config_post_data" => "AwsCURConfigPostData",
923
+ "v2.aws_cur_config_post_request" => "AwsCURConfigPostRequest",
924
+ "v2.aws_cur_config_post_request_attributes" => "AwsCURConfigPostRequestAttributes",
925
+ "v2.aws_cur_config_post_request_type" => "AwsCURConfigPostRequestType",
926
+ "v2.aws_cur_config_response" => "AwsCURConfigResponse",
927
+ "v2.aws_cur_configs_response" => "AwsCURConfigsResponse",
928
+ "v2.aws_cur_config_type" => "AwsCURConfigType",
929
+ "v2.aws_related_account" => "AWSRelatedAccount",
930
+ "v2.aws_related_account_attributes" => "AWSRelatedAccountAttributes",
931
+ "v2.aws_related_accounts_response" => "AWSRelatedAccountsResponse",
932
+ "v2.aws_related_account_type" => "AWSRelatedAccountType",
933
+ "v2.azure_uc_config" => "AzureUCConfig",
934
+ "v2.azure_uc_config_pair" => "AzureUCConfigPair",
935
+ "v2.azure_uc_config_pair_attributes" => "AzureUCConfigPairAttributes",
936
+ "v2.azure_uc_config_pairs_response" => "AzureUCConfigPairsResponse",
937
+ "v2.azure_uc_config_pair_type" => "AzureUCConfigPairType",
938
+ "v2.azure_uc_config_patch_data" => "AzureUCConfigPatchData",
939
+ "v2.azure_uc_config_patch_request" => "AzureUCConfigPatchRequest",
940
+ "v2.azure_uc_config_patch_request_attributes" => "AzureUCConfigPatchRequestAttributes",
941
+ "v2.azure_uc_config_patch_request_type" => "AzureUCConfigPatchRequestType",
942
+ "v2.azure_uc_config_post_data" => "AzureUCConfigPostData",
943
+ "v2.azure_uc_config_post_request" => "AzureUCConfigPostRequest",
944
+ "v2.azure_uc_config_post_request_attributes" => "AzureUCConfigPostRequestAttributes",
945
+ "v2.azure_uc_config_post_request_type" => "AzureUCConfigPostRequestType",
946
+ "v2.azure_uc_configs_response" => "AzureUCConfigsResponse",
947
+ "v2.bill_config" => "BillConfig",
908
948
  "v2.bulk_mute_findings_request" => "BulkMuteFindingsRequest",
909
949
  "v2.bulk_mute_findings_request_attributes" => "BulkMuteFindingsRequestAttributes",
910
950
  "v2.bulk_mute_findings_request_data" => "BulkMuteFindingsRequestData",
@@ -988,6 +1028,10 @@ module DatadogAPIClient
988
1028
  "v2.cloud_configuration_rule_create_payload" => "CloudConfigurationRuleCreatePayload",
989
1029
  "v2.cloud_configuration_rule_options" => "CloudConfigurationRuleOptions",
990
1030
  "v2.cloud_configuration_rule_type" => "CloudConfigurationRuleType",
1031
+ "v2.cloud_cost_activity" => "CloudCostActivity",
1032
+ "v2.cloud_cost_activity_attributes" => "CloudCostActivityAttributes",
1033
+ "v2.cloud_cost_activity_response" => "CloudCostActivityResponse",
1034
+ "v2.cloud_cost_activity_type" => "CloudCostActivityType",
991
1035
  "v2.cloudflare_account_create_request" => "CloudflareAccountCreateRequest",
992
1036
  "v2.cloudflare_account_create_request_attributes" => "CloudflareAccountCreateRequestAttributes",
993
1037
  "v2.cloudflare_account_create_request_data" => "CloudflareAccountCreateRequestData",
@@ -1071,6 +1115,9 @@ module DatadogAPIClient
1071
1115
  "v2.cost_by_org_attributes" => "CostByOrgAttributes",
1072
1116
  "v2.cost_by_org_response" => "CostByOrgResponse",
1073
1117
  "v2.cost_by_org_type" => "CostByOrgType",
1118
+ "v2.create_open_api_response" => "CreateOpenAPIResponse",
1119
+ "v2.create_open_api_response_attributes" => "CreateOpenAPIResponseAttributes",
1120
+ "v2.create_open_api_response_data" => "CreateOpenAPIResponseData",
1074
1121
  "v2.create_rule_request" => "CreateRuleRequest",
1075
1122
  "v2.create_rule_request_data" => "CreateRuleRequestData",
1076
1123
  "v2.create_rule_response" => "CreateRuleResponse",
@@ -1548,6 +1595,8 @@ module DatadogAPIClient
1548
1595
  "v2.on_demand_concurrency_cap_attributes" => "OnDemandConcurrencyCapAttributes",
1549
1596
  "v2.on_demand_concurrency_cap_response" => "OnDemandConcurrencyCapResponse",
1550
1597
  "v2.on_demand_concurrency_cap_type" => "OnDemandConcurrencyCapType",
1598
+ "v2.open_api_endpoint" => "OpenAPIEndpoint",
1599
+ "v2.open_api_file" => "OpenAPIFile",
1551
1600
  "v2.opsgenie_service_create_attributes" => "OpsgenieServiceCreateAttributes",
1552
1601
  "v2.opsgenie_service_create_data" => "OpsgenieServiceCreateData",
1553
1602
  "v2.opsgenie_service_create_request" => "OpsgenieServiceCreateRequest",
@@ -1648,6 +1697,8 @@ module DatadogAPIClient
1648
1697
  "v2.relationship_to_users" => "RelationshipToUsers",
1649
1698
  "v2.relationship_to_user_team_permission" => "RelationshipToUserTeamPermission",
1650
1699
  "v2.relationship_to_user_team_permission_data" => "RelationshipToUserTeamPermissionData",
1700
+ "v2.relationship_to_user_team_team" => "RelationshipToUserTeamTeam",
1701
+ "v2.relationship_to_user_team_team_data" => "RelationshipToUserTeamTeamData",
1651
1702
  "v2.relationship_to_user_team_user" => "RelationshipToUserTeamUser",
1652
1703
  "v2.relationship_to_user_team_user_data" => "RelationshipToUserTeamUserData",
1653
1704
  "v2.reorder_retention_filters_request" => "ReorderRetentionFiltersRequest",
@@ -1796,6 +1847,7 @@ module DatadogAPIClient
1796
1847
  "v2.security_monitoring_rule_query_aggregation" => "SecurityMonitoringRuleQueryAggregation",
1797
1848
  "v2.security_monitoring_rule_response" => "SecurityMonitoringRuleResponse",
1798
1849
  "v2.security_monitoring_rule_severity" => "SecurityMonitoringRuleSeverity",
1850
+ "v2.security_monitoring_rule_third_party_options" => "SecurityMonitoringRuleThirdPartyOptions",
1799
1851
  "v2.security_monitoring_rule_type_create" => "SecurityMonitoringRuleTypeCreate",
1800
1852
  "v2.security_monitoring_rule_type_read" => "SecurityMonitoringRuleTypeRead",
1801
1853
  "v2.security_monitoring_rule_update_payload" => "SecurityMonitoringRuleUpdatePayload",
@@ -1834,7 +1886,22 @@ module DatadogAPIClient
1834
1886
  "v2.security_monitoring_standard_rule_create_payload" => "SecurityMonitoringStandardRuleCreatePayload",
1835
1887
  "v2.security_monitoring_standard_rule_query" => "SecurityMonitoringStandardRuleQuery",
1836
1888
  "v2.security_monitoring_standard_rule_response" => "SecurityMonitoringStandardRuleResponse",
1889
+ "v2.security_monitoring_suppression" => "SecurityMonitoringSuppression",
1890
+ "v2.security_monitoring_suppression_attributes" => "SecurityMonitoringSuppressionAttributes",
1891
+ "v2.security_monitoring_suppression_create_attributes" => "SecurityMonitoringSuppressionCreateAttributes",
1892
+ "v2.security_monitoring_suppression_create_data" => "SecurityMonitoringSuppressionCreateData",
1893
+ "v2.security_monitoring_suppression_create_request" => "SecurityMonitoringSuppressionCreateRequest",
1894
+ "v2.security_monitoring_suppression_response" => "SecurityMonitoringSuppressionResponse",
1895
+ "v2.security_monitoring_suppressions_response" => "SecurityMonitoringSuppressionsResponse",
1896
+ "v2.security_monitoring_suppression_type" => "SecurityMonitoringSuppressionType",
1897
+ "v2.security_monitoring_suppression_update_attributes" => "SecurityMonitoringSuppressionUpdateAttributes",
1898
+ "v2.security_monitoring_suppression_update_data" => "SecurityMonitoringSuppressionUpdateData",
1899
+ "v2.security_monitoring_suppression_update_request" => "SecurityMonitoringSuppressionUpdateRequest",
1900
+ "v2.security_monitoring_third_party_root_query" => "SecurityMonitoringThirdPartyRootQuery",
1901
+ "v2.security_monitoring_third_party_rule_case" => "SecurityMonitoringThirdPartyRuleCase",
1902
+ "v2.security_monitoring_third_party_rule_case_create" => "SecurityMonitoringThirdPartyRuleCaseCreate",
1837
1903
  "v2.security_monitoring_triage_user" => "SecurityMonitoringTriageUser",
1904
+ "v2.security_monitoring_user" => "SecurityMonitoringUser",
1838
1905
  "v2.sensitive_data_scanner_config_request" => "SensitiveDataScannerConfigRequest",
1839
1906
  "v2.sensitive_data_scanner_configuration" => "SensitiveDataScannerConfiguration",
1840
1907
  "v2.sensitive_data_scanner_configuration_data" => "SensitiveDataScannerConfigurationData",
@@ -1862,6 +1929,7 @@ module DatadogAPIClient
1862
1929
  "v2.sensitive_data_scanner_group_update" => "SensitiveDataScannerGroupUpdate",
1863
1930
  "v2.sensitive_data_scanner_group_update_request" => "SensitiveDataScannerGroupUpdateRequest",
1864
1931
  "v2.sensitive_data_scanner_group_update_response" => "SensitiveDataScannerGroupUpdateResponse",
1932
+ "v2.sensitive_data_scanner_included_keyword_configuration" => "SensitiveDataScannerIncludedKeywordConfiguration",
1865
1933
  "v2.sensitive_data_scanner_meta" => "SensitiveDataScannerMeta",
1866
1934
  "v2.sensitive_data_scanner_meta_version_only" => "SensitiveDataScannerMetaVersionOnly",
1867
1935
  "v2.sensitive_data_scanner_product" => "SensitiveDataScannerProduct",
@@ -2061,6 +2129,9 @@ module DatadogAPIClient
2061
2129
  "v2.timeseries_response_attributes" => "TimeseriesResponseAttributes",
2062
2130
  "v2.timeseries_response_series" => "TimeseriesResponseSeries",
2063
2131
  "v2.unit" => "Unit",
2132
+ "v2.update_open_api_response" => "UpdateOpenAPIResponse",
2133
+ "v2.update_open_api_response_attributes" => "UpdateOpenAPIResponseAttributes",
2134
+ "v2.update_open_api_response_data" => "UpdateOpenAPIResponseData",
2064
2135
  "v2.usage_application_security_monitoring_response" => "UsageApplicationSecurityMonitoringResponse",
2065
2136
  "v2.usage_attributes_object" => "UsageAttributesObject",
2066
2137
  "v2.usage_data_object" => "UsageDataObject",
@@ -2098,6 +2169,7 @@ module DatadogAPIClient
2098
2169
  "v2.user_team_response" => "UserTeamResponse",
2099
2170
  "v2.user_team_role" => "UserTeamRole",
2100
2171
  "v2.user_teams_response" => "UserTeamsResponse",
2172
+ "v2.user_team_team_type" => "UserTeamTeamType",
2101
2173
  "v2.user_team_type" => "UserTeamType",
2102
2174
  "v2.user_team_update" => "UserTeamUpdate",
2103
2175
  "v2.user_team_update_request" => "UserTeamUpdateRequest",
@@ -2138,11 +2210,13 @@ module DatadogAPIClient
2138
2210
  "v1.usage_metering_api" => "UsageMeteringAPI",
2139
2211
  "v1.users_api" => "UsersAPI",
2140
2212
  "v1.webhooks_integration_api" => "WebhooksIntegrationAPI",
2213
+ "v2.api_management_api" => "APIManagementAPI",
2141
2214
  "v2.apm_retention_filters_api" => "APMRetentionFiltersAPI",
2142
2215
  "v2.audit_api" => "AuditAPI",
2143
2216
  "v2.authn_mappings_api" => "AuthNMappingsAPI",
2144
2217
  "v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
2145
2218
  "v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
2219
+ "v2.cloud_cost_management_api" => "CloudCostManagementAPI",
2146
2220
  "v2.cloud_workload_security_api" => "CloudWorkloadSecurityAPI",
2147
2221
  "v2.cloudflare_integration_api" => "CloudflareIntegrationAPI",
2148
2222
  "v2.confluent_cloud_api" => "ConfluentCloudAPI",
@@ -33,12 +33,15 @@ module DatadogAPIClient::V1
33
33
 
34
34
  # Cancel a downtime.
35
35
  #
36
- # Cancel a downtime.
36
+ # Cancel a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
37
+ #
38
+ # @deprecated This API is deprecated.
37
39
  #
38
40
  # @param downtime_id [Integer] ID of the downtime to cancel.
39
41
  # @param opts [Hash] the optional parameters
40
42
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
43
  def cancel_downtime_with_http_info(downtime_id, opts = {})
44
+ warn "[DEPRECATION] `CancelDowntime` is deprecated."
42
45
 
43
46
  if @api_client.config.debugging
44
47
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtime ...'
@@ -98,12 +101,15 @@ module DatadogAPIClient::V1
98
101
 
99
102
  # Cancel downtimes by scope.
100
103
  #
101
- # Delete all downtimes that match the scope of `X`.
104
+ # Delete all downtimes that match the scope of `X`. **Note:** This only interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes.
105
+ #
106
+ # @deprecated This API is deprecated.
102
107
  #
103
108
  # @param body [CancelDowntimesByScopeRequest] Scope to cancel downtimes for.
104
109
  # @param opts [Hash] the optional parameters
105
110
  # @return [Array<(CanceledDowntimesIds, Integer, Hash)>] CanceledDowntimesIds data, response status code and response headers
106
111
  def cancel_downtimes_by_scope_with_http_info(body, opts = {})
112
+ warn "[DEPRECATION] `CancelDowntimesByScope` is deprecated."
107
113
 
108
114
  if @api_client.config.debugging
109
115
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtimes_by_scope ...'
@@ -165,12 +171,15 @@ module DatadogAPIClient::V1
165
171
 
166
172
  # Schedule a downtime.
167
173
  #
168
- # Schedule a downtime.
174
+ # Schedule a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
175
+ #
176
+ # @deprecated This API is deprecated.
169
177
  #
170
178
  # @param body [Downtime] Schedule a downtime request body.
171
179
  # @param opts [Hash] the optional parameters
172
180
  # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
173
181
  def create_downtime_with_http_info(body, opts = {})
182
+ warn "[DEPRECATION] `CreateDowntime` is deprecated."
174
183
 
175
184
  if @api_client.config.debugging
176
185
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.create_downtime ...'
@@ -232,12 +241,15 @@ module DatadogAPIClient::V1
232
241
 
233
242
  # Get a downtime.
234
243
  #
235
- # Get downtime detail by `downtime_id`.
244
+ # Get downtime detail by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
245
+ #
246
+ # @deprecated This API is deprecated.
236
247
  #
237
248
  # @param downtime_id [Integer] ID of the downtime to fetch.
238
249
  # @param opts [Hash] the optional parameters
239
250
  # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
240
251
  def get_downtime_with_http_info(downtime_id, opts = {})
252
+ warn "[DEPRECATION] `GetDowntime` is deprecated."
241
253
 
242
254
  if @api_client.config.debugging
243
255
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.get_downtime ...'
@@ -297,13 +309,16 @@ module DatadogAPIClient::V1
297
309
 
298
310
  # Get all downtimes.
299
311
  #
300
- # Get all scheduled downtimes.
312
+ # Get all scheduled downtimes. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
313
+ #
314
+ # @deprecated This API is deprecated.
301
315
  #
302
316
  # @param opts [Hash] the optional parameters
303
317
  # @option opts [Boolean] :current_only Only return downtimes that are active when the request is made.
304
318
  # @option opts [Boolean] :with_creator Return creator information.
305
319
  # @return [Array<(Array<Downtime>, Integer, Hash)>] Array<Downtime> data, response status code and response headers
306
320
  def list_downtimes_with_http_info(opts = {})
321
+ warn "[DEPRECATION] `ListDowntimes` is deprecated."
307
322
 
308
323
  if @api_client.config.debugging
309
324
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.list_downtimes ...'
@@ -361,12 +376,15 @@ module DatadogAPIClient::V1
361
376
 
362
377
  # Get active downtimes for a monitor.
363
378
  #
364
- # Get all active downtimes for the specified monitor.
379
+ # Get all active v1 downtimes for the specified monitor. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
380
+ #
381
+ # @deprecated This API is deprecated.
365
382
  #
366
383
  # @param monitor_id [Integer] The id of the monitor
367
384
  # @param opts [Hash] the optional parameters
368
385
  # @return [Array<(Array<Downtime>, Integer, Hash)>] Array<Downtime> data, response status code and response headers
369
386
  def list_monitor_downtimes_with_http_info(monitor_id, opts = {})
387
+ warn "[DEPRECATION] `ListMonitorDowntimes` is deprecated."
370
388
 
371
389
  if @api_client.config.debugging
372
390
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.list_monitor_downtimes ...'
@@ -426,13 +444,16 @@ module DatadogAPIClient::V1
426
444
 
427
445
  # Update a downtime.
428
446
  #
429
- # Update a single downtime by `downtime_id`.
447
+ # Update a single downtime by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
448
+ #
449
+ # @deprecated This API is deprecated.
430
450
  #
431
451
  # @param downtime_id [Integer] ID of the downtime to update.
432
452
  # @param body [Downtime] Update a downtime request body.
433
453
  # @param opts [Hash] the optional parameters
434
454
  # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
435
455
  def update_downtime_with_http_info(downtime_id, body, opts = {})
456
+ warn "[DEPRECATION] `UpdateDowntime` is deprecated."
436
457
 
437
458
  if @api_client.config.debugging
438
459
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.update_downtime ...'
@@ -121,7 +121,7 @@ module DatadogAPIClient::V1
121
121
  # - process: `service check`
122
122
  # - rum: `rum alert`
123
123
  # - SLO: `slo alert`
124
- # - watchdog: `event alert`
124
+ # - watchdog: `event-v2 alert`
125
125
  # - event-v2: `event-v2 alert`
126
126
  # - audit: `audit alert`
127
127
  # - error-tracking: `error-tracking alert`
@@ -413,7 +413,7 @@ module DatadogAPIClient::V1
413
413
  form_params['idp_file'] = idp_file
414
414
 
415
415
  # http body (model)
416
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
416
+ post_body = opts[:debug_body]
417
417
 
418
418
  # return_type
419
419
  return_type = opts[:debug_return_type] || 'IdpResponse'
@@ -1530,7 +1530,7 @@ module DatadogAPIClient::V1
1530
1530
  return data, status_code, headers
1531
1531
  end
1532
1532
 
1533
- # Get hourly usage for lambda.
1533
+ # Get hourly usage for Lambda.
1534
1534
  #
1535
1535
  # @see #get_usage_lambda_with_http_info
1536
1536
  def get_usage_lambda(start_hr, opts = {})
@@ -1538,9 +1538,9 @@ module DatadogAPIClient::V1
1538
1538
  data
1539
1539
  end
1540
1540
 
1541
- # Get hourly usage for lambda.
1541
+ # Get hourly usage for Lambda.
1542
1542
  #
1543
- # Get hourly usage for lambda.
1543
+ # Get hourly usage for Lambda.
1544
1544
  # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1545
1545
  #
1546
1546
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
@@ -37,7 +37,9 @@ module DatadogAPIClient::V1
37
37
  # ID of the dashboard.
38
38
  attr_accessor :id
39
39
 
40
- # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization.
40
+ # Whether this dashboard is read-only. If True, only the author and admins can make changes to it.
41
+ #
42
+ # This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards.
41
43
  attr_accessor :is_read_only
42
44
 
43
45
  # Layout type of the dashboard.
@@ -55,6 +57,8 @@ module DatadogAPIClient::V1
55
57
  attr_accessor :reflow_type
56
58
 
57
59
  # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard.
60
+ #
61
+ # This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards.
58
62
  attr_accessor :restricted_roles
59
63
 
60
64
  # List of team names representing ownership of a dashboard.
@@ -34,6 +34,8 @@ module DatadogAPIClient::V1
34
34
  attr_accessor :id
35
35
 
36
36
  # Whether this dashboard is read-only. If True, only the author and admins can make changes to it.
37
+ #
38
+ # This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards.
37
39
  attr_accessor :is_read_only
38
40
 
39
41
  # Layout type of the dashboard.