datadog_api_client 2.57.0 → 2.58.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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +2 -0
  3. data/.generator/schemas/v2/openapi.yaml +748 -397
  4. data/CHANGELOG.md +21 -0
  5. data/examples/v1/monitors/CreateMonitor_1348801712.rb +23 -0
  6. data/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +5 -0
  7. data/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +20 -0
  8. data/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +24 -0
  9. data/examples/v2/governance-console/UpdateGovernanceControl.rb +0 -1
  10. data/examples/v2/status-pages/PatchMaintenanceUpdate.rb +15 -0
  11. data/lib/datadog_api_client/configuration.rb +1 -3
  12. data/lib/datadog_api_client/inflector.rb +33 -14
  13. data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
  14. data/lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb +160 -0
  15. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +73 -0
  16. data/lib/datadog_api_client/v2/api/status_pages_api.rb +83 -1
  17. data/lib/datadog_api_client/v2/models/agent_trigger.rb +105 -0
  18. data/lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb +135 -0
  19. data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
  20. data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
  21. data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
  22. data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
  23. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb +147 -0
  24. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_data.rb → ci_app_git_hub_account_data.rb} +10 -8
  25. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb +115 -0
  26. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_response.rb → ci_app_git_hub_account_response.rb} +5 -5
  27. data/lib/datadog_api_client/v2/models/{rum_rate_limit_quota_reached_action.rb → ci_app_git_hub_account_type.rb} +4 -4
  28. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_request.rb → ci_app_git_hub_account_update_request.rb} +5 -5
  29. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb +159 -0
  30. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb +146 -0
  31. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb +148 -0
  32. data/lib/datadog_api_client/v2/models/{rum_rate_limit_adaptive_config.rb → ci_app_git_hub_accounts_response.rb} +19 -25
  33. data/lib/datadog_api_client/v2/models/completion_condition.rb +4 -29
  34. data/lib/datadog_api_client/v2/models/completion_gate.rb +4 -29
  35. data/lib/datadog_api_client/v2/models/create_degradation_request.rb +13 -3
  36. data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -11
  37. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +9 -1
  38. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -1
  39. data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
  40. data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +1 -1
  41. data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +1 -1
  42. data/lib/datadog_api_client/v2/models/degradation_request_meta.rb +105 -0
  43. data/lib/datadog_api_client/v2/models/deployment_gates_fdd_rule_options.rb +13 -1
  44. data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +13 -1
  45. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb +63 -0
  46. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb +119 -0
  47. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb +119 -0
  48. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb +123 -0
  49. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb +196 -0
  50. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb +144 -0
  51. data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +15 -5
  52. data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
  53. data/lib/datadog_api_client/v2/models/error_handler.rb +4 -29
  54. data/lib/datadog_api_client/v2/models/fleet_agent_info_details_v2.rb +1 -49
  55. data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +1 -1
  56. data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
  57. data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +1 -22
  58. data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +10 -13
  59. data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +1 -11
  60. data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
  61. data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +4 -0
  62. data/lib/datadog_api_client/v2/models/maintenance_update.rb +105 -0
  63. data/lib/datadog_api_client/v2/models/maintenance_update_data.rb +164 -0
  64. data/lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb +167 -0
  65. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_type.rb → maintenance_update_data_attributes_status.rb} +6 -3
  66. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb +125 -0
  67. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb +123 -0
  68. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb +144 -0
  69. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_attributes.rb → maintenance_update_data_relationships_user.rb} +17 -38
  70. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb +144 -0
  71. data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
  72. data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +1 -1
  73. data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +1 -1
  74. data/lib/datadog_api_client/v2/models/outbound_edge.rb +8 -0
  75. data/lib/datadog_api_client/v2/models/parameter.rb +4 -0
  76. data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +13 -3
  77. data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +11 -1
  78. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb +105 -0
  79. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_data.rb → patch_maintenance_update_request_data.rb} +9 -21
  80. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb +105 -0
  81. data/lib/datadog_api_client/v2/models/{rum_rate_limit_scope_type.rb → patch_maintenance_update_request_data_type.rb} +3 -3
  82. data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +1 -11
  83. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +9 -1
  84. data/lib/datadog_api_client/v2/models/readiness_gate.rb +4 -29
  85. data/lib/datadog_api_client/v2/models/retry_strategy.rb +12 -26
  86. data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +18 -29
  87. data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
  88. data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
  89. data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +1 -1
  90. data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
  91. data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +1 -1
  92. data/lib/datadog_api_client/v2/models/spec.rb +1 -1
  93. data/lib/datadog_api_client/v2/models/step.rb +11 -2
  94. data/lib/datadog_api_client/v2/models/step_display.rb +2 -1
  95. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +9 -1
  96. data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
  97. data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +1 -1
  98. data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +1 -1
  99. data/lib/datadog_api_client/v2/models/workflow_list_item_attributes.rb +1 -1
  100. data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +2 -2
  101. data/lib/datadog_api_client/version.rb +1 -1
  102. metadata +39 -18
  103. data/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb +0 -8
  104. data/examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb +0 -8
  105. data/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb +0 -28
  106. data/lib/datadog_api_client/v2/api/rum_rate_limit_api.rb +0 -277
  107. data/lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb +0 -185
  108. data/lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb +0 -223
  109. data/lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb +0 -28
  110. data/lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb +0 -26
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.57.0
4
+ version: 2.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
@@ -384,6 +384,7 @@ files:
384
384
  - examples/v1/monitors/CheckCanDeleteMonitor.rb
