Skip to content

Commit 608f714

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b01f90f4 of spec repo (#2217)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9d9d38b commit 608f714

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-30 13:13:53.788963",
8-
"spec_repo_commit": "833109b8"
7+
"regenerated": "2025-01-31 15:03:07.870119",
8+
"spec_repo_commit": "b01f90f4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-30 13:13:53.804238",
13-
"spec_repo_commit": "833109b8"
12+
"regenerated": "2025-01-31 15:03:07.885209",
13+
"spec_repo_commit": "b01f90f4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5363,8 +5363,7 @@ components:
53635363
- USER
53645364
- SYSTEM
53655365
ChangeEventCustomAttributesChangedResource:
5366-
description: Object representing a uniquely identified resource. Only the resource
5367-
type `feature_flag` is supported.
5366+
description: Object representing a uniquely identified resource.
53685367
properties:
53695368
name:
53705369
description: Resource's name.
@@ -5380,10 +5379,12 @@ components:
53805379
description: Resource's type.
53815380
enum:
53825381
- feature_flag
5382+
- configuration
53835383
example: feature_flag
53845384
type: string
53855385
x-enum-varnames:
53865386
- FEATURE_FLAG
5387+
- CONFIGURATION
53875388
ChangeEventCustomAttributesImpactedResourcesItems:
53885389
description: Object representing a uniquely identified resource. Only the resource
53895390
type `service` is supported.
@@ -11239,7 +11240,7 @@ components:
1123911240

1124011241
Refer to [Tags docs](https://docs.datadoghq.com/getting_started/tagging/).'
1124111242
example:
11242-
- environment:test
11243+
- env:test
1124311244
items:
1124411245
description: A tag.
1124511246
type: string
@@ -35963,7 +35964,7 @@ paths:
3596335964
category: change
3596435965
message: payment_processed feature flag has been enabled
3596535966
tags:
35966-
- environment:test
35967+
- env:test
3596735968
title: payment_processed feature flag updated
3596835969
type: event
3596935970
schema:

examples/v2/events/CreateEvent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
category: DatadogAPIClient::V2::EventCategory::CHANGE,
3535
message: "payment_processed feature flag has been enabled",
3636
tags: [
37-
"environment:test",
37+
"env:test",
3838
],
3939
title: "payment_processed feature flag updated",
4040
}),

features/v2/events.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Feature: Events
5353
@generated @skip @team:DataDog/event-management
5454
Scenario: Post an event returns "Bad request" response
5555
Given new "CreateEvent" request
56-
And body with value {"data": {"attributes": {"attributes": {"author": {"name": "[email protected]", "type": "user"}, "change_metadata": {"dd": {"team": "datadog_team", "user_email": "[email protected]", "user_id": "datadog_user_id", "user_name": "datadog_username"}, "resource_link": "datadog.com/feature/fallback_payments_test"}, "changed_resource": {"name": "fallback_payments_test", "type": "feature_flag"}, "impacted_resources": [{"name": "payments_api", "type": "service"}], "new_value": {"enabled": true, "percentage": "50%", "rule": {"datacenter": "devcycle.us1.prod"}}, "prev_value": {"enabled": true, "percentage": "10%", "rule": {"datacenter": "devcycle.us1.prod"}}}, "category": "change", "message": "payment_processed feature flag has been enabled", "tags": ["environment:test"], "title": "payment_processed feature flag updated"}, "type": "event"}}
56+
And body with value {"data": {"attributes": {"attributes": {"author": {"name": "[email protected]", "type": "user"}, "change_metadata": {"dd": {"team": "datadog_team", "user_email": "[email protected]", "user_id": "datadog_user_id", "user_name": "datadog_username"}, "resource_link": "datadog.com/feature/fallback_payments_test"}, "changed_resource": {"name": "fallback_payments_test", "type": "feature_flag"}, "impacted_resources": [{"name": "payments_api", "type": "service"}], "new_value": {"enabled": true, "percentage": "50%", "rule": {"datacenter": "devcycle.us1.prod"}}, "prev_value": {"enabled": true, "percentage": "10%", "rule": {"datacenter": "devcycle.us1.prod"}}}, "category": "change", "message": "payment_processed feature flag has been enabled", "tags": ["env:test"], "title": "payment_processed feature flag updated"}, "type": "event"}}
5757
When the request is sent
5858
Then the response status is 400 Bad request
5959

6060
@generated @skip @team:DataDog/event-management
6161
Scenario: Post an event returns "OK" response
6262
Given new "CreateEvent" request
63-
And body with value {"data": {"attributes": {"attributes": {"author": {"name": "[email protected]", "type": "user"}, "change_metadata": {"dd": {"team": "datadog_team", "user_email": "[email protected]", "user_id": "datadog_user_id", "user_name": "datadog_username"}, "resource_link": "datadog.com/feature/fallback_payments_test"}, "changed_resource": {"name": "fallback_payments_test", "type": "feature_flag"}, "impacted_resources": [{"name": "payments_api", "type": "service"}], "new_value": {"enabled": true, "percentage": "50%", "rule": {"datacenter": "devcycle.us1.prod"}}, "prev_value": {"enabled": true, "percentage": "10%", "rule": {"datacenter": "devcycle.us1.prod"}}}, "category": "change", "message": "payment_processed feature flag has been enabled", "tags": ["environment:test"], "title": "payment_processed feature flag updated"}, "type": "event"}}
63+
And body with value {"data": {"attributes": {"attributes": {"author": {"name": "[email protected]", "type": "user"}, "change_metadata": {"dd": {"team": "datadog_team", "user_email": "[email protected]", "user_id": "datadog_user_id", "user_name": "datadog_username"}, "resource_link": "datadog.com/feature/fallback_payments_test"}, "changed_resource": {"name": "fallback_payments_test", "type": "feature_flag"}, "impacted_resources": [{"name": "payments_api", "type": "service"}], "new_value": {"enabled": true, "percentage": "50%", "rule": {"datacenter": "devcycle.us1.prod"}}, "prev_value": {"enabled": true, "percentage": "10%", "rule": {"datacenter": "devcycle.us1.prod"}}}, "category": "change", "message": "payment_processed feature flag has been enabled", "tags": ["env:test"], "title": "payment_processed feature flag updated"}, "type": "event"}}
6464
When the request is sent
6565
Then the response status is 200 OK
6666

lib/datadog_api_client/v2/models/change_event_custom_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ChangeEventCustomAttributes
2727
# Free form object with information related to the `change` event. Can be arbitrarily nested and contain any valid JSON.
2828
attr_accessor :change_metadata
2929

30-
# Object representing a uniquely identified resource. Only the resource type `feature_flag` is supported.
30+
# Object representing a uniquely identified resource.
3131
attr_reader :changed_resource
3232

3333
# A list of resources impacted by this change. It is recommended to provide an impacted resource to display

lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Object representing a uniquely identified resource. Only the resource type `feature_flag` is supported.
20+
# Object representing a uniquely identified resource.
2121
class ChangeEventCustomAttributesChangedResource
2222
include BaseGenericModel
2323

lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ class ChangeEventCustomAttributesChangedResourceType
2222
include BaseEnumModel
2323

2424
FEATURE_FLAG = "feature_flag".freeze
25+
CONFIGURATION = "configuration".freeze
2526
end
2627
end

0 commit comments

Comments
 (0)