Skip to content

Commit 2512efb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e2f3b21 of spec repo
1 parent 2bd6b22 commit 2512efb

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38611,7 +38611,6 @@ components:
3861138611
type: STRING
3861238612
primary_keys:
3861338613
- id
38614-
sync_enabled: false
3861538614
tags:
3861638615
- test_tag
3861738616
type: reference_table
@@ -38643,10 +38642,6 @@ components:
3864338642
$ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata'
3864438643
schema:
3864538644
$ref: '#/components/schemas/PatchTableRequestDataAttributesSchema'
38646-
sync_enabled:
38647-
description: Whether this table is synced automatically.
38648-
example: false
38649-
type: boolean
3865038645
tags:
3865138646
description: Tags for organizing and filtering reference tables.
3865238647
example:

examples/v2/reference-tables/UpdateReferenceTable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"id",
5353
],
5454
),
55-
sync_enabled=False,
5655
tags=[
5756
"test_tag",
5857
],

src/datadog_api_client/v2/model/patch_table_request_data_attributes.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ def openapi_types(_):
4242
"description": (str,),
4343
"file_metadata": (PatchTableRequestDataAttributesFileMetadata,),
4444
"schema": (PatchTableRequestDataAttributesSchema,),
45-
"sync_enabled": (bool,),
4645
"tags": ([str],),
4746
}
4847

4948
attribute_map = {
5049
"description": "description",
5150
"file_metadata": "file_metadata",
5251
"schema": "schema",
53-
"sync_enabled": "sync_enabled",
5452
"tags": "tags",
5553
}
5654

@@ -64,7 +62,6 @@ def __init__(
6462
UnsetType,
6563
] = unset,
6664
schema: Union[PatchTableRequestDataAttributesSchema, UnsetType] = unset,
67-
sync_enabled: Union[bool, UnsetType] = unset,
6865
tags: Union[List[str], UnsetType] = unset,
6966
**kwargs,
7067
):
@@ -80,9 +77,6 @@ def __init__(
8077
:param schema: Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed.
8178
:type schema: PatchTableRequestDataAttributesSchema, optional
8279
83-
:param sync_enabled: Whether this table is synced automatically.
84-
:type sync_enabled: bool, optional
85-
8680
:param tags: Tags for organizing and filtering reference tables.
8781
:type tags: [str], optional
8882
"""
@@ -92,8 +86,6 @@ def __init__(
9286
kwargs["file_metadata"] = file_metadata
9387
if schema is not unset:
9488
kwargs["schema"] = schema
95-
if sync_enabled is not unset:
96-
kwargs["sync_enabled"] = sync_enabled
9789
if tags is not unset:
9890
kwargs["tags"] = tags
9991
super().__init__(kwargs)

tests/v2/features/reference_tables.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ Feature: Reference Tables
108108
Scenario: Update reference table returns "Bad Request" response
109109
Given new "UpdateReferenceTable" request
110110
And request contains "id" parameter from "REPLACE.ME"
111-
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"}}
111+
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"}}
112112
When the request is sent
113113
Then the response status is 400 Bad Request
114114

115115
@generated @skip @team:DataDog/redapl-experiences
116116
Scenario: Update reference table returns "OK" response
117117
Given new "UpdateReferenceTable" request
118118
And request contains "id" parameter from "REPLACE.ME"
119-
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"}}
119+
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"}}
120120
When the request is sent
121121
Then the response status is 200 OK

0 commit comments

Comments
 (0)