Skip to content

Commit cd77a5a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b62fef3 of spec repo
1 parent 87dea61 commit cd77a5a

File tree

47 files changed

+301
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+301
-334
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 163 additions & 144 deletions
Large diffs are not rendered by default.

examples/v2/reference-tables/UpdateReferenceTable.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"test_tag",
3838
],
3939
}),
40-
id: "00000000-0000-0000-0000-000000000000",
4140
type: DatadogAPIClient::V2::PatchTableRequestDataType::REFERENCE_TABLE,
4241
}),
4342
})

features/v2/reference_tables.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Reference Tables
2424
@generated @skip @team:DataDog/redapl-experiences
2525
Scenario: Create reference table upload returns "Bad Request" response
2626
Given new "CreateReferenceTableUpload" request
27-
And body with value {"data": {"attributes": {"headers": [""], "part_count": 3, "part_size": 10000000, "table_name": ""}, "type": "upload"}}
27+
And body with value {"data": {"attributes": {"headers": ["field_1", "field_2"], "part_count": 3, "part_size": 10000000, "table_name": ""}, "type": "upload"}}
2828
When the request is sent
2929
Then the response status is 400 Bad Request
3030

lib/datadog_api_client/v2/api/reference_tables_api.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ def create_reference_table(body, opts = {})
3333

3434
# Create reference table.
3535
#
36-
# 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).
36+
# Creates a reference table. You can provide data in two ways:
37+
# 1. Call POST /api/v2/reference-tables/upload to get an upload ID. Then PUT the CSV data
38+
# (not the file itself) in chunks to each URL in the request body. Finally, call this
39+
# POST endpoint with `upload_id` in `file_metadata`.
40+
# 2. Provide `access_details` in `file_metadata` pointing to a CSV file in cloud storage.
3741
#
3842
# @param body [CreateTableRequest]
3943
# @param opts [Hash] the optional parameters
@@ -169,7 +173,7 @@ def delete_table(id, opts = {})
169173
#
170174
# Delete a reference table by ID
171175
#
172-
# @param id [String] The ID of the reference table to delete
176+
# @param id [String] Unique identifier of the reference table to delete
173177
# @param opts [Hash] the optional parameters
174178
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175179
def delete_table_with_http_info(id, opts = {})
@@ -234,7 +238,7 @@ def get_rows_by_id(id, row_id, opts = {})
234238
#
235239
# Get reference table rows by their primary key values.
236240
#
237-
# @param id [String] The ID of the reference table
241+
# @param id [String] Unique identifier of the reference table to get rows from
238242
# @param row_id [Array<String>] List of row IDs (primary key values) to retrieve from the reference table.
239243
# @param opts [Hash] the optional parameters
240244
# @return [Array<(TableRowResourceArray, Integer, Hash)>] TableRowResourceArray data, response status code and response headers
@@ -306,7 +310,7 @@ def get_table(id, opts = {})
306310
#
307311
# Get a reference table by ID
308312
#
309-
# @param id [String] The ID of the reference table to retrieve
313+
# @param id [String] Unique identifier of the reference table to retrieve
310314
# @param opts [Hash] the optional parameters
311315
# @return [Array<(TableResultV2, Integer, Hash)>] TableResultV2 data, response status code and response headers
312316
def get_table_with_http_info(id, opts = {})
@@ -374,7 +378,7 @@ def list_tables(opts = {})
374378
# @param opts [Hash] the optional parameters
375379
# @option opts [Integer] :page_limit Number of tables to return.
376380
# @option opts [Integer] :page_offset Number of tables to skip for pagination.
377-
# @option opts [ReferenceTableSortType] :sort Sort field and direction. Use field name for ascending, prefix with "-" for descending.
381+
# @option opts [ReferenceTableSortType] :sort Sort field and direction for the list of reference tables. Use field name for ascending, prefix with "-" for descending.
378382
# @option opts [String] :filter_status Filter by table status.
379383
# @option opts [String] :filter_table_name_exact Filter by exact table name match.
380384
# @option opts [String] :filter_table_name_contains Filter by table name containing substring.
@@ -456,7 +460,7 @@ def update_reference_table(id, body, opts = {})
456460
#
457461
# 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.
458462
#
459-
# @param id [String] The ID of the reference table to update
463+
# @param id [String] Unique identifier of the reference table to update
460464
# @param body [PatchTableRequest]
461465
# @param opts [Hash] the optional parameters
462466
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

