Skip to content

Commit

Permalink
Regenerate client from commit 9c185b5 of spec repo (#909)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 20, 2021
1 parent 8ac311b commit 64f28ca
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 5 deletions.
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.4.1.dev11",
"regenerated": "2021-07-16 09:58:36.376087",
"spec_repo_commit": "36f6365"
"regenerated": "2021-07-20 10:14:42.870133",
"spec_repo_commit": "9c185b5"
},
"v2": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-07-16 09:59:14.926810",
"spec_repo_commit": "36f6365"
"regenerated": "2021-07-20 10:15:24.674220",
"spec_repo_commit": "9c185b5"
}
}
}
3 changes: 3 additions & 0 deletions api_docs/v1/TableWidgetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ Name | Type | Description | Notes
**cellDisplayMode** | **List&lt;TableWidgetCellDisplayMode&gt;** | A list of display modes for each table cell. | [optional]
**conditionalFormats** | [**List&lt;WidgetConditionalFormat&gt;**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
**eventQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**formulas** | [**List&lt;WidgetFormula&gt;**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]
**limit** | **Long** | For metric queries, the number of lines to show in the table. Only one request should have this property. | [optional]
**logQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**networkQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**order** | **WidgetSort** | | [optional]
**processQuery** | [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional]
**profileMetricsQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**q** | **String** | Query definition. | [optional]
**queries** | [**List&lt;FormulaAndFunctionQueryDefinition&gt;**](FormulaAndFunctionQueryDefinition.md) | List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** | [optional]
**responseFormat** | **FormulaAndFunctionResponseFormat** | | [optional]
**rumQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**securityQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]

