Skip to content

Commit e32980c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
remove duplicate sync_enabled field for PATCH Reference Tables request schema (#3033)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1f75048 commit e32980c

4 files changed

Lines changed: 2 additions & 16 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40664,7 +40664,6 @@ components:
4066440664
type: STRING
4066540665
primary_keys:
4066640666
- id
40667-
sync_enabled: false
4066840667
tags:
4066940668
- test_tag
4067040669
type: reference_table
@@ -40696,10 +40695,6 @@ components:
4069640695
$ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata'
4069740696
schema:
4069840697
$ref: '#/components/schemas/PatchTableRequestDataAttributesSchema'
40699-
sync_enabled:
40700-
description: Whether this table is synced automatically.
40701-
example: false
40702-
type: boolean
4070340698
tags:
4070440699
description: Tags for organizing and filtering reference tables.
4070540700
example:

examples/v2/reference-tables/UpdateReferenceTable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const params: v2.ReferenceTablesApiUpdateReferenceTableRequest = {
3535
],
3636
primaryKeys: ["id"],
3737
},
38-
syncEnabled: false,
3938
tags: ["test_tag"],
4039
},
4140
type: "reference_table",

features/v2/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

packages/datadog-api-client-v2/models/PatchTableRequestDataAttributes.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ export class PatchTableRequestDataAttributes {
2424
* Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed.
2525
*/
2626
"schema"?: PatchTableRequestDataAttributesSchema;
27-
/**
28-
* Whether this table is synced automatically.
29-
*/
30-
"syncEnabled"?: boolean;
3127
/**
3228
* Tags for organizing and filtering reference tables.
3329
*/
@@ -61,10 +57,6 @@ export class PatchTableRequestDataAttributes {
6157
baseName: "schema",
6258
type: "PatchTableRequestDataAttributesSchema",
6359
},
64-
syncEnabled: {
65-
baseName: "sync_enabled",
66-
type: "boolean",
67-
},
6860
tags: {
6961
baseName: "tags",
7062
type: "Array<string>",

0 commit comments

Comments
 (0)