Skip to content

Commit 82689be

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fe8637d0 of spec repo
1 parent fd0ab55 commit 82689be

File tree

39 files changed

+176
-52
lines changed

39 files changed

+176
-52
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": "2024-09-24 18:16:27.931184",
8-
"spec_repo_commit": "2eb52c63"
7+
"regenerated": "2024-09-25 14:21:02.201991",
8+
"spec_repo_commit": "fe8637d0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-24 18:16:27.945962",
13-
"spec_repo_commit": "2eb52c63"
12+
"regenerated": "2024-09-25 14:21:02.216276",
13+
"spec_repo_commit": "fe8637d0"
1414
}
1515
}
1616
}

api/datadogV1/model_distribution_point_item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (obj *DistributionPointItem) UnmarshalJSON(data []byte) error {
5353
if err == nil {
5454
if obj.DistributionPointData != nil {
5555
jsonDistributionPointData, _ := datadog.Marshal(obj.DistributionPointData)
56-
if string(jsonDistributionPointData) == "{}" { // empty struct
56+
if string(jsonDistributionPointData) == "{}" && string(data) != "{}" { // empty struct
5757
obj.DistributionPointData = nil
5858
} else {
5959
match++

api/datadogV1/model_shared_dashboard_invites_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (obj *SharedDashboardInvitesData) UnmarshalJSON(data []byte) error {
5353
if err == nil {
5454
if obj.SharedDashboardInvitesDataList != nil {
5555
jsonSharedDashboardInvitesDataList, _ := datadog.Marshal(obj.SharedDashboardInvitesDataList)
56-
if string(jsonSharedDashboardInvitesDataList) == "{}" { // empty struct
56+
if string(jsonSharedDashboardInvitesDataList) == "{}" && string(data) != "{}" { // empty struct
5757
obj.SharedDashboardInvitesDataList = nil
5858
} else {
5959
match++

api/datadogV1/model_widget_time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (obj *WidgetTime) UnmarshalJSON(data []byte) error {
4242
if err == nil {
4343
if obj.WidgetLegacyLiveSpan != nil && obj.WidgetLegacyLiveSpan.UnparsedObject == nil {
4444
jsonWidgetLegacyLiveSpan, _ := datadog.Marshal(obj.WidgetLegacyLiveSpan)
45-
if string(jsonWidgetLegacyLiveSpan) == "{}" { // empty struct
45+
if string(jsonWidgetLegacyLiveSpan) == "{}" && string(data) != "{}" { // empty struct
4646
obj.WidgetLegacyLiveSpan = nil
4747
} else {
4848
match++

api/datadogV2/model_api_key_response_included_item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (obj *APIKeyResponseIncludedItem) UnmarshalJSON(data []byte) error {
3636
if err == nil {
3737
if obj.User != nil && obj.User.UnparsedObject == nil {
3838
jsonUser, _ := datadog.Marshal(obj.User)
39-
if string(jsonUser) == "{}" { // empty struct
39+
if string(jsonUser) == "{}" && string(data) != "{}" { // empty struct
4040
obj.User = nil
4141
} else {
4242
match++

api/datadogV2/model_application_key_response_included_item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (obj *ApplicationKeyResponseIncludedItem) UnmarshalJSON(data []byte) error
4242
if err == nil {
4343
if obj.User != nil && obj.User.UnparsedObject == nil {
4444
jsonUser, _ := datadog.Marshal(obj.User)
45-
if string(jsonUser) == "{}" { // empty struct
45+
if string(jsonUser) == "{}" && string(data) != "{}" { // empty struct
4646
obj.User = nil
4747
} else {
4848
match++

api/datadogV2/model_auth_n_mapping_included.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (obj *AuthNMappingIncluded) UnmarshalJSON(data []byte) error {
7676
if err == nil {
7777
if obj.AuthNMappingTeam != nil && obj.AuthNMappingTeam.UnparsedObject == nil {
7878
jsonAuthNMappingTeam, _ := datadog.Marshal(obj.AuthNMappingTeam)
79-
if string(jsonAuthNMappingTeam) == "{}" { // empty struct
79+
if string(jsonAuthNMappingTeam) == "{}" && string(data) != "{}" { // empty struct
8080
obj.AuthNMappingTeam = nil
8181
} else {
8282
match++

api/datadogV2/model_ci_app_aggregate_bucket_value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (obj *CIAppAggregateBucketValue) UnmarshalJSON(data []byte) error {
7676
if err == nil {
7777
if obj.CIAppAggregateBucketValueTimeseries != nil {
7878
jsonCIAppAggregateBucketValueTimeseries, _ := datadog.Marshal(obj.CIAppAggregateBucketValueTimeseries)
79-
if string(jsonCIAppAggregateBucketValueTimeseries) == "{}" { // empty struct
79+
if string(jsonCIAppAggregateBucketValueTimeseries) == "{}" && string(data) != "{}" { // empty struct
8080
obj.CIAppAggregateBucketValueTimeseries = nil
8181
} else {
8282
match++

api/datadogV2/model_container_image_item.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (obj *ContainerImageItem) UnmarshalJSON(data []byte) error {
3636
if err == nil {
3737
if obj.ContainerImage != nil && obj.ContainerImage.UnparsedObject == nil {
3838
jsonContainerImage, _ := datadog.Marshal(obj.ContainerImage)
39-
if string(jsonContainerImage) == "{}" { // empty struct
39+
if string(jsonContainerImage) == "{}" && string(data) != "{}" { // empty struct
4040
obj.ContainerImage = nil
4141
} else {
4242
match++
@@ -53,7 +53,7 @@ func (obj *ContainerImageItem) UnmarshalJSON(data []byte) error {
5353
if err == nil {
5454
if obj.ContainerImageGroup != nil && obj.ContainerImageGroup.UnparsedObject == nil {
5555
jsonContainerImageGroup, _ := datadog.Marshal(obj.ContainerImageGroup)
56-
if string(jsonContainerImageGroup) == "{}" { // empty struct
56+
if string(jsonContainerImageGroup) == "{}" && string(data) != "{}" { // empty struct
5757
obj.ContainerImageGroup = nil
5858
} else {
5959
match++

api/datadogV2/model_container_item.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (obj *ContainerItem) UnmarshalJSON(data []byte) error {
3636
if err == nil {
3737
if obj.Container != nil && obj.Container.UnparsedObject == nil {
3838
jsonContainer, _ := datadog.Marshal(obj.Container)
39-
if string(jsonContainer) == "{}" { // empty struct
39+
if string(jsonContainer) == "{}" && string(data) != "{}" { // empty struct
4040
obj.Container = nil
4141
} else {
4242
match++
@@ -53,7 +53,7 @@ func (obj *ContainerItem) UnmarshalJSON(data []byte) error {
5353
if err == nil {
5454
if obj.ContainerGroup != nil && obj.ContainerGroup.UnparsedObject == nil {
5555
jsonContainerGroup, _ := datadog.Marshal(obj.ContainerGroup)
56-
if string(jsonContainerGroup) == "{}" { // empty struct
56+
if string(jsonContainerGroup) == "{}" && string(data) != "{}" { // empty struct
5757
obj.ContainerGroup = nil
5858
} else {
5959
match++

0 commit comments

Comments
 (0)