Skip to content

Commit 7e86ec4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Rename embeddedQueries attribute to queries in app builder api (#2690)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8966aca commit 7e86ec4

File tree

38 files changed

+281
-293
lines changed

38 files changed

+281
-293
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-02-03 17:18:18.781362",
8-
"spec_repo_commit": "b584742c"
7+
"regenerated": "2025-02-03 18:38:23.758028",
8+
"spec_repo_commit": "325cdedf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-03 17:18:18.796817",
13-
"spec_repo_commit": "b584742c"
12+
"regenerated": "2025-02-03 18:38:23.773753",
13+
"spec_repo_commit": "325cdedf"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7322,8 +7322,8 @@ components:
73227322
type: gridCell
73237323
type: grid
73247324
description: This is a simple example app
7325-
embeddedQueries: []
73267325
name: Example App
7326+
queries: []
73277327
rootInstanceName: grid0
73287328
type: appDefinitions
73297329
properties:
@@ -7351,15 +7351,15 @@ components:
73517351
description:
73527352
description: A human-readable description for the app.
73537353
type: string
7354-
embeddedQueries:
7354+
name:
7355+
description: The name of the app.
7356+
type: string
7357+
queries:
73557358
description: An array of queries, such as external actions and state variables,
73567359
that the app uses.
73577360
items:
73587361
$ref: '#/components/schemas/Query'
73597362
type: array
7360-
name:
7361-
description: The name of the app.
7362-
type: string
73637363
rootInstanceName:
73647364
description: The name of the root component of the app. This must be a `grid`
73657365
component that contains all other components.
@@ -12519,18 +12519,18 @@ components:
1251912519
description:
1252012520
description: A human-readable description for the app.
1252112521
type: string
12522-
embeddedQueries:
12523-
description: An array of queries, such as external actions and state variables,
12524-
that the app uses.
12525-
items:
12526-
$ref: '#/components/schemas/Query'
12527-
type: array
1252812522
favorite:
1252912523
description: Whether the app is marked as a favorite by the current user.
1253012524
type: boolean
1253112525
name:
1253212526
description: The name of the app.
1253312527
type: string
12528+
queries:
12529+
description: An array of queries, such as external actions and state variables,
12530+
that the app uses.
12531+
items:
12532+
$ref: '#/components/schemas/Query'
12533+
type: array
1253412534
rootInstanceName:
1253512535
description: The name of the root component of the app. This must be a `grid`
1253612536
component that contains all other components.
@@ -29742,8 +29742,8 @@ components:
2974229742
type: gridCell
2974329743
type: grid
2974429744
description: This is a simple example app
29745-
embeddedQueries: []
2974629745
name: Example App
29746+
queries: []
2974729747
rootInstanceName: grid0
2974829748
id: 9e20cbaf-68da-45a6-9ccf-54193ac29fa5
2974929749
type: appDefinitions
@@ -29782,16 +29782,16 @@ components:
2978229782
description:
2978329783
description: The new human-readable description for the app.
2978429784
type: string
29785-
embeddedQueries:
29785+
name:
29786+
description: The new name of the app.
29787+
type: string
29788+
queries:
2978629789
description: The new array of queries, such as external actions and state
2978729790
variables, that the app uses. If this field is set, all existing queries
2978829791
are replaced with the new queries under this field.
2978929792
items:
2979029793
$ref: '#/components/schemas/Query'
2979129794
type: array
29792-
name:
29793-
description: The new name of the app.
29794-
type: string
2979529795
rootInstanceName:
2979629796
description: The new name of the root component of the app. This must be
2979729797
a `grid` component that contains all other components.
@@ -29852,18 +29852,18 @@ components:
2985229852
description:
2985329853
description: The human-readable description for the app.
2985429854
type: string
29855-
embeddedQueries:
29856-
description: An array of queries, such as external actions and state variables,
29857-
that the app uses.
29858-
items:
29859-
$ref: '#/components/schemas/Query'
29860-
type: array
2986129855
favorite:
2986229856
description: Whether the app is marked as a favorite by the current user.
2986329857
type: boolean
2986429858
name:
2986529859
description: The name of the app.
2986629860
type: string
29861+
queries:
29862+
description: An array of queries, such as external actions and state variables,
29863+
that the app uses.
29864+
items:
29865+
$ref: '#/components/schemas/Query'
29866+
type: array
2986729867
rootInstanceName:
2986829868
description: The name of the root component of the app. This must be a `grid`
2986929869
component that contains all other components.

src/main/java/com/datadog/api/client/v2/model/CreateAppRequestDataAttributes.java

Lines changed: 37 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
@JsonPropertyOrder({
2323
CreateAppRequestDataAttributes.JSON_PROPERTY_COMPONENTS,
2424
CreateAppRequestDataAttributes.JSON_PROPERTY_DESCRIPTION,
25-
CreateAppRequestDataAttributes.JSON_PROPERTY_EMBEDDED_QUERIES,
2625
CreateAppRequestDataAttributes.JSON_PROPERTY_NAME,
26+
CreateAppRequestDataAttributes.JSON_PROPERTY_QUERIES,
2727
CreateAppRequestDataAttributes.JSON_PROPERTY_ROOT_INSTANCE_NAME,
2828
CreateAppRequestDataAttributes.JSON_PROPERTY_TAGS
2929
})
@@ -37,12 +37,12 @@ public class CreateAppRequestDataAttributes {
3737
public static final String JSON_PROPERTY_DESCRIPTION = "description";
3838
private String description;
3939

40-
public static final String JSON_PROPERTY_EMBEDDED_QUERIES = "embeddedQueries";
41-
private List<Query> embeddedQueries = null;
42-
4340
public static final String JSON_PROPERTY_NAME = "name";
4441
private String name;
4542

43+
public static final String JSON_PROPERTY_QUERIES = "queries";
44+
private List<Query> queries = null;
45+
4646
public static final String JSON_PROPERTY_ROOT_INSTANCE_NAME = "rootInstanceName";
4747
private String rootInstanceName;
4848

@@ -103,58 +103,58 @@ public void setDescription(String description) {
103103
this.description = description;
104104
}
105105

106-
public CreateAppRequestDataAttributes embeddedQueries(List<Query> embeddedQueries) {
107-
this.embeddedQueries = embeddedQueries;
108-
for (Query item : embeddedQueries) {
109-
this.unparsed |= item.unparsed;
110-
}
111-
return this;
112-
}
113-
114-
public CreateAppRequestDataAttributes addEmbeddedQueriesItem(Query embeddedQueriesItem) {
115-
if (this.embeddedQueries == null) {
116-
this.embeddedQueries = new ArrayList<>();
117-
}
118-
this.embeddedQueries.add(embeddedQueriesItem);
119-
this.unparsed |= embeddedQueriesItem.unparsed;
106+
public CreateAppRequestDataAttributes name(String name) {
107+
this.name = name;
120108
return this;
121109
}
122110

123111
/**
124-
* An array of queries, such as external actions and state variables, that the app uses.
112+
* The name of the app.
125113
*
126-
* @return embeddedQueries
114+
* @return name
127115
*/
128116
@jakarta.annotation.Nullable
129-
@JsonProperty(JSON_PROPERTY_EMBEDDED_QUERIES)
117+
@JsonProperty(JSON_PROPERTY_NAME)
130118
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131-
public List<Query> getEmbeddedQueries() {
132-
return embeddedQueries;
119+
public String getName() {
120+
return name;
121+
}
122+
123+
public void setName(String name) {
124+
this.name = name;
133125
}
134126

135-
public void setEmbeddedQueries(List<Query> embeddedQueries) {
136-
this.embeddedQueries = embeddedQueries;
127+
public CreateAppRequestDataAttributes queries(List<Query> queries) {
128+
this.queries = queries;
129+
for (Query item : queries) {
130+
this.unparsed |= item.unparsed;
131+
}
132+
return this;
137133
}
138134

139-
public CreateAppRequestDataAttributes name(String name) {
140-
this.name = name;
135+
public CreateAppRequestDataAttributes addQueriesItem(Query queriesItem) {
136+
if (this.queries == null) {
137+
this.queries = new ArrayList<>();
138+
}
139+
this.queries.add(queriesItem);
140+
this.unparsed |= queriesItem.unparsed;
141141
return this;
142142
}
143143

144144
/**
145-
* The name of the app.
145+
* An array of queries, such as external actions and state variables, that the app uses.
146146
*
147-
* @return name
147+
* @return queries
148148
*/
149149
@jakarta.annotation.Nullable
150-
@JsonProperty(JSON_PROPERTY_NAME)
150+
@JsonProperty(JSON_PROPERTY_QUERIES)
151151
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152-
public String getName() {
153-
return name;
152+
public List<Query> getQueries() {
153+
return queries;
154154
}
155155

156-
public void setName(String name) {
157-
this.name = name;
156+
public void setQueries(List<Query> queries) {
157+
this.queries = queries;
158158
}
159159

160160
public CreateAppRequestDataAttributes rootInstanceName(String rootInstanceName) {
@@ -267,8 +267,8 @@ public boolean equals(Object o) {
267267
(CreateAppRequestDataAttributes) o;
268268
return Objects.equals(this.components, createAppRequestDataAttributes.components)
269269
&& Objects.equals(this.description, createAppRequestDataAttributes.description)
270-
&& Objects.equals(this.embeddedQueries, createAppRequestDataAttributes.embeddedQueries)
271270
&& Objects.equals(this.name, createAppRequestDataAttributes.name)
271+
&& Objects.equals(this.queries, createAppRequestDataAttributes.queries)
272272
&& Objects.equals(this.rootInstanceName, createAppRequestDataAttributes.rootInstanceName)
273273
&& Objects.equals(this.tags, createAppRequestDataAttributes.tags)
274274
&& Objects.equals(
@@ -278,13 +278,7 @@ public boolean equals(Object o) {
278278
@Override
279279
public int hashCode() {
280280
return Objects.hash(
281-
components,
282-
description,
283-
embeddedQueries,
284-
name,
285-
rootInstanceName,
286-
tags,
287-
additionalProperties);
281+
components, description, name, queries, rootInstanceName, tags, additionalProperties);
288282
}
289283

290284
@Override
@@ -293,8 +287,8 @@ public String toString() {
293287
sb.append("class CreateAppRequestDataAttributes {\n");
294288
sb.append(" components: ").append(toIndentedString(components)).append("\n");
295289
sb.append(" description: ").append(toIndentedString(description)).append("\n");
296-
sb.append(" embeddedQueries: ").append(toIndentedString(embeddedQueries)).append("\n");
297290
sb.append(" name: ").append(toIndentedString(name)).append("\n");
291+
sb.append(" queries: ").append(toIndentedString(queries)).append("\n");
298292
sb.append(" rootInstanceName: ").append(toIndentedString(rootInstanceName)).append("\n");
299293
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
300294
sb.append(" additionalProperties: ")

0 commit comments

Comments
 (0)