385
385
  - examples/v1/monitors/CreateMonitor.rb
386
386
  - examples/v1/monitors/CreateMonitor_1303514967.rb
387
+ - examples/v1/monitors/CreateMonitor_1348801712.rb
387
388
  - examples/v1/monitors/CreateMonitor_1532893480.rb
388
389
  - examples/v1/monitors/CreateMonitor_1539578087.rb
389
390
  - examples/v1/monitors/CreateMonitor_1969035628.rb
@@ -802,6 +803,8 @@ files:
802
803
  - examples/v2/change-management/GetChangeRequest.rb
803
804
  - examples/v2/change-management/UpdateChangeRequest.rb
804
805
  - examples/v2/change-management/UpdateChangeRequestDecision.rb
806
+ - examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb
807
+ - examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb
805
808
  - examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb
806
809
  - examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb
807
810
  - examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb
@@ -1025,6 +1028,7 @@ files:
1025
1028
  - examples/v2/dora-metrics/ListDORAFailures.rb
1026
1029
  - examples/v2/dora-metrics/ListDORAFailures_3269988848.rb
1027
1030
  - examples/v2/dora-metrics/PatchDORADeployment.rb
1031
+ - examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb
1028
1032
  - examples/v2/downtimes/CancelDowntime.rb
1029
1033
  - examples/v2/downtimes/CreateDowntime.rb
1030
1034
  - examples/v2/downtimes/GetDowntime.rb
@@ -1747,9 +1751,6 @@ files:
1747
1751
  - examples/v2/rum-operations/ListRUMOperations.rb
1748
1752
  - examples/v2/rum-operations/UpdateRUMOperation.rb
1749
1753
  - examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb
1750
- - examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb
1751
- - examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb
1752
- - examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb
1753
1754
  - examples/v2/rum-remote-config/GetRumSdkConfig.rb
1754
1755
  - examples/v2/rum-remote-config/UpdateRumSdkConfig.rb
1755
1756
  - examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb
@@ -2141,6 +2142,7 @@ files:
2141
2142
  - examples/v2/status-pages/ListMaintenanceTemplates.rb
2142
2143
  - examples/v2/status-pages/ListMaintenances.rb
2143
2144
  - examples/v2/status-pages/ListStatusPages.rb
2145
+ - examples/v2/status-pages/PatchMaintenanceUpdate.rb
2144
2146
  - examples/v2/status-pages/PublishStatusPage.rb
2145
2147
  - examples/v2/status-pages/SoftDeleteDegradationUpdate.rb
2146
2148
  - examples/v2/status-pages/UnpublishStatusPage.rb
@@ -3538,6 +3540,7 @@ files:
3538
3540
  - lib/datadog_api_client/v2/api/case_management_attribute_api.rb
3539
3541
  - lib/datadog_api_client/v2/api/case_management_type_api.rb
3540
3542
  - lib/datadog_api_client/v2/api/change_management_api.rb
3543
+ - lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb
3541
3544
  - lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb
3542
3545
  - lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb
3543
3546
  - lib/datadog_api_client/v2/api/cloud_authentication_api.rb
@@ -3622,7 +3625,6 @@ files:
3622
3625
  - lib/datadog_api_client/v2/api/rum_insights_api.rb
