From d03b539ad4f835a2288f1cc6ce876b1f09ca915a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 11 Aug 2026 17:57:51 +0000 Subject: [PATCH] Regenerate client from commit bf7c3c0 of spec repo --- .generator/schemas/v2/openapi.yaml | 15 +++++++++++---- ...create_table_request_data_attributes_schema.rb | 10 +++++++++- .../create_upload_request_data_attributes.rb | 6 +++++- .../patch_table_request_data_attributes_schema.rb | 10 +++++++++- .../table_result_v2_data_attributes_schema.rb | 10 +++++++++- 5 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index be7042205194..92be46cd8f3d 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/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb b/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb index 48aa5686054e..5ab0d7d6c80c 100644 --- a/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +++ b/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class CreateTableRequestDataAttributesSchema include BaseGenericModel - # The schema fields. + # The schema fields. Maximum of 200 columns. attr_reader :fields # 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. @@ -83,6 +83,8 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @fields.nil? + return false if @fields.length > 200 + return false if @fields.length < 1 return false if @primary_keys.nil? true end @@ -94,6 +96,12 @@ def fields=(fields) if fields.nil? fail ArgumentError, 'invalid value for "fields", fields cannot be nil.' end + if fields.length > 200 + fail ArgumentError, 'invalid value for "fields", number of items must be less than or equal to 200.' + end + if fields.length < 1 + fail ArgumentError, 'invalid value for "fields", number of items must be greater than or equal to 1.' + end @fields = fields end diff --git a/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb b/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb index 3cc668f175d4..b8b6bf7e135b 100644 --- a/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class CreateUploadRequestDataAttributes include BaseGenericModel - # The CSV file headers that define the schema fields, provided in the same order as the columns in the uploaded file. + # 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. attr_reader :headers # Number of parts to split the file into for multipart upload. @@ -99,6 +99,7 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @headers.nil? + return false if @headers.length > 200 return false if @part_count.nil? return false if @part_count > 20 return false if @part_size.nil? @@ -113,6 +114,9 @@ def headers=(headers) if headers.nil? fail ArgumentError, 'invalid value for "headers", headers cannot be nil.' end + if headers.length > 200 + fail ArgumentError, 'invalid value for "headers", number of items must be less than or equal to 200.' + end @headers = headers end diff --git a/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb b/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb index 962bd2913b9e..3de2986f3be9 100644 --- a/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +++ b/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class PatchTableRequestDataAttributesSchema include BaseGenericModel - # The schema fields. + # The schema fields. Maximum of 200 columns. attr_reader :fields # 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. @@ -83,6 +83,8 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @fields.nil? + return false if @fields.length > 200 + return false if @fields.length < 1 return false if @primary_keys.nil? true end @@ -94,6 +96,12 @@ def fields=(fields) if fields.nil? fail ArgumentError, 'invalid value for "fields", fields cannot be nil.' end + if fields.length > 200 + fail ArgumentError, 'invalid value for "fields", number of items must be less than or equal to 200.' + end + if fields.length < 1 + fail ArgumentError, 'invalid value for "fields", number of items must be greater than or equal to 1.' + end @fields = fields end diff --git a/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb b/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb index fb57e87b387a..d61db7966d61 100644 --- a/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +++ b/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class TableResultV2DataAttributesSchema include BaseGenericModel - # The schema fields. + # The schema fields. Maximum of 200 columns. attr_reader :fields # 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. @@ -83,6 +83,8 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @fields.nil? + return false if @fields.length > 200 + return false if @fields.length < 1 return false if @primary_keys.nil? true end @@ -94,6 +96,12 @@ def fields=(fields) if fields.nil? fail ArgumentError, 'invalid value for "fields", fields cannot be nil.' end + if fields.length > 200 + fail ArgumentError, 'invalid value for "fields", number of items must be less than or equal to 200.' + end + if fields.length < 1 + fail ArgumentError, 'invalid value for "fields", number of items must be greater than or equal to 1.' + end @fields = fields end