lib/datadog_api_client/v2/models/create_table_request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `CreateTableRequest` object.
20+
# Request body for creating a new reference table from a local file or cloud storage.
2121
class CreateTableRequest
2222
include BaseGenericModel
2323

24-
# The definition of `CreateTableRequestData` object.
24+
# The data object containing the table definition.
2525
attr_accessor :data
2626

2727
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/create_table_request_data.rb

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `CreateTableRequestData` object.
20+
# The data object containing the table definition.
2121
class CreateTableRequestData
2222
include BaseGenericModel
2323

24-
# The definition of `CreateTableRequestDataAttributes` object.
24+
# Attributes that define the reference table's configuration and properties.
2525
attr_accessor :attributes
2626

27-
# The ID of the reference table.
28-
attr_accessor :id
29-
3027
# Reference table resource type.
3128
attr_reader :type
3229

@@ -37,7 +34,6 @@ class CreateTableRequestData
3734
def self.attribute_map
3835
{
3936
:'attributes' => :'attributes',
40-
:'id' => :'id',
4137
:'type' => :'type'
4238
}
4339
end
@@ -47,7 +43,6 @@ def self.attribute_map
4743
def self.openapi_types
4844
{
4945
:'attributes' => :'CreateTableRequestDataAttributes',
50-
:'id' => :'String',
5146
:'type' => :'CreateTableRequestDataType'
5247
}
5348
end
@@ -74,10 +69,6 @@ def initialize(attributes = {})
7469
self.attributes = attributes[:'attributes']
7570
end
7671

77-
if attributes.key?(:'id')
78-
self.id = attributes[:'id']
79-
end
80-
8172
if attributes.key?(:'type')
8273
self.type = attributes[:'type']
8374
end
@@ -128,7 +119,6 @@ def ==(o)
128119
return true if self.equal?(o)
129120
self.class == o.class &&
130121
attributes == o.attributes &&
131-
id == o.id &&
132122
type == o.type &&
133123
additional_properties == o.additional_properties
134124
end
@@ -137,7 +127,7 @@ def ==(o)
137127
# @return [Integer] Hash code
138128
# @!visibility private
139129
def hash
140-
[attributes, id, type, additional_properties].hash
130+
[attributes, type, additional_properties].hash
141131
end
142132
end
143133
end

lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `CreateTableRequestDataAttributes` object.
20+
# Attributes that define the reference table's configuration and properties.
2121
class CreateTableRequestDataAttributes
2222
include BaseGenericModel
2323

24-
# The description of the reference table.
24+
# Optional text describing the purpose or contents of this reference table.
2525
attr_accessor :description
2626

27-
# The definition of `CreateTableRequestDataAttributesFileMetadata` object.
27+
# Metadata specifying where and how to access the reference table's data file.
2828
attr_accessor :file_metadata
2929

30-
# The definition of `CreateTableRequestDataAttributesSchema` object.
30+
# Schema defining the structure and columns of the reference table.
3131
attr_reader :schema
3232

3333
# The source type for creating reference table data. Only these source types can be created through this API.
3434
attr_reader :source
3535

36-
# The name of the reference table.
36+
# Name to identify this reference table.
3737
attr_reader :table_name
3838

39-
# The tags of the reference table.
39+
# Tags for organizing and filtering reference tables.
4040
attr_accessor :tags
4141

4242
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `CreateTableRequestDataAttributesFileMetadata` object.
20+
# Metadata specifying where and how to access the reference table's data file.
2121
module CreateTableRequestDataAttributesFileMetadata
2222
class << self
2323
include BaseOneOfModel

lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class CreateTableRequestDataAttributesFileMetadataCloudStorage
2222
include BaseGenericModel
2323

24-
# The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
24+
# Cloud storage access configuration for the reference table data file.
2525
attr_reader :access_details
2626

2727
# Whether this table is synced automatically.

lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
20+
# Cloud storage access configuration for the reference table data file.
2121
class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails
2222
include BaseGenericModel
2323

24-
# The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
24+
# Amazon Web Services S3 storage access configuration.
2525
attr_accessor :aws_detail
2626

27-
# The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
27+
# Azure Blob Storage access configuration.
2828
attr_accessor :azure_detail
2929

30-
# The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
30+
# Google Cloud Platform storage access configuration.
3131
attr_accessor :gcp_detail
3232

3333
attr_accessor :additional_properties

0 commit comments

Comments
 (0)