Skip to content

Commit 4a52412

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fd8a580 of spec repo
1 parent 9b8de3e commit 4a52412

File tree

44 files changed

+360
-825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+360
-825
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 171 additions & 145 deletions
Large diffs are not rendered by default.

examples/v2/reference-tables/UpdateReferenceTable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public static void main(String[] args) {
5353
.primaryKeys(Collections.singletonList("id")))
5454
.syncEnabled(false)
5555
.tags(Collections.singletonList("test_tag")))
56-
.id("00000000-0000-0000-0000-000000000000")
5756
.type(PatchTableRequestDataType.REFERENCE_TABLE));
5857

5958
try {

src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ public CompletableFuture<TableResultV2> createReferenceTableAsync(CreateTableReq
8181
}
8282

8383
/**
84-
* Create a new reference table. You can provide data in two ways: 1) Call POST
85-
* api/v2/reference-tables/upload first to get an upload ID, then PUT chunks of CSV data to each
86-
* provided URL, and finally call this POST endpoint with the upload_id in file_metadata, OR 2)
87-
* Provide access_details in file_metadata pointing to a CSV file in cloud storage (Amazon S3,
88-
* Azure Blob Storage, or GCP Cloud Storage).
84+
* Creates a reference table. You can provide data in two ways: 1. Call POST
85+
* /api/v2/reference-tables/upload to get an upload ID. Then PUT the CSV data (not the file
86+
* itself) in chunks to each URL in the request body. Finally, call this POST endpoint with <code>
87+
* upload_id</code> in <code>file_metadata</code>. 2. Provide <code>access_details</code> in
88+
* <code>file_metadata</code> pointing to a CSV file in cloud storage.
8989
*
9090
* @param body (required)
9191
* @return ApiResponse&lt;TableResultV2&gt;
@@ -325,7 +325,7 @@ public ApiResponse<CreateUploadResponse> createReferenceTableUploadWithHttpInfo(
325325
*
326326
* <p>See {@link #deleteTableWithHttpInfo}.
327327
*
328-
* @param id The ID of the reference table to delete (required)
328+
* @param id Unique identifier of the reference table to delete (required)
329329
* @throws ApiException if fails to make API call
330330
*/
331331
public void deleteTable(String id) throws ApiException {
@@ -337,7 +337,7 @@ public void deleteTable(String id) throws ApiException {
337337
*
338338
* <p>See {@link #deleteTableWithHttpInfoAsync}.
339339
*
340-
* @param id The ID of the reference table to delete (required)
340+
* @param id Unique identifier of the reference table to delete (required)
341341
* @return CompletableFuture
342342
*/
343343
public CompletableFuture<Void> deleteTableAsync(String id) {
@@ -351,7 +351,7 @@ public CompletableFuture<Void> deleteTableAsync(String id) {
351351
/**
352352
* Delete a reference table by ID
353353
*
354-
* @param id The ID of the reference table to delete (required)
354+
* @param id Unique identifier of the reference table to delete (required)
355355
* @return ApiResponse&lt;Void&gt;
356356
* @throws ApiException if fails to make API call
357357
* @http.response.details
@@ -403,7 +403,7 @@ public ApiResponse<Void> deleteTableWithHttpInfo(String id) throws ApiException
403403
*
404404
* <p>See {@link #deleteTableWithHttpInfo}.
405405
*
406-
* @param id The ID of the reference table to delete (required)
406+
* @param id Unique identifier of the reference table to delete (required)
407407
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
408408
*/
409409
public CompletableFuture<ApiResponse<Void>> deleteTableWithHttpInfoAsync(String id) {
@@ -455,7 +455,7 @@ public CompletableFuture<ApiResponse<Void>> deleteTableWithHttpInfoAsync(String
455455
*
456456
* <p>See {@link #getRowsByIDWithHttpInfo}.
457457
*
458-
* @param id The ID of the reference table (required)
458+
* @param id Unique identifier of the reference table to get rows from (required)
459459
* @param rowId List of row IDs (primary key values) to retrieve from the reference table.
460460
* (required)
461461
* @return TableRowResourceArray
@@ -470,7 +470,7 @@ public TableRowResourceArray getRowsByID(String id, List<String> rowId) throws A
470470
*
471471
* <p>See {@link #getRowsByIDWithHttpInfoAsync}.
472472
*
473-
* @param id The ID of the reference table (required)
473+
* @param id Unique identifier of the reference table to get rows from (required)
474474
* @param rowId List of row IDs (primary key values) to retrieve from the reference table.
475475
* (required)
476476
* @return CompletableFuture&lt;TableRowResourceArray&gt;
@@ -486,7 +486,7 @@ public CompletableFuture<TableRowResourceArray> getRowsByIDAsync(String id, List
486486
/**
487487
* Get reference table rows by their primary key values.
488488
*
489-
* @param id The ID of the reference table (required)
489+
* @param id Unique identifier of the reference table to get rows from (required)
490490
* @param rowId List of row IDs (primary key values) to retrieve from the reference table.
491491
* (required)
492492
* @return ApiResponse&lt;TableRowResourceArray&gt;
@@ -550,7 +550,7 @@ public ApiResponse<TableRowResourceArray> getRowsByIDWithHttpInfo(String id, Lis
550550
*
551551
* <p>See {@link #getRowsByIDWithHttpInfo}.
552552
*
553-
* @param id The ID of the reference table (required)
553+
* @param id Unique identifier of the reference table to get rows from (required)
554554
* @param rowId List of row IDs (primary key values) to retrieve from the reference table.
555555
* (required)
556556
* @return CompletableFuture&lt;ApiResponse&lt;TableRowResourceArray&gt;&gt;
@@ -616,7 +616,7 @@ public CompletableFuture<ApiResponse<TableRowResourceArray>> getRowsByIDWithHttp
616616
*
617617
* <p>See {@link #getTableWithHttpInfo}.
618618
*
619-
* @param id The ID of the reference table to retrieve (required)
619+
* @param id Unique identifier of the reference table to retrieve (required)
620620
* @return TableResultV2
621621
* @throws ApiException if fails to make API call
622622
*/
@@ -629,7 +629,7 @@ public TableResultV2 getTable(String id) throws ApiException {
629629
*
630630
* <p>See {@link #getTableWithHttpInfoAsync}.
631631
*
632-
* @param id The ID of the reference table to retrieve (required)
632+
* @param id Unique identifier of the reference table to retrieve (required)
633633
* @return CompletableFuture&lt;TableResultV2&gt;
634634
*/
635635
public CompletableFuture<TableResultV2> getTableAsync(String id) {
@@ -643,7 +643,7 @@ public CompletableFuture<TableResultV2> getTableAsync(String id) {
643643
/**
644644
* Get a reference table by ID
645645
*
646-
* @param id The ID of the reference table to retrieve (required)
646+
* @param id Unique identifier of the reference table to retrieve (required)
647647
* @return ApiResponse&lt;TableResultV2&gt;
648648
* @throws ApiException if fails to make API call
649649
* @http.response.details
@@ -695,7 +695,7 @@ public ApiResponse<TableResultV2> getTableWithHttpInfo(String id) throws ApiExce
695695
*
696696
* <p>See {@link #getTableWithHttpInfo}.
697697
*
698-
* @param id The ID of the reference table to retrieve (required)
698+
* @param id Unique identifier of the reference table to retrieve (required)
699699
* @return CompletableFuture&lt;ApiResponse&lt;TableResultV2&gt;&gt;
700700
*/
701701
public CompletableFuture<ApiResponse<TableResultV2>> getTableWithHttpInfoAsync(String id) {
@@ -776,8 +776,8 @@ public ListTablesOptionalParameters pageOffset(Long pageOffset) {
776776
/**
777777
* Set sort.
778778
*
779-
* @param sort Sort field and direction. Use field name for ascending, prefix with "-" for
780-
* descending. (optional, default to "-updated_at")
779+
* @param sort Sort field and direction for the list of reference tables. Use field name for
780+
* ascending, prefix with "-" for descending. (optional, default to "-updated_at")
781781
* @return ListTablesOptionalParameters
782782
*/
783783
public ListTablesOptionalParameters sort(ReferenceTableSortType sort) {
@@ -1000,7 +1000,7 @@ public CompletableFuture<ApiResponse<TableResultV2Array>> listTablesWithHttpInfo
10001000
*
10011001
* <p>See {@link #updateReferenceTableWithHttpInfo}.
10021002
*
1003-
* @param id The ID of the reference table to update (required)
1003+
* @param id Unique identifier of the reference table to update (required)
10041004
* @param body (required)
10051005
* @throws ApiException if fails to make API call
10061006
*/
@@ -1013,7 +1013,7 @@ public void updateReferenceTable(String id, PatchTableRequest body) throws ApiEx
10131013
*
10141014
* <p>See {@link #updateReferenceTableWithHttpInfoAsync}.
10151015
*
1016-
* @param id The ID of the reference table to update (required)
1016+
* @param id Unique identifier of the reference table to update (required)
10171017
* @param body (required)
10181018
* @return CompletableFuture
10191019
*/
@@ -1034,7 +1034,7 @@ public CompletableFuture<Void> updateReferenceTableAsync(String id, PatchTableRe
10341034
* types of <code>S3</code>, <code>GCS</code>, or <code>AZURE</code>, provide updated
10351035
* access_details in file_metadata pointing to a CSV file in the same type of cloud storage.
10361036
*
1037-
* @param id The ID of the reference table to update (required)
1037+
* @param id Unique identifier of the reference table to update (required)
10381038
* @param body (required)
10391039
* @return ApiResponse&lt;Void&gt;
10401040
* @throws ApiException if fails to make API call
@@ -1095,7 +1095,7 @@ public ApiResponse<Void> updateReferenceTableWithHttpInfo(String id, PatchTableR
10951095
*
10961096
* <p>See {@link #updateReferenceTableWithHttpInfo}.
10971097
*
1098-
* @param id The ID of the reference table to update (required)
1098+
* @param id Unique identifier of the reference table to update (required)
10991099
* @param body (required)
11001100
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
11011101
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** The definition of <code>CreateTableRequest</code> object. */
19+
/** Request body for creating a new reference table from a local file or cloud storage. */
2020
@JsonPropertyOrder({CreateTableRequest.JSON_PROPERTY_DATA})
2121
@jakarta.annotation.Generated(
2222
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,7 +32,7 @@ public CreateTableRequest data(CreateTableRequestData data) {
3232
}
3333

3434
/**
35-
* The definition of <code>CreateTableRequestData</code> object.
35+
* The data object containing the table definition.
3636
*
3737
* @return data
3838
*/

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

Lines changed: 4 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@
66

77
package com.datadog.api.client.v2.model;
88

9-
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10-
import com.fasterxml.jackson.annotation.JsonAnySetter;
119
import com.fasterxml.jackson.annotation.JsonCreator;
1210
import com.fasterxml.jackson.annotation.JsonIgnore;
1311
import com.fasterxml.jackson.annotation.JsonInclude;
1412
import com.fasterxml.jackson.annotation.JsonProperty;
1513
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16-
import java.util.HashMap;
17-
import java.util.Map;
1814
import java.util.Objects;
1915

20-
/** The definition of <code>CreateTableRequestData</code> object. */
16+
/** The data object containing the table definition. */
2117
@JsonPropertyOrder({
2218
CreateTableRequestData.JSON_PROPERTY_ATTRIBUTES,
23-
CreateTableRequestData.JSON_PROPERTY_ID,
2419
CreateTableRequestData.JSON_PROPERTY_TYPE
2520
})
2621
@jakarta.annotation.Generated(
@@ -30,9 +25,6 @@ public class CreateTableRequestData {
3025
public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
3126
private CreateTableRequestDataAttributes attributes;
3227

33-
public static final String JSON_PROPERTY_ID = "id";
34-
private String id;
35-
3628
public static final String JSON_PROPERTY_TYPE = "type";
3729
private CreateTableRequestDataType type = CreateTableRequestDataType.REFERENCE_TABLE;
3830

@@ -52,7 +44,7 @@ public CreateTableRequestData attributes(CreateTableRequestDataAttributes attrib
5244
}
5345

5446
/**
55-
* The definition of <code>CreateTableRequestDataAttributes</code> object.
47+
* Attributes that define the reference table's configuration and properties.
5648
*
5749
* @return attributes
5850
*/
@@ -67,27 +59,6 @@ public void setAttributes(CreateTableRequestDataAttributes attributes) {
6759
this.attributes = attributes;
6860
}
6961

70-
public CreateTableRequestData id(String id) {
71-
this.id = id;
72-
return this;
73-
}
74-
75-
/**
76-
* The ID of the reference table.
77-
*
78-
* @return id
79-
*/
80-
@jakarta.annotation.Nullable
81-
@JsonProperty(JSON_PROPERTY_ID)
82-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
83-
public String getId() {
84-
return id;
85-
}
86-
87-
public void setId(String id) {
88-
this.id = id;
89-
}
90-
9162
public CreateTableRequestData type(CreateTableRequestDataType type) {
9263
this.type = type;
9364
this.unparsed |= !type.isValid();
@@ -112,52 +83,6 @@ public void setType(CreateTableRequestDataType type) {
11283
this.type = type;
11384
}
11485

115-
/**
116-
* A container for additional, undeclared properties. This is a holder for any undeclared
117-
* properties as specified with the 'additionalProperties' keyword in the OAS document.
118-
*/
119-
private Map<String, Object> additionalProperties;
120-
121-
/**
122-
* Set the additional (undeclared) property with the specified name and value. If the property
123-
* does not already exist, create it otherwise replace it.
124-
*
125-
* @param key The arbitrary key to set
126-
* @param value The associated value
127-
* @return CreateTableRequestData
128-
*/
129-
@JsonAnySetter
130-
public CreateTableRequestData putAdditionalProperty(String key, Object value) {
131-
if (this.additionalProperties == null) {
132-
this.additionalProperties = new HashMap<String, Object>();
133-
}
134-
this.additionalProperties.put(key, value);
135-
return this;
136-
}
137-
138-
/**
139-
* Return the additional (undeclared) property.
140-
*
141-
* @return The additional properties
142-
*/
143-
@JsonAnyGetter
144-
public Map<String, Object> getAdditionalProperties() {
145-
return additionalProperties;
146-
}
147-
148-
/**
149-
* Return the additional (undeclared) property with the specified name.
150-
*
151-
* @param key The arbitrary key to get
152-
* @return The specific additional property for the given key
153-
*/
154-
public Object getAdditionalProperty(String key) {
155-
if (this.additionalProperties == null) {
156-
return null;
157-
}
158-
return this.additionalProperties.get(key);
159-
}
160-
16186
/** Return true if this CreateTableRequestData object is equal to o. */
16287
@Override
16388
public boolean equals(Object o) {
@@ -169,26 +94,20 @@ public boolean equals(Object o) {
16994
}
17095
CreateTableRequestData createTableRequestData = (CreateTableRequestData) o;
17196
return Objects.equals(this.attributes, createTableRequestData.attributes)
172-
&& Objects.equals(this.id, createTableRequestData.id)
173-
&& Objects.equals(this.type, createTableRequestData.type)
174-
&& Objects.equals(this.additionalProperties, createTableRequestData.additionalProperties);
97+
&& Objects.equals(this.type, createTableRequestData.type);
17598
}
17699

177100
@Override
178101
public int hashCode() {
179-
return Objects.hash(attributes, id, type, additionalProperties);
102+
return Objects.hash(attributes, type);
180103
}
181104

182105
@Override
183106
public String toString() {
184107
StringBuilder sb = new StringBuilder();
185108
sb.append("class CreateTableRequestData {\n");
186109
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
187-
sb.append(" id: ").append(toIndentedString(id)).append("\n");
188110
sb.append(" type: ").append(toIndentedString(type)).append("\n");
189-
sb.append(" additionalProperties: ")
190-
.append(toIndentedString(additionalProperties))
191-
.append("\n");
192111
sb.append('}');
193112
return sb.toString();
194113
}

0 commit comments

Comments
 (0)