Skip to content

Commit c1bae60

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2f8c42a8 of spec repo
1 parent 1147798 commit c1bae60

File tree

6 files changed

+42
-9
lines changed

6 files changed

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

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5926,6 +5926,9 @@ 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
59295932
filter:
59305933
$ref: '#/components/schemas/LogsFilter'
59315934
id:
@@ -5948,6 +5951,12 @@ components:
59485951
items:
59495952
$ref: '#/components/schemas/LogsProcessor'
59505953
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
59515960
type:
59525961
description: Type of pipeline.
59535962
example: pipeline

examples/v1/logs-pipelines/CreateLogsPipeline.rb

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

examples/v1/logs-pipelines/UpdateLogsPipeline.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
type: DatadogAPIClient::V1::LogsGrokParserType::GROK_PARSER,
2121
}),
2222
],
23+
tags: [],
2324
})
2425
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"}]}
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": []}
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"}]}
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": []}
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"}]}
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": []}
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"}]}
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": []}
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: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ module DatadogAPIClient::V1
2525
class LogsPipeline
2626
include BaseGenericModel
2727

28+
# A description of the pipeline.
29+
attr_accessor :description
30+
2831
# Filter for logs.
2932
attr_accessor :filter
3033

@@ -43,6 +46,9 @@ class LogsPipeline
4346
# Ordered list of processors in this pipeline.
4447
attr_accessor :processors
4548

49+
# A list of tags associated with the pipeline.
50+
attr_accessor :tags
51+
4652
# Type of pipeline.
4753
attr_accessor :type
4854

@@ -52,12 +58,14 @@ class LogsPipeline
5258
# @!visibility private
5359
def self.attribute_map
5460
{
61+
:'description' => :'description',
5562
:'filter' => :'filter',
5663
:'id' => :'id',
5764
:'is_enabled' => :'is_enabled',
5865
:'is_read_only' => :'is_read_only',
5966
:'name' => :'name',
6067
:'processors' => :'processors',
68+
:'tags' => :'tags',
6169
:'type' => :'type'
6270
}
6371
end
@@ -66,12 +74,14 @@ def self.attribute_map
6674
# @!visibility private
6775
def self.openapi_types
6876
{
77+
:'description' => :'String',
6978
:'filter' => :'LogsFilter',
7079
:'id' => :'String',
7180
:'is_enabled' => :'Boolean',
7281
:'is_read_only' => :'Boolean',
7382
:'name' => :'String',
7483
:'processors' => :'Array<LogsProcessor>',
84+
:'tags' => :'Array<String>',
7585
:'type' => :'String'
7686
}
7787
end
@@ -94,6 +104,10 @@ def initialize(attributes = {})
94104
end
95105
}
96106

107+
if attributes.key?(:'description')
108+
self.description = attributes[:'description']
109+
end
110+
97111
if attributes.key?(:'filter')
98112
self.filter = attributes[:'filter']
99113
end
@@ -120,6 +134,12 @@ def initialize(attributes = {})
120134
end
121135
end
122136

137+
if attributes.key?(:'tags')
138+
if (value = attributes[:'tags']).is_a?(Array)
139+
self.tags = value
140+
end
141+
end
142+
123143
if attributes.key?(:'type')
124144
self.type = attributes[:'type']
125145
end
@@ -169,12 +189,14 @@ def to_hash
169189
def ==(o)
170190
return true if self.equal?(o)
171191
self.class == o.class &&
192+
description == o.description &&
172193
filter == o.filter &&
173194
id == o.id &&
174195
is_enabled == o.is_enabled &&
175196
is_read_only == o.is_read_only &&
176197
name == o.name &&
177198
processors == o.processors &&
199+
tags == o.tags &&
178200
type == o.type &&
179201
additional_properties == o.additional_properties
180202
end
@@ -183,7 +205,7 @@ def ==(o)
183205
# @return [Integer] Hash code
184206
# @!visibility private
185207
def hash
186-
[filter, id, is_enabled, is_read_only, name, processors, type, additional_properties].hash
208+
[description, filter, id, is_enabled, is_read_only, name, processors, tags, type, additional_properties].hash
187209
end
188210
end
189211
end

0 commit comments

Comments
 (0)