From b7949b9b90cb3ebdd22dc515395ba249a94c1107 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 10 Dec 2025 21:22:30 +0000 Subject: [PATCH] Regenerate client from commit 0f908fa of spec repo --- .generator/schemas/v2/openapi.yaml | 5 ---- .../UpdateReferenceTable.java | 1 - .../PatchTableRequestDataAttributes.java | 29 +------------------ .../client/v2/api/reference_tables.feature | 4 +-- 4 files changed, 3 insertions(+), 36 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7760d58c049..4e4f3501d2a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -39789,7 +39789,6 @@ components: type: STRING primary_keys: - id - sync_enabled: false tags: - test_tag type: reference_table @@ -39821,10 +39820,6 @@ components: $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata' schema: $ref: '#/components/schemas/PatchTableRequestDataAttributesSchema' - sync_enabled: - description: Whether this table is synced automatically. - example: false - type: boolean tags: description: Tags for organizing and filtering reference tables. example: diff --git a/examples/v2/reference-tables/UpdateReferenceTable.java b/examples/v2/reference-tables/UpdateReferenceTable.java index a7875f13863..7149b954d5a 100644 --- a/examples/v2/reference-tables/UpdateReferenceTable.java +++ b/examples/v2/reference-tables/UpdateReferenceTable.java @@ -51,7 +51,6 @@ public static void main(String[] args) { .name("name") .type(ReferenceTableSchemaFieldType.STRING))) .primaryKeys(Collections.singletonList("id"))) - .syncEnabled(false) .tags(Collections.singletonList("test_tag"))) .type(PatchTableRequestDataType.REFERENCE_TABLE)); diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java index af04a141aad..e9b38fdc20f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java @@ -23,7 +23,6 @@ PatchTableRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, PatchTableRequestDataAttributes.JSON_PROPERTY_FILE_METADATA, PatchTableRequestDataAttributes.JSON_PROPERTY_SCHEMA, - PatchTableRequestDataAttributes.JSON_PROPERTY_SYNC_ENABLED, PatchTableRequestDataAttributes.JSON_PROPERTY_TAGS }) @jakarta.annotation.Generated( @@ -39,9 +38,6 @@ public class PatchTableRequestDataAttributes { public static final String JSON_PROPERTY_SCHEMA = "schema"; private PatchTableRequestDataAttributesSchema schema; - public static final String JSON_PROPERTY_SYNC_ENABLED = "sync_enabled"; - private Boolean syncEnabled; - public static final String JSON_PROPERTY_TAGS = "tags"; private List tags = null; @@ -112,27 +108,6 @@ public void setSchema(PatchTableRequestDataAttributesSchema schema) { this.schema = schema; } - public PatchTableRequestDataAttributes syncEnabled(Boolean syncEnabled) { - this.syncEnabled = syncEnabled; - return this; - } - - /** - * Whether this table is synced automatically. - * - * @return syncEnabled - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SYNC_ENABLED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSyncEnabled() { - return syncEnabled; - } - - public void setSyncEnabled(Boolean syncEnabled) { - this.syncEnabled = syncEnabled; - } - public PatchTableRequestDataAttributes tags(List tags) { this.tags = tags; return this; @@ -222,7 +197,6 @@ public boolean equals(Object o) { return Objects.equals(this.description, patchTableRequestDataAttributes.description) && Objects.equals(this.fileMetadata, patchTableRequestDataAttributes.fileMetadata) && Objects.equals(this.schema, patchTableRequestDataAttributes.schema) - && Objects.equals(this.syncEnabled, patchTableRequestDataAttributes.syncEnabled) && Objects.equals(this.tags, patchTableRequestDataAttributes.tags) && Objects.equals( this.additionalProperties, patchTableRequestDataAttributes.additionalProperties); @@ -230,7 +204,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(description, fileMetadata, schema, syncEnabled, tags, additionalProperties); + return Objects.hash(description, fileMetadata, schema, tags, additionalProperties); } @Override @@ -240,7 +214,6 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" fileMetadata: ").append(toIndentedString(fileMetadata)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); - sb.append(" syncEnabled: ").append(toIndentedString(syncEnabled)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature index 45a2861c15b..6f973204a89 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature @@ -132,7 +132,7 @@ Feature: Reference Tables Scenario: Update reference table returns "Bad Request" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 400 Bad Request @@ -140,7 +140,7 @@ Feature: Reference Tables Scenario: Update reference table returns "OK" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 200 OK