datadog_api_client 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/schemas/v1/openapi.yaml +282 -900
  4. data/.generator/schemas/v2/openapi.yaml +343 -672
  5. data/.generator/src/generator/formatter.py +1 -1
  6. data/.github/workflows/test.yml +1 -1
  7. data/.github/workflows/test_integration.yml +5 -0
  8. data/CHANGELOG.md +23 -0
  9. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
  10. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
  11. data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
  12. data/examples/v1/monitors/ValidateMonitor.rb +1 -0
  13. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
  14. data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
  15. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
  17. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
  18. data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
  19. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  20. data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
  21. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
  22. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
  23. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
  24. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
  25. data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
  26. data/examples/v2/roles/UpdateRole.rb +13 -0
  27. data/examples/v2/rum/CreateRUMApplication.rb +15 -0
  28. data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
  29. data/examples/v2/rum/GetRUMApplication.rb +8 -0
  30. data/examples/v2/rum/GetRUMApplications.rb +5 -0
  31. data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
  32. data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
  33. data/lib/datadog_api_client/configuration.rb +0 -5
  34. data/lib/datadog_api_client/inflector.rb +16 -0
  35. data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
  36. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
  37. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  38. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  39. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  40. data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
  41. data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
  42. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
  43. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  45. data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
  46. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
  47. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
  48. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
  49. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
  50. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
  51. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
  52. data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
  53. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
  54. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  55. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  56. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  57. data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
  58. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  59. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  60. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  61. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  62. data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
  63. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  64. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  65. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  66. data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
  67. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  68. data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
  69. data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
  70. data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
  71. data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
  72. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
  73. data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
  74. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
  75. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
  76. data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
  77. data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
  78. data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
  79. data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
  80. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
  81. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
  82. data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
  83. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
  84. data/lib/datadog_api_client/version.rb +1 -1
  85. metadata +29 -2
@@ -28,6 +28,9 @@ module DatadogAPIClient::V1
28
28
  # The number of Cloud Security Posture Management Azure app services hosts during a given hour.
29
29
  attr_accessor :aas_host_count
30
30
 
31
+ # The number of Cloud Security Posture Management AWS hosts during a given hour.
32
+ attr_accessor :aws_host_count
33
+
31
34
  # The number of Cloud Security Posture Management Azure hosts during a given hour.
32
35
  attr_accessor :azure_host_count
33
36
 
@@ -54,6 +57,7 @@ module DatadogAPIClient::V1
54
57
  def self.attribute_map
