Skip to content

Commit e34f438

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 88133799 of spec repo
1 parent f7c825c commit e34f438

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
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-03-28 19:43:11.098502",
8-
"spec_repo_commit": "1d2132af"
7+
"regenerated": "2025-03-31 10:03:36.472315",
8+
"spec_repo_commit": "88133799"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-28 19:43:11.121309",
13-
"spec_repo_commit": "1d2132af"
12+
"regenerated": "2025-03-31 10:03:36.488210",
13+
"spec_repo_commit": "88133799"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13489,6 +13489,10 @@ components:
1348913489
default: true
1349013490
description: Show the main body of the alert event.
1349113491
type: boolean
13492+
muting:
13493+
default: false
13494+
description: Show interactive buttons to mute the alerting monitor
13495+
type: boolean
1349213496
notified:
1349313497
default: true
1349413498
description: Show the list of @-handles in the alert event.

examples/v1/slack-integration/CreateSlackIntegrationChannel.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
body = DatadogAPIClient::V1::SlackIntegrationChannel.new({
77
display: DatadogAPIClient::V1::SlackIntegrationChannelDisplay.new({
88
message: true,
9+
muting: false,
910
notified: true,
1011
snapshot: true,
1112
tags: true,

examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
body = DatadogAPIClient::V1::SlackIntegrationChannel.new({
77
display: DatadogAPIClient::V1::SlackIntegrationChannelDisplay.new({
88
message: true,
9+
muting: false,
910
notified: true,
1011
snapshot: true,
1112
tags: true,

features/v1/slack_integration.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ Feature: Slack Integration
1313
Scenario: Create a Slack integration channel returns "Bad Request" response
1414
Given new "CreateSlackIntegrationChannel" request
1515
And request contains "account_name" parameter from "REPLACE.ME"
16-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
16+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
1717
When the request is sent
1818
Then the response status is 400 Bad Request
1919

2020
@generated @skip @team:DataDog/saas-integrations
2121
Scenario: Create a Slack integration channel returns "Item Not Found" response
2222
Given new "CreateSlackIntegrationChannel" request
2323
And request contains "account_name" parameter from "REPLACE.ME"
24-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
24+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
2525
When the request is sent
2626
Then the response status is 404 Item Not Found
2727

2828
@generated @skip @team:DataDog/saas-integrations
2929
Scenario: Create a Slack integration channel returns "OK" response
3030
Given new "CreateSlackIntegrationChannel" request
3131
And request contains "account_name" parameter from "REPLACE.ME"
32-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
32+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
3333
When the request is sent
3434
Then the response status is 200 OK
3535

@@ -107,7 +107,7 @@ Feature: Slack Integration
107107
Given new "UpdateSlackIntegrationChannel" request
108108
And request contains "account_name" parameter from "REPLACE.ME"
109109
And request contains "channel_name" parameter from "REPLACE.ME"
110-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
110+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
111111
When the request is sent
112112
Then the response status is 400 Bad Request
113113

@@ -116,7 +116,7 @@ Feature: Slack Integration
116116
Given new "UpdateSlackIntegrationChannel" request
117117
And request contains "account_name" parameter from "REPLACE.ME"
118118
And request contains "channel_name" parameter from "REPLACE.ME"
119-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
119+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
120120
When the request is sent
121121
Then the response status is 404 Item Not Found
122122

@@ -125,6 +125,6 @@ Feature: Slack Integration
125125
Given new "UpdateSlackIntegrationChannel" request
126126
And request contains "account_name" parameter from "REPLACE.ME"
127127
And request contains "channel_name" parameter from "REPLACE.ME"
128-
And body with value {"display": {"message": true, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
128+
And body with value {"display": {"message": true, "muting": false, "notified": true, "snapshot": true, "tags": true}, "name": "#general"}
129129
When the request is sent
130130
Then the response status is 200 OK

lib/datadog_api_client/v1/models/slack_integration_channel_display.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class SlackIntegrationChannelDisplay
2424
# Show the main body of the alert event.
2525
attr_accessor :message
2626

27+
# Show interactive buttons to mute the alerting monitor
28+
attr_accessor :muting
29+
2730
# Show the list of @-handles in the alert event.
2831
attr_accessor :notified
2932

@@ -40,6 +43,7 @@ class SlackIntegrationChannelDisplay
4043
def self.attribute_map
4144
{
4245
:'message' => :'message',
46+
:'muting' => :'muting',
4347
:'notified' => :'notified',
4448
:'snapshot' => :'snapshot',
4549
:'tags' => :'tags'
@@ -51,6 +55,7 @@ def self.attribute_map
5155
def self.openapi_types
5256
{
5357
:'message' => :'Boolean',
58+
:'muting' => :'Boolean',
5459
:'notified' => :'Boolean',
5560
:'snapshot' => :'Boolean',
5661
:'tags' => :'Boolean'
@@ -79,6 +84,10 @@ def initialize(attributes = {})
7984
self.message = attributes[:'message']
8085
end
8186

87+
if attributes.key?(:'muting')
88+
self.muting = attributes[:'muting']
89+
end
90+
8291
if attributes.key?(:'notified')
8392
self.notified = attributes[:'notified']
8493
end
@@ -119,6 +128,7 @@ def ==(o)
119128
return true if self.equal?(o)
120129
self.class == o.class &&
121130
message == o.message &&
131+
muting == o.muting &&
122132
notified == o.notified &&
123133
snapshot == o.snapshot &&
124134
tags == o.tags &&
@@ -129,7 +139,7 @@ def ==(o)
129139
# @return [Integer] Hash code
130140
# @!visibility private
131141
def hash
132-
[message, notified, snapshot, tags, additional_properties].hash
142+
[message, muting, notified, snapshot, tags, additional_properties].hash
133143
end
134144
end
135145
end

0 commit comments

Comments
 (0)