Skip to content

Commit d892e44

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7d0b49f6 of spec repo
1 parent 3ec3e66 commit d892e44

File tree

4 files changed

+123
-5
lines changed

4 files changed

+123
-5
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-06 21:28:34.346014",
8-
"spec_repo_commit": "d6a6faf6"
7+
"regenerated": "2025-03-10 19:35:54.501123",
8+
"spec_repo_commit": "7d0b49f6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 21:28:34.361861",
13-
"spec_repo_commit": "d6a6faf6"
12+
"regenerated": "2025-03-10 19:35:54.516849",
13+
"spec_repo_commit": "7d0b49f6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18459,6 +18459,8 @@ components:
1845918459
path:
1846018460
description: The archive path.
1846118461
type: string
18462+
storage_class:
18463+
$ref: '#/components/schemas/LogsArchiveStorageClassS3Type'
1846218464
type:
1846318465
$ref: '#/components/schemas/LogsArchiveDestinationS3Type'
1846418466
required:
@@ -18602,6 +18604,23 @@ components:
1860218604
- WORKING
1860318605
- FAILING
1860418606
- WORKING_AUTH_LEGACY
18607+
LogsArchiveStorageClassS3Type:
18608+
default: STANDARD
18609+
description: The storage class where the archive will be stored.
18610+
enum:
18611+
- STANDARD
18612+
- STANDARD_IA
18613+
- ONEZONE_IA
18614+
- INTELLIGENT_TIERING
18615+
- GLACIER_IR
18616+
example: STANDARD
18617+
type: string
18618+
x-enum-varnames:
18619+
- STANDARD
18620+
- STANDARD_IA
18621+
- ONEZONE_IA
18622+
- INTELLIGENT_TIERING
18623+
- GLACIER_IR
1860518624
LogsArchives:
1860618625
description: The available archives.
1860718626
properties:

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
LogsArchiveDestinationS3.JSON_PROPERTY_ENCRYPTION,
2424
LogsArchiveDestinationS3.JSON_PROPERTY_INTEGRATION,
2525
LogsArchiveDestinationS3.JSON_PROPERTY_PATH,
26+
LogsArchiveDestinationS3.JSON_PROPERTY_STORAGE_CLASS,
2627
LogsArchiveDestinationS3.JSON_PROPERTY_TYPE
2728
})
2829
@jakarta.annotation.Generated(
@@ -41,6 +42,9 @@ public class LogsArchiveDestinationS3 {
4142
public static final String JSON_PROPERTY_PATH = "path";
4243
private String path;
4344

45+
public static final String JSON_PROPERTY_STORAGE_CLASS = "storage_class";
46+
private LogsArchiveStorageClassS3Type storageClass = LogsArchiveStorageClassS3Type.STANDARD;
47+
4448
public static final String JSON_PROPERTY_TYPE = "type";
4549
private LogsArchiveDestinationS3Type type = LogsArchiveDestinationS3Type.S3;
4650

@@ -144,6 +148,31 @@ public void setPath(String path) {
144148
this.path = path;
145149
}
146150

151+
public LogsArchiveDestinationS3 storageClass(LogsArchiveStorageClassS3Type storageClass) {
152+
this.storageClass = storageClass;
153+
this.unparsed |= !storageClass.isValid();
154+
return this;
155+
}
156+
157+
/**
158+
* The storage class where the archive will be stored.
159+
*
160+
* @return storageClass
161+
*/
162+
@jakarta.annotation.Nullable
163+
@JsonProperty(JSON_PROPERTY_STORAGE_CLASS)
164+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165+
public LogsArchiveStorageClassS3Type getStorageClass() {
166+
return storageClass;
167+
}
168+
169+
public void setStorageClass(LogsArchiveStorageClassS3Type storageClass) {
170+
if (!storageClass.isValid()) {
171+
this.unparsed = true;
172+
}
173+
this.storageClass = storageClass;
174+
}
175+
147176
public LogsArchiveDestinationS3 type(LogsArchiveDestinationS3Type type) {
148177
this.type = type;
149178
this.unparsed |= !type.isValid();
@@ -228,13 +257,15 @@ public boolean equals(Object o) {
228257
&& Objects.equals(this.encryption, logsArchiveDestinationS3.encryption)
229258
&& Objects.equals(this.integration, logsArchiveDestinationS3.integration)
230259
&& Objects.equals(this.path, logsArchiveDestinationS3.path)
260+
&& Objects.equals(this.storageClass, logsArchiveDestinationS3.storageClass)
231261
&& Objects.equals(this.type, logsArchiveDestinationS3.type)
232262
&& Objects.equals(this.additionalProperties, logsArchiveDestinationS3.additionalProperties);
233263
}
234264

235265
@Override
236266
public int hashCode() {
237-
return Objects.hash(bucket, encryption, integration, path, type, additionalProperties);
267+
return Objects.hash(
268+
bucket, encryption, integration, path, storageClass, type, additionalProperties);
238269
}
239270

240271
@Override
@@ -245,6 +276,7 @@ public String toString() {
245276
sb.append(" encryption: ").append(toIndentedString(encryption)).append("\n");
246277
sb.append(" integration: ").append(toIndentedString(integration)).append("\n");
247278
sb.append(" path: ").append(toIndentedString(path)).append("\n");
279+
sb.append(" storageClass: ").append(toIndentedString(storageClass)).append("\n");
248280
sb.append(" type: ").append(toIndentedString(type)).append("\n");
249281
sb.append(" additionalProperties: ")
250282
.append(toIndentedString(additionalProperties))
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.datadog.api.client.ModelEnum;
10+
import com.fasterxml.jackson.annotation.JsonCreator;
11+
import com.fasterxml.jackson.core.JsonGenerator;
12+
import com.fasterxml.jackson.core.JsonProcessingException;
13+
import com.fasterxml.jackson.databind.SerializerProvider;
14+
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15+
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
16+
import java.io.IOException;
17+
import java.util.Arrays;
18+
import java.util.HashSet;
19+
import java.util.Set;
20+
21+
/** The storage class where the archive will be stored. */
22+
@JsonSerialize(using = LogsArchiveStorageClassS3Type.LogsArchiveStorageClassS3TypeSerializer.class)
23+
public class LogsArchiveStorageClassS3Type extends ModelEnum<String> {
24+
25+
private static final Set<String> allowedValues =
26+
new HashSet<String>(
27+
Arrays.asList(
28+
"STANDARD", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "GLACIER_IR"));
29+
30+
public static final LogsArchiveStorageClassS3Type STANDARD =
31+
new LogsArchiveStorageClassS3Type("STANDARD");
32+
public static final LogsArchiveStorageClassS3Type STANDARD_IA =
33+
new LogsArchiveStorageClassS3Type("STANDARD_IA");
34+
public static final LogsArchiveStorageClassS3Type ONEZONE_IA =
35+
new LogsArchiveStorageClassS3Type("ONEZONE_IA");
36+
public static final LogsArchiveStorageClassS3Type INTELLIGENT_TIERING =
37+
new LogsArchiveStorageClassS3Type("INTELLIGENT_TIERING");
38+
public static final LogsArchiveStorageClassS3Type GLACIER_IR =
39+
new LogsArchiveStorageClassS3Type("GLACIER_IR");
40+
41+
LogsArchiveStorageClassS3Type(String value) {
42+
super(value, allowedValues);
43+
}
44+
45+
public static class LogsArchiveStorageClassS3TypeSerializer
46+
extends StdSerializer<LogsArchiveStorageClassS3Type> {
47+
public LogsArchiveStorageClassS3TypeSerializer(Class<LogsArchiveStorageClassS3Type> t) {
48+
super(t);
49+
}
50+
51+
public LogsArchiveStorageClassS3TypeSerializer() {
52+
this(null);
53+
}
54+
55+
@Override
56+
public void serialize(
57+
LogsArchiveStorageClassS3Type value, JsonGenerator jgen, SerializerProvider provider)
58+
throws IOException, JsonProcessingException {
59+
jgen.writeObject(value.value);
60+
}
61+
}
62+
63+
@JsonCreator
64+
public static LogsArchiveStorageClassS3Type fromValue(String value) {
65+
return new LogsArchiveStorageClassS3Type(value);
66+
}
67+
}

0 commit comments

Comments
 (0)