Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38611,7 +38611,6 @@ components:
type: STRING
primary_keys:
- id
sync_enabled: false
tags:
- test_tag
type: reference_table
Expand Down Expand Up @@ -38643,10 +38642,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:
Expand Down
1 change: 0 additions & 1 deletion examples/v2/reference-tables/UpdateReferenceTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"id",
],
),
sync_enabled=False,
tags=[
"test_tag",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ def openapi_types(_):
"description": (str,),
"file_metadata": (PatchTableRequestDataAttributesFileMetadata,),
"schema": (PatchTableRequestDataAttributesSchema,),
"sync_enabled": (bool,),
"tags": ([str],),
}

attribute_map = {
"description": "description",
"file_metadata": "file_metadata",
"schema": "schema",
"sync_enabled": "sync_enabled",
"tags": "tags",
}

Expand All @@ -64,7 +62,6 @@ def __init__(
UnsetType,
] = unset,
schema: Union[PatchTableRequestDataAttributesSchema, UnsetType] = unset,
sync_enabled: Union[bool, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
Expand All @@ -80,9 +77,6 @@ def __init__(
:param schema: Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed.
:type schema: PatchTableRequestDataAttributesSchema, optional

:param sync_enabled: Whether this table is synced automatically.
:type sync_enabled: bool, optional

:param tags: Tags for organizing and filtering reference tables.
:type tags: [str], optional
"""
Expand All @@ -92,8 +86,6 @@ def __init__(
kwargs["file_metadata"] = file_metadata
if schema is not unset:
kwargs["schema"] = schema
if sync_enabled is not unset:
kwargs["sync_enabled"] = sync_enabled
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)
4 changes: 2 additions & 2 deletions tests/v2/features/reference_tables.feature
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ 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

@generated @skip @team:DataDog/redapl-experiences
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