Skip to content

Commit bce9b67

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 29344bf2 of spec repo
1 parent 7b7812b commit bce9b67

File tree

5 files changed

+9
-97
lines changed

5 files changed

+9
-97
lines changed

.apigentools-info

+4-4
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-03-17 14:53:07.738836",
8-
"spec_repo_commit": "f73f9d61"
7+
"regenerated": "2025-03-17 17:20:21.464212",
8+
"spec_repo_commit": "29344bf2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-17 14:53:07.755443",
13-
"spec_repo_commit": "f73f9d61"
12+
"regenerated": "2025-03-17 17:20:21.480204",
13+
"spec_repo_commit": "29344bf2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

-16
Original file line numberDiff line numberDiff line change
@@ -29902,24 +29902,8 @@ components:
2990229902
type: object
2990329903
ServiceDefinitionV2Dot2Type:
2990429904
description: The type of service.
29905-
enum:
29906-
- web
29907-
- db
29908-
- cache
29909-
- function
29910-
- browser
29911-
- mobile
29912-
- custom
2991329905
example: web
2991429906
type: string
29915-
x-enum-varnames:
29916-
- WEB
29917-
- DB
29918-
- CACHE
29919-
- FUNCTION
29920-
- BROSWER
29921-
- MOBILE
29922-
- CUSTOM
2992329907
ServiceDefinitionV2Dot2Version:
2992429908
default: v2.2
2992529909
description: Schema version being used.

examples/v2/service-definition/CreateOrUpdateServiceDefinitions.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Opsgenie;
1212
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2OpsgenieRegion;
1313
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Pagerduty;
14-
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Type;
1514
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Version;
1615
import com.datadog.api.client.v2.model.ServiceDefinitionsCreateRequest;
1716
import java.util.Arrays;
@@ -62,7 +61,7 @@ public static void main(String[] args) {
6261
.tags(Arrays.asList("my:tag", "service:tag"))
6362
.team("my-team")
6463
.tier("High")
65-
.type(ServiceDefinitionV2Dot2Type.WEB));
64+
.type("web"));
6665

6766
try {
6867
ServiceDefinitionCreateResponse result = apiInstance.createOrUpdateServiceDefinitions(body);

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class ServiceDefinitionV2Dot2 {
8484
private String tier;
8585

8686
public static final String JSON_PROPERTY_TYPE = "type";
87-
private ServiceDefinitionV2Dot2Type type;
87+
private String type;
8888

8989
public ServiceDefinitionV2Dot2() {}
9090

@@ -455,9 +455,8 @@ public void setTier(String tier) {
455455
this.tier = tier;
456456
}
457457

458-
public ServiceDefinitionV2Dot2 type(ServiceDefinitionV2Dot2Type type) {
458+
public ServiceDefinitionV2Dot2 type(String type) {
459459
this.type = type;
460-
this.unparsed |= !type.isValid();
461460
return this;
462461
}
463462

@@ -469,14 +468,11 @@ public ServiceDefinitionV2Dot2 type(ServiceDefinitionV2Dot2Type type) {
469468
@jakarta.annotation.Nullable
470469
@JsonProperty(JSON_PROPERTY_TYPE)
471470
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
472-
public ServiceDefinitionV2Dot2Type getType() {
471+
public String getType() {
473472
return type;
474473
}
475474

476-
public void setType(ServiceDefinitionV2Dot2Type type) {
477-
if (!type.isValid()) {
478-
this.unparsed = true;
479-
}
475+
public void setType(String type) {
480476
this.type = type;
481477
}
482478

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

-67
This file was deleted.

0 commit comments

Comments
 (0)