diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index be70422051..92be46cd8f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -26223,9 +26223,11 @@ components: description: Schema defining the structure and columns of the reference table. properties: fields: - description: The schema fields. + description: The schema fields. Maximum of 200 columns. items: $ref: "#/components/schemas/CreateTableRequestDataAttributesSchemaFieldsItems" + maxItems: 200 + minItems: 1 type: array primary_keys: description: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. @@ -26488,13 +26490,14 @@ components: description: Upload configuration specifying how data is uploaded by the user, and properties of the table to associate the upload with. properties: headers: - description: The CSV file headers that define the schema fields, provided in the same order as the columns in the uploaded file. + description: The CSV file headers that define the schema fields, provided in the same order as the columns in the uploaded file. Maximum of 200 columns. example: - "field_1" - "field_2" items: description: A column header name from the CSV file. type: string + maxItems: 200 type: array part_count: description: Number of parts to split the file into for multipart upload. @@ -80962,9 +80965,11 @@ components: description: Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed. properties: fields: - description: The schema fields. + description: The schema fields. Maximum of 200 columns. items: $ref: "#/components/schemas/PatchTableRequestDataAttributesSchemaFieldsItems" + maxItems: 200 + minItems: 1 type: array primary_keys: description: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. Primary keys cannot be changed after table creation. @@ -110124,9 +110129,11 @@ components: description: Schema defining the structure and columns of the reference table. properties: fields: - description: The schema fields. + description: The schema fields. Maximum of 200 columns. items: $ref: "#/components/schemas/TableResultV2DataAttributesSchemaFieldsItems" + maxItems: 200 + minItems: 1 type: array primary_keys: description: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. diff --git a/src/datadog_api_client/v2/model/create_table_request_data_attributes_schema.py b/src/datadog_api_client/v2/model/create_table_request_data_attributes_schema.py index ff6b2fb0c5..6f31ec244a 100644 --- a/src/datadog_api_client/v2/model/create_table_request_data_attributes_schema.py +++ b/src/datadog_api_client/v2/model/create_table_request_data_attributes_schema.py @@ -18,6 +18,13 @@ class CreateTableRequestDataAttributesSchema(ModelNormal): + validations = { + "fields": { + "max_items": 200, + "min_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.create_table_request_data_attributes_schema_fields_items import ( @@ -40,7 +47,7 @@ def __init__( """ Schema defining the structure and columns of the reference table. - :param fields: The schema fields. + :param fields: The schema fields. Maximum of 200 columns. :type fields: [CreateTableRequestDataAttributesSchemaFieldsItems] :param primary_keys: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. diff --git a/src/datadog_api_client/v2/model/create_upload_request_data_attributes.py b/src/datadog_api_client/v2/model/create_upload_request_data_attributes.py index bbeb7760ae..1ec92999f5 100644 --- a/src/datadog_api_client/v2/model/create_upload_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/create_upload_request_data_attributes.py @@ -13,6 +13,9 @@ class CreateUploadRequestDataAttributes(ModelNormal): validations = { + "headers": { + "max_items": 200, + }, "part_count": { "inclusive_maximum": 20, }, @@ -38,7 +41,7 @@ def __init__(self_, headers: List[str], part_count: int, part_size: int, table_n """ Upload configuration specifying how data is uploaded by the user, and properties of the table to associate the upload with. - :param headers: The CSV file headers that define the schema fields, provided in the same order as the columns in the uploaded file. + :param headers: The CSV file headers that define the schema fields, provided in the same order as the columns in the uploaded file. Maximum of 200 columns. :type headers: [str] :param part_count: Number of parts to split the file into for multipart upload. diff --git a/src/datadog_api_client/v2/model/patch_table_request_data_attributes_schema.py b/src/datadog_api_client/v2/model/patch_table_request_data_attributes_schema.py index 9a0082d702..30f13f57a6 100644 --- a/src/datadog_api_client/v2/model/patch_table_request_data_attributes_schema.py +++ b/src/datadog_api_client/v2/model/patch_table_request_data_attributes_schema.py @@ -18,6 +18,13 @@ class PatchTableRequestDataAttributesSchema(ModelNormal): + validations = { + "fields": { + "max_items": 200, + "min_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.patch_table_request_data_attributes_schema_fields_items import ( @@ -40,7 +47,7 @@ def __init__( """ Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed. - :param fields: The schema fields. + :param fields: The schema fields. Maximum of 200 columns. :type fields: [PatchTableRequestDataAttributesSchemaFieldsItems] :param primary_keys: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. Primary keys cannot be changed after table creation. diff --git a/src/datadog_api_client/v2/model/table_result_v2_data_attributes_schema.py b/src/datadog_api_client/v2/model/table_result_v2_data_attributes_schema.py index cbf70afc0b..e1adcc16bc 100644 --- a/src/datadog_api_client/v2/model/table_result_v2_data_attributes_schema.py +++ b/src/datadog_api_client/v2/model/table_result_v2_data_attributes_schema.py @@ -18,6 +18,13 @@ class TableResultV2DataAttributesSchema(ModelNormal): + validations = { + "fields": { + "max_items": 200, + "min_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.table_result_v2_data_attributes_schema_fields_items import ( @@ -38,7 +45,7 @@ def __init__(self_, fields: List[TableResultV2DataAttributesSchemaFieldsItems], """ Schema defining the structure and columns of the reference table. - :param fields: The schema fields. + :param fields: The schema fields. Maximum of 200 columns. :type fields: [TableResultV2DataAttributesSchemaFieldsItems] :param primary_keys: List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows.