Skip to content

Commit 7b1322c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1eca5c87 of spec repo
1 parent f6fe04c commit 7b1322c

File tree

4 files changed

+90
-10
lines changed

4 files changed

+90
-10
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:12.839933",
8-
"spec_repo_commit": "8d40e082"
7+
"regenerated": "2025-01-10 13:52:08.416700",
8+
"spec_repo_commit": "1eca5c87"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-09 22:06:12.854479",
13-
"spec_repo_commit": "8d40e082"
12+
"regenerated": "2025-01-10 13:52:08.433527",
13+
"spec_repo_commit": "1eca5c87"
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

src/main/java/com/datadog/api/client/v1/model/LogsPipeline.java

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,23 @@
2727
* application key created by an admin.
2828
*/
2929
@JsonPropertyOrder({
30+
LogsPipeline.JSON_PROPERTY_DESCRIPTION,
3031
LogsPipeline.JSON_PROPERTY_FILTER,
3132
LogsPipeline.JSON_PROPERTY_ID,
3233
LogsPipeline.JSON_PROPERTY_IS_ENABLED,
3334
LogsPipeline.JSON_PROPERTY_IS_READ_ONLY,
3435
LogsPipeline.JSON_PROPERTY_NAME,
3536
LogsPipeline.JSON_PROPERTY_PROCESSORS,
37+
LogsPipeline.JSON_PROPERTY_TAGS,
3638
LogsPipeline.JSON_PROPERTY_TYPE
3739
})
3840
@jakarta.annotation.Generated(
3941
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
4042
public class LogsPipeline {
4143
@JsonIgnore public boolean unparsed = false;
44+
public static final String JSON_PROPERTY_DESCRIPTION = "description";
45+
private String description;
46+
4247
public static final String JSON_PROPERTY_FILTER = "filter";
4348
private LogsFilter filter;
4449

@@ -57,6 +62,9 @@ public class LogsPipeline {
5762
public static final String JSON_PROPERTY_PROCESSORS = "processors";
5863
private List<LogsProcessor> processors = null;
5964

65+
public static final String JSON_PROPERTY_TAGS = "tags";
66+
private List<String> tags = null;
67+
6068
public static final String JSON_PROPERTY_TYPE = "type";
6169
private String type;
6270

@@ -67,6 +75,27 @@ public LogsPipeline(@JsonProperty(required = true, value = JSON_PROPERTY_NAME) S
6775
this.name = name;
6876
}
6977

78+
public LogsPipeline description(String description) {
79+
this.description = description;
80+
return this;
81+
}
82+
83+
/**
84+
* A description of the pipeline.
85+
*
86+
* @return description
87+
*/
88+
@jakarta.annotation.Nullable
89+
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
90+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91+
public String getDescription() {
92+
return description;
93+
}
94+
95+
public void setDescription(String description) {
96+
this.description = description;
97+
}
98+
7099
public LogsPipeline filter(LogsFilter filter) {
71100
this.filter = filter;
72101
this.unparsed |= filter.unparsed;
@@ -187,6 +216,35 @@ public void setProcessors(List<LogsProcessor> processors) {
187216
this.processors = processors;
188217
}
189218

219+
public LogsPipeline tags(List<String> tags) {
220+
this.tags = tags;
221+
return this;
222+
}
223+
224+
public LogsPipeline addTagsItem(String tagsItem) {
225+
if (this.tags == null) {
226+
this.tags = new ArrayList<>();
227+
}
228+
this.tags.add(tagsItem);
229+
return this;
230+
}
231+
232+
/**
233+
* A list of tags associated with the pipeline.
234+
*
235+
* @return tags
236+
*/
237+
@jakarta.annotation.Nullable
238+
@JsonProperty(JSON_PROPERTY_TAGS)
239+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240+
public List<String> getTags() {
241+
return tags;
242+
}
243+
244+
public void setTags(List<String> tags) {
245+
this.tags = tags;
246+
}
247+
190248
/**
191249
* Type of pipeline.
192250
*
@@ -255,32 +313,45 @@ public boolean equals(Object o) {
255313
return false;
256314
}
257315
LogsPipeline logsPipeline = (LogsPipeline) o;
258-
return Objects.equals(this.filter, logsPipeline.filter)
316+
return Objects.equals(this.description, logsPipeline.description)
317+
&& Objects.equals(this.filter, logsPipeline.filter)
259318
&& Objects.equals(this.id, logsPipeline.id)
260319
&& Objects.equals(this.isEnabled, logsPipeline.isEnabled)
261320
&& Objects.equals(this.isReadOnly, logsPipeline.isReadOnly)
262321
&& Objects.equals(this.name, logsPipeline.name)
263322
&& Objects.equals(this.processors, logsPipeline.processors)
323+
&& Objects.equals(this.tags, logsPipeline.tags)
264324
&& Objects.equals(this.type, logsPipeline.type)
265325
&& Objects.equals(this.additionalProperties, logsPipeline.additionalProperties);
266326
}
267327

268328
@Override
269329
public int hashCode() {
270330
return Objects.hash(
271-
filter, id, isEnabled, isReadOnly, name, processors, type, additionalProperties);
331+
description,
332+
filter,
333+
id,
334+
isEnabled,
335+
isReadOnly,
336+
name,
337+
processors,
338+
tags,
339+
type,
340+
additionalProperties);
272341
}
273342

274343
@Override
275344
public String toString() {
276345
StringBuilder sb = new StringBuilder();
277346
sb.append("class LogsPipeline {\n");
347+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
278348
sb.append(" filter: ").append(toIndentedString(filter)).append("\n");
279349
sb.append(" id: ").append(toIndentedString(id)).append("\n");
280350
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
281351
sb.append(" isReadOnly: ").append(toIndentedString(isReadOnly)).append("\n");
282352
sb.append(" name: ").append(toIndentedString(name)).append("\n");
283353
sb.append(" processors: ").append(toIndentedString(processors)).append("\n");
354+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
284355
sb.append(" type: ").append(toIndentedString(type)).append("\n");
285356
sb.append(" additionalProperties: ")
286357
.append(toIndentedString(additionalProperties))

src/test/resources/com/datadog/api/client/v1/api/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

0 commit comments

Comments
 (0)