Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-17 14:53:07.738836",
"spec_repo_commit": "f73f9d61"
"regenerated": "2025-03-17 17:20:21.464212",
"spec_repo_commit": "29344bf2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-17 14:53:07.755443",
"spec_repo_commit": "f73f9d61"
"regenerated": "2025-03-17 17:20:21.480204",
"spec_repo_commit": "29344bf2"
}
}
}
16 changes: 0 additions & 16 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29902,24 +29902,8 @@ components:
type: object
ServiceDefinitionV2Dot2Type:
description: The type of service.
enum:
- web
- db
- cache
- function
- browser
- mobile
- custom
example: web
type: string
x-enum-varnames:
- WEB
- DB
- CACHE
- FUNCTION
- BROSWER
- MOBILE
- CUSTOM
ServiceDefinitionV2Dot2Version:
default: v2.2
description: Schema version being used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Opsgenie;
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2OpsgenieRegion;
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Pagerduty;
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Type;
import com.datadog.api.client.v2.model.ServiceDefinitionV2Dot2Version;
import com.datadog.api.client.v2.model.ServiceDefinitionsCreateRequest;
import java.util.Arrays;
Expand Down Expand Up @@ -62,7 +61,7 @@ public static void main(String[] args) {
.tags(Arrays.asList("my:tag", "service:tag"))
.team("my-team")
.tier("High")
.type(ServiceDefinitionV2Dot2Type.WEB));
.type("web"));

try {
ServiceDefinitionCreateResponse result = apiInstance.createOrUpdateServiceDefinitions(body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class ServiceDefinitionV2Dot2 {
private String tier;

public static final String JSON_PROPERTY_TYPE = "type";
private ServiceDefinitionV2Dot2Type type;
private String type;

public ServiceDefinitionV2Dot2() {}

Expand Down Expand Up @@ -455,9 +455,8 @@ public void setTier(String tier) {
this.tier = tier;
}

public ServiceDefinitionV2Dot2 type(ServiceDefinitionV2Dot2Type type) {
public ServiceDefinitionV2Dot2 type(String type) {
this.type = type;
this.unparsed |= !type.isValid();
return this;
}

Expand All @@ -469,14 +468,11 @@ public ServiceDefinitionV2Dot2 type(ServiceDefinitionV2Dot2Type type) {
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ServiceDefinitionV2Dot2Type getType() {
public String getType() {
return type;
}

public void setType(ServiceDefinitionV2Dot2Type type) {
if (!type.isValid()) {
this.unparsed = true;
}
public void setType(String type) {
this.type = type;
}

Expand Down

This file was deleted.