Skip to content

Commit 5dc383e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4f1bc68 of spec repo
1 parent 8cfed3a commit 5dc383e

File tree

46 files changed

+235
-222
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

+235
-222
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 123 additions & 114 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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
* The definition of the reference table request object.
77
*/
88
export class CreateTableRequest {
99
/**
10-
* The definition of `CreateTableRequestData` object.
10+
* The definition of the reference table request data object.
1111
*/
1212
"data"?: CreateTableRequestData;
1313
/**

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

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

66
/**
7-
* The definition of `CreateTableRequestData` object.
7+
* The definition of the reference table request data object.
88
*/
99
export class CreateTableRequestData {
1010
/**
11-
* The definition of `CreateTableRequestDataAttributes` object.
11+
* The definition of the reference table attributes object.
1212
*/
1313
"attributes"?: CreateTableRequestDataAttributes;
1414
/**
15-
* The ID of the reference table.
15+
* Unique identifier for the reference table.
1616
*/
1717
"id"?: string;
1818
/**

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

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

77
/**
8-
* The definition of `CreateTableRequestDataAttributes` object.
8+
* The definition of the reference table attributes object.
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+
* The definition of the file metadata object.
1717
*/
1818
"fileMetadata"?: CreateTableRequestDataAttributesFileMetadata;
1919
/**
20-
* The definition of `CreateTableRequestDataAttributesSchema` object.
20+
* The definition of the schema object.
2121
*/
2222
"schema": CreateTableRequestDataAttributesSchema;
2323
/**
@@ -29,7 +29,7 @@ export class CreateTableRequestDataAttributes {
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+
* The definition of the file metadata object.
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+
* The definition of the access details object.
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+
* The definition of the access details object.
99
*/
1010
export class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails {
1111
/**
12-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
12+
* The definition of the AWS access details object.
1313
*/
1414
"awsDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail;
1515
/**
16-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
16+
* The definition of the Azure access details object.
1717
*/
1818
"azureDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail;
1919
/**
20-
* The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
20+
* The definition of the GCP access details object.
2121
*/
2222
"gcpDetail"?: CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail;
2323
/**

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

Lines changed: 2 additions & 2 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+
* The definition of the AWS access details object.
55
*/
66
export class CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail {
77
/**
88
* The ID of the AWS account.
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)