55
58
  {
56
59
  :'aas_host_count' => :'aas_host_count',
60
+ :'aws_host_count' => :'aws_host_count',
57
61
  :'azure_host_count' => :'azure_host_count',
58
62
  :'compliance_host_count' => :'compliance_host_count',
59
63
  :'container_count' => :'container_count',
@@ -75,6 +79,7 @@ module DatadogAPIClient::V1
75
79
  def self.openapi_types
76
80
  {
77
81
  :'aas_host_count' => :'Float',
82
+ :'aws_host_count' => :'Float',
78
83
  :'azure_host_count' => :'Float',
79
84
  :'compliance_host_count' => :'Float',
80
85
  :'container_count' => :'Float',
@@ -90,6 +95,7 @@ module DatadogAPIClient::V1
90
95
  def self.openapi_nullable
91
96
  Set.new([
92
97
  :'aas_host_count',
98
+ :'aws_host_count',
93
99
  :'azure_host_count',
94
100
  :'compliance_host_count',
95
101
  :'container_count',
@@ -117,6 +123,10 @@ module DatadogAPIClient::V1
117
123
  self.aas_host_count = attributes[:'aas_host_count']
118
124
  end
119
125
 
126
+ if attributes.key?(:'aws_host_count')
127
+ self.aws_host_count = attributes[:'aws_host_count']
128
+ end
129
+
120
130
  if attributes.key?(:'azure_host_count')
121
131
  self.azure_host_count = attributes[:'azure_host_count']
122
132
  end
@@ -160,6 +170,7 @@ module DatadogAPIClient::V1
160
170
  return true if self.equal?(o)
161
171
  self.class == o.class &&
162
172
  aas_host_count == o.aas_host_count &&
173
+ aws_host_count == o.aws_host_count &&
163
174
  azure_host_count == o.azure_host_count &&
164
175
  compliance_host_count == o.compliance_host_count &&
165
176
  container_count == o.container_count &&
@@ -180,7 +191,7 @@ module DatadogAPIClient::V1
180
191
  # @return [Integer] Hash code
181
192
  # @!visibility private
182
193
  def hash
183
- [aas_host_count, azure_host_count, compliance_host_count, container_count, host_count, hour, org_name, public_id].hash
194
+ [aas_host_count, aws_host_count, azure_host_count, compliance_host_count, container_count, host_count, hour, org_name, public_id].hash
184
195
  end
185
196
  end
186
197
  end
@@ -85,6 +85,9 @@ module DatadogAPIClient::V1
85
85
  # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations.
86
86
  attr_accessor :cspm_aas_host_top99p
87
87
 
88
+ # Shows the 99th percentile of all Cloud Security Posture Management AWS hosts over all hours in the current date for all organizations.
89
+ attr_accessor :cspm_aws_host_top99p
90
+
88
91
  # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations.
89
92
  attr_accessor :cspm_azure_host_top99p
90
93
 
@@ -241,6 +244,7 @@ module DatadogAPIClient::V1
241
244
  :'container_avg' => :'container_avg',
242
245
  :'container_hwm' => :'container_hwm',
243
246
  :'cspm_aas_host_top99p' => :'cspm_aas_host_top99p',
247
+ :'cspm_aws_host_top99p' => :'cspm_aws_host_top99p',
244
248
  :'cspm_azure_host_top99p' => :'cspm_azure_host_top99p',
245
249
  :'cspm_container_avg' => :'cspm_container_avg',
246
250
  :'cspm_container_hwm' => :'cspm_container_hwm',
@@ -318,6 +322,7 @@ module DatadogAPIClient::V1
318
322
  :'container_avg' => :'Integer',
319
323
  :'container_hwm' => :'Integer',
320
324
  :'cspm_aas_host_top99p' => :'Integer',
325
+ :'cspm_aws_host_top99p' => :'Integer',
321
326
  :'cspm_azure_host_top99p' => :'Integer',
322
327
  :'cspm_container_avg' => :'Integer',
323
328
  :'cspm_container_hwm' => :'Integer',
@@ -468,6 +473,10 @@ module DatadogAPIClient::V1
468
473
  self.cspm_aas_host_top99p = attributes[:'cspm_aas_host_top99p']
469
474
  end
470
475
 
476
+ if attributes.key?(:'cspm_aws_host_top99p')
477
+ self.cspm_aws_host_top99p = attributes[:'cspm_aws_host_top99p']
478
+ end
479
+
471
480
  if attributes.key?(:'cspm_azure_host_top99p')
472
481
  self.cspm_azure_host_top99p = attributes[:'cspm_azure_host_top99p']
473
482
  end
@@ -680,6 +689,7 @@ module DatadogAPIClient::V1
680
689
  container_avg == o.container_avg &&
681
690
  container_hwm == o.container_hwm &&
682
691
  cspm_aas_host_top99p == o.cspm_aas_host_top99p &&
692
+ cspm_aws_host_top99p == o.cspm_aws_host_top99p &&
683
693
  cspm_azure_host_top99p == o.cspm_azure_host_top99p &&
684
694
  cspm_container_avg == o.cspm_container_avg &&
685
695
  cspm_container_hwm == o.cspm_container_hwm &&
@@ -737,7 +747,7 @@ module DatadogAPIClient::V1
737
747
  # @return [Integer] Hash code
738
748
  # @!visibility private
739
749
  def hash
740
- [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, orgs, profiling_host_top99p, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
750
+ [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, orgs, profiling_host_top99p, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
741
751
  end
742
752
  end
743
753
  end
@@ -85,6 +85,9 @@ module DatadogAPIClient::V1
85
85
  # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org.
86
86
  attr_accessor :cspm_aas_host_top99p
87
87
 
88
+ # Shows the 99th percentile of all Cloud Security Posture Management AWS hosts over all hours in the current date for the given org.
89
+ attr_accessor :cspm_aws_host_top99p
90
+
88
91
  # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org.
89
92
  attr_accessor :cspm_azure_host_top99p
90
93
 
@@ -187,6 +190,9 @@ module DatadogAPIClient::V1
187
190
  # The organization public id.
188
191
  attr_accessor :public_id
189
192
 
193
+ # The region of the organization.
194
+ attr_accessor :region
195
+
190
196
  # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org.
191
197
  attr_accessor :rum_browser_and_mobile_session_count
192
198
 
@@ -244,6 +250,7 @@ module DatadogAPIClient::V1
244
250
  :'container_avg' => :'container_avg',
245
251
  :'container_hwm' => :'container_hwm',
246
252
  :'cspm_aas_host_top99p' => :'cspm_aas_host_top99p',
253
+ :'cspm_aws_host_top99p' => :'cspm_aws_host_top99p',
247
254
  :'cspm_azure_host_top99p' => :'cspm_azure_host_top99p',
248
255
  :'cspm_container_avg' => :'cspm_container_avg',
249
256
  :'cspm_container_hwm' => :'cspm_container_hwm',
@@ -278,6 +285,7 @@ module DatadogAPIClient::V1
278
285
  :'opentelemetry_host_top99p' => :'opentelemetry_host_top99p',
279
286
  :'profiling_host_top99p' => :'profiling_host_top99p',
280
287
  :'public_id' => :'public_id',
288
+ :'region' => :'region',
281
289
  :'rum_browser_and_mobile_session_count' => :'rum_browser_and_mobile_session_count',
282
290
  :'rum_session_count_sum' => :'rum_session_count_sum',
283
291
  :'rum_total_session_count_sum' => :'rum_total_session_count_sum',
@@ -322,6 +330,7 @@ module DatadogAPIClient::V1
322
330
  :'container_avg' => :'Integer',
323
331
  :'container_hwm' => :'Integer',
324
332
  :'cspm_aas_host_top99p' => :'Integer',
333
+ :'cspm_aws_host_top99p' => :'Integer',
325
334
  :'cspm_azure_host_top99p' => :'Integer',
326
335
  :'cspm_container_avg' => :'Integer',
327
336
  :'cspm_container_hwm' => :'Integer',
@@ -356,6 +365,7 @@ module DatadogAPIClient::V1
356
365
  :'opentelemetry_host_top99p' => :'Integer',
357
366
  :'profiling_host_top99p' => :'Integer',
358
367
  :'public_id' => :'String',
368
+ :'region' => :'String',
359
369
  :'rum_browser_and_mobile_session_count' => :'Integer',
360
370
  :'rum_session_count_sum' => :'Integer',
361
371
  :'rum_total_session_count_sum' => :'Integer',
@@ -473,6 +483,10 @@ module DatadogAPIClient::V1
473
483
  self.cspm_aas_host_top99p = attributes[:'cspm_aas_host_top99p']
474
484
  end
475
485
 
486
+ if attributes.key?(:'cspm_aws_host_top99p')
487
+ self.cspm_aws_host_top99p = attributes[:'cspm_aws_host_top99p']
488
+ end
489
+
476
490
  if attributes.key?(:'cspm_azure_host_top99p')
477
491
  self.cspm_azure_host_top99p = attributes[:'cspm_azure_host_top99p']
478
492
  end
@@ -609,6 +623,10 @@ module DatadogAPIClient::V1
609
623
  self.public_id = attributes[:'public_id']
610
624
  end
611
625
 
626
+ if attributes.key?(:'region')
627
+ self.region = attributes[:'region']
628
+ end
629
+
612
630
  if attributes.key?(:'rum_browser_and_mobile_session_count')
613
631
  self.rum_browser_and_mobile_session_count = attributes[:'rum_browser_and_mobile_session_count']
614
632
  end
@@ -687,6 +705,7 @@ module DatadogAPIClient::V1
687
705
  container_avg == o.container_avg &&
688
706
  container_hwm == o.container_hwm &&
689
707
  cspm_aas_host_top99p == o.cspm_aas_host_top99p &&
708
+ cspm_aws_host_top99p == o.cspm_aws_host_top99p &&
690
709
  cspm_azure_host_top99p == o.cspm_azure_host_top99p &&
691
710
  cspm_container_avg == o.cspm_container_avg &&
692
711
  cspm_container_hwm == o.cspm_container_hwm &&
@@ -721,6 +740,7 @@ module DatadogAPIClient::V1
721
740
  opentelemetry_host_top99p == o.opentelemetry_host_top99p &&
722
741
  profiling_host_top99p == o.profiling_host_top99p &&
723
742
  public_id == o.public_id &&
743
+ region == o.region &&
724
744
  rum_browser_and_mobile_session_count == o.rum_browser_and_mobile_session_count &&
725
745
  rum_session_count_sum == o.rum_session_count_sum &&
726
746
  rum_total_session_count_sum == o.rum_total_session_count_sum &&
@@ -745,7 +765,7 @@ module DatadogAPIClient::V1
745
765
  # @return [Integer] Hash code
746
766
  # @!visibility private
747
767
  def hash
748
- [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
768
+ [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, region, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
749
769
  end
750
770
  end
751
771
  end
@@ -88,6 +88,9 @@ module DatadogAPIClient::V1
88
88
  # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations.
89
89
  attr_accessor :cspm_aas_host_top99p_sum
90
90
 
91
+ # Shows the 99th percentile of all Cloud Security Posture Management AWS hosts over all hours in the current months for all organizations.
92
+ attr_accessor :cspm_aws_host_top99p_sum
93
+
91
94
  # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations.
92
95
  attr_accessor :cspm_azure_host_top99p_sum
93
96
 
@@ -269,6 +272,7 @@ module DatadogAPIClient::V1
269
272
  :'container_avg_sum' => :'container_avg_sum',
270
273
  :'container_hwm_sum' => :'container_hwm_sum',
271
274
  :'cspm_aas_host_top99p_sum' => :'cspm_aas_host_top99p_sum',
275
+ :'cspm_aws_host_top99p_sum' => :'cspm_aws_host_top99p_sum',
272
276
  :'cspm_azure_host_top99p_sum' => :'cspm_azure_host_top99p_sum',
273
277
  :'cspm_container_avg_sum' => :'cspm_container_avg_sum',
274
278
  :'cspm_container_hwm_sum' => :'cspm_container_hwm_sum',
@@ -355,6 +359,7 @@ module DatadogAPIClient::V1
355
359
  :'container_avg_sum' => :'Integer',
356
360
  :'container_hwm_sum' => :'Integer',
357
361
  :'cspm_aas_host_top99p_sum' => :'Integer',
362
+ :'cspm_aws_host_top99p_sum' => :'Integer',
358
363
  :'cspm_azure_host_top99p_sum' => :'Integer',
359
364
  :'cspm_container_avg_sum' => :'Integer',
360
365
  :'cspm_container_hwm_sum' => :'Integer',
@@ -517,6 +522,10 @@ module DatadogAPIClient::V1
517
522
  self.cspm_aas_host_top99p_sum = attributes[:'cspm_aas_host_top99p_sum']
518
523
  end
519
524
 
525
+ if attributes.key?(:'cspm_aws_host_top99p_sum')
526
+ self.cspm_aws_host_top99p_sum = attributes[:'cspm_aws_host_top99p_sum']
527
+ end
528
+
520
529
  if attributes.key?(:'cspm_azure_host_top99p_sum')
521
530
  self.cspm_azure_host_top99p_sum = attributes[:'cspm_azure_host_top99p_sum']
522
531
  end
@@ -762,6 +771,7 @@ module DatadogAPIClient::V1
762
771
  container_avg_sum == o.container_avg_sum &&
763
772
  container_hwm_sum == o.container_hwm_sum &&
764
773
  cspm_aas_host_top99p_sum == o.cspm_aas_host_top99p_sum &&
774
+ cspm_aws_host_top99p_sum == o.cspm_aws_host_top99p_sum &&
765
775
  cspm_azure_host_top99p_sum == o.cspm_azure_host_top99p_sum &&
766
776
  cspm_container_avg_sum == o.cspm_container_avg_sum &&
767
777
  cspm_container_hwm_sum == o.cspm_container_hwm_sum &&
@@ -827,7 +837,7 @@ module DatadogAPIClient::V1
827
837
  # @return [Integer] Hash code
828
838
  # @!visibility private
829
839
  def hash
830
- [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
840
+ [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
831
841
  end
832
842
  end
833
843
  end
@@ -36,5 +36,7 @@ module DatadogAPIClient::V1
36
36
  TAGS_DESCENDING = "tags,desc".freeze
37
37
  TRIGGERED_ASCENDING = "triggered,asc".freeze
38
38
  TRIGGERED_DESCENDING = "triggered,desc".freeze
39
+ PRIORITY_ASCENDING = "priority,asc".freeze
40
+ PRIORITY_DESCENDING = "priority,desc".freeze
39
41
  end
40
42
  end
@@ -184,7 +184,7 @@ module DatadogAPIClient::V2
184
184
  return_type = opts[:debug_return_type] || 'EventsListResponse'
185
185
 
186
186
  # auth_names
187
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
187
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
188
188
 
189
189
  new_options = opts.merge(
190
190
  :operation => :search_events,
@@ -340,7 +340,7 @@ module DatadogAPIClient::V2
340
340
  if @api_client.config.debugging
341
341
  @api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...'
342
342
  end
343
- allowable_values = ['gzip', 'deflate']
343
+ allowable_values = ['identity', 'gzip', 'deflate']
344
344
  if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding'])
345
345
  fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}"
346
346
  end
@@ -687,7 +687,7 @@ module DatadogAPIClient::V2
687
687
  if @api_client.config.debugging
688
688
  @api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...'
689
689
  end
690
- allowable_values = ['deflate']
690
+ allowable_values = ['deflate', 'zstd1', 'gzip']
691
691
  if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding'])
692
692
  fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}"
693
693
  end
@@ -90,6 +90,263 @@ module DatadogAPIClient::V2
90
90
  return data, status_code, headers
91
91
  end
92
92
 
93
+ # Create a new RUM application.
94
+ #
95
+ # @see #create_rum_application_with_http_info
96
+ def create_rum_application(body, opts = {})
97
+ data, _status_code, _headers = create_rum_application_with_http_info(body, opts)
98
+ data
99
+ end
100
+
101
+ # Create a new RUM application.
102
+ #
103
+ # Create a new RUM application in your organization.
104
+ #
105
+ # @param body [RUMApplicationCreateRequest]
106
+ # @param opts [Hash] the optional parameters
107
+ # @return [Array<(RUMApplicationResponse, Integer, Hash)>] RUMApplicationResponse data, response status code and response headers
108
+ def create_rum_application_with_http_info(body, opts = {})
109
+
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: RUMAPI.create_rum_application ...'
112
+ end
113
+ # verify the required parameter 'body' is set
114
+ if @api_client.config.client_side_validation && body.nil?
115
+ fail ArgumentError, "Missing the required parameter 'body' when calling RUMAPI.create_rum_application"
116
+ end
117
+ # resource path
118
+ local_var_path = '/api/v2/rum/applications'
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(['application/json'])
127
+ # HTTP header 'Content-Type'
128
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
129
+
130
+ # form parameters
131
+ form_params = opts[:form_params] || {}
132
+
133
+ # http body (model)
134
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
135
+
136
+ # return_type
137
+ return_type = opts[:debug_return_type] || 'RUMApplicationResponse'
138
+
139
+ # auth_names
140
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
141
+
142
+ new_options = opts.merge(
143
+ :operation => :create_rum_application,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type,
150
+ :api_version => "V2"
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: RUMAPI#create_rum_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Delete a RUM application.
161
+ #
162
+ # @see #delete_rum_application_with_http_info
163
+ def delete_rum_application(id, opts = {})
164
+ delete_rum_application_with_http_info(id, opts)
165
+ nil
166
+ end
167
+
168
+ # Delete a RUM application.
169
+ #
170
+ # Delete an existing RUM application in your organization.
171
+ #
172
+ # @param id [String] RUM application ID.
173
+ # @param opts [Hash] the optional parameters
174
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175
+ def delete_rum_application_with_http_info(id, opts = {})
176
+
177
+ if @api_client.config.debugging
178
+ @api_client.config.logger.debug 'Calling API: RUMAPI.delete_rum_application ...'
179
+ end
180
+ # verify the required parameter 'id' is set
181
+ if @api_client.config.client_side_validation && id.nil?
182
+ fail ArgumentError, "Missing the required parameter 'id' when calling RUMAPI.delete_rum_application"
183
+ end
184
+ # resource path
185
+ local_var_path = '/api/v2/rum/applications/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
186
+
187
+ # query parameters
188
+ query_params = opts[:query_params] || {}
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:debug_body]
200
+
201
+ # return_type
202
+ return_type = opts[:debug_return_type]
203
+
204
+ # auth_names
205
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
206
+
207
+ new_options = opts.merge(
208
+ :operation => :delete_rum_application,
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => return_type,
215
+ :api_version => "V2"
216
+ )
217
+
218
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug "API called: RUMAPI#delete_rum_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
+ end
222
+ return data, status_code, headers
223
+ end
224
+
225
+ # Get a RUM application.
226
+ #
227
+ # @see #get_rum_application_with_http_info
228
+ def get_rum_application(id, opts = {})
229
+ data, _status_code, _headers = get_rum_application_with_http_info(id, opts)
230
+ data
231
+ end
232
+
233
+ # Get a RUM application.
234
+ #
235
+ # Get the RUM application with given ID in your organization.
236
+ #
237
+ # @param id [String] RUM application ID.
238
+ # @param opts [Hash] the optional parameters
239
+ # @return [Array<(RUMApplicationResponse, Integer, Hash)>] RUMApplicationResponse data, response status code and response headers
240
+ def get_rum_application_with_http_info(id, opts = {})
241
+
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug 'Calling API: RUMAPI.get_rum_application ...'
244
+ end
245
+ # verify the required parameter 'id' is set
246
+ if @api_client.config.client_side_validation && id.nil?
247
+ fail ArgumentError, "Missing the required parameter 'id' when calling RUMAPI.get_rum_application"
248
+ end
249
+ # resource path
250
+ local_var_path = '/api/v2/rum/applications/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
251
+
252
+ # query parameters
253
+ query_params = opts[:query_params] || {}
254
+
255
+ # header parameters
256
+ header_params = opts[:header_params] || {}
257
+ # HTTP header 'Accept' (if needed)
258
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
259
+
260
+ # form parameters
261
+ form_params = opts[:form_params] || {}
262
+
263
+ # http body (model)
264
+ post_body = opts[:debug_body]
265
+
266
+ # return_type
267
+ return_type = opts[:debug_return_type] || 'RUMApplicationResponse'
268
+
269
+ # auth_names
270
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
271
+
272
+ new_options = opts.merge(
273
+ :operation => :get_rum_application,
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :auth_names => auth_names,
279
+ :return_type => return_type,
280
+ :api_version => "V2"
281
+ )
282
+
283
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug "API called: RUMAPI#get_rum_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
286
+ end
287
+ return data, status_code, headers
288
+ end
289
+
290
+ # List all the RUM applications.
291
+ #
292
+ # @see #get_rum_applications_with_http_info
293
+ def get_rum_applications(opts = {})
294
+ data, _status_code, _headers = get_rum_applications_with_http_info(opts)
295
+ data
296
+ end
297
+
298
+ # List all the RUM applications.
299
+ #
300
+ # List all the RUM applications in your organization.
301
+ #
302
+ # @param opts [Hash] the optional parameters
303
+ # @return [Array<(RUMApplicationsResponse, Integer, Hash)>] RUMApplicationsResponse data, response status code and response headers
304
+ def get_rum_applications_with_http_info(opts = {})
305
+
306
+ if @api_client.config.debugging
307
+ @api_client.config.logger.debug 'Calling API: RUMAPI.get_rum_applications ...'
308
+ end
309
+ # resource path
310
+ local_var_path = '/api/v2/rum/applications'
311
+
312
+ # query parameters
313
+ query_params = opts[:query_params] || {}
314
+
315
+ # header parameters
316
+ header_params = opts[:header_params] || {}
317
+ # HTTP header 'Accept' (if needed)
318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
319
+
320
+ # form parameters
321
+ form_params = opts[:form_params] || {}
322
+
323
+ # http body (model)
324
+ post_body = opts[:debug_body]
325
+
326
+ # return_type
327
+ return_type = opts[:debug_return_type] || 'RUMApplicationsResponse'
328
+
329
+ # auth_names
330
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
331
+
332
+ new_options = opts.merge(
333
+ :operation => :get_rum_applications,
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names,
339
+ :return_type => return_type,
340
+ :api_version => "V2"
341
+ )
342
+
343
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
344
+ if @api_client.config.debugging
345
+ @api_client.config.logger.debug "API called: RUMAPI#get_rum_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
346
+ end
347
+ return data, status_code, headers
348
+ end
349
+
93
350
  # Get a list of RUM events.
94
351
  #
95
352
  # @see #list_rum_events_with_http_info
@@ -287,5 +544,77 @@ module DatadogAPIClient::V2
287
544
  @api_client.set_attribute_from_path(api_version, body, "page.cursor", RUMSearchEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
288
545
  end
289
546
  end
547
+
548
+ # Update a RUM application.
549
+ #
550
+ # @see #update_rum_application_with_http_info
551
+ def update_rum_application(id, body, opts = {})
552
+ data, _status_code, _headers = update_rum_application_with_http_info(id, body, opts)
553
+ data
554
+ end
555
+
556
+ # Update a RUM application.
557
+ #
558
+ # Update the RUM application with given ID in your organization.
559
+ #
560
+ # @param id [String] RUM application ID.
561
+ # @param body [RUMApplicationUpdateRequest]
562
+ # @param opts [Hash] the optional parameters
563
+ # @return [Array<(RUMApplicationResponse, Integer, Hash)>] RUMApplicationResponse data, response status code and response headers
564
+ def update_rum_application_with_http_info(id, body, opts = {})
565
+
566
+ if @api_client.config.debugging
567
+ @api_client.config.logger.debug 'Calling API: RUMAPI.update_rum_application ...'
568
+ end
569
+ # verify the required parameter 'id' is set
570
+ if @api_client.config.client_side_validation && id.nil?
571
+ fail ArgumentError, "Missing the required parameter 'id' when calling RUMAPI.update_rum_application"
572
+ end
573
+ # verify the required parameter 'body' is set
574
+ if @api_client.config.client_side_validation && body.nil?
575
+ fail ArgumentError, "Missing the required parameter 'body' when calling RUMAPI.update_rum_application"
576
+ end
577
+ # resource path
578
+ local_var_path = '/api/v2/rum/applications/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
579
+
580
+ # query parameters
581
+ query_params = opts[:query_params] || {}
582
+
583
+ # header parameters
584
+ header_params = opts[:header_params] || {}
585
+ # HTTP header 'Accept' (if needed)
586
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
587
+ # HTTP header 'Content-Type'
588
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
589
+
590
+ # form parameters
591
+ form_params = opts[:form_params] || {}
592
+
593
+ # http body (model)
594
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
595
+
596
+ # return_type
597
+ return_type = opts[:debug_return_type] || 'RUMApplicationResponse'
598
+
599
+ # auth_names
600
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
601
+
602
+ new_options = opts.merge(
603
+ :operation => :update_rum_application,
604
+ :header_params => header_params,
605
+ :query_params => query_params,
606
+ :form_params => form_params,
607
+ :body => post_body,
608
+ :auth_names => auth_names,
609
+ :return_type => return_type,
610
+ :api_version => "V2"
611
+ )
612
+
613
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
614
+ if @api_client.config.debugging
615
+ @api_client.config.logger.debug "API called: RUMAPI#update_rum_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
616
+ end
617
+ return data, status_code, headers
618
+ end
290
619
  end
291
620
  end