Skip to content

Commit 82ae76e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 76490b5 of spec repo
1 parent 4c3ad80 commit 82ae76e

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
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.5.1.dev2",
7-
"regenerated": "2021-09-29 07:02:23.880623",
8-
"spec_repo_commit": "181ee2d"
7+
"regenerated": "2021-09-29 09:16:42.418876",
8+
"spec_repo_commit": "76490b5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-09-29 07:03:05.716307",
13-
"spec_repo_commit": "181ee2d"
12+
"regenerated": "2021-09-29 09:17:20.272372",
13+
"spec_repo_commit": "76490b5"
1414
}
1515
}
1616
}

api_docs/v2/IncidentFieldAttributesSingleValueType.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99

1010
* `TEXTBOX` (value: `"textbox"`)
1111

12-
* `AUTOCOMPLETE` (value: `"autocomplete"`)
13-
1412

1513

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

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.ArrayList;
2020
import java.util.List;
2121
import java.util.Objects;
22+
import org.openapitools.jackson.nullable.JsonNullable;
2223

2324
/** A field with potentially multiple values selected. */
2425
@ApiModel(description = "A field with potentially multiple values selected.")
@@ -33,7 +34,7 @@ public class IncidentFieldAttributesMultipleValue {
3334
private IncidentFieldAttributesValueType type = IncidentFieldAttributesValueType.MULTISELECT;
3435

3536
public static final String JSON_PROPERTY_VALUE = "value";
36-
private List<String> value = null;
37+
private JsonNullable<List<String>> value = JsonNullable.<List<String>>undefined();
3738

3839
public IncidentFieldAttributesMultipleValue type(IncidentFieldAttributesValueType type) {
3940
this.type = type;
@@ -62,15 +63,19 @@ public void setType(IncidentFieldAttributesValueType type) {
6263
}
6364

6465
public IncidentFieldAttributesMultipleValue value(List<String> value) {
65-
this.value = value;
66+
this.value = JsonNullable.<List<String>>of(value);
6667
return this;
6768
}
6869

6970
public IncidentFieldAttributesMultipleValue addValueItem(String valueItem) {
70-
if (this.value == null) {
71-
this.value = new ArrayList<>();
71+
if (this.value == null || !this.value.isPresent()) {
72+
this.value = JsonNullable.<List<String>>of(new ArrayList<>());
73+
}
74+
try {
75+
this.value.get().add(valueItem);
76+
} catch (java.util.NoSuchElementException e) {
77+
// this can never happen, as we make sure above that the value is present
7278
}
73-
this.value.add(valueItem);
7479
return this;
7580
}
7681

@@ -83,16 +88,26 @@ public IncidentFieldAttributesMultipleValue addValueItem(String valueItem) {
8388
@ApiModelProperty(
8489
example = "[\"1.0\",\"1.1\"]",
8590
value = "The multiple values selected for this field.")
91+
@JsonIgnore
92+
public List<String> getValue() {
93+
return value.orElse(null);
94+
}
95+
8696
@JsonProperty(JSON_PROPERTY_VALUE)
8797
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88-
public List<String> getValue() {
98+
public JsonNullable<List<String>> getValue_JsonNullable() {
8999
return value;
90100
}
91101

92-
public void setValue(List<String> value) {
102+
@JsonProperty(JSON_PROPERTY_VALUE)
103+
public void setValue_JsonNullable(JsonNullable<List<String>> value) {
93104
this.value = value;
94105
}
95106

107+
public void setValue(List<String> value) {
108+
this.value = JsonNullable.<List<String>>of(value);
109+
}
110+
96111
/** Return true if this IncidentFieldAttributesMultipleValue object is equal to o. */
97112
@Override
98113
public boolean equals(Object o) {

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ public class IncidentFieldAttributesSingleValueType {
3434
new IncidentFieldAttributesSingleValueType("dropdown");
3535
public static final IncidentFieldAttributesSingleValueType TEXTBOX =
3636
new IncidentFieldAttributesSingleValueType("textbox");
37-
public static final IncidentFieldAttributesSingleValueType AUTOCOMPLETE =
38-
new IncidentFieldAttributesSingleValueType("autocomplete");
3937

4038
private static final Set<String> allowedValues =
41-
new HashSet<String>(Arrays.asList("dropdown", "textbox", "autocomplete"));
39+
new HashSet<String>(Arrays.asList("dropdown", "textbox"));
4240

4341
private String value;
4442

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7222,6 +7222,7 @@ components:
72227222
description: A value which has been selected for the parent field.
72237223
example: "1.1"
72247224
type: string
7225+
nullable: true
72257226
type: array
72267227
type: object
72277228
IncidentFieldAttributesSingleValue:
@@ -7241,13 +7242,11 @@ components:
72417242
enum:
72427243
- dropdown
72437244
- textbox
7244-
- autocomplete
72457245
example: dropdown
72467246
type: string
72477247
x-enum-varnames:
72487248
- DROPDOWN
72497249
- TEXTBOX
7250-
- AUTOCOMPLETE
72517250
IncidentFieldAttributesValueType:
72527251
default: multiselect
72537252
description: Type of the single value field definitions.

0 commit comments

Comments
 (0)