Skip to content

Commit fba3d21

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit db0de24 of spec repo
1 parent c6a7399 commit fba3d21

File tree

7 files changed

+77
-15
lines changed

7 files changed

+77
-15
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.4.1.dev11",
7-
"regenerated": "2021-08-24 15:35:39.950759",
8-
"spec_repo_commit": "fccf269"
7+
"regenerated": "2021-08-25 12:36:17.999543",
8+
"spec_repo_commit": "db0de24"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-08-24 15:36:28.953728",
13-
"spec_repo_commit": "fccf269"
12+
"regenerated": "2021-08-25 12:36:56.521861",
13+
"spec_repo_commit": "db0de24"
1414
}
1515
}
1616
}

api_docs/v1/SyntheticsBrowserTestConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Configuration object for a Synthetic browser test.
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. |
12+
**configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional]
1213
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | |
1314
**setCookie** | **String** | Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. | [optional]
1415
**variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Array of variables used for the test steps. | [optional]

api_docs/v1/SyntheticsTestConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Configuration object for a Synthetic test.
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional]
12-
**configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | API tests only - array of variables used for the test. | [optional]
12+
**configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional]
1313
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
1414
**variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional]
1515

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

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@ApiModel(description = "Configuration object for a Synthetic browser test.")
2525
@JsonPropertyOrder({
2626
SyntheticsBrowserTestConfig.JSON_PROPERTY_ASSERTIONS,
27+
SyntheticsBrowserTestConfig.JSON_PROPERTY_CONFIG_VARIABLES,
2728
SyntheticsBrowserTestConfig.JSON_PROPERTY_REQUEST,
2829
SyntheticsBrowserTestConfig.JSON_PROPERTY_SET_COOKIE,
2930
SyntheticsBrowserTestConfig.JSON_PROPERTY_VARIABLES
@@ -33,6 +34,9 @@ public class SyntheticsBrowserTestConfig {
3334
public static final String JSON_PROPERTY_ASSERTIONS = "assertions";
3435
private List<SyntheticsAssertion> assertions = new ArrayList<>();
3536

37+
public static final String JSON_PROPERTY_CONFIG_VARIABLES = "configVariables";
38+
private List<SyntheticsConfigVariable> configVariables = null;
39+
3640
public static final String JSON_PROPERTY_REQUEST = "request";
3741
private SyntheticsTestRequest request;
3842

@@ -82,6 +86,38 @@ public void setAssertions(List<SyntheticsAssertion> assertions) {
8286
this.assertions = assertions;
8387
}
8488

89+
public SyntheticsBrowserTestConfig configVariables(
90+
List<SyntheticsConfigVariable> configVariables) {
91+
this.configVariables = configVariables;
92+
return this;
93+
}
94+
95+
public SyntheticsBrowserTestConfig addConfigVariablesItem(
96+
SyntheticsConfigVariable configVariablesItem) {
97+
if (this.configVariables == null) {
98+
this.configVariables = new ArrayList<>();
99+
}
100+
this.configVariables.add(configVariablesItem);
101+
return this;
102+
}
103+
104+
/**
105+
* Array of variables used for the test.
106+
*
107+
* @return configVariables
108+
*/
109+
@javax.annotation.Nullable
110+
@ApiModelProperty(value = "Array of variables used for the test.")
111+
@JsonProperty(JSON_PROPERTY_CONFIG_VARIABLES)
112+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113+
public List<SyntheticsConfigVariable> getConfigVariables() {
114+
return configVariables;
115+
}
116+
117+
public void setConfigVariables(List<SyntheticsConfigVariable> configVariables) {
118+
this.configVariables = configVariables;
119+
}
120+
85121
public SyntheticsBrowserTestConfig request(SyntheticsTestRequest request) {
86122
this.request = request;
87123
return this;
@@ -171,21 +207,23 @@ public boolean equals(Object o) {
171207
}
172208
SyntheticsBrowserTestConfig syntheticsBrowserTestConfig = (SyntheticsBrowserTestConfig) o;
173209
return Objects.equals(this.assertions, syntheticsBrowserTestConfig.assertions)
210+
&& Objects.equals(this.configVariables, syntheticsBrowserTestConfig.configVariables)
174211
&& Objects.equals(this.request, syntheticsBrowserTestConfig.request)
175212
&& Objects.equals(this.setCookie, syntheticsBrowserTestConfig.setCookie)
176213
&& Objects.equals(this.variables, syntheticsBrowserTestConfig.variables);
177214
}
178215

179216
@Override
180217
public int hashCode() {
181-
return Objects.hash(assertions, request, setCookie, variables);
218+
return Objects.hash(assertions, configVariables, request, setCookie, variables);
182219
}
183220

184221
@Override
185222
public String toString() {
186223
StringBuilder sb = new StringBuilder();
187224
sb.append("class SyntheticsBrowserTestConfig {\n");
188225
sb.append(" assertions: ").append(toIndentedString(assertions)).append("\n");
226+
sb.append(" configVariables: ").append(toIndentedString(configVariables)).append("\n");
189227
sb.append(" request: ").append(toIndentedString(request)).append("\n");
190228
sb.append(" setCookie: ").append(toIndentedString(setCookie)).append("\n");
191229
sb.append(" variables: ").append(toIndentedString(variables)).append("\n");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ public SyntheticsTestConfig addConfigVariablesItem(SyntheticsConfigVariable conf
8585
}
8686

8787
/**
88-
* API tests only - array of variables used for the test.
88+
* Array of variables used for the test.
8989
*
9090
* @return configVariables
9191
*/
9292
@javax.annotation.Nullable
93-
@ApiModelProperty(value = "API tests only - array of variables used for the test.")
93+
@ApiModelProperty(value = "Array of variables used for the test.")
9494
@JsonProperty(JSON_PROPERTY_CONFIG_VARIABLES)
9595
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9696
public List<SyntheticsConfigVariable> getConfigVariables() {

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21409,6 +21409,15 @@ components:
2140921409
example: example
2141021410
setCookie: setCookie
2141121411
assertions: []
21412+
configVariables:
21413+
- name: VARIABLE_NAME
21414+
pattern: pattern
21415+
id: id
21416+
example: example
21417+
- name: VARIABLE_NAME
21418+
pattern: pattern
21419+
id: id
21420+
example: example
2141221421
steps:
2141321422
- allowFailure: true
2141421423
name: name
@@ -21509,6 +21518,15 @@ components:
2150921518
example: example
2151021519
setCookie: setCookie
2151121520
assertions: []
21521+
configVariables:
21522+
- name: VARIABLE_NAME
21523+
pattern: pattern
21524+
id: id
21525+
example: example
21526+
- name: VARIABLE_NAME
21527+
pattern: pattern
21528+
id: id
21529+
example: example
2151221530
properties:
2151321531
assertions:
2151421532
default: []
@@ -21517,6 +21535,11 @@ components:
2151721535
items:
2151821536
$ref: '#/components/schemas/SyntheticsAssertion'
2151921537
type: array
21538+
configVariables:
21539+
description: Array of variables used for the test.
21540+
items:
21541+
$ref: '#/components/schemas/SyntheticsConfigVariable'
21542+
type: array
2152021543
request:
2152121544
$ref: '#/components/schemas/SyntheticsTestRequest'
2152221545
setCookie:
@@ -23150,7 +23173,7 @@ components:
2315023173
$ref: '#/components/schemas/SyntheticsAssertion'
2315123174
type: array
2315223175
configVariables:
23153-
description: API tests only - array of variables used for the test.
23176+
description: Array of variables used for the test.
2315423177
items:
2315523178
$ref: '#/components/schemas/SyntheticsConfigVariable'
2315623179
type: array

0 commit comments

Comments
 (0)