Skip to content

Commit 1b8e7ec

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 46ac8482 of spec repo
1 parent 38227a6 commit 1b8e7ec

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
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-13 01:19:32.866177",
8-
"spec_repo_commit": "dc3b522f"
7+
"regenerated": "2025-05-13 14:44:51.655200",
8+
"spec_repo_commit": "46ac8482"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-13 01:19:32.881522",
13-
"spec_repo_commit": "dc3b522f"
12+
"regenerated": "2025-05-13 14:44:51.675293",
13+
"spec_repo_commit": "46ac8482"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24482,7 +24482,8 @@ components:
2448224482
description: Optional prefix for object keys within the GCS bucket.
2448324483
type: string
2448424484
metadata:
24485-
description: Custom metadata key-value pairs added to each object.
24485+
description: Custom metadata to attach to each object uploaded to the GCS
24486+
bucket.
2448624487
items:
2448724488
$ref: '#/components/schemas/ObservabilityPipelineMetadataEntry'
2448824489
type: array
@@ -24498,7 +24499,6 @@ components:
2449824499
- auth
2449924500
- storage_class
2450024501
- acl
24501-
- metadata
2450224502
type: object
2450324503
ObservabilityPipelineGoogleCloudStorageDestinationAcl:
2450424504
description: Access control list setting for objects written to the bucket.
@@ -24777,8 +24777,7 @@ components:
2477724777
x-enum-varnames:
2477824778
- LOGSTASH
2477924779
ObservabilityPipelineMetadataEntry:
24780-
description: A custom metadata entry to attach to each object uploaded to the
24781-
GCS bucket.
24780+
description: A custom metadata entry.
2478224781
properties:
2478324782
name:
2478424783
description: The metadata key.

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

Lines changed: 7 additions & 6 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,18 +237,22 @@ 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;
246246
}
247247

248248
/**
249-
* Custom metadata key-value pairs added to each object.
249+
* Custom metadata to attach to each object uploaded to the GCS bucket.
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
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** A custom metadata entry to attach to each object uploaded to the GCS bucket. */
20+
/** A custom metadata entry. */
2121
@JsonPropertyOrder({
2222
ObservabilityPipelineMetadataEntry.JSON_PROPERTY_NAME,
2323
ObservabilityPipelineMetadataEntry.JSON_PROPERTY_VALUE

0 commit comments

Comments
 (0)