3623
3626
  - lib/datadog_api_client/v2/api/rum_metrics_api.rb
3624
3627
  - lib/datadog_api_client/v2/api/rum_operations_api.rb
3625
- - lib/datadog_api_client/v2/api/rum_rate_limit_api.rb
3626
3628
  - lib/datadog_api_client/v2/api/rum_remote_config_api.rb
3627
3629
  - lib/datadog_api_client/v2/api/rum_replay_heatmaps_api.rb
3628
3630
  - lib/datadog_api_client/v2/api/rum_replay_playlists_api.rb
@@ -3702,6 +3704,8 @@ files:
3702
3704
  - lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb
3703
3705
  - lib/datadog_api_client/v2/models/add_member_team_request.rb
3704
3706
  - lib/datadog_api_client/v2/models/advisory.rb
3707
+ - lib/datadog_api_client/v2/models/agent_trigger.rb
3708
+ - lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb
3705
3709
  - lib/datadog_api_client/v2/models/aggregated_high_frozen_frame_rate.rb
3706
3710
  - lib/datadog_api_client/v2/models/aggregated_high_script_eval.rb
3707
3711
  - lib/datadog_api_client/v2/models/aggregated_long_tasks_by_invoker_type.rb
@@ -4553,6 +4557,16 @@ files:
4553
4557
  - lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data_single_or_array.rb
4554
4558
  - lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data_type.rb
4555
4559
  - lib/datadog_api_client/v2/models/ci_app_event_attributes.rb
4560
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb
4561
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_data.rb
4562
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb
4563
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_response.rb
4564
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_type.rb
4565
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request.rb
4566
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb
4567
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb
4568
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb
4569
+ - lib/datadog_api_client/v2/models/ci_app_git_hub_accounts_response.rb
4556
4570
  - lib/datadog_api_client/v2/models/ci_app_git_info.rb
4557
4571
  - lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb
4558
4572
  - lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb
@@ -5398,6 +5412,7 @@ files:
5398
5412
  - lib/datadog_api_client/v2/models/degradation_data_relationships_template.rb
5399
5413
  - lib/datadog_api_client/v2/models/degradation_data_relationships_template_data.rb
5400
5414
  - lib/datadog_api_client/v2/models/degradation_included.rb
5415
+ - lib/datadog_api_client/v2/models/degradation_request_meta.rb
5401
5416
  - lib/datadog_api_client/v2/models/degradation_template.rb
5402
5417
  - lib/datadog_api_client/v2/models/degradation_template_array.rb
5403
5418
  - lib/datadog_api_client/v2/models/degradation_template_data.rb
@@ -5521,6 +5536,12 @@ files:
5521
5536
  - lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb
5522
5537
  - lib/datadog_api_client/v2/models/dora_deployment_object.rb
5523
5538
  - lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb
5539
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb
5540
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb
5541
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb
5542
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb
5543
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb
5544
+ - lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb
5524
5545
  - lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb
5525
5546
  - lib/datadog_api_client/v2/models/dora_deployment_patch_remediation_type.rb
5526
5547
  - lib/datadog_api_client/v2/models/dora_deployment_patch_request.rb
@@ -7450,6 +7471,15 @@ files:
7450
7471
  - lib/datadog_api_client/v2/models/maintenance_template_data_relationships_last_modified_by_user_data.rb
7451
7472
  - lib/datadog_api_client/v2/models/maintenance_template_data_relationships_status_page.rb
7452
7473
  - lib/datadog_api_client/v2/models/maintenance_template_data_relationships_status_page_data.rb
7474
+ - lib/datadog_api_client/v2/models/maintenance_update.rb
7475
+ - lib/datadog_api_client/v2/models/maintenance_update_data.rb
7476
+ - lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb
7477
+ - lib/datadog_api_client/v2/models/maintenance_update_data_attributes_status.rb
7478
+ - lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb
7479
+ - lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb
7480
+ - lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb
7481
+ - lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user.rb
7482
+ - lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb
7453
7483
  - lib/datadog_api_client/v2/models/maintenance_window.rb
7454
7484
  - lib/datadog_api_client/v2/models/maintenance_window_attributes.rb
7455
7485
  - lib/datadog_api_client/v2/models/maintenance_window_create.rb
@@ -8475,6 +8505,10 @@ files:
8475
8505
  - lib/datadog_api_client/v2/models/patch_maintenance_template_request_data.rb
