Skip to content

Commit 7380e41

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 20ead7f of spec repo
1 parent aeffb31 commit 7380e41

File tree

46 files changed

+292
-293
lines changed

Some content is hidden

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

46 files changed

+292
-293
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 162 additions & 143 deletions
Large diffs are not rendered by default.

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

services/reference_tables/src/v2/ReferenceTablesApi.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -847,15 +847,15 @@ export interface ReferenceTablesApiCreateReferenceTableUploadRequest {
847847

848848
export interface ReferenceTablesApiDeleteTableRequest {
849849
/**
850-
* The ID of the reference table to delete
850+
* Unique identifier of the reference table to delete
851851
* @type string
852852
*/
853853
id: string;
854854
}
855855

856856
export interface ReferenceTablesApiGetRowsByIDRequest {
857857
/**
858-
* The ID of the reference table
858+
* Unique identifier of the reference table to get rows from
859859
* @type string
860860
*/
861861
id: string;
@@ -868,7 +868,7 @@ export interface ReferenceTablesApiGetRowsByIDRequest {
868868

869869
export interface ReferenceTablesApiGetTableRequest {
870870
/**
871-
* The ID of the reference table to retrieve
871+
* Unique identifier of the reference table to retrieve
872872
* @type string
873873
*/
874874
id: string;
@@ -886,7 +886,7 @@ export interface ReferenceTablesApiListTablesRequest {
886886
*/
887887
pageOffset?: number;
888888
/**
889-
* Sort field and direction. Use field name for ascending, prefix with "-" for descending.
889+
* Sort field and direction for the list of reference tables. Use field name for ascending, prefix with "-" for descending.
890890
* @type ReferenceTableSortType
891891
*/
892892
sort?: ReferenceTableSortType;
@@ -909,7 +909,7 @@ export interface ReferenceTablesApiListTablesRequest {
909909

910910
export interface ReferenceTablesApiUpdateReferenceTableRequest {
911911
/**
912-
* The ID of the reference table to update
912+
* Unique identifier of the reference table to update
913913
* @type string
914914
*/
915915
id: string;
@@ -940,7 +940,11 @@ export class ReferenceTablesApi {
940940
}
941941

942942
/**
943-
* 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).
943+
* Creates a reference table. You can provide data in two ways:
944+
* 1) Call POST /api/v2/reference-tables/upload to get an upload ID. Then PUT the CSV data
945+
* (not the file itself) in chunks to each URL in the request body. Finally, call this
946+
* POST endpoint with `upload_id` in `file_metadata`.
947+
* 2) Provide `access_details` in `file_metadata` pointing to a CSV file in cloud storage.
944948
* @param param The request object
945949
*/
946950
public createReferenceTable(

services/reference_tables/src/v2/models/CreateTableRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client";
33
import { CreateTableRequestData } from "./CreateTableRequestData";
44

55
/**
6-
* The definition of `CreateTableRequest` object.
6+
* Request body for creating a new reference table from a local file or cloud storage.
77
*/
88
export class CreateTableRequest {
99
/**
10-
* The definition of `CreateTableRequestData` object.
10+
* The data object containing the table definition.
1111
*/
1212
"data"?: CreateTableRequestData;
1313
/**

services/reference_tables/src/v2/models/CreateTableRequestData.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ import { CreateTableRequestDataAttributes } from "./CreateTableRequestDataAttrib
44
import { CreateTableRequestDataType } from "./CreateTableRequestDataType";
55

66
/**
7-
* The definition of `CreateTableRequestData` object.
7+
* The data object containing the table definition.
88
*/
99
export class CreateTableRequestData {
1010
/**
11-
* The definition of `CreateTableRequestDataAttributes` object.
11+
* Attributes that define the reference table's configuration and properties.
1212
*/
1313
"attributes"?: CreateTableRequestDataAttributes;
14-
/**
15-
* The ID of the reference table.
16-
*/
17-
"id"?: string;
1814
/**
1915
* Reference table resource type.
2016
*/
@@ -38,10 +34,6 @@ export class CreateTableRequestData {
3834
baseName: "attributes",
3935
type: "CreateTableRequestDataAttributes",
4036
},
41-
id: {
42-
baseName: "id",
43-
type: "string",
44-
},
4537
type: {
4638
baseName: "type",
4739
type: "CreateTableRequestDataType",

services/reference_tables/src/v2/models/CreateTableRequestDataAttributes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@ import { CreateTableRequestDataAttributesSchema } from "./CreateTableRequestData
55
import { ReferenceTableCreateSourceType } from "./ReferenceTableCreateSourceType";
66

77
/**
8-
* The definition of `CreateTableRequestDataAttributes` object.
8+
* Attributes that define the reference table's configuration and properties.
99
*/
1010
export class CreateTableRequestDataAttributes {
1111
/**
12-
* The description of the reference table.
12+
* Optional text describing the purpose or contents of this reference table.
1313
*/
1414
"description"?: string;
1515
/**
16-
* The definition of `CreateTableRequestDataAttributesFileMetadata` object.
16+
* Metadata specifying where and how to access the reference table's data file.
1717
*/
1818
"fileMetadata"?: CreateTableRequestDataAttributesFileMetadata;
1919
/**
20-
* The definition of `CreateTableRequestDataAttributesSchema` object.
20+
* Schema defining the structure and columns of the reference table.
2121
*/
2222
"schema": CreateTableRequestDataAttributesSchema;
2323
/**
2424
* The source type for creating reference table data. Only these source types can be created through this API.
2525
*/
2626
"source": ReferenceTableCreateSourceType;
2727
/**
28-
* The name of the reference table.
28+
* Name to identify this reference table.
2929
*/
3030
"tableName": string;
3131
/**
32-
* The tags of the reference table.
32+
* Tags for organizing and filtering reference tables.
3333
*/
3434
"tags"?: Array<string>;
3535
/**

services/reference_tables/src/v2/models/CreateTableRequestDataAttributesFileMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CreateTableRequestDataAttributesFileMetadataCloudStorage } from "./Crea
44
import { CreateTableRequestDataAttributesFileMetadataLocalFile } from "./CreateTableRequestDataAttributesFileMetadataLocalFile";
55

66
/**
7-
* The definition of `CreateTableRequestDataAttributesFileMetadata` object.
7+
* Metadata specifying where and how to access the reference table's data file.
88
*/
99
export type CreateTableRequestDataAttributesFileMetadata =
1010
| CreateTableRequestDataAttributesFileMetadataCloudStorage

services/reference_tables/src/v2/models/CreateTableRequestDataAttributesFileMetadataCloudStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails } from "
77
*/
88
export class CreateTableRequestDataAttributesFileMetadataCloudStorage {
99
/**
10-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
10+
* Cloud storage access configuration for the reference table data file.
1111
*/
1212
"accessDetails": CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails;
1313
/**

services/reference_tables/src/v2/models/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ import { CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDeta
55
import { CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail } from "./CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail";
66

77
/**
8-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
8+
* Cloud storage access configuration for the reference table data file.
99
*/
1010
export class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails {
1111
/**
12-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
12+
* Amazon Web Services S3 storage access configuration.
1313
*/
1414
"awsDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail;
1515
/**
16-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
16+
* Azure Blob Storage access configuration.
1717
*/
1818
"azureDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail;
1919
/**
20-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
20+
* Google Cloud Platform storage access configuration.
2121
*/
2222
"gcpDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail;
2323
/**

services/reference_tables/src/v2/models/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

33
/**
4-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
4+
* Amazon Web Services S3 storage access configuration.
55
*/
66
export class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail {
77
/**
8-
* The ID of the AWS account.
8+
* AWS account ID where the S3 bucket is located.
99
*/
1010
"awsAccountId": string;
1111
/**
12-
* The name of the Amazon S3 bucket.
12+
* S3 bucket containing the CSV file.
1313
*/
1414
"awsBucketName": string;
1515
/**

0 commit comments

Comments
 (0)