You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/datadog_api_client/v2/api/reference_tables_api.py
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,12 @@ def create_reference_table(
233
233
) ->TableResultV2:
234
234
"""Create reference table.
235
235
236
-
Create a new reference table. You can provide data in two ways: 1) Call POST api/v2/reference-tables/upload first to get an upload ID, then PUT chunks of CSV data to each provided URL, and finally call this POST endpoint with the upload_id in file_metadata, OR 2) Provide access_details in file_metadata pointing to a CSV file in cloud storage (Amazon S3, Azure Blob Storage, or GCP Cloud Storage).
236
+
Creates a reference table. You can provide data in two ways:
237
+
238
+
#. Call POST /api/v2/reference-tables/upload to get an upload ID. Then, PUT the CSV data
239
+
(not the file itself) in chunks to each URL in the request body. Finally, call this
240
+
POST endpoint with ``upload_id`` in ``file_metadata``.
241
+
#. Provide ``access_details`` in ``file_metadata`` pointing to a CSV file in cloud storage.
237
242
238
243
:type body: CreateTableRequest
239
244
:rtype: TableResultV2
@@ -267,7 +272,7 @@ def delete_table(
267
272
268
273
Delete a reference table by ID
269
274
270
-
:param id: The ID of the reference table to delete
275
+
:param id: Unique identifier of the reference table to delete
271
276
:type id: str
272
277
:rtype: None
273
278
"""
@@ -285,7 +290,7 @@ def get_rows_by_id(
285
290
286
291
Get reference table rows by their primary key values.
287
292
288
-
:param id: The ID of the reference table
293
+
:param id: Unique identifier of the reference table to get rows from
289
294
:type id: str
290
295
:param row_id: List of row IDs (primary key values) to retrieve from the reference table.
291
296
:type row_id: [str]
@@ -306,7 +311,7 @@ def get_table(
306
311
307
312
Get a reference table by ID
308
313
309
-
:param id: The ID of the reference table to retrieve
314
+
:param id: Unique identifier of the reference table to retrieve
310
315
:type id: str
311
316
:rtype: TableResultV2
312
317
"""
@@ -333,7 +338,7 @@ def list_tables(
333
338
:type page_limit: int, optional
334
339
:param page_offset: Number of tables to skip for pagination.
335
340
:type page_offset: int, optional
336
-
:param sort: Sort field and direction. Use field name for ascending, prefix with "-" for descending.
341
+
:param sort: Sort field and direction for the list of reference tables. Use field name for ascending, prefix with "-" for descending.
337
342
:type sort: ReferenceTableSortType, optional
338
343
:param filter_status: Filter by table status.
339
344
:type filter_status: str, optional
@@ -373,7 +378,7 @@ def update_reference_table(
373
378
374
379
Update a reference table by ID. You can update the table's data, description, and tags. Note: The source type cannot be changed after table creation. For data updates: For existing tables of type `source:LOCAL_FILE`, call POST api/v2/reference-tables/uploads first to get an upload ID, then PUT chunks of CSV data to each provided URL, and finally call this PATCH endpoint with the upload_id in file_metadata. For existing tables with `source:` types of `S3 ``,`` GCS ``, or`` AZURE`, provide updated access_details in file_metadata pointing to a CSV file in the same type of cloud storage.
375
380
376
-
:param id: The ID of the reference table to update
381
+
:param id: Unique identifier of the reference table to update
Copy file name to clipboardExpand all lines: src/datadog_api_client/v2/model/create_table_request_data_attributes_file_metadata_one_of_access_details.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,15 +60,15 @@ def __init__(
60
60
**kwargs,
61
61
):
62
62
"""
63
-
The definition of ``CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails`` object.
63
+
Cloud storage access configuration for the reference table data file.
64
64
65
-
:param aws_detail: The definition of ``CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail`` object.
65
+
:param aws_detail: Amazon Web Services S3 storage access configuration.
Copy file name to clipboardExpand all lines: src/datadog_api_client/v2/model/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.py
0 commit comments