Expand Down
2 changes: 2 additions & 0 deletions api_docs/v1/WidgetFormula.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Formula to be used in a widget query.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**alias** | **String** | Expression alias. | [optional]
**cellDisplayMode** | **TableWidgetCellDisplayMode** | | [optional]
**conditionalFormats** | [**List&lt;WidgetConditionalFormat&gt;**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
**formula** | **String** | String expression built from queries, formulas, and functions. |
**limit** | [**WidgetFormulaLimit**](WidgetFormulaLimit.md) | | [optional]

Expand Down
108 changes: 108 additions & 0 deletions src/main/java/com/datadog/api/v1/client/model/TableWidgetRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@
TableWidgetRequest.JSON_PROPERTY_CELL_DISPLAY_MODE,
TableWidgetRequest.JSON_PROPERTY_CONDITIONAL_FORMATS,
TableWidgetRequest.JSON_PROPERTY_EVENT_QUERY,
TableWidgetRequest.JSON_PROPERTY_FORMULAS,
TableWidgetRequest.JSON_PROPERTY_LIMIT,
TableWidgetRequest.JSON_PROPERTY_LOG_QUERY,
TableWidgetRequest.JSON_PROPERTY_NETWORK_QUERY,
TableWidgetRequest.JSON_PROPERTY_ORDER,
TableWidgetRequest.JSON_PROPERTY_PROCESS_QUERY,
TableWidgetRequest.JSON_PROPERTY_PROFILE_METRICS_QUERY,
TableWidgetRequest.JSON_PROPERTY_Q,
TableWidgetRequest.JSON_PROPERTY_QUERIES,
TableWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT,
TableWidgetRequest.JSON_PROPERTY_RUM_QUERY,
TableWidgetRequest.JSON_PROPERTY_SECURITY_QUERY
})
Expand All @@ -62,6 +65,9 @@ public class TableWidgetRequest {
public static final String JSON_PROPERTY_EVENT_QUERY = "event_query";
private LogQueryDefinition eventQuery;

public static final String JSON_PROPERTY_FORMULAS = "formulas";
private List<WidgetFormula> formulas = null;

public static final String JSON_PROPERTY_LIMIT = "limit";
private Long limit;

Expand All @@ -83,6 +89,12 @@ public class TableWidgetRequest {
public static final String JSON_PROPERTY_Q = "q";
private String q;

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

public static final String JSON_PROPERTY_RESPONSE_FORMAT = "response_format";
private FormulaAndFunctionResponseFormat responseFormat;

public static final String JSON_PROPERTY_RUM_QUERY = "rum_query";
private LogQueryDefinition rumQuery;

Expand Down Expand Up @@ -260,6 +272,37 @@ public void setEventQuery(LogQueryDefinition eventQuery) {
this.eventQuery = eventQuery;
}

public TableWidgetRequest formulas(List<WidgetFormula> formulas) {
this.formulas = formulas;
return this;
}

public TableWidgetRequest addFormulasItem(WidgetFormula formulasItem) {
if (this.formulas == null) {
this.formulas = new ArrayList<>();
}
this.formulas.add(formulasItem);
return this;
}

/**
* List of formulas that operate on queries. **This feature is currently in beta.**
*
* @return formulas
*/
@javax.annotation.Nullable
@ApiModelProperty(
value = "List of formulas that operate on queries. **This feature is currently in beta.**")
@JsonProperty(JSON_PROPERTY_FORMULAS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<WidgetFormula> getFormulas() {
return formulas;
}

public void setFormulas(List<WidgetFormula> formulas) {
this.formulas = formulas;
}

public TableWidgetRequest limit(Long limit) {
this.limit = limit;
return this;
Expand Down Expand Up @@ -418,6 +461,62 @@ public void setQ(String q) {
this.q = q;
}

public TableWidgetRequest queries(List<FormulaAndFunctionQueryDefinition> queries) {
this.queries = queries;
return this;
}

public TableWidgetRequest addQueriesItem(FormulaAndFunctionQueryDefinition queriesItem) {
if (this.queries == null) {
this.queries = new ArrayList<>();
}
this.queries.add(queriesItem);
return this;
}

/**
* List of queries that can be returned directly or used in formulas. **This feature is currently
* in beta.**
*
* @return queries
*/
@javax.annotation.Nullable
@ApiModelProperty(
value =
"List of queries that can be returned directly or used in formulas. **This feature is"
+ " currently in beta.**")
@JsonProperty(JSON_PROPERTY_QUERIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<FormulaAndFunctionQueryDefinition> getQueries() {
return queries;
}

public void setQueries(List<FormulaAndFunctionQueryDefinition> queries) {
this.queries = queries;
}

public TableWidgetRequest responseFormat(FormulaAndFunctionResponseFormat responseFormat) {
this.responseFormat = responseFormat;
return this;
}

/**
* Get responseFormat
*
* @return responseFormat
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RESPONSE_FORMAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public FormulaAndFunctionResponseFormat getResponseFormat() {
return responseFormat;
}

public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) {
this.responseFormat = responseFormat;
}

public TableWidgetRequest rumQuery(LogQueryDefinition rumQuery) {
this.rumQuery = rumQuery;
return this;
Expand Down Expand Up @@ -479,13 +578,16 @@ public boolean equals(Object o) {
&& Objects.equals(this.cellDisplayMode, tableWidgetRequest.cellDisplayMode)
&& Objects.equals(this.conditionalFormats, tableWidgetRequest.conditionalFormats)
&& Objects.equals(this.eventQuery, tableWidgetRequest.eventQuery)
&& Objects.equals(this.formulas, tableWidgetRequest.formulas)
&& Objects.equals(this.limit, tableWidgetRequest.limit)
&& Objects.equals(this.logQuery, tableWidgetRequest.logQuery)
&& Objects.equals(this.networkQuery, tableWidgetRequest.networkQuery)
&& Objects.equals(this.order, tableWidgetRequest.order)
&& Objects.equals(this.processQuery, tableWidgetRequest.processQuery)
&& Objects.equals(this.profileMetricsQuery, tableWidgetRequest.profileMetricsQuery)
&& Objects.equals(this.q, tableWidgetRequest.q)
&& Objects.equals(this.queries, tableWidgetRequest.queries)
&& Objects.equals(this.responseFormat, tableWidgetRequest.responseFormat)
&& Objects.equals(this.rumQuery, tableWidgetRequest.rumQuery)
&& Objects.equals(this.securityQuery, tableWidgetRequest.securityQuery);
}
Expand All @@ -500,13 +602,16 @@ public int hashCode() {
cellDisplayMode,
conditionalFormats,
eventQuery,
formulas,
limit,
logQuery,
networkQuery,
order,
processQuery,
profileMetricsQuery,
q,
queries,
responseFormat,
rumQuery,
securityQuery);
}
Expand All @@ -522,6 +627,7 @@ public String toString() {
sb.append(" cellDisplayMode: ").append(toIndentedString(cellDisplayMode)).append("\n");
sb.append(" conditionalFormats: ").append(toIndentedString(conditionalFormats)).append("\n");
sb.append(" eventQuery: ").append(toIndentedString(eventQuery)).append("\n");
sb.append(" formulas: ").append(toIndentedString(formulas)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" logQuery: ").append(toIndentedString(logQuery)).append("\n");
sb.append(" networkQuery: ").append(toIndentedString(networkQuery)).append("\n");
Expand All @@ -531,6 +637,8 @@ public String toString() {
.append(toIndentedString(profileMetricsQuery))
.append("\n");
sb.append(" q: ").append(toIndentedString(q)).append("\n");
sb.append(" queries: ").append(toIndentedString(queries)).append("\n");
sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n");
sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n");
sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n");
sb.append("}");
Expand Down
68 changes: 67 additions & 1 deletion src/main/java/com/datadog/api/v1/client/model/WidgetFormula.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** Formula to be used in a widget query. */
@ApiModel(description = "Formula to be used in a widget query.")
@JsonPropertyOrder({
WidgetFormula.JSON_PROPERTY_ALIAS,
WidgetFormula.JSON_PROPERTY_CELL_DISPLAY_MODE,
WidgetFormula.JSON_PROPERTY_CONDITIONAL_FORMATS,
WidgetFormula.JSON_PROPERTY_FORMULA,
WidgetFormula.JSON_PROPERTY_LIMIT
})
Expand All @@ -30,6 +34,12 @@ public class WidgetFormula {
public static final String JSON_PROPERTY_ALIAS = "alias";
private String alias;

public static final String JSON_PROPERTY_CELL_DISPLAY_MODE = "cell_display_mode";
private TableWidgetCellDisplayMode cellDisplayMode;

public static final String JSON_PROPERTY_CONDITIONAL_FORMATS = "conditional_formats";
private List<WidgetConditionalFormat> conditionalFormats = null;

public static final String JSON_PROPERTY_FORMULA = "formula";
private String formula;

Expand Down Expand Up @@ -66,6 +76,58 @@ public void setAlias(String alias) {
this.alias = alias;
}

public WidgetFormula cellDisplayMode(TableWidgetCellDisplayMode cellDisplayMode) {
this.cellDisplayMode = cellDisplayMode;
return this;
}

/**
* Get cellDisplayMode
*
* @return cellDisplayMode
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CELL_DISPLAY_MODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TableWidgetCellDisplayMode getCellDisplayMode() {
return cellDisplayMode;
}

public void setCellDisplayMode(TableWidgetCellDisplayMode cellDisplayMode) {
this.cellDisplayMode = cellDisplayMode;
}

public WidgetFormula conditionalFormats(List<WidgetConditionalFormat> conditionalFormats) {
this.conditionalFormats = conditionalFormats;
return this;
}

public WidgetFormula addConditionalFormatsItem(WidgetConditionalFormat conditionalFormatsItem) {
if (this.conditionalFormats == null) {
this.conditionalFormats = new ArrayList<>();
}
this.conditionalFormats.add(conditionalFormatsItem);
return this;
}

/**
* List of conditional formats.
*
* @return conditionalFormats
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "List of conditional formats.")
@JsonProperty(JSON_PROPERTY_CONDITIONAL_FORMATS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<WidgetConditionalFormat> getConditionalFormats() {
return conditionalFormats;
}

public void setConditionalFormats(List<WidgetConditionalFormat> conditionalFormats) {
this.conditionalFormats = conditionalFormats;
}

public WidgetFormula formula(String formula) {
this.formula = formula;
return this;
Expand Down Expand Up @@ -123,20 +185,24 @@ public boolean equals(Object o) {
}
WidgetFormula widgetFormula = (WidgetFormula) o;
return Objects.equals(this.alias, widgetFormula.alias)
&& Objects.equals(this.cellDisplayMode, widgetFormula.cellDisplayMode)
&& Objects.equals(this.conditionalFormats, widgetFormula.conditionalFormats)
&& Objects.equals(this.formula, widgetFormula.formula)
&& Objects.equals(this.limit, widgetFormula.limit);
}

@Override
public int hashCode() {
return Objects.hash(alias, formula, limit);
return Objects.hash(alias, cellDisplayMode, conditionalFormats, formula, limit);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WidgetFormula {\n");
sb.append(" alias: ").append(toIndentedString(alias)).append("\n");
sb.append(" cellDisplayMode: ").append(toIndentedString(cellDisplayMode)).append("\n");
sb.append(" conditionalFormats: ").append(toIndentedString(conditionalFormats)).append("\n");
sb.append(" formula: ").append(toIndentedString(formula)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append("}");
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/com/datadog/api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23159,6 +23159,12 @@ components:
type: array
event_query:
$ref: '#/components/schemas/LogQueryDefinition'
formulas:
description: List of formulas that operate on queries. **This feature is
currently in beta.**
items:
$ref: '#/components/schemas/WidgetFormula'
type: array
limit:
description: For metric queries, the number of lines to show in the table.
Only one request should have this property.
Expand All @@ -23177,6 +23183,14 @@ components:
q:
description: Query definition.
type: string
queries:
description: List of queries that can be returned directly or used in formulas.
**This feature is currently in beta.**
items:
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
type: array
response_format:
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
rum_query:
$ref: '#/components/schemas/LogQueryDefinition'
security_query:
Expand Down Expand Up @@ -28201,6 +28215,13 @@ components:
alias:
description: Expression alias.
type: string
cell_display_mode:
$ref: '#/components/schemas/TableWidgetCellDisplayMode'
conditional_formats:
description: List of conditional formats.
items:
$ref: '#/components/schemas/WidgetConditionalFormat'
type: array
formula:
description: String expression built from queries, formulas, and functions.
example: func(a) + b
Expand Down

0 comments on commit 64f28ca

Please sign in to comment.