File tree Expand file tree Collapse file tree 5 files changed +9
-97
lines changed
examples/v2/service-definition
src/main/java/com/datadog/api/client/v2/model Expand file tree Collapse file tree 5 files changed +9
-97
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 1111import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Opsgenie ;
1212import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2OpsgenieRegion ;
1313import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Pagerduty ;
14- import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Type ;
1514import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Version ;
1615import com .datadog .api .client .v2 .model .ServiceDefinitionsCreateRequest ;
1716import 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 );
Original file line number Diff line number Diff 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments