File tree 5 files changed +9
-97
lines changed
examples/v2/service-definition
src/main/java/com/datadog/api/client/v2/model
5 files changed +9
-97
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"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 "
9
9
},
10
10
"v2": {
11
11
"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 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -29900,24 +29900,8 @@ components:
29900
29900
type: object
29901
29901
ServiceDefinitionV2Dot2Type:
29902
29902
description: The type of service.
29903
- enum:
29904
- - web
29905
- - db
29906
- - cache
29907
- - function
29908
- - browser
29909
- - mobile
29910
- - custom
29911
29903
example: web
29912
29904
type: string
29913
- x-enum-varnames:
29914
- - WEB
29915
- - DB
29916
- - CACHE
29917
- - FUNCTION
29918
- - BROSWER
29919
- - MOBILE
29920
- - CUSTOM
29921
29905
ServiceDefinitionV2Dot2Version:
29922
29906
default: v2.2
29923
29907
description: Schema version being used.
Original file line number Diff line number Diff line change 11
11
import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Opsgenie ;
12
12
import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2OpsgenieRegion ;
13
13
import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Pagerduty ;
14
- import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Type ;
15
14
import com .datadog .api .client .v2 .model .ServiceDefinitionV2Dot2Version ;
16
15
import com .datadog .api .client .v2 .model .ServiceDefinitionsCreateRequest ;
17
16
import java .util .Arrays ;
@@ -62,7 +61,7 @@ public static void main(String[] args) {
62
61
.tags (Arrays .asList ("my:tag" , "service:tag" ))
63
62
.team ("my-team" )
64
63
.tier ("High" )
65
- .type (ServiceDefinitionV2Dot2Type . WEB ));
64
+ .type ("web" ));
66
65
67
66
try {
68
67
ServiceDefinitionCreateResponse result = apiInstance .createOrUpdateServiceDefinitions (body );
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public class ServiceDefinitionV2Dot2 {
84
84
private String tier ;
85
85
86
86
public static final String JSON_PROPERTY_TYPE = "type" ;
87
- private ServiceDefinitionV2Dot2Type type ;
87
+ private String type ;
88
88
89
89
public ServiceDefinitionV2Dot2 () {}
90
90
@@ -455,9 +455,8 @@ public void setTier(String tier) {
455
455
this .tier = tier ;
456
456
}
457
457
458
- public ServiceDefinitionV2Dot2 type (ServiceDefinitionV2Dot2Type type ) {
458
+ public ServiceDefinitionV2Dot2 type (String type ) {
459
459
this .type = type ;
460
- this .unparsed |= !type .isValid ();
461
460
return this ;
462
461
}
463
462
@@ -469,14 +468,11 @@ public ServiceDefinitionV2Dot2 type(ServiceDefinitionV2Dot2Type type) {
469
468
@ jakarta .annotation .Nullable
470
469
@ JsonProperty (JSON_PROPERTY_TYPE )
471
470
@ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
472
- public ServiceDefinitionV2Dot2Type getType () {
471
+ public String getType () {
473
472
return type ;
474
473
}
475
474
476
- public void setType (ServiceDefinitionV2Dot2Type type ) {
477
- if (!type .isValid ()) {
478
- this .unparsed = true ;
479
- }
475
+ public void setType (String type ) {
480
476
this .type = type ;
481
477
}
482
478
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments