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-14 07:51:06.324305 ",
8- "spec_repo_commit": "899883be "
7+ "regenerated": "2025-03-17 14:39:33.720924 ",
8+ "spec_repo_commit": "b23a1071 "
99 },
1010 "v2": {
1111 "apigentools_version": "1.6.6",
12- "regenerated": "2025-03-14 07:51:06.339981 ",
13- "spec_repo_commit": "899883be "
12+ "regenerated": "2025-03-17 14:39:33.736994 ",
13+ "spec_repo_commit": "b23a1071 "
1414 }
1515 }
1616}
Original file line number Diff line number Diff line change @@ -29900,24 +29900,8 @@ components:
2990029900 type: object
2990129901 ServiceDefinitionV2Dot2Type:
2990229902 description: The type of service.
29903- enum:
29904- - web
29905- - db
29906- - cache
29907- - function
29908- - browser
29909- - mobile
29910- - custom
2991129903 example: web
2991229904 type: string
29913- x-enum-varnames:
29914- - WEB
29915- - DB
29916- - CACHE
29917- - FUNCTION
29918- - BROSWER
29919- - MOBILE
29920- - CUSTOM
2992129905 ServiceDefinitionV2Dot2Version:
2992229906 default: v2.2
2992329907 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