Skip to content

Commit 67b2ea0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c01e3b7 of spec repo
1 parent afc61f7 commit 67b2ea0

File tree

47 files changed

+293
-305
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

+293
-305
lines changed

.generator/schemas/v2/openapi.yaml

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

examples/v2/reference-tables/UpdateReferenceTable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const params: v2.ReferenceTablesApiUpdateReferenceTableRequest = {
3838
syncEnabled: false,
3939
tags: ["test_tag"],
4040
},
41-
id: "00000000-0000-0000-0000-000000000000",
4241
type: "reference_table",
4342
},
4443
},

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

packages/datadog-api-client-v2/apis/ReferenceTablesApi.ts

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

780780
export interface ReferenceTablesApiDeleteTableRequest {
781781
/**
782-
* The ID of the reference table to delete
782+
* Unique identifier of the reference table to delete
783783
* @type string
784784
*/
785785
id: string;
786786
}
787787

788788
export interface ReferenceTablesApiGetRowsByIDRequest {
789789
/**
790-
* The ID of the reference table
790+
* Unique identifier of the reference table to get rows from
791791
* @type string
792792
*/
793793
id: string;
@@ -800,7 +800,7 @@ export interface ReferenceTablesApiGetRowsByIDRequest {
800800

801801
export interface ReferenceTablesApiGetTableRequest {
802802
/**
803-
* The ID of the reference table to retrieve
803+
* Unique identifier of the reference table to retrieve
804804
* @type string
805805
*/
806806
id: string;
@@ -818,7 +818,7 @@ export interface ReferenceTablesApiListTablesRequest {
818818
*/
819819
pageOffset?: number;
820820
/**
821-
* Sort field and direction. Use field name for ascending, prefix with "-" for descending.
821+
* Sort field and direction for the list of reference tables. Use field name for ascending, prefix with "-" for descending.
822822
* @type ReferenceTableSortType
823823
*/
824824
sort?: ReferenceTableSortType;
@@ -841,7 +841,7 @@ export interface ReferenceTablesApiListTablesRequest {
841841

842842
export interface ReferenceTablesApiUpdateReferenceTableRequest {
843843
/**
844-
* The ID of the reference table to update
844+
* Unique identifier of the reference table to update
845845
* @type string
846846
*/
847847
id: string;
@@ -869,7 +869,11 @@ export class ReferenceTablesApi {
869869
}
870870

871871
/**
872-
* 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).
872+
* Creates a reference table. You can provide data in two ways:
873+
* 1) Call POST /api/v2/reference-tables/upload to get an upload ID. Then PUT the CSV data
874+
* (not the file itself) in chunks to each URL in the request body. Finally, call this
875+
* POST endpoint with `upload_id` in `file_metadata`.
876+
* 2) Provide `access_details` in `file_metadata` pointing to a CSV file in cloud storage.
873877
* @param param The request object
874878
*/
875879
public createReferenceTable(

packages/datadog-api-client-v2/models/CreateTableRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { CreateTableRequestData } from "./CreateTableRequestData";
88
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
99

1010
/**
11-
* The definition of `CreateTableRequest` object.
11+
* Request body for creating a new reference table from a local file or cloud storage.
1212
*/
1313
export class CreateTableRequest {
1414
/**
15-
* The definition of `CreateTableRequestData` object.
15+
* The data object containing the table definition.
1616
*/
1717
"data"?: CreateTableRequestData;
1818

packages/datadog-api-client-v2/models/CreateTableRequestData.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ import { CreateTableRequestDataType } from "./CreateTableRequestDataType";
99
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010

1111
/**
12-
* The definition of `CreateTableRequestData` object.
12+
* The data object containing the table definition.
1313
*/
1414
export class CreateTableRequestData {
1515
/**
16-
* The definition of `CreateTableRequestDataAttributes` object.
16+
* Attributes that define the reference table's configuration and properties.
1717
*/
1818
"attributes"?: CreateTableRequestDataAttributes;
19-
/**
20-
* The ID of the reference table.
21-
*/
22-
"id"?: string;
2319
/**
2420
* Reference table resource type.
2521
*/
@@ -45,10 +41,6 @@ export class CreateTableRequestData {
4541
baseName: "attributes",
4642
type: "CreateTableRequestDataAttributes",
4743
},
48-
id: {
49-
baseName: "id",
50-
type: "string",
51-
},
5244
type: {
5345
baseName: "type",
5446
type: "CreateTableRequestDataType",

packages/datadog-api-client-v2/models/CreateTableRequestDataAttributes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ import { ReferenceTableCreateSourceType } from "./ReferenceTableCreateSourceType
1010
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111

1212
/**
13-
* The definition of `CreateTableRequestDataAttributes` object.
13+
* Attributes that define the reference table's configuration and properties.
1414
*/
1515
export class CreateTableRequestDataAttributes {
1616
/**
17-
* The description of the reference table.
17+
* Optional text describing the purpose or contents of this reference table.
1818
*/
1919
"description"?: string;
2020
/**
21-
* The definition of `CreateTableRequestDataAttributesFileMetadata` object.
21+
* Metadata specifying where and how to access the reference table's data file.
2222
*/
2323
"fileMetadata"?: CreateTableRequestDataAttributesFileMetadata;
2424
/**
25-
* The definition of `CreateTableRequestDataAttributesSchema` object.
25+
* Schema defining the structure and columns of the reference table.
2626
*/
2727
"schema": CreateTableRequestDataAttributesSchema;
2828
/**
2929
* The source type for creating reference table data. Only these source types can be created through this API.
3030
*/
3131
"source": ReferenceTableCreateSourceType;
3232
/**
33-
* The name of the reference table.
33+
* Name to identify this reference table.
3434
*/
3535
"tableName": string;
3636
/**
37-
* The tags of the reference table.
37+
* Tags for organizing and filtering reference tables.
3838
*/
3939
"tags"?: Array<string>;
4040

packages/datadog-api-client-v2/models/CreateTableRequestDataAttributesFileMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { CreateTableRequestDataAttributesFileMetadataLocalFile } from "./CreateT
99
import { UnparsedObject } from "../../datadog-api-client-common/util";
1010

1111
/**
12-
* The definition of `CreateTableRequestDataAttributesFileMetadata` object.
12+
* Metadata specifying where and how to access the reference table's data file.
1313
*/
1414

1515
export type CreateTableRequestDataAttributesFileMetadata =

packages/datadog-api-client-v2/models/CreateTableRequestDataAttributesFileMetadataCloudStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1212
*/
1313
export class CreateTableRequestDataAttributesFileMetadataCloudStorage {
1414
/**
15-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
15+
* Cloud storage access configuration for the reference table data file.
1616
*/
1717
"accessDetails": CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails;
1818
/**

packages/datadog-api-client-v2/models/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ import { CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail
1010
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111

1212
/**
13-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` object.
13+
* Cloud storage access configuration for the reference table data file.
1414
*/
1515
export class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails {
1616
/**
17-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
17+
* Amazon Web Services S3 storage access configuration.
1818
*/
1919
"awsDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail;
2020
/**
21-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
21+
* Azure Blob Storage access configuration.
2222
*/
2323
"azureDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail;
2424
/**
25-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
25+
* Google Cloud Platform storage access configuration.
2626
*/
2727
"gcpDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail;
2828

0 commit comments

Comments
 (0)