8476
8506
  - lib/datadog_api_client/v2/models/patch_maintenance_template_request_data_attributes.rb
8477
8507
  - lib/datadog_api_client/v2/models/patch_maintenance_template_request_data_type.rb
8508
+ - lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb
8509
+ - lib/datadog_api_client/v2/models/patch_maintenance_update_request_data.rb
8510
+ - lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb
8511
+ - lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_type.rb
8478
8512
  - lib/datadog_api_client/v2/models/patch_notification_rule_parameters.rb
8479
8513
  - lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data.rb
8480
8514
  - lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data_attributes.rb
@@ -9073,19 +9107,6 @@ files:
9073
9107
  - lib/datadog_api_client/v2/models/rum_query_filter.rb
9074
9108
  - lib/datadog_api_client/v2/models/rum_query_options.rb
9075
9109
  - lib/datadog_api_client/v2/models/rum_query_page_options.rb
9076
- - lib/datadog_api_client/v2/models/rum_rate_limit_adaptive_config.rb
9077
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb
9078
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_data.rb
9079
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_response.rb
9080
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_type.rb
9081
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_update_attributes.rb
9082
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_update_data.rb
9083
- - lib/datadog_api_client/v2/models/rum_rate_limit_config_update_request.rb
9084
- - lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb
9085
- - lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb
9086
- - lib/datadog_api_client/v2/models/rum_rate_limit_quota_reached_action.rb
9087
- - lib/datadog_api_client/v2/models/rum_rate_limit_scope_type.rb
9088
- - lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb
9089
9110
  - lib/datadog_api_client/v2/models/rum_response_links.rb
9090
9111
  - lib/datadog_api_client/v2/models/rum_response_metadata.rb
9091
9112
  - lib/datadog_api_client/v2/models/rum_response_page.rb
