Skip to content

Commit c8399c9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit be17a7b8 of spec repo (#2184)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f565b82 commit c8399c9

File tree

6 files changed

+9
-42
lines changed

6 files changed

+9
-42
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-10 22:21:30.858340",
8-
"spec_repo_commit": "2f8c42a8"
7+
"regenerated": "2025-01-13 17:10:15.192490",
8+
"spec_repo_commit": "be17a7b8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-10 22:21:30.873510",
13-
"spec_repo_commit": "2f8c42a8"
12+
"regenerated": "2025-01-13 17:10:15.208200",
13+
"spec_repo_commit": "be17a7b8"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5926,9 +5926,6 @@ components:
59265926

59275927
Make sure to use an application key created by an admin.'
59285928
properties:
5929-
description:
5930-
description: A description of the pipeline.
5931-
type: string
59325929
filter:
59335930
$ref: '#/components/schemas/LogsFilter'
59345931
id:
@@ -5951,12 +5948,6 @@ components:
59515948
items:
59525949
$ref: '#/components/schemas/LogsProcessor'
59535950
type: array
5954-
tags:
5955-
description: A list of tags associated with the pipeline.
5956-
items:
5957-
description: A single tag using the format `key:value`.
5958-
type: string
5959-
type: array
59605951
type:
59615952
description: Type of pipeline.
59625953
example: pipeline

examples/v1/logs-pipelines/CreateLogsPipeline.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
type: DatadogAPIClient::V1::LogsGrokParserType::GROK_PARSER,
2121
}),
2222
],
23-
tags: [],
2423
})
2524
p api_instance.create_logs_pipeline(body)

examples/v1/logs-pipelines/UpdateLogsPipeline.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
type: DatadogAPIClient::V1::LogsGrokParserType::GROK_PARSER,
2121
}),
2222
],
23-
tags: [],
2423
})
2524
p api_instance.update_logs_pipeline("pipeline_id", body)

features/v1/logs_pipelines.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Feature: Logs Pipelines
2626
@generated @skip @team:DataDog/event-platform-experience
2727
Scenario: Create a pipeline returns "Bad Request" response
2828
Given new "CreateLogsPipeline" request
29-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
29+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
3030
When the request is sent
3131
Then the response status is 400 Bad Request
3232

3333
@generated @skip @team:DataDog/event-platform-experience
3434
Scenario: Create a pipeline returns "OK" response
3535
Given new "CreateLogsPipeline" request
36-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
36+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
3737
When the request is sent
3838
Then the response status is 200 OK
3939

@@ -81,15 +81,15 @@ Feature: Logs Pipelines
8181
Scenario: Update a pipeline returns "Bad Request" response
8282
Given new "UpdateLogsPipeline" request
8383
And request contains "pipeline_id" parameter from "REPLACE.ME"
84-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
84+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
8585
When the request is sent
8686
Then the response status is 400 Bad Request
8787

8888
@generated @skip @team:DataDog/event-platform-experience
8989
Scenario: Update a pipeline returns "OK" response
9090
Given new "UpdateLogsPipeline" request
9191
And request contains "pipeline_id" parameter from "REPLACE.ME"
92-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
92+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
9393
When the request is sent
9494
Then the response status is 200 OK
9595

lib/datadog_api_client/v1/models/logs_pipeline.rb

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ module DatadogAPIClient::V1
2525
class LogsPipeline
2626
include BaseGenericModel
2727

28-
# A description of the pipeline.
29-
attr_accessor :description
30-
3128
# Filter for logs.
3229
attr_accessor :filter
3330

@@ -46,9 +43,6 @@ class LogsPipeline
4643
# Ordered list of processors in this pipeline.
4744
attr_accessor :processors
4845

49-
# A list of tags associated with the pipeline.
50-
attr_accessor :tags
51-
5246
# Type of pipeline.
5347
attr_accessor :type
5448

@@ -58,14 +52,12 @@ class LogsPipeline
5852
# @!visibility private
5953
def self.attribute_map
6054
{
61-
:'description' => :'description',
6255
:'filter' => :'filter',
6356
:'id' => :'id',
6457
:'is_enabled' => :'is_enabled',
6558
:'is_read_only' => :'is_read_only',
6659
:'name' => :'name',
6760
:'processors' => :'processors',
68-
:'tags' => :'tags',
6961
:'type' => :'type'
7062
}
7163
end
@@ -74,14 +66,12 @@ def self.attribute_map
7466
# @!visibility private
7567
def self.openapi_types
7668
{
77-
:'description' => :'String',
7869
:'filter' => :'LogsFilter',
7970
:'id' => :'String',
8071
:'is_enabled' => :'Boolean',
8172
:'is_read_only' => :'Boolean',
8273
:'name' => :'String',
8374
:'processors' => :'Array<LogsProcessor>',
84-
:'tags' => :'Array<String>',
8575
:'type' => :'String'
8676
}
8777
end
@@ -104,10 +94,6 @@ def initialize(attributes = {})
10494
end
10595
}
10696

107-
if attributes.key?(:'description')
108-
self.description = attributes[:'description']
109-
end
110-
11197
if attributes.key?(:'filter')
11298
self.filter = attributes[:'filter']
11399
end
@@ -134,12 +120,6 @@ def initialize(attributes = {})
134120
end
135121
end
136122

137-
if attributes.key?(:'tags')
138-
if (value = attributes[:'tags']).is_a?(Array)
139-
self.tags = value
140-
end
141-
end
142-
143123
if attributes.key?(:'type')
144124
self.type = attributes[:'type']
145125
end
@@ -189,14 +169,12 @@ def to_hash
189169
def ==(o)
190170
return true if self.equal?(o)
191171
self.class == o.class &&
192-
description == o.description &&
193172
filter == o.filter &&
194173
id == o.id &&
195174
is_enabled == o.is_enabled &&
196175
is_read_only == o.is_read_only &&
197176
name == o.name &&
198177
processors == o.processors &&
199-
tags == o.tags &&
200178
type == o.type &&
201179
additional_properties == o.additional_properties
202180
end
@@ -205,7 +183,7 @@ def ==(o)
205183
# @return [Integer] Hash code
206184
# @!visibility private
207185
def hash
208-
[description, filter, id, is_enabled, is_read_only, name, processors, tags, type, additional_properties].hash
186+
[filter, id, is_enabled, is_read_only, name, processors, type, additional_properties].hash
209187
end
210188
end
211189
end

0 commit comments

Comments
 (0)