datadog_api_client 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/conftest.py +2 -1
  4. data/.generator/schemas/v1/openapi.yaml +284 -902
  5. data/.generator/schemas/v2/openapi.yaml +343 -672
  6. data/.generator/src/generator/formatter.py +1 -1
  7. data/.generator/src/generator/templates/example.j2 +5 -0
  8. data/.github/workflows/test.yml +1 -1
  9. data/.github/workflows/test_integration.yml +5 -0
  10. data/CHANGELOG.md +42 -0
  11. data/README.md +13 -13
  12. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
  13. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
  14. data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
  15. data/examples/v1/monitors/ValidateMonitor.rb +1 -0
  16. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
  17. data/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb +2 -2
  18. data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
  19. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
  20. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
  21. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
  22. data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
  23. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  24. data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
  25. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
  26. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
  27. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
  28. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
  29. data/examples/v2/audit/ListAuditLogs_1275402458.rb +8 -0
  30. data/examples/v2/audit/SearchAuditLogs_3215529662.rb +22 -0
  31. data/examples/v2/events/ListEvents_1527584014.rb +13 -0
  32. data/examples/v2/events/SearchEvents_3856995058.rb +25 -0
  33. data/examples/v2/incidents/ListIncidents_2665616954.rb +11 -0
  34. data/examples/v2/logs/ListLogsGet_738202670.rb +8 -0
  35. data/examples/v2/logs/ListLogs_3138392594.rb +25 -0
  36. data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
  37. data/examples/v2/processes/ListProcesses_797840471.rb +8 -0
  38. data/examples/v2/roles/UpdateRole.rb +13 -0
  39. data/examples/v2/rum/CreateRUMApplication.rb +15 -0
  40. data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
  41. data/examples/v2/rum/GetRUMApplication.rb +8 -0
  42. data/examples/v2/rum/GetRUMApplications.rb +5 -0
  43. data/examples/v2/rum/ListRUMEvents_2680821282.rb +8 -0
  44. data/examples/v2/rum/SearchRUMEvents_574690310.rb +21 -0
  45. data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
  46. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb +8 -0
  47. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +20 -0
  48. data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
  49. data/lib/datadog_api_client/configuration.rb +0 -5
  50. data/lib/datadog_api_client/inflector.rb +16 -0
  51. data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
  52. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
  53. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  54. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  55. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  56. data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
  57. data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
  58. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
  59. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  60. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  61. data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
  62. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
  63. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
  64. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
  65. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
  66. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
  67. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
  68. data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
  69. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
  70. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  71. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  72. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  73. data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
  74. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  75. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  76. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  77. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  78. data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
  79. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  80. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  81. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  82. data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
  83. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  84. data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
  85. data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
  86. data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
  87. data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
  88. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
  89. data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
  90. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
  91. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
  92. data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
  93. data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
  94. data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
  95. data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
  96. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
  97. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
  98. data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
  99. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
  100. data/lib/datadog_api_client/version.rb +1 -1
  101. data/lib/datadog_api_client.rb +6 -4
  102. metadata +41 -3
  103. data/lib/datadog_api_client/v2.rb +0 -595
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71d87cca7c0f748a466bf9d0a3d7f1d7e7371081e828c3f3cb0c64c75108c9ae
4
- data.tar.gz: 4447f729d795fee67202e137acdba3a5d13fdd01f157b3b70153ce7cfa1686d7
3
+ metadata.gz: 27416da57e82f283df821e0bfbbf19e34edbf55710f57b25588bf6015bbea905
4
+ data.tar.gz: 5669fd22f1a4fa571825ca93fc462a8615c45ac95c45bdf4bae08b5fa7f31f1d
5
5
  SHA512:
6
- metadata.gz: e7f574a008715c27bef5f5a690601841281d0def4dd9ea1f67189f80d56c90f08ed412241af4b6fa2e5b09b169b5fd6d92359df5f7dd258b95472b101b5cd046
7
- data.tar.gz: a2242b09ed1cb860ffa7f612b3d901328ac074b94eff7a850fefcbf8f093ec1ea4013c44dd8434ebcd7466c4213d01df9c03f5151d89c2da7286c91696a067b4
6
+ metadata.gz: 52f5707ad71946e40fa0b499d406edcee9e62d38c30f0d414be4ff534939d58bb8368a8843c9bbfa4e761e812caba888b279d16c06dfba300195bd8d8b08a169
7
+ data.tar.gz: bbfb661f551ec6cb53ee6eb1c428ff166140a6272bf1fe0d2c466d38eb2e67fd823fc85f9705d9e0eadf31167ca2abae3bbd228ec9f67149d146faa5072ddade
data/.apigentools-info CHANGED
@@ -3,14 +3,14 @@
3
3
  "info_version": "2",
4
4
  "spec_versions": {
5
5
  "v1": {
6
- "apigentools_version": "1.6.2",
7
- "regenerated": "2022-07-29 20:40:01.152572",
8
- "spec_repo_commit": "6b569d0a"
6
+ "apigentools_version": "1.6.4",
7
+ "regenerated": "2022-08-30 13:34:35.194053",
8
+ "spec_repo_commit": "1d2b67d9"
9
9
  },
10
10
  "v2": {
11
- "apigentools_version": "1.6.2",
12
- "regenerated": "2022-07-29 20:40:01.168388",
13
- "spec_repo_commit": "6b569d0a"
11
+ "apigentools_version": "1.6.4",
12
+ "regenerated": "2022-08-30 13:34:35.209616",
13
+ "spec_repo_commit": "1d2b67d9"
14
14
  }
15
15
  }
16
16
  }
@@ -106,7 +106,7 @@ def pytest_bdd_after_scenario(request, feature, scenario):
106
106
 
107
107
  def pytest_bdd_apply_tag(tag, function):
108
108
  """Register tags as custom markers and skip test for '@skip' ones."""
109
- skip_tags = {"with-pagination"}
109
+ skip_tags = {}
110
110
  if tag in skip_tags:
111
111
  marker = pytest.mark.skip(reason=f"skipped because '{tag}' in {skip_tags}")
112
112
  marker(function)
@@ -443,6 +443,7 @@ def execute_request(context, api_version):
443
443
  @when("the request with pagination is sent")
444
444
  def execute_request_with_pagination(context):
445
445
  """Execute the prepared request paginated."""
446
+ context["pagination"] = True
446
447
 
447
448
 
448
449
  @then(parsers.parse("the response status is {status:d} {description}"))