@@ -1,8 +0,0 @@
1
- # Delete a RUM rate limit configuration returns "No Content" response
2
-
3
- require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.delete_rum_rate_limit_config".to_sym] = true
6
- end
7
- api_instance = DatadogAPIClient::V2::RumRateLimitAPI.new
8
- api_instance.delete_rum_rate_limit_config(RumRateLimitScopeType::APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b")
@@ -1,8 +0,0 @@
1
- # Get a RUM rate limit configuration returns "OK" response
2
-
3
- require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.get_rum_rate_limit_config".to_sym] = true
6
- end
7
- api_instance = DatadogAPIClient::V2::RumRateLimitAPI.new
8
- p api_instance.get_rum_rate_limit_config(RumRateLimitScopeType::APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b")
@@ -1,28 +0,0 @@
1
- # Create or update a RUM rate limit configuration returns "OK" response
2
-
3
- require "datadog_api_client"
4
- DatadogAPIClient.configure do |config|
5
- config.unstable_operations["v2.update_rum_rate_limit_config".to_sym] = true
6
- end
7
- api_instance = DatadogAPIClient::V2::RumRateLimitAPI.new
8
-
9
- body = DatadogAPIClient::V2::RumRateLimitConfigUpdateRequest.new({
10
- data: DatadogAPIClient::V2::RumRateLimitConfigUpdateData.new({
11
- attributes: DatadogAPIClient::V2::RumRateLimitConfigUpdateAttributes.new({
12
- adaptive: DatadogAPIClient::V2::RumRateLimitAdaptiveConfig.new({
13
- max_retention_rate: 0.5,
14
- }),
15
- custom: DatadogAPIClient::V2::RumRateLimitCustomConfig.new({
16
- daily_reset_time: "08:00",
17
- daily_reset_timezone: "+09:00",
18
- quota_reached_action: DatadogAPIClient::V2::RumRateLimitQuotaReachedAction::STOP,
19
- session_limit: 1000000,
20
- window_type: DatadogAPIClient::V2::RumRateLimitWindowType::DAILY,
21
- }),
22
- mode: DatadogAPIClient::V2::RumRateLimitMode::CUSTOM,
23
- }),
24
- id: "cd73a516-a481-4af5-8352-9b577465c77b",
25
- type: DatadogAPIClient::V2::RumRateLimitConfigType::RUM_RATE_LIMIT_CONFIG,
26
- }),
27
- })
28
- p api_instance.update_rum_rate_limit_config(RumRateLimitScopeType::APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b", body)
@@ -1,277 +0,0 @@
1
- =begin
2
- #Datadog API V2 Collection
3
-
4
- #Collection of all Datadog Public endpoints.
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@datadoghq.com
8
- Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
-
10
- Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
- This product includes software developed at Datadog (https://www.datadoghq.com/).
12
- Copyright 2020-Present Datadog, Inc.
13
-
14
- =end
15
-
16
- require 'cgi'
17
-
18
- module DatadogAPIClient::V2
19
- class RumRateLimitAPI
20
- attr_accessor :api_client
21
-
22
- def initialize(api_client = DatadogAPIClient::APIClient.default)
23
- @api_client = api_client
24
- end
25
-
26
- # Delete a RUM rate limit configuration.
27
- #
28
- # @see #delete_rum_rate_limit_config_with_http_info
29
- def delete_rum_rate_limit_config(scope_type, scope_id, opts = {})
30
- delete_rum_rate_limit_config_with_http_info(scope_type, scope_id, opts)
31
- nil
32
- end
33
-
34
- # Delete a RUM rate limit configuration.
35
- #
36
- # Delete the RUM rate limit configuration for a given scope.
37
- #
38
- # @param scope_type [RumRateLimitScopeType] The type of scope the rate limit configuration applies to.
39
- # @param scope_id [String] The identifier of the scope the rate limit configuration applies to. For the `application` scope, this is the RUM application ID.
40
- # @param opts [Hash] the optional parameters
41
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
- def delete_rum_rate_limit_config_with_http_info(scope_type, scope_id, opts = {})
43
- unstable_enabled = @api_client.config.unstable_operations["v2.delete_rum_rate_limit_config".to_sym]
44
- if unstable_enabled
45
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_rum_rate_limit_config")
46
- else
47
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_rum_rate_limit_config"))
48
- end
49
-
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: RumRateLimitAPI.delete_rum_rate_limit_config ...'
52
- end
53
- # verify the required parameter 'scope_type' is set
54
- if @api_client.config.client_side_validation && scope_type.nil?
55
- fail ArgumentError, "Missing the required parameter 'scope_type' when calling RumRateLimitAPI.delete_rum_rate_limit_config"
56
- end
57
- # verify enum value
58
- allowable_values = ['application']
59
- if @api_client.config.client_side_validation && !allowable_values.include?(scope_type)
60
- fail ArgumentError, "invalid value for \"scope_type\", must be one of #{allowable_values}"
61
- end
62
- # verify the required parameter 'scope_id' is set
63
- if @api_client.config.client_side_validation && scope_id.nil?
64
- fail ArgumentError, "Missing the required parameter 'scope_id' when calling RumRateLimitAPI.delete_rum_rate_limit_config"
65
- end
66
- # resource path
67
- local_var_path = '/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}'.sub('{scope_type}', CGI.escape(scope_type.to_s).gsub('%2F', '/')).sub('{scope_id}', CGI.escape(scope_id.to_s).gsub('%2F', '/'))
68
-
69
- # query parameters
70
- query_params = opts[:query_params] || {}
71
-
72
- # header parameters
73
- header_params = opts[:header_params] || {}
74
- # HTTP header 'Accept' (if needed)
75
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
76
-
77
- # form parameters
78
- form_params = opts[:form_params] || {}
79
-
80
- # http body (model)
81
- post_body = opts[:debug_body]
82
-
83
- # return_type
84
- return_type = opts[:debug_return_type]
85
-
86
- # auth_names
87
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
88
-
89
- new_options = opts.merge(
90
- :operation => :delete_rum_rate_limit_config,
91
- :header_params => header_params,
92
- :query_params => query_params,
93
- :form_params => form_params,
94
- :body => post_body,
95
- :auth_names => auth_names,
96
- :return_type => return_type,
97
- :api_version => "V2"
98
- )
99
-
100
- data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
101
- if @api_client.config.debugging
102
- @api_client.config.logger.debug "API called: RumRateLimitAPI#delete_rum_rate_limit_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
- end
104
- return data, status_code, headers
105
- end
106
-
107
- # Get a RUM rate limit configuration.
108
- #
109
- # @see #get_rum_rate_limit_config_with_http_info
110
- def get_rum_rate_limit_config(scope_type, scope_id, opts = {})
111
- data, _status_code, _headers = get_rum_rate_limit_config_with_http_info(scope_type, scope_id, opts)
112
- data
113
- end
114
-
115
- # Get a RUM rate limit configuration.
116
- #
117
- # Get the RUM rate limit configuration for a given scope.
118
- #
119
- # @param scope_type [RumRateLimitScopeType] The type of scope the rate limit configuration applies to.
120
- # @param scope_id [String] The identifier of the scope the rate limit configuration applies to. For the `application` scope, this is the RUM application ID.
121
- # @param opts [Hash] the optional parameters
122
- # @return [Array<(RumRateLimitConfigResponse, Integer, Hash)>] RumRateLimitConfigResponse data, response status code and response headers
123
- def get_rum_rate_limit_config_with_http_info(scope_type, scope_id, opts = {})
124
- unstable_enabled = @api_client.config.unstable_operations["v2.get_rum_rate_limit_config".to_sym]
125
- if unstable_enabled
126
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_rum_rate_limit_config")
127
- else
128
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_rum_rate_limit_config"))
129
- end
130
-
131
- if @api_client.config.debugging
132
- @api_client.config.logger.debug 'Calling API: RumRateLimitAPI.get_rum_rate_limit_config ...'
133
- end
134
- # verify the required parameter 'scope_type' is set
135
- if @api_client.config.client_side_validation && scope_type.nil?
136
- fail ArgumentError, "Missing the required parameter 'scope_type' when calling RumRateLimitAPI.get_rum_rate_limit_config"
137
- end
138
- # verify enum value
139
- allowable_values = ['application']
140
- if @api_client.config.client_side_validation && !allowable_values.include?(scope_type)
141
- fail ArgumentError, "invalid value for \"scope_type\", must be one of #{allowable_values}"
142
- end
143
- # verify the required parameter 'scope_id' is set
144
- if @api_client.config.client_side_validation && scope_id.nil?
145
- fail ArgumentError, "Missing the required parameter 'scope_id' when calling RumRateLimitAPI.get_rum_rate_limit_config"
146
- end
147
- # resource path
148
- local_var_path = '/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}'.sub('{scope_type}', CGI.escape(scope_type.to_s).gsub('%2F', '/')).sub('{scope_id}', CGI.escape(scope_id.to_s).gsub('%2F', '/'))
149
-
150
- # query parameters
151
- query_params = opts[:query_params] || {}
152
-
153
- # header parameters
154
- header_params = opts[:header_params] || {}
155
- # HTTP header 'Accept' (if needed)
156
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
157
-
158
- # form parameters
159
- form_params = opts[:form_params] || {}
160
-
161
- # http body (model)
162
- post_body = opts[:debug_body]
163
-
164
- # return_type
165
- return_type = opts[:debug_return_type] || 'RumRateLimitConfigResponse'
166
-
167
- # auth_names
168
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
169
-
170
- new_options = opts.merge(
171
- :operation => :get_rum_rate_limit_config,
172
- :header_params => header_params,
173
- :query_params => query_params,
174
- :form_params => form_params,
175
- :body => post_body,
176
- :auth_names => auth_names,
177
- :return_type => return_type,
178
- :api_version => "V2"
179
- )
180
-
181
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
182
- if @api_client.config.debugging
183
- @api_client.config.logger.debug "API called: RumRateLimitAPI#get_rum_rate_limit_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
- end
185
- return data, status_code, headers
186
- end
187
-
188
- # Create or update a RUM rate limit configuration.
189
- #
190
- # @see #update_rum_rate_limit_config_with_http_info
191
- def update_rum_rate_limit_config(scope_type, scope_id, body, opts = {})
192
- data, _status_code, _headers = update_rum_rate_limit_config_with_http_info(scope_type, scope_id, body, opts)
193
- data
194
- end
195
-
196
- # Create or update a RUM rate limit configuration.
197
- #
198
- # Create or update the RUM rate limit configuration for a given scope.
199
- # Returns the rate limit configuration object when the request is successful.
200
- #
201
- # @param scope_type [RumRateLimitScopeType] The type of scope the rate limit configuration applies to.
202
- # @param scope_id [String] The identifier of the scope the rate limit configuration applies to. For the `application` scope, this is the RUM application ID.
203
- # @param body [RumRateLimitConfigUpdateRequest] The definition of the RUM rate limit configuration to create or update.
204
- # @param opts [Hash] the optional parameters
205
- # @return [Array<(RumRateLimitConfigResponse, Integer, Hash)>] RumRateLimitConfigResponse data, response status code and response headers
206
- def update_rum_rate_limit_config_with_http_info(scope_type, scope_id, body, opts = {})
207
- unstable_enabled = @api_client.config.unstable_operations["v2.update_rum_rate_limit_config".to_sym]
208
- if unstable_enabled
209
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_rum_rate_limit_config")
210
- else
211
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_rum_rate_limit_config"))
212
- end
213
-
214
- if @api_client.config.debugging
215
- @api_client.config.logger.debug 'Calling API: RumRateLimitAPI.update_rum_rate_limit_config ...'
216
- end
217
- # verify the required parameter 'scope_type' is set
218
- if @api_client.config.client_side_validation && scope_type.nil?
219
- fail ArgumentError, "Missing the required parameter 'scope_type' when calling RumRateLimitAPI.update_rum_rate_limit_config"
220
- end
221
- # verify enum value
222
- allowable_values = ['application']
223
- if @api_client.config.client_side_validation && !allowable_values.include?(scope_type)
224
- fail ArgumentError, "invalid value for \"scope_type\", must be one of #{allowable_values}"
225
- end
226
- # verify the required parameter 'scope_id' is set
227
- if @api_client.config.client_side_validation && scope_id.nil?
228
- fail ArgumentError, "Missing the required parameter 'scope_id' when calling RumRateLimitAPI.update_rum_rate_limit_config"
229
- end
230
- # verify the required parameter 'body' is set
231
- if @api_client.config.client_side_validation && body.nil?
232
- fail ArgumentError, "Missing the required parameter 'body' when calling RumRateLimitAPI.update_rum_rate_limit_config"
233
- end
234
- # resource path
235
- local_var_path = '/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}'.sub('{scope_type}', CGI.escape(scope_type.to_s).gsub('%2F', '/')).sub('{scope_id}', CGI.escape(scope_id.to_s).gsub('%2F', '/'))
236
-
237
- # query parameters
238
- query_params = opts[:query_params] || {}
239
-
240
- # header parameters
241
- header_params = opts[:header_params] || {}
242
- # HTTP header 'Accept' (if needed)
243
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
244
- # HTTP header 'Content-Type'
245
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
246
-
247
- # form parameters
248
- form_params = opts[:form_params] || {}
249
-
250
- # http body (model)
251
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
252
-
253
- # return_type
254
- return_type = opts[:debug_return_type] || 'RumRateLimitConfigResponse'
255
-
256
- # auth_names
257
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
258
-
259
- new_options = opts.merge(
260
- :operation => :update_rum_rate_limit_config,
261
- :header_params => header_params,
262
- :query_params => query_params,
263
- :form_params => form_params,
264
- :body => post_body,
265
- :auth_names => auth_names,
266
- :return_type => return_type,
267
- :api_version => "V2"
268
- )
269
-
270
- data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
271
- if @api_client.config.debugging
272
- @api_client.config.logger.debug "API called: RumRateLimitAPI#update_rum_rate_limit_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
- end
274
- return data, status_code, headers
275
- end
276
- end
277
- end
@@ -1,185 +0,0 @@
1
- =begin
2
- #Datadog API V2 Collection
3
-
4
- #Collection of all Datadog Public endpoints.
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@datadoghq.com
8
- Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
-
10
- Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
- This product includes software developed at Datadog (https://www.datadoghq.com/).
12
- Copyright 2020-Present Datadog, Inc.
13
-
14
- =end
15
-
16
- require 'date'
17
- require 'time'
18
-
19
- module DatadogAPIClient::V2
20
- # The RUM rate limit configuration properties.
21
- class RumRateLimitConfigAttributes
22
- include BaseGenericModel
23
-
24
- # The configuration used when `mode` is `adaptive`.
25
- attr_accessor :adaptive
26
-
27
- # The configuration used when `mode` is `custom`.
28
- attr_accessor :custom
29
-
30
- # The rate limit mode. `custom` enforces a fixed session limit, while
31
- # `adaptive` dynamically adjusts retention.
32
- attr_reader :mode
33
-
34
- # The ID of the organization the rate limit configuration belongs to.
35
- attr_reader :org_id
36
-
37
- # The date the rate limit configuration was last updated.
38
- attr_accessor :updated_at
39
-
40
- # The handle of the user who last updated the rate limit configuration.
41
- attr_accessor :updated_by
42
-
43
- attr_accessor :additional_properties
44
-
45
- # Attribute mapping from ruby-style variable name to JSON key.
46
- # @!visibility private
47
- def self.attribute_map
48
- {
49
- :'adaptive' => :'adaptive',
50
- :'custom' => :'custom',
51
- :'mode' => :'mode',
52
- :'org_id' => :'org_id',
53
- :'updated_at' => :'updated_at',
54
- :'updated_by' => :'updated_by'
55
- }
56
- end
57
-
58
- # Attribute type mapping.
59
- # @!visibility private
60
- def self.openapi_types
61
- {
62
- :'adaptive' => :'RumRateLimitAdaptiveConfig',
63
- :'custom' => :'RumRateLimitCustomConfig',
64
- :'mode' => :'RumRateLimitMode',
65
- :'org_id' => :'Integer',
66
- :'updated_at' => :'String',
67
- :'updated_by' => :'String'
68
- }
69
- end
70
-
71
- # Initializes the object
72
- # @param attributes [Hash] Model attributes in the form of hash
73
- # @!visibility private
74
- def initialize(attributes = {})
75
- if (!attributes.is_a?(Hash))
76
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumRateLimitConfigAttributes` initialize method"
77
- end
78
-
79
- self.additional_properties = {}
80
- # check to see if the attribute exists and convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}) { |(k, v), h|
82
- if (!self.class.attribute_map.key?(k.to_sym))
83
- self.additional_properties[k.to_sym] = v
84
- else
85
- h[k.to_sym] = v
86
- end
87
- }
88
-
89
- if attributes.key?(:'adaptive')
90
- self.adaptive = attributes[:'adaptive']
91
- end
92
-
93
- if attributes.key?(:'custom')
94
- self.custom = attributes[:'custom']
95
- end
96
-
97
- if attributes.key?(:'mode')
98
- self.mode = attributes[:'mode']
99
- end
100
-
101
- if attributes.key?(:'org_id')
102
- self.org_id = attributes[:'org_id']
103
- end
104
-
105
- if attributes.key?(:'updated_at')
106
- self.updated_at = attributes[:'updated_at']
107
- end
108
-
109
- if attributes.key?(:'updated_by')
110
- self.updated_by = attributes[:'updated_by']
111
- end
112
- end
113
-
114
- # Check to see if the all the properties in the model are valid
115
- # @return true if the model is valid
116
- # @!visibility private
117
- def valid?
118
- return false if @mode.nil?
119
- return false if @org_id.nil?
120
- true
121
- end
122
-
123
- # Custom attribute writer method with validation
124
- # @param mode [Object] Object to be assigned
125
- # @!visibility private
126
- def mode=(mode)
127
- if mode.nil?
128
- fail ArgumentError, 'invalid value for "mode", mode cannot be nil.'
129
- end
130
- @mode = mode
131
- end
132
-
133
- # Custom attribute writer method with validation
134
- # @param org_id [Object] Object to be assigned
135
- # @!visibility private
136
- def org_id=(org_id)
137
- if org_id.nil?
138
- fail ArgumentError, 'invalid value for "org_id", org_id cannot be nil.'
139
- end
140
- @org_id = org_id
141
- end
142
-
143
- # Returns the object in the form of hash, with additionalProperties support.
144
- # @return [Hash] Returns the object in the form of hash
145
- # @!visibility private
146
- def to_hash
147
- hash = {}
148
- self.class.attribute_map.each_pair do |attr, param|
149
- value = self.send(attr)
150
- if value.nil?
151
- is_nullable = self.class.openapi_nullable.include?(attr)
152
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
153
- end
154
-
155
- hash[param] = _to_hash(value)
156
- end
157
- self.additional_properties.each_pair do |attr, value|
158
- hash[attr] = value
159
- end
160
- hash
161
- end
162
-
163
- # Checks equality by comparing each attribute.
164
- # @param o [Object] Object to be compared
165
- # @!visibility private
166
- def ==(o)
167
- return true if self.equal?(o)
168
- self.class == o.class &&
169
- adaptive == o.adaptive &&
170
- custom == o.custom &&
171
- mode == o.mode &&
172
- org_id == o.org_id &&
173
- updated_at == o.updated_at &&
174
- updated_by == o.updated_by &&
175
- additional_properties == o.additional_properties
176
- end
177
-
178
- # Calculates hash code according to all attributes.
179
- # @return [Integer] Hash code
180
- # @!visibility private
181
- def hash
182
- [adaptive, custom, mode, org_id, updated_at, updated_by, additional_properties].hash
183
- end
184
- end
185
- end