Skip to content

Commit b7949b9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0f908fa of spec repo
1 parent a76fb76 commit b7949b9

File tree

4 files changed

+3
-36
lines changed

4 files changed

+3
-36
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39789,7 +39789,6 @@ components:
3978939789
type: STRING
3979039790
primary_keys:
3979139791
- id
39792-
sync_enabled: false
3979339792
tags:
3979439793
- test_tag
3979539794
type: reference_table
@@ -39821,10 +39820,6 @@ components:
3982139820
$ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata'
3982239821
schema:
3982339822
$ref: '#/components/schemas/PatchTableRequestDataAttributesSchema'
39824-
sync_enabled:
39825-
description: Whether this table is synced automatically.
39826-
example: false
39827-
type: boolean
3982839823
tags:
3982939824
description: Tags for organizing and filtering reference tables.
3983039825
example:

examples/v2/reference-tables/UpdateReferenceTable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public static void main(String[] args) {
5151
.name("name")
5252
.type(ReferenceTableSchemaFieldType.STRING)))
5353
.primaryKeys(Collections.singletonList("id")))
54-
.syncEnabled(false)
5554
.tags(Collections.singletonList("test_tag")))
5655
.type(PatchTableRequestDataType.REFERENCE_TABLE));
5756

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

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
PatchTableRequestDataAttributes.JSON_PROPERTY_DESCRIPTION,
2424
PatchTableRequestDataAttributes.JSON_PROPERTY_FILE_METADATA,
2525
PatchTableRequestDataAttributes.JSON_PROPERTY_SCHEMA,
26-
PatchTableRequestDataAttributes.JSON_PROPERTY_SYNC_ENABLED,
2726
PatchTableRequestDataAttributes.JSON_PROPERTY_TAGS
2827
})
2928
@jakarta.annotation.Generated(
@@ -39,9 +38,6 @@ public class PatchTableRequestDataAttributes {
3938
public static final String JSON_PROPERTY_SCHEMA = "schema";
4039
private PatchTableRequestDataAttributesSchema schema;
4140

42-
public static final String JSON_PROPERTY_SYNC_ENABLED = "sync_enabled";
43-
private Boolean syncEnabled;
44-
4541
public static final String JSON_PROPERTY_TAGS = "tags";
4642
private List<String> tags = null;
4743

@@ -112,27 +108,6 @@ public void setSchema(PatchTableRequestDataAttributesSchema schema) {
112108
this.schema = schema;
113109
}
114110

115-
public PatchTableRequestDataAttributes syncEnabled(Boolean syncEnabled) {
116-
this.syncEnabled = syncEnabled;
117-
return this;
118-
}
119-
120-
/**
121-
* Whether this table is synced automatically.
122-
*
123-
* @return syncEnabled
124-
*/
125-
@jakarta.annotation.Nullable
126-
@JsonProperty(JSON_PROPERTY_SYNC_ENABLED)
127-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
128-
public Boolean getSyncEnabled() {
129-
return syncEnabled;
130-
}
131-
132-
public void setSyncEnabled(Boolean syncEnabled) {
133-
this.syncEnabled = syncEnabled;
134-
}
135-
136111
public PatchTableRequestDataAttributes tags(List<String> tags) {
137112
this.tags = tags;
138113
return this;
@@ -222,15 +197,14 @@ public boolean equals(Object o) {
222197
return Objects.equals(this.description, patchTableRequestDataAttributes.description)
223198
&& Objects.equals(this.fileMetadata, patchTableRequestDataAttributes.fileMetadata)
224199
&& Objects.equals(this.schema, patchTableRequestDataAttributes.schema)
225-
&& Objects.equals(this.syncEnabled, patchTableRequestDataAttributes.syncEnabled)
226200
&& Objects.equals(this.tags, patchTableRequestDataAttributes.tags)
227201
&& Objects.equals(
228202
this.additionalProperties, patchTableRequestDataAttributes.additionalProperties);
229203
}
230204

231205
@Override
232206
public int hashCode() {
233-
return Objects.hash(description, fileMetadata, schema, syncEnabled, tags, additionalProperties);
207+
return Objects.hash(description, fileMetadata, schema, tags, additionalProperties);
234208
}
235209

236210
@Override
@@ -240,7 +214,6 @@ public String toString() {
240214
sb.append(" description: ").append(toIndentedString(description)).append("\n");
241215
sb.append(" fileMetadata: ").append(toIndentedString(fileMetadata)).append("\n");
242216
sb.append(" schema: ").append(toIndentedString(schema)).append("\n");
243-
sb.append(" syncEnabled: ").append(toIndentedString(syncEnabled)).append("\n");
244217
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
245218
sb.append(" additionalProperties: ")
246219
.append(toIndentedString(additionalProperties))

src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ Feature: Reference Tables
132132
Scenario: Update reference table returns "Bad Request" response
133133
Given new "UpdateReferenceTable" request
134134
And request contains "id" parameter from "REPLACE.ME"
135-
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"}}
135+
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"}}
136136
When the request is sent
137137
Then the response status is 400 Bad Request
138138

139139
@generated @skip @team:DataDog/redapl-experiences
140140
Scenario: Update reference table returns "OK" response
141141
Given new "UpdateReferenceTable" request
142142
And request contains "id" parameter from "REPLACE.ME"
143-
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"}}
143+
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"}}
144144
When the request is sent
145145
Then the response status is 200 OK
146146

0 commit comments

Comments
 (0)