Skip to content

Commit 7e66b8a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 94f7c372 of spec repo
1 parent e44a7ad commit 7e66b8a

File tree

9 files changed

+79
-20
lines changed

9 files changed

+79
-20
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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-18 16:20:36.363534",
8-
"spec_repo_commit": "78376979"
7+
"regenerated": "2025-03-21 17:04:19.883447",
8+
"spec_repo_commit": "94f7c372"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-18 16:20:36.379301",
13-
"spec_repo_commit": "78376979"
12+
"regenerated": "2025-03-21 17:04:19.899185",
13+
"spec_repo_commit": "94f7c372"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11968,7 +11968,10 @@ components:
1196811968
properties:
1196911969
rawSchema:
1197011970
description: Schema from user input in base64 encoding.
11971+
example: b3BlbmFwaTogMy4wLjQKaW5mbzoKICB0aXRsZTogU2FtcGxlIEFQSQogIHZlcnNpb246IDAuMS45Cg==
1197111972
type: string
11973+
required:
11974+
- rawSchema
1197211975
type: object
1197311976
EntityResponseIncludedRelatedEntity:
1197411977
description: Included related entity.
@@ -11989,16 +11992,21 @@ components:
1198911992
properties:
1199011993
kind:
1199111994
description: Entity kind.
11995+
example: team
1199211996
type: string
1199311997
name:
1199411998
description: Entity name.
11999+
example: bits-ai
1199512000
type: string
1199612001
namespace:
1199712002
description: Entity namespace.
1199812003
type: string
1199912004
type:
1200012005
description: Entity relation type to the associated entity.
1200112006
type: string
12007+
required:
12008+
- kind
12009+
- name
1200212010
type: object
1200312011
EntityResponseIncludedRelatedEntityMeta:
1200412012
description: Included related entity meta.
@@ -12036,7 +12044,10 @@ components:
1203612044
type: string
1203712045
title:
1203812046
description: Incident title.
12047+
example: fake-incident-title
1203912048
type: string
12049+
required:
12050+
- title
1204012051
type: object
1204112052
EntityResponseIncludedRelatedOncallAttributes:
1204212053
description: Included related oncall attributes.
@@ -12045,7 +12056,10 @@ components:
1204512056
$ref: '#/components/schemas/EntityResponseIncludedRelatedOncallEscalations'
1204612057
provider:
1204712058
description: Oncall provider.
12059+
example: pagerduty
1204812060
type: string
12061+
required:
12062+
- provider
1204912063
type: object
1205012064
EntityResponseIncludedRelatedOncallEscalationItem:
1205112065
description: Oncall escalation.
@@ -12083,6 +12097,8 @@ components:
1208312097
properties:
1208412098
schema:
1208512099
$ref: '#/components/schemas/EntityV3'
12100+
required:
12101+
- schema
1208612102
type: object
1208712103
EntityResponseMeta:
1208812104
description: Entity metadata.
@@ -12486,7 +12502,7 @@ components:
1248612502
properties:
1248712503
name:
1248812504
description: Team name.
12489-
example: ''
12505+
example: fake-team-name
1249012506
type: string
1249112507
type:
1249212508
description: Team type.

examples/v2/software-catalog/UpsertCatalogEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public static void main(String[] args) {
5858
new EntityV3Metadata()
5959
.additionalOwners(
6060
Collections.singletonList(
61-
new EntityV3MetadataAdditionalOwnersItems().name("")))
61+
new EntityV3MetadataAdditionalOwnersItems()
62+
.name("fake-team-name")))
6263
.contacts(
6364
Collections.singletonList(
6465
new EntityV3MetadataContactsItems()

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,6 +26,14 @@ public class EntityResponseIncludedRawSchemaAttributes {
2526
public static final String JSON_PROPERTY_RAW_SCHEMA = "rawSchema";
2627
private String rawSchema;
2728

29+
public EntityResponseIncludedRawSchemaAttributes() {}
30+
31+
@JsonCreator
32+
public EntityResponseIncludedRawSchemaAttributes(
33+
@JsonProperty(required = true, value = JSON_PROPERTY_RAW_SCHEMA) String rawSchema) {
34+
this.rawSchema = rawSchema;
35+
}
36+
2837
public EntityResponseIncludedRawSchemaAttributes rawSchema(String rawSchema) {
2938
this.rawSchema = rawSchema;
3039
return this;
@@ -35,9 +44,8 @@ public EntityResponseIncludedRawSchemaAttributes rawSchema(String rawSchema) {
3544
*
3645
* @return rawSchema
3746
*/
38-
@jakarta.annotation.Nullable
3947
@JsonProperty(JSON_PROPERTY_RAW_SCHEMA)
40-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
48+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
4149
public String getRawSchema() {
4250
return rawSchema;
4351
}

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -39,6 +40,16 @@ public class EntityResponseIncludedRelatedEntityAttributes {
3940
public static final String JSON_PROPERTY_TYPE = "type";
4041
private String type;
4142

43+
public EntityResponseIncludedRelatedEntityAttributes() {}
44+
45+
@JsonCreator
46+
public EntityResponseIncludedRelatedEntityAttributes(
47+
@JsonProperty(required = true, value = JSON_PROPERTY_KIND) String kind,
48+
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) {
49+
this.kind = kind;
50+
this.name = name;
51+
}
52+
4253
public EntityResponseIncludedRelatedEntityAttributes kind(String kind) {
4354
this.kind = kind;
4455
return this;
@@ -49,9 +60,8 @@ public EntityResponseIncludedRelatedEntityAttributes kind(String kind) {
4960
*
5061
* @return kind
5162
*/
52-
@jakarta.annotation.Nullable
5363
@JsonProperty(JSON_PROPERTY_KIND)
54-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
5565
public String getKind() {
5666
return kind;
5767
}
@@ -70,9 +80,8 @@ public EntityResponseIncludedRelatedEntityAttributes name(String name) {
7080
*
7181
* @return name
7282
*/
73-
@jakarta.annotation.Nullable
7483
@JsonProperty(JSON_PROPERTY_NAME)
75-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
7685
public String getName() {
7786
return name;
7887
}

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -44,6 +45,14 @@ public class EntityResponseIncludedRelatedIncidentAttributes {
4445
public static final String JSON_PROPERTY_TITLE = "title";
4546
private String title;
4647

48+
public EntityResponseIncludedRelatedIncidentAttributes() {}
49+
50+
@JsonCreator
51+
public EntityResponseIncludedRelatedIncidentAttributes(
52+
@JsonProperty(required = true, value = JSON_PROPERTY_TITLE) String title) {
53+
this.title = title;
54+
}
55+
4756
public EntityResponseIncludedRelatedIncidentAttributes createdAt(OffsetDateTime createdAt) {
4857
this.createdAt = createdAt;
4958
return this;
@@ -138,9 +147,8 @@ public EntityResponseIncludedRelatedIncidentAttributes title(String title) {
138147
*
139148
* @return title
140149
*/
141-
@jakarta.annotation.Nullable
142150
@JsonProperty(JSON_PROPERTY_TITLE)
143-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
144152
public String getTitle() {
145153
return title;
146154
}

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -33,6 +34,14 @@ public class EntityResponseIncludedRelatedOncallAttributes {
3334
public static final String JSON_PROPERTY_PROVIDER = "provider";
3435
private String provider;
3536

37+
public EntityResponseIncludedRelatedOncallAttributes() {}
38+
39+
@JsonCreator
40+
public EntityResponseIncludedRelatedOncallAttributes(
41+
@JsonProperty(required = true, value = JSON_PROPERTY_PROVIDER) String provider) {
42+
this.provider = provider;
43+
}
44+
3645
public EntityResponseIncludedRelatedOncallAttributes escalations(
3746
List<EntityResponseIncludedRelatedOncallEscalationItem> escalations) {
3847
this.escalations = escalations;
@@ -78,9 +87,8 @@ public EntityResponseIncludedRelatedOncallAttributes provider(String provider) {
7887
*
7988
* @return provider
8089
*/
81-
@jakarta.annotation.Nullable
8290
@JsonProperty(JSON_PROPERTY_PROVIDER)
83-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
8492
public String getProvider() {
8593
return provider;
8694
}

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,6 +26,15 @@ public class EntityResponseIncludedSchemaAttributes {
2526
public static final String JSON_PROPERTY_SCHEMA = "schema";
2627
private EntityV3 schema;
2728

29+
public EntityResponseIncludedSchemaAttributes() {}
30+
31+
@JsonCreator
32+
public EntityResponseIncludedSchemaAttributes(
33+
@JsonProperty(required = true, value = JSON_PROPERTY_SCHEMA) EntityV3 schema) {
34+
this.schema = schema;
35+
this.unparsed |= schema.unparsed;
36+
}
37+
2838
public EntityResponseIncludedSchemaAttributes schema(EntityV3 schema) {
2939
this.schema = schema;
3040
this.unparsed |= schema.unparsed;
@@ -36,9 +46,8 @@ public EntityResponseIncludedSchemaAttributes schema(EntityV3 schema) {
3646
*
3747
* @return schema
3848
*/
39-
@jakarta.annotation.Nullable
4049
@JsonProperty(JSON_PROPERTY_SCHEMA)
41-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
50+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
4251
public EntityV3 getSchema() {
4352
return schema;
4453
}

src/test/resources/com/datadog/api/client/v2/api/software_catalog.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Feature: Software Catalog
1010
@generated @skip @team:DataDog/service-catalog
1111
Scenario: Create or update entities returns "ACCEPTED" response
1212
Given new "UpsertCatalogEntity" request
13-
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": ""}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
13+
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": "fake-team-name"}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
1414
When the request is sent
1515
Then the response status is 202 ACCEPTED
1616

1717
@generated @skip @team:DataDog/service-catalog
1818
Scenario: Create or update entities returns "Bad Request" response
1919
Given new "UpsertCatalogEntity" request
20-
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": ""}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
20+
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": "fake-team-name"}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
2121
When the request is sent
2222
Then the response status is 400 Bad Request
2323

0 commit comments

Comments
 (0)