Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename embeddedQueries attribute to queries in app builder api #2690

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 17:18:18.781362",
"spec_repo_commit": "b584742c"
"regenerated": "2025-02-03 18:38:23.758028",
"spec_repo_commit": "325cdedf"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 17:18:18.796817",
"spec_repo_commit": "b584742c"
"regenerated": "2025-02-03 18:38:23.773753",
"spec_repo_commit": "325cdedf"
}
}
}
44 changes: 22 additions & 22 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7322,8 +7322,8 @@ components:
type: gridCell
type: grid
description: This is a simple example app
embeddedQueries: []
name: Example App
queries: []
rootInstanceName: grid0
type: appDefinitions
properties:
Expand Down Expand Up @@ -7351,15 +7351,15 @@ components:
description:
description: A human-readable description for the app.
type: string
embeddedQueries:
name:
description: The name of the app.
type: string
queries:
description: An array of queries, such as external actions and state variables,
that the app uses.
items:
$ref: '#/components/schemas/Query'
type: array
name:
description: The name of the app.
type: string
rootInstanceName:
description: The name of the root component of the app. This must be a `grid`
component that contains all other components.
Expand Down Expand Up @@ -12519,18 +12519,18 @@ components:
description:
description: A human-readable description for the app.
type: string
embeddedQueries:
description: An array of queries, such as external actions and state variables,
that the app uses.
items:
$ref: '#/components/schemas/Query'
type: array
favorite:
description: Whether the app is marked as a favorite by the current user.
type: boolean
name:
description: The name of the app.
type: string
queries:
description: An array of queries, such as external actions and state variables,
that the app uses.
items:
$ref: '#/components/schemas/Query'
type: array
rootInstanceName:
description: The name of the root component of the app. This must be a `grid`
component that contains all other components.
Expand Down Expand Up @@ -29742,8 +29742,8 @@ components:
type: gridCell
type: grid
description: This is a simple example app
embeddedQueries: []
name: Example App
queries: []
rootInstanceName: grid0
id: 9e20cbaf-68da-45a6-9ccf-54193ac29fa5
type: appDefinitions
Expand Down Expand Up @@ -29782,16 +29782,16 @@ components:
description:
description: The new human-readable description for the app.
type: string
embeddedQueries:
name:
description: The new name of the app.
type: string
queries:
description: The new array of queries, such as external actions and state
variables, that the app uses. If this field is set, all existing queries
are replaced with the new queries under this field.
items:
$ref: '#/components/schemas/Query'
type: array
name:
description: The new name of the app.
type: string
rootInstanceName:
description: The new name of the root component of the app. This must be
a `grid` component that contains all other components.
Expand Down Expand Up @@ -29852,18 +29852,18 @@ components:
description:
description: The human-readable description for the app.
type: string
embeddedQueries:
description: An array of queries, such as external actions and state variables,
that the app uses.
items:
$ref: '#/components/schemas/Query'
type: array
favorite:
description: Whether the app is marked as a favorite by the current user.
type: boolean
name:
description: The name of the app.
type: string
queries:
description: An array of queries, such as external actions and state variables,
that the app uses.
items:
$ref: '#/components/schemas/Query'
type: array
rootInstanceName:
description: The name of the root component of the app. This must be a `grid`
component that contains all other components.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
@JsonPropertyOrder({
CreateAppRequestDataAttributes.JSON_PROPERTY_COMPONENTS,
CreateAppRequestDataAttributes.JSON_PROPERTY_DESCRIPTION,
CreateAppRequestDataAttributes.JSON_PROPERTY_EMBEDDED_QUERIES,
CreateAppRequestDataAttributes.JSON_PROPERTY_NAME,
CreateAppRequestDataAttributes.JSON_PROPERTY_QUERIES,
CreateAppRequestDataAttributes.JSON_PROPERTY_ROOT_INSTANCE_NAME,
CreateAppRequestDataAttributes.JSON_PROPERTY_TAGS
})
Expand All @@ -37,12 +37,12 @@ public class CreateAppRequestDataAttributes {
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;

public static final String JSON_PROPERTY_EMBEDDED_QUERIES = "embeddedQueries";
private List<Query> embeddedQueries = null;

public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_QUERIES = "queries";
private List<Query> queries = null;

public static final String JSON_PROPERTY_ROOT_INSTANCE_NAME = "rootInstanceName";
private String rootInstanceName;

Expand Down Expand Up @@ -103,58 +103,58 @@ public void setDescription(String description) {
this.description = description;
}

public CreateAppRequestDataAttributes embeddedQueries(List<Query> embeddedQueries) {
this.embeddedQueries = embeddedQueries;
for (Query item : embeddedQueries) {
this.unparsed |= item.unparsed;
}
return this;
}

public CreateAppRequestDataAttributes addEmbeddedQueriesItem(Query embeddedQueriesItem) {
if (this.embeddedQueries == null) {
this.embeddedQueries = new ArrayList<>();
}
this.embeddedQueries.add(embeddedQueriesItem);
this.unparsed |= embeddedQueriesItem.unparsed;
public CreateAppRequestDataAttributes name(String name) {
this.name = name;
return this;
}

/**
* An array of queries, such as external actions and state variables, that the app uses.
* The name of the app.
*
* @return embeddedQueries
* @return name
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EMBEDDED_QUERIES)
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Query> getEmbeddedQueries() {
return embeddedQueries;
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public void setEmbeddedQueries(List<Query> embeddedQueries) {
this.embeddedQueries = embeddedQueries;
public CreateAppRequestDataAttributes queries(List<Query> queries) {
this.queries = queries;
for (Query item : queries) {
this.unparsed |= item.unparsed;
}
return this;
}

public CreateAppRequestDataAttributes name(String name) {
this.name = name;
public CreateAppRequestDataAttributes addQueriesItem(Query queriesItem) {
if (this.queries == null) {
this.queries = new ArrayList<>();
}
this.queries.add(queriesItem);
this.unparsed |= queriesItem.unparsed;
return this;
}

/**
* The name of the app.
* An array of queries, such as external actions and state variables, that the app uses.
*
* @return name
* @return queries
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NAME)
@JsonProperty(JSON_PROPERTY_QUERIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
public List<Query> getQueries() {
return queries;
}

public void setName(String name) {
this.name = name;
public void setQueries(List<Query> queries) {
this.queries = queries;
}

public CreateAppRequestDataAttributes rootInstanceName(String rootInstanceName) {
Expand Down Expand Up @@ -267,8 +267,8 @@ public boolean equals(Object o) {
(CreateAppRequestDataAttributes) o;
return Objects.equals(this.components, createAppRequestDataAttributes.components)
&& Objects.equals(this.description, createAppRequestDataAttributes.description)
&& Objects.equals(this.embeddedQueries, createAppRequestDataAttributes.embeddedQueries)
&& Objects.equals(this.name, createAppRequestDataAttributes.name)
&& Objects.equals(this.queries, createAppRequestDataAttributes.queries)
&& Objects.equals(this.rootInstanceName, createAppRequestDataAttributes.rootInstanceName)
&& Objects.equals(this.tags, createAppRequestDataAttributes.tags)
&& Objects.equals(
Expand All @@ -278,13 +278,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
components,
description,
embeddedQueries,
name,
rootInstanceName,
tags,
additionalProperties);
components, description, name, queries, rootInstanceName, tags, additionalProperties);
}

@Override
Expand All @@ -293,8 +287,8 @@ public String toString() {
sb.append("class CreateAppRequestDataAttributes {\n");
sb.append(" components: ").append(toIndentedString(components)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" embeddedQueries: ").append(toIndentedString(embeddedQueries)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" queries: ").append(toIndentedString(queries)).append("\n");
sb.append(" rootInstanceName: ").append(toIndentedString(rootInstanceName)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" additionalProperties: ")
Expand Down
Loading