Skip to content

Commit 3814397

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ba0da669 of spec repo
1 parent 2286270 commit 3814397

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
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-05-02 09:33:55.421652",
8-
"spec_repo_commit": "77cf469a"
7+
"regenerated": "2025-05-06 07:34:21.587652",
8+
"spec_repo_commit": "ba0da669"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-02 09:33:55.439532",
13-
"spec_repo_commit": "77cf469a"
12+
"regenerated": "2025-05-06 07:34:21.604710",
13+
"spec_repo_commit": "ba0da669"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24183,7 +24183,6 @@ components:
2418324183
- auth
2418424184
- storage_class
2418524185
- acl
24186-
- metadata
2418724186
type: object
2418824187
ObservabilityPipelineGoogleCloudStorageDestinationAcl:
2418924188
description: Access control list setting for objects written to the bucket.

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ObservabilityPipelineGoogleCloudStorageDestination {
5757
private String keyPrefix;
5858

5959
public static final String JSON_PROPERTY_METADATA = "metadata";
60-
private List<ObservabilityPipelineMetadataEntry> metadata = new ArrayList<>();
60+
private List<ObservabilityPipelineMetadataEntry> metadata = null;
6161

6262
public static final String JSON_PROPERTY_STORAGE_CLASS = "storage_class";
6363
private ObservabilityPipelineGoogleCloudStorageDestinationStorageClass storageClass;
@@ -76,8 +76,6 @@ public ObservabilityPipelineGoogleCloudStorageDestination(
7676
@JsonProperty(required = true, value = JSON_PROPERTY_BUCKET) String bucket,
7777
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
7878
@JsonProperty(required = true, value = JSON_PROPERTY_INPUTS) List<String> inputs,
79-
@JsonProperty(required = true, value = JSON_PROPERTY_METADATA)
80-
List<ObservabilityPipelineMetadataEntry> metadata,
8179
@JsonProperty(required = true, value = JSON_PROPERTY_STORAGE_CLASS)
8280
ObservabilityPipelineGoogleCloudStorageDestinationStorageClass storageClass,
8381
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
@@ -89,7 +87,6 @@ public ObservabilityPipelineGoogleCloudStorageDestination(
8987
this.bucket = bucket;
9088
this.id = id;
9189
this.inputs = inputs;
92-
this.metadata = metadata;
9390
this.storageClass = storageClass;
9491
this.unparsed |= !storageClass.isValid();
9592
this.type = type;
@@ -240,6 +237,9 @@ public ObservabilityPipelineGoogleCloudStorageDestination metadata(
240237

241238
public ObservabilityPipelineGoogleCloudStorageDestination addMetadataItem(
242239
ObservabilityPipelineMetadataEntry metadataItem) {
240+
if (this.metadata == null) {
241+
this.metadata = new ArrayList<>();
242+
}
243243
this.metadata.add(metadataItem);
244244
this.unparsed |= metadataItem.unparsed;
245245
return this;
@@ -250,8 +250,9 @@ public ObservabilityPipelineGoogleCloudStorageDestination addMetadataItem(
250250
*
251251
* @return metadata
252252
*/
253+
@jakarta.annotation.Nullable
253254
@JsonProperty(JSON_PROPERTY_METADATA)
254-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
255+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255256
public List<ObservabilityPipelineMetadataEntry> getMetadata() {
256257
return metadata;
257258
}

0 commit comments

Comments
 (0)