diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d2781f328c..17fa274d52 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -38611,7 +38611,6 @@ components: type: STRING primary_keys: - id - sync_enabled: false tags: - test_tag type: reference_table @@ -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: diff --git a/examples/v2/reference-tables/UpdateReferenceTable.py b/examples/v2/reference-tables/UpdateReferenceTable.py index 06c2f48cf6..cc9b117a11 100644 --- a/examples/v2/reference-tables/UpdateReferenceTable.py +++ b/examples/v2/reference-tables/UpdateReferenceTable.py @@ -52,7 +52,6 @@ "id", ], ), - sync_enabled=False, tags=[ "test_tag", ], diff --git a/src/datadog_api_client/v2/model/patch_table_request_data_attributes.py b/src/datadog_api_client/v2/model/patch_table_request_data_attributes.py index 0d5c23732b..836cf413ae 100644 --- a/src/datadog_api_client/v2/model/patch_table_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/patch_table_request_data_attributes.py @@ -42,7 +42,6 @@ def openapi_types(_): "description": (str,), "file_metadata": (PatchTableRequestDataAttributesFileMetadata,), "schema": (PatchTableRequestDataAttributesSchema,), - "sync_enabled": (bool,), "tags": ([str],), } @@ -50,7 +49,6 @@ def openapi_types(_): "description": "description", "file_metadata": "file_metadata", "schema": "schema", - "sync_enabled": "sync_enabled", "tags": "tags", } @@ -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, ): @@ -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 """ @@ -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) diff --git a/tests/v2/features/reference_tables.feature b/tests/v2/features/reference_tables.feature index fa3ea42360..dee6c60341 100644 --- a/tests/v2/features/reference_tables.feature +++ b/tests/v2/features/reference_tables.feature @@ -108,7 +108,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 @@ -116,6 +116,6 @@ 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