Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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?
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
Loading