From 9117c979d4ce65e98f1d251b6d262aa0d28a3111 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 7 Nov 2025 21:09:26 +0000 Subject: [PATCH] Regenerate client from commit cd4cfde of spec repo --- .generator/schemas/v2/openapi.yaml | 333 ++++++++++-------- .../UpdateReferenceTable.java | 1 - .../api/client/v2/api/ReferenceTablesApi.java | 46 +-- .../client/v2/model/CreateTableRequest.java | 4 +- .../v2/model/CreateTableRequestData.java | 89 +---- .../CreateTableRequestDataAttributes.java | 12 +- ...ataAttributesFileMetadataCloudStorage.java | 3 +- ...ributesFileMetadataOneOfAccessDetails.java | 14 +- ...leMetadataOneOfAccessDetailsAwsDetail.java | 9 +- ...MetadataOneOfAccessDetailsAzureDetail.java | 13 +- ...leMetadataOneOfAccessDetailsGcpDetail.java | 11 +- ...reateTableRequestDataAttributesSchema.java | 4 +- ...equestDataAttributesSchemaFieldsItems.java | 2 +- .../client/v2/model/CreateUploadRequest.java | 4 +- .../v2/model/CreateUploadRequestData.java | 90 +---- .../CreateUploadRequestDataAttributes.java | 17 +- .../client/v2/model/CreateUploadResponse.java | 7 +- .../v2/model/CreateUploadResponseData.java | 64 +--- .../CreateUploadResponseDataAttributes.java | 4 +- .../client/v2/model/PatchTableRequest.java | 4 +- .../v2/model/PatchTableRequestData.java | 89 +---- .../PatchTableRequestDataAttributes.java | 11 +- ...ataAttributesFileMetadataCloudStorage.java | 3 +- ...ributesFileMetadataOneOfAccessDetails.java | 14 +- ...leMetadataOneOfAccessDetailsAwsDetail.java | 9 +- ...MetadataOneOfAccessDetailsAzureDetail.java | 13 +- ...leMetadataOneOfAccessDetailsGcpDetail.java | 11 +- ...PatchTableRequestDataAttributesSchema.java | 10 +- ...equestDataAttributesSchemaFieldsItems.java | 5 +- .../api/client/v2/model/TableResultV2.java | 4 +- .../client/v2/model/TableResultV2Array.java | 2 +- .../client/v2/model/TableResultV2Data.java | 64 +--- .../v2/model/TableResultV2DataAttributes.java | 16 +- ...ataAttributesFileMetadataCloudStorage.java | 17 +- ...V2DataAttributesFileMetadataLocalFile.java | 36 +- ...ributesFileMetadataOneOfAccessDetails.java | 13 +- ...leMetadataOneOfAccessDetailsAwsDetail.java | 9 +- ...MetadataOneOfAccessDetailsAzureDetail.java | 13 +- ...leMetadataOneOfAccessDetailsGcpDetail.java | 11 +- .../TableResultV2DataAttributesSchema.java | 4 +- ...sultV2DataAttributesSchemaFieldsItems.java | 2 +- .../v2/model/TableRowResourceArray.java | 2 +- .../client/v2/model/TableRowResourceData.java | 64 +--- .../model/TableRowResourceDataAttributes.java | 79 +---- .../client/v2/api/reference_tables.feature | 6 +- 45 files changed, 376 insertions(+), 862 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6ed4b42368e..eb8766d5cce 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -13066,7 +13066,8 @@ components: x-enum-varnames: - CREATE_RULESET CreateTableRequest: - description: The definition of `CreateTableRequest` object. + description: Request body for creating a new reference table from a local file + or cloud storage. example: data: attributes: @@ -13096,23 +13097,23 @@ components: $ref: '#/components/schemas/CreateTableRequestData' type: object CreateTableRequestData: - description: The definition of `CreateTableRequestData` object. + additionalProperties: false + description: The data object containing the table definition. properties: attributes: $ref: '#/components/schemas/CreateTableRequestDataAttributes' - id: - description: The ID of the reference table. - type: string type: $ref: '#/components/schemas/CreateTableRequestDataType' required: - type type: object CreateTableRequestDataAttributes: - description: The definition of `CreateTableRequestDataAttributes` object. + description: Attributes that define the reference table's configuration and + properties. properties: description: - description: The description of the reference table. + description: Optional text describing the purpose or contents of this reference + table. type: string file_metadata: $ref: '#/components/schemas/CreateTableRequestDataAttributesFileMetadata' @@ -13121,11 +13122,14 @@ components: source: $ref: '#/components/schemas/ReferenceTableCreateSourceType' table_name: - description: The name of the reference table. - example: '' + description: Name to identify this reference table. + example: table_1 type: string tags: - description: The tags of the reference table. + description: Tags for organizing and filtering reference tables. + example: + - tag_1 + - tag_2 items: type: string type: array @@ -13135,8 +13139,8 @@ components: - source type: object CreateTableRequestDataAttributesFileMetadata: - description: The definition of `CreateTableRequestDataAttributesFileMetadata` - object. + description: Metadata specifying where and how to access the reference table's + data file. oneOf: - $ref: '#/components/schemas/CreateTableRequestDataAttributesFileMetadataCloudStorage' - $ref: '#/components/schemas/CreateTableRequestDataAttributesFileMetadataLocalFile' @@ -13162,15 +13166,15 @@ components: properties: upload_id: description: The upload ID. - example: '' + example: 00000000-0000-0000-0000-000000000000 type: string required: - upload_id title: LocalFileMetadataV2 type: object CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails: - description: The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails` - object. + description: Cloud storage access configuration for the reference table data + file. properties: aws_detail: $ref: '#/components/schemas/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail' @@ -13180,15 +13184,14 @@ components: $ref: '#/components/schemas/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail' type: object CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail: - description: The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` - object. + description: Amazon Web Services S3 storage access configuration. properties: aws_account_id: - description: The ID of the AWS account. + description: AWS account ID where the S3 bucket is located. example: '123456789000' type: string aws_bucket_name: - description: The name of the Amazon S3 bucket. + description: S3 bucket containing the CSV file. example: example-data-bucket type: string file_path: @@ -13203,23 +13206,23 @@ components: x-oneOf-parent: - AwsDetail CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail: - description: The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` - object. + description: Azure Blob Storage access configuration. properties: azure_client_id: - description: The Azure client ID. + description: Azure service principal (application) client ID with permissions + to read from the container. example: aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb type: string azure_container_name: - description: The name of the Azure container. + description: Azure Blob Storage container containing the CSV file. example: reference-data type: string azure_storage_account_name: - description: The name of the Azure storage account. + description: Azure storage account where the container is located. example: examplestorageaccount type: string azure_tenant_id: - description: The ID of the Azure tenant. + description: Azure Active Directory tenant ID. example: cccccccc-4444-5555-6666-dddddddddddd type: string file_path: @@ -13237,8 +13240,7 @@ components: x-oneOf-parent: - AzureDetail CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail: - description: The definition of `CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` - object. + description: Google Cloud Platform storage access configuration. properties: file_path: description: The relative file path from the GCS bucket root to the CSV @@ -13246,15 +13248,15 @@ components: example: data/reference_tables/users.csv type: string gcp_bucket_name: - description: The name of the GCP bucket. + description: GCP bucket containing the CSV file. example: example-data-bucket type: string gcp_project_id: - description: The ID of the GCP project. + description: GCP project ID where the bucket is located. example: example-gcp-project-12345 type: string gcp_service_account_email: - description: The email of the GCP service account. + description: Service account email with read permissions for the GCS bucket. example: example-service@example-gcp-project-12345.iam.gserviceaccount.com type: string required: @@ -13266,10 +13268,10 @@ components: x-oneOf-parent: - GcpDetail CreateTableRequestDataAttributesSchema: - description: The definition of `CreateTableRequestDataAttributesSchema` object. + description: Schema defining the structure and columns of the reference table. properties: fields: - description: The `schema` `fields`. + description: The schema fields. items: $ref: '#/components/schemas/CreateTableRequestDataAttributesSchemaFieldsItems' type: array @@ -13278,7 +13280,7 @@ components: Only one primary key is supported, and it is used as an ID to retrieve rows. example: - - '' + - field_1 items: type: string type: array @@ -13287,12 +13289,11 @@ components: - primary_keys type: object CreateTableRequestDataAttributesSchemaFieldsItems: - description: The definition of `CreateTableRequestDataAttributesSchemaFieldsItems` - object. + description: A single field (column) in the reference table schema to be created. properties: name: description: The field name. - example: '' + example: field_1 type: string type: $ref: '#/components/schemas/ReferenceTableSchemaFieldType' @@ -13310,50 +13311,51 @@ components: x-enum-varnames: - REFERENCE_TABLE CreateUploadRequest: - description: The definition of `CreateUploadRequest` object. + description: Request to create an upload for a file to be ingested into a reference + table. properties: data: $ref: '#/components/schemas/CreateUploadRequestData' type: object CreateUploadRequestData: - description: The definition of `CreateUploadRequestData` object. + additionalProperties: false + description: Request data for creating an upload for a file to be ingested into + a reference table. properties: attributes: $ref: '#/components/schemas/CreateUploadRequestDataAttributes' - id: - description: The ID of the upload. - type: string type: $ref: '#/components/schemas/CreateUploadRequestDataType' required: - type type: object CreateUploadRequestDataAttributes: - description: The definition of `CreateUploadRequestDataAttributes` object. + 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 headers of the file to upload. + description: The CSV file headers that define the schema fields, provided + in the same order as the columns in the uploaded file. example: - - '' + - field_1 + - field_2 items: type: string type: array part_count: - description: The number of parts in the upload. + description: Number of parts to split the file into for multipart upload. example: 3 format: int32 maximum: 20 type: integer part_size: - description: The size of each part in the upload in bytes. For multipart - uploads (part_count > 1), all parts except the last one must be at least - 5,000,000 bytes. For single-part uploads (part_count = 1), any size is - allowed. + description: The size of each part in the upload in bytes. All parts except + the last one must be at least 5,000,000 bytes. example: 10000000 format: int64 type: integer table_name: - description: The name of the reference table. + description: Name of the table to associate with this upload. example: '' type: string required: @@ -13372,18 +13374,21 @@ components: x-enum-varnames: - UPLOAD CreateUploadResponse: - description: The definition of `CreateUploadResponse` object. + description: Information about the upload created containing the upload ID and + pre-signed URLs to PUT chunks of the CSV file to. properties: data: $ref: '#/components/schemas/CreateUploadResponseData' type: object CreateUploadResponseData: - description: The definition of `CreateUploadResponseData` object. + additionalProperties: false + description: Upload ID and attributes of the created upload. properties: attributes: $ref: '#/components/schemas/CreateUploadResponseDataAttributes' id: - description: The ID of the upload. + description: Unique identifier for this upload. Use this ID when creating + the reference table. type: string type: $ref: '#/components/schemas/CreateUploadResponseDataType' @@ -13391,10 +13396,11 @@ components: - type type: object CreateUploadResponseDataAttributes: - description: The definition of `CreateUploadResponseDataAttributes` object. + description: Pre-signed URLs for uploading parts of the file. properties: part_urls: - description: The URLs of the parts in the upload. + description: The pre-signed URLs for uploading parts. These URLs expire + after 5 minutes. items: type: string type: array @@ -38129,7 +38135,7 @@ components: $ref: '#/components/schemas/Version' type: object PatchTableRequest: - description: The definition of `PatchTableRequest` object. + description: Request body for updating an existing reference table. example: data: attributes: @@ -38152,30 +38158,30 @@ components: sync_enabled: false tags: - test_tag - id: 00000000-0000-0000-0000-000000000000 type: reference_table properties: data: $ref: '#/components/schemas/PatchTableRequestData' type: object PatchTableRequestData: - description: The definition of `PatchTableRequestData` object. + additionalProperties: false + description: The data object containing the partial table definition updates. properties: attributes: $ref: '#/components/schemas/PatchTableRequestDataAttributes' - id: - description: The ID of the reference table. - type: string type: $ref: '#/components/schemas/PatchTableRequestDataType' required: - type type: object PatchTableRequestDataAttributes: - description: The definition of `PatchTableRequestDataAttributes` object. + description: Attributes that define the updates to the reference table's configuration + and properties. properties: description: - description: The description of the reference table. + description: Optional text describing the purpose or contents of this reference + table. + example: example description type: string file_metadata: $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata' @@ -38183,16 +38189,20 @@ components: $ref: '#/components/schemas/PatchTableRequestDataAttributesSchema' sync_enabled: description: Whether this table is synced automatically. + example: false type: boolean tags: - description: The tags of the reference table. + description: Tags for organizing and filtering reference tables. + example: + - tag_1 + - tag_2 items: type: string type: array type: object PatchTableRequestDataAttributesFileMetadata: - description: The definition of `PatchTableRequestDataAttributesFileMetadata` - object. + description: Metadata specifying where and how to access the reference table's + data file. oneOf: - $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadataCloudStorage' - $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadataLocalFile' @@ -38215,15 +38225,15 @@ components: properties: upload_id: description: The upload ID. - example: '' + example: 00000000-0000-0000-0000-000000000000 type: string required: - upload_id title: LocalFileMetadataV2 type: object PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails: - description: The definition of `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails` - object. + description: Cloud storage access configuration for the reference table data + file. properties: aws_detail: $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail' @@ -38233,15 +38243,14 @@ components: $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail' type: object PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail: - description: The definition of `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail` - object. + description: Amazon Web Services S3 storage access configuration. properties: aws_account_id: - description: The ID of the AWS account. + description: AWS account ID where the S3 bucket is located. example: '123456789000' type: string aws_bucket_name: - description: The name of the AWS bucket. + description: S3 bucket containing the CSV file. example: example-data-bucket type: string file_path: @@ -38252,23 +38261,23 @@ components: x-oneOf-parent: - AwsDetail PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail: - description: The definition of `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` - object. + description: Azure Blob Storage access configuration. properties: azure_client_id: - description: The Azure client ID. + description: Azure service principal (application) client ID with permissions + to read from the container. example: aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb type: string azure_container_name: - description: The name of the Azure container. + description: Azure Blob Storage container containing the CSV file. example: reference-data type: string azure_storage_account_name: - description: The name of the Azure storage account. + description: Azure storage account where the container is located. example: examplestorageaccount type: string azure_tenant_id: - description: The ID of the Azure tenant. + description: Azure Active Directory tenant ID. example: cccccccc-4444-5555-6666-dddddddddddd type: string file_path: @@ -38280,8 +38289,7 @@ components: x-oneOf-parent: - AzureDetail PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail: - description: The definition of `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` - object. + description: Google Cloud Platform storage access configuration. properties: file_path: description: The relative file path from the GCS bucket root to the CSV @@ -38289,34 +38297,35 @@ components: example: data/reference_tables/users.csv type: string gcp_bucket_name: - description: The name of the GCP bucket. + description: GCP bucket containing the CSV file. example: example-data-bucket type: string gcp_project_id: - description: The ID of the GCP project. + description: GCP project ID where the bucket is located. example: example-gcp-project-12345 type: string gcp_service_account_email: - description: The email of the GCP service account. + description: Service account email with read permissions for the GCS bucket. example: example-service@example-gcp-project-12345.iam.gserviceaccount.com type: string type: object x-oneOf-parent: - GcpDetail PatchTableRequestDataAttributesSchema: - description: The definition of `PatchTableRequestDataAttributesSchema` object. + 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. items: $ref: '#/components/schemas/PatchTableRequestDataAttributesSchemaFieldsItems' 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. + rows. Primary keys cannot be changed after table creation. example: - - '' + - field_1 items: type: string type: array @@ -38325,12 +38334,12 @@ components: - primary_keys type: object PatchTableRequestDataAttributesSchemaFieldsItems: - description: The definition of `PatchTableRequestDataAttributesSchemaFieldsItems` - object. + description: A single field (column) in the reference table schema to be updated. + Schema fields cannot be deleted or renamed. properties: name: description: The field name. - example: '' + example: field_1 type: string type: $ref: '#/components/schemas/ReferenceTableSchemaFieldType' @@ -50806,16 +50815,21 @@ components: type: number type: object TableResultV2: - description: The definition of `TableResultV2` object. + description: A reference table resource containing its full configuration and + state. example: data: attributes: created_by: 00000000-0000-0000-0000-000000000000 description: example description file_metadata: - access_details: {} - upload_id: 00000000-0000-0000-0000-000000000000 - last_updated_by: '' + access_details: + aws_detail: + aws_account_id: '123456789000' + aws_bucket_name: my-bucket + file_path: path/to/file.csv + sync_enabled: true + last_updated_by: 00000000-0000-0000-0000-000000000000 row_count: 5 schema: fields: @@ -50825,7 +50839,7 @@ components: type: STRING primary_keys: - id - source: LOCAL_FILE + source: S3 status: DONE table_name: test_reference_table tags: @@ -50839,7 +50853,7 @@ components: $ref: '#/components/schemas/TableResultV2Data' type: object TableResultV2Array: - description: The definition of `TableResultV2Array` object. + description: List of reference tables. example: data: - attributes: @@ -50911,12 +50925,14 @@ components: - data type: object TableResultV2Data: - description: The definition of `TableResultV2Data` object. + additionalProperties: false + description: The data object containing the reference table configuration and + state. properties: attributes: $ref: '#/components/schemas/TableResultV2DataAttributes' id: - description: The ID of the reference table. + description: Unique identifier for the reference table. type: string type: $ref: '#/components/schemas/TableResultV2DataType' @@ -50924,22 +50940,28 @@ components: - type type: object TableResultV2DataAttributes: - description: The definition of `TableResultV2DataAttributes` object. + description: Attributes that define the reference table's configuration and + properties. properties: created_by: description: UUID of the user who created the reference table. + example: 00000000-0000-0000-0000-000000000000 type: string description: - description: The description of the reference table. + description: Optional text describing the purpose or contents of this reference + table. + example: example description type: string file_metadata: $ref: '#/components/schemas/TableResultV2DataAttributesFileMetadata' last_updated_by: description: UUID of the user who last updated the reference table. + example: 00000000-0000-0000-0000-000000000000 type: string row_count: description: The number of successfully processed rows in the reference table. + example: 5 format: int64 type: integer schema: @@ -50947,23 +50969,30 @@ components: source: $ref: '#/components/schemas/ReferenceTableSourceType' status: - description: The status of the reference table. + description: The processing status of the table. + example: DONE type: string table_name: - description: The name of the reference table. + description: Unique name to identify this reference table. Used in enrichment + processors and API calls. + example: table_1 type: string tags: - description: The tags of the reference table. + description: Tags for organizing and filtering reference tables. + example: + - tag_1 + - tag_2 items: type: string type: array updated_at: - description: The timestamp of the last update to the reference table in - ISO 8601 format. + description: When the reference table was last updated, in ISO 8601 format. + example: '2000-01-01T01:00:00+00:00' type: string type: object TableResultV2DataAttributesFileMetadata: - description: The definition of `TableResultV2DataAttributesFileMetadata` object. + description: Metadata specifying where and how to access the reference table's + data file. oneOf: - $ref: '#/components/schemas/TableResultV2DataAttributesFileMetadataCloudStorage' - $ref: '#/components/schemas/TableResultV2DataAttributesFileMetadataLocalFile' @@ -50984,6 +51013,8 @@ components: sync_enabled: description: Whether this table is synced automatically. type: boolean + required: + - access_details title: CloudFileMetadataV2 type: object TableResultV2DataAttributesFileMetadataCloudStorageErrorType: @@ -51012,7 +51043,9 @@ components: - OPERATION_ERROR - SYSTEM_ERROR TableResultV2DataAttributesFileMetadataLocalFile: - description: File metadata for reference tables created by upload. + description: File metadata for reference tables created by upload. Note that + upload_id is only returned in the immediate create/replace response and is + not available in subsequent GET requests. properties: error_message: description: The error message returned from the creation/update. @@ -51021,14 +51054,11 @@ components: description: The number of rows that failed to create/update. format: int64 type: integer - upload_id: - description: The upload ID that was used to create/update the table. - type: string title: LocalFileMetadataV2 type: object TableResultV2DataAttributesFileMetadataOneOfAccessDetails: - description: The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetails` - object. + description: Cloud storage access configuration for the reference table data + file. properties: aws_detail: $ref: '#/components/schemas/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail' @@ -51038,15 +51068,14 @@ components: $ref: '#/components/schemas/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail' type: object TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail: - description: The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail` - object. + description: Amazon Web Services S3 storage access configuration. properties: aws_account_id: - description: The ID of the AWS account. + description: AWS account ID where the S3 bucket is located. example: '123456789000' type: string aws_bucket_name: - description: The name of the AWS bucket. + description: S3 bucket containing the CSV file. example: example-data-bucket type: string file_path: @@ -51057,23 +51086,23 @@ components: x-oneOf-parent: - AwsDetail TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail: - description: The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail` - object. + description: Azure Blob Storage access configuration. properties: azure_client_id: - description: The Azure client ID. + description: Azure service principal (application) client ID with permissions + to read from the container. example: aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb type: string azure_container_name: - description: The name of the Azure container. + description: Azure Blob Storage container containing the CSV file. example: reference-data type: string azure_storage_account_name: - description: The name of the Azure storage account. + description: Azure storage account where the container is located. example: examplestorageaccount type: string azure_tenant_id: - description: The ID of the Azure tenant. + description: Azure Active Directory tenant ID. example: cccccccc-4444-5555-6666-dddddddddddd type: string file_path: @@ -51085,8 +51114,7 @@ components: x-oneOf-parent: - AzureDetail TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail: - description: The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail` - object. + description: Google Cloud Platform storage access configuration. properties: file_path: description: The relative file path from the GCS bucket root to the CSV @@ -51094,25 +51122,25 @@ components: example: data/reference_tables/users.csv type: string gcp_bucket_name: - description: The name of the GCP bucket. + description: GCP bucket containing the CSV file. example: example-data-bucket type: string gcp_project_id: - description: The ID of the GCP project. + description: GCP project ID where the bucket is located. example: example-gcp-project-12345 type: string gcp_service_account_email: - description: The email of the GCP service account. + description: Service account email with read permissions for the GCS bucket. example: example-service@example-gcp-project-12345.iam.gserviceaccount.com type: string type: object x-oneOf-parent: - GcpDetail TableResultV2DataAttributesSchema: - description: The definition of `TableResultV2DataAttributesSchema` object. + description: Schema defining the structure and columns of the reference table. properties: fields: - description: The `schema` `fields`. + description: The schema fields. items: $ref: '#/components/schemas/TableResultV2DataAttributesSchemaFieldsItems' type: array @@ -51121,7 +51149,7 @@ components: Only one primary key is supported, and it is used as an ID to retrieve rows. example: - - '' + - field_1 items: type: string type: array @@ -51130,12 +51158,11 @@ components: - primary_keys type: object TableResultV2DataAttributesSchemaFieldsItems: - description: The definition of `TableResultV2DataAttributesSchemaFieldsItems` - object. + description: A single field (column) in the reference table schema to be returned. properties: name: description: The field name. - example: '' + example: field_1 type: string type: $ref: '#/components/schemas/ReferenceTableSchemaFieldType' @@ -51153,7 +51180,7 @@ components: x-enum-varnames: - REFERENCE_TABLE TableRowResourceArray: - description: The definition of `TableRowResourceArray` object. + description: List of rows from a reference table query. properties: data: description: The rows. @@ -51164,12 +51191,13 @@ components: - data type: object TableRowResourceData: - description: The definition of `TableRowResourceData` object. + additionalProperties: false + description: The data object containing the row column names and values. properties: attributes: $ref: '#/components/schemas/TableRowResourceDataAttributes' id: - description: The ID of the row. + description: Row identifier, corresponding to the primary key value. type: string type: $ref: '#/components/schemas/TableRowResourceDataType' @@ -51177,11 +51205,12 @@ components: - type type: object TableRowResourceDataAttributes: - description: The definition of `TableRowResourceDataAttributes` object. + additionalProperties: false + description: Column values for this row in the reference table. properties: values: - additionalProperties: {} - description: The values of the row. + description: Key-value pairs representing the row data, where keys are field + names from the schema. type: object type: object TableRowResourceDataType: @@ -73141,8 +73170,8 @@ paths: format: int64 minimum: 0 type: integer - - description: Sort field and direction. Use field name for ascending, prefix - with "-" for descending. + - description: Sort field and direction for the list of reference tables. Use + field name for ascending, prefix with "-" for descending. example: -updated_at in: query name: sort @@ -73189,12 +73218,12 @@ paths: tags: - Reference Tables post: - description: '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).' + description: "Creates a reference table. You can provide data in two ways:\n1. + Call POST /api/v2/reference-tables/upload to get an upload ID. Then, PUT the + CSV data\n (not the file itself) in chunks to each URL in the request body. + Finally, call this\n POST endpoint with `upload_id` in `file_metadata`.\n2. + Provide `access_details` in `file_metadata` pointing to a CSV file in cloud + storage." operationId: CreateReferenceTable requestBody: content: @@ -73227,7 +73256,7 @@ paths: description: Delete a reference table by ID operationId: DeleteTable parameters: - - description: The ID of the reference table to delete + - description: Unique identifier of the reference table to delete in: path name: id required: true @@ -73253,7 +73282,7 @@ paths: description: Get a reference table by ID operationId: GetTable parameters: - - description: The ID of the reference table to retrieve + - description: Unique identifier of the reference table to retrieve in: path name: id required: true @@ -73290,7 +73319,7 @@ paths: pointing to a CSV file in the same type of cloud storage.' operationId: UpdateReferenceTable parameters: - - description: The ID of the reference table to update + - description: Unique identifier of the reference table to update in: path name: id required: true @@ -73323,7 +73352,7 @@ paths: description: Get reference table rows by their primary key values. operationId: GetRowsByID parameters: - - description: The ID of the reference table + - description: Unique identifier of the reference table to get rows from example: table-123 in: path name: id diff --git a/examples/v2/reference-tables/UpdateReferenceTable.java b/examples/v2/reference-tables/UpdateReferenceTable.java index ee79aef32de..a7875f13863 100644 --- a/examples/v2/reference-tables/UpdateReferenceTable.java +++ b/examples/v2/reference-tables/UpdateReferenceTable.java @@ -53,7 +53,6 @@ public static void main(String[] args) { .primaryKeys(Collections.singletonList("id"))) .syncEnabled(false) .tags(Collections.singletonList("test_tag"))) - .id("00000000-0000-0000-0000-000000000000") .type(PatchTableRequestDataType.REFERENCE_TABLE)); try { diff --git a/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java b/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java index 80cf5068eed..4361edb4ce5 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java @@ -81,11 +81,11 @@ public CompletableFuture createReferenceTableAsync(CreateTableReq } /** - * 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). + * Creates a reference table. You can provide data in two ways: 1. Call POST + * /api/v2/reference-tables/upload to get an upload ID. Then, PUT the CSV data (not the file + * itself) in chunks to each URL in the request body. Finally, call this POST endpoint with + * upload_id in file_metadata. 2. Provide access_details in + * file_metadata pointing to a CSV file in cloud storage. * * @param body (required) * @return ApiResponse<TableResultV2> @@ -325,7 +325,7 @@ public ApiResponse createReferenceTableUploadWithHttpInfo( * *

See {@link #deleteTableWithHttpInfo}. * - * @param id The ID of the reference table to delete (required) + * @param id Unique identifier of the reference table to delete (required) * @throws ApiException if fails to make API call */ public void deleteTable(String id) throws ApiException { @@ -337,7 +337,7 @@ public void deleteTable(String id) throws ApiException { * *

See {@link #deleteTableWithHttpInfoAsync}. * - * @param id The ID of the reference table to delete (required) + * @param id Unique identifier of the reference table to delete (required) * @return CompletableFuture */ public CompletableFuture deleteTableAsync(String id) { @@ -351,7 +351,7 @@ public CompletableFuture deleteTableAsync(String id) { /** * Delete a reference table by ID * - * @param id The ID of the reference table to delete (required) + * @param id Unique identifier of the reference table to delete (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -403,7 +403,7 @@ public ApiResponse deleteTableWithHttpInfo(String id) throws ApiException * *

See {@link #deleteTableWithHttpInfo}. * - * @param id The ID of the reference table to delete (required) + * @param id Unique identifier of the reference table to delete (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteTableWithHttpInfoAsync(String id) { @@ -455,7 +455,7 @@ public CompletableFuture> deleteTableWithHttpInfoAsync(String * *

See {@link #getRowsByIDWithHttpInfo}. * - * @param id The ID of the reference table (required) + * @param id Unique identifier of the reference table to get rows from (required) * @param rowId List of row IDs (primary key values) to retrieve from the reference table. * (required) * @return TableRowResourceArray @@ -470,7 +470,7 @@ public TableRowResourceArray getRowsByID(String id, List rowId) throws A * *

See {@link #getRowsByIDWithHttpInfoAsync}. * - * @param id The ID of the reference table (required) + * @param id Unique identifier of the reference table to get rows from (required) * @param rowId List of row IDs (primary key values) to retrieve from the reference table. * (required) * @return CompletableFuture<TableRowResourceArray> @@ -486,7 +486,7 @@ public CompletableFuture getRowsByIDAsync(String id, List /** * Get reference table rows by their primary key values. * - * @param id The ID of the reference table (required) + * @param id Unique identifier of the reference table to get rows from (required) * @param rowId List of row IDs (primary key values) to retrieve from the reference table. * (required) * @return ApiResponse<TableRowResourceArray> @@ -550,7 +550,7 @@ public ApiResponse getRowsByIDWithHttpInfo(String id, Lis * *

See {@link #getRowsByIDWithHttpInfo}. * - * @param id The ID of the reference table (required) + * @param id Unique identifier of the reference table to get rows from (required) * @param rowId List of row IDs (primary key values) to retrieve from the reference table. * (required) * @return CompletableFuture<ApiResponse<TableRowResourceArray>> @@ -616,7 +616,7 @@ public CompletableFuture> getRowsByIDWithHttp * *

See {@link #getTableWithHttpInfo}. * - * @param id The ID of the reference table to retrieve (required) + * @param id Unique identifier of the reference table to retrieve (required) * @return TableResultV2 * @throws ApiException if fails to make API call */ @@ -629,7 +629,7 @@ public TableResultV2 getTable(String id) throws ApiException { * *

See {@link #getTableWithHttpInfoAsync}. * - * @param id The ID of the reference table to retrieve (required) + * @param id Unique identifier of the reference table to retrieve (required) * @return CompletableFuture<TableResultV2> */ public CompletableFuture getTableAsync(String id) { @@ -643,7 +643,7 @@ public CompletableFuture getTableAsync(String id) { /** * Get a reference table by ID * - * @param id The ID of the reference table to retrieve (required) + * @param id Unique identifier of the reference table to retrieve (required) * @return ApiResponse<TableResultV2> * @throws ApiException if fails to make API call * @http.response.details @@ -695,7 +695,7 @@ public ApiResponse getTableWithHttpInfo(String id) throws ApiExce * *

See {@link #getTableWithHttpInfo}. * - * @param id The ID of the reference table to retrieve (required) + * @param id Unique identifier of the reference table to retrieve (required) * @return CompletableFuture<ApiResponse<TableResultV2>> */ public CompletableFuture> getTableWithHttpInfoAsync(String id) { @@ -776,8 +776,8 @@ public ListTablesOptionalParameters pageOffset(Long pageOffset) { /** * Set sort. * - * @param sort Sort field and direction. Use field name for ascending, prefix with "-" for - * descending. (optional, default to "-updated_at") + * @param sort Sort field and direction for the list of reference tables. Use field name for + * ascending, prefix with "-" for descending. (optional, default to "-updated_at") * @return ListTablesOptionalParameters */ public ListTablesOptionalParameters sort(ReferenceTableSortType sort) { @@ -1000,7 +1000,7 @@ public CompletableFuture> listTablesWithHttpInfo * *

See {@link #updateReferenceTableWithHttpInfo}. * - * @param id The ID of the reference table to update (required) + * @param id Unique identifier of the reference table to update (required) * @param body (required) * @throws ApiException if fails to make API call */ @@ -1013,7 +1013,7 @@ public void updateReferenceTable(String id, PatchTableRequest body) throws ApiEx * *

See {@link #updateReferenceTableWithHttpInfoAsync}. * - * @param id The ID of the reference table to update (required) + * @param id Unique identifier of the reference table to update (required) * @param body (required) * @return CompletableFuture */ @@ -1034,7 +1034,7 @@ public CompletableFuture updateReferenceTableAsync(String id, PatchTableRe * 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. * - * @param id The ID of the reference table to update (required) + * @param id Unique identifier of the reference table to update (required) * @param body (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call @@ -1095,7 +1095,7 @@ public ApiResponse updateReferenceTableWithHttpInfo(String id, PatchTableR * *

See {@link #updateReferenceTableWithHttpInfo}. * - * @param id The ID of the reference table to update (required) + * @param id Unique identifier of the reference table to update (required) * @param body (required) * @return CompletableFuture<ApiResponse<Void>> */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequest.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequest.java index 7bab2eaa4ed..9952205ca66 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequest.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateTableRequest object. */ +/** Request body for creating a new reference table from a local file or cloud storage. */ @JsonPropertyOrder({CreateTableRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +32,7 @@ public CreateTableRequest data(CreateTableRequestData data) { } /** - * The definition of CreateTableRequestData object. + * The data object containing the table definition. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestData.java index f92254d450a..6dac66e9901 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestData.java @@ -6,21 +6,16 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of CreateTableRequestData object. */ +/** The data object containing the table definition. */ @JsonPropertyOrder({ CreateTableRequestData.JSON_PROPERTY_ATTRIBUTES, - CreateTableRequestData.JSON_PROPERTY_ID, CreateTableRequestData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( @@ -30,9 +25,6 @@ public class CreateTableRequestData { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateTableRequestDataAttributes attributes; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - public static final String JSON_PROPERTY_TYPE = "type"; private CreateTableRequestDataType type = CreateTableRequestDataType.REFERENCE_TABLE; @@ -52,7 +44,7 @@ public CreateTableRequestData attributes(CreateTableRequestDataAttributes attrib } /** - * The definition of CreateTableRequestDataAttributes object. + * Attributes that define the reference table's configuration and properties. * * @return attributes */ @@ -67,27 +59,6 @@ public void setAttributes(CreateTableRequestDataAttributes attributes) { this.attributes = attributes; } - public CreateTableRequestData id(String id) { - this.id = id; - return this; - } - - /** - * The ID of the reference table. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - public CreateTableRequestData type(CreateTableRequestDataType type) { this.type = type; this.unparsed |= !type.isValid(); @@ -112,52 +83,6 @@ public void setType(CreateTableRequestDataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CreateTableRequestData - */ - @JsonAnySetter - public CreateTableRequestData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this CreateTableRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -169,14 +94,12 @@ public boolean equals(Object o) { } CreateTableRequestData createTableRequestData = (CreateTableRequestData) o; return Objects.equals(this.attributes, createTableRequestData.attributes) - && Objects.equals(this.id, createTableRequestData.id) - && Objects.equals(this.type, createTableRequestData.type) - && Objects.equals(this.additionalProperties, createTableRequestData.additionalProperties); + && Objects.equals(this.type, createTableRequestData.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, type); } @Override @@ -184,11 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributes.java index ad5fdb108e4..f811ec4b062 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributes.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateTableRequestDataAttributes object. */ +/** Attributes that define the reference table's configuration and properties. */ @JsonPropertyOrder({ CreateTableRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, CreateTableRequestDataAttributes.JSON_PROPERTY_FILE_METADATA, @@ -72,7 +72,7 @@ public CreateTableRequestDataAttributes description(String description) { } /** - * The description of the reference table. + * Optional text describing the purpose or contents of this reference table. * * @return description */ @@ -95,7 +95,7 @@ public CreateTableRequestDataAttributes fileMetadata( } /** - * The definition of CreateTableRequestDataAttributesFileMetadata object. + * Metadata specifying where and how to access the reference table's data file. * * @return fileMetadata */ @@ -117,7 +117,7 @@ public CreateTableRequestDataAttributes schema(CreateTableRequestDataAttributesS } /** - * The definition of CreateTableRequestDataAttributesSchema object. + * Schema defining the structure and columns of the reference table. * * @return schema */ @@ -162,7 +162,7 @@ public CreateTableRequestDataAttributes tableName(String tableName) { } /** - * The name of the reference table. + * Name to identify this reference table. * * @return tableName */ @@ -190,7 +190,7 @@ public CreateTableRequestDataAttributes addTagsItem(String tagsItem) { } /** - * The tags of the reference table. + * Tags for organizing and filtering reference tables. * * @return tags */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataCloudStorage.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataCloudStorage.java index ac0113371e8..340c9694219 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataCloudStorage.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataCloudStorage.java @@ -51,8 +51,7 @@ public CreateTableRequestDataAttributesFileMetadataCloudStorage accessDetails( } /** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails - * object. + * Cloud storage access configuration for the reference table data file. * * @return accessDetails */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.java index b6b82eb4f7d..5908580463e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails - * object. - */ +/** Cloud storage access configuration for the reference table data file. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AWS_DETAIL, CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AZURE_DETAIL, @@ -46,8 +43,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails awsDetail( } /** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. + * Amazon Web Services S3 storage access configuration. * * @return awsDetail */ @@ -71,8 +67,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails azureDetai } /** - * The definition of - * CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail object. + * Azure Blob Storage access configuration. * * @return azureDetail */ @@ -97,8 +92,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails gcpDetail( } /** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. + * Google Cloud Platform storage access configuration. * * @return gcpDetail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java index e6e201131c2..31ce133039a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java @@ -17,10 +17,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. - */ +/** Amazon Web Services S3 storage access configuration. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail .JSON_PROPERTY_AWS_ACCOUNT_ID, @@ -60,7 +57,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail a } /** - * The ID of the AWS account. + * AWS account ID where the S3 bucket is located. * * @return awsAccountId */ @@ -81,7 +78,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail a } /** - * The name of the Amazon S3 bucket. + * S3 bucket containing the CSV file. * * @return awsBucketName */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java index 75b7d9fad5a..b8dd3455986 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java @@ -17,10 +17,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail - * object. - */ +/** Azure Blob Storage access configuration. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail .JSON_PROPERTY_AZURE_CLIENT_ID, @@ -77,7 +74,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail } /** - * The Azure client ID. + * Azure service principal (application) client ID with permissions to read from the container. * * @return azureClientId */ @@ -98,7 +95,7 @@ public void setAzureClientId(String azureClientId) { } /** - * The name of the Azure container. + * Azure Blob Storage container containing the CSV file. * * @return azureContainerName */ @@ -119,7 +116,7 @@ public void setAzureContainerName(String azureContainerName) { } /** - * The name of the Azure storage account. + * Azure storage account where the container is located. * * @return azureStorageAccountName */ @@ -140,7 +137,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail } /** - * The ID of the Azure tenant. + * Azure Active Directory tenant ID. * * @return azureTenantId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java index a6086260def..59555c6af77 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java @@ -17,10 +17,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. - */ +/** Google Cloud Platform storage access configuration. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.JSON_PROPERTY_FILE_PATH, CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail @@ -89,7 +86,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail g } /** - * The name of the GCP bucket. + * GCP bucket containing the CSV file. * * @return gcpBucketName */ @@ -110,7 +107,7 @@ public CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail g } /** - * The ID of the GCP project. + * GCP project ID where the bucket is located. * * @return gcpProjectId */ @@ -131,7 +128,7 @@ public void setGcpProjectId(String gcpProjectId) { } /** - * The email of the GCP service account. + * Service account email with read permissions for the GCS bucket. * * @return gcpServiceAccountEmail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchema.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchema.java index 27cca0e777b..fac75b08c1b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchema.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchema.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateTableRequestDataAttributesSchema object. */ +/** Schema defining the structure and columns of the reference table. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesSchema.JSON_PROPERTY_FIELDS, CreateTableRequestDataAttributesSchema.JSON_PROPERTY_PRIMARY_KEYS @@ -62,7 +62,7 @@ public CreateTableRequestDataAttributesSchema addFieldsItem( } /** - * The schema fields. + * The schema fields. * * @return fields */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchemaFieldsItems.java b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchemaFieldsItems.java index f732e859bd3..ecae2b6c970 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchemaFieldsItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateTableRequestDataAttributesSchemaFieldsItems.java @@ -17,7 +17,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateTableRequestDataAttributesSchemaFieldsItems object. */ +/** A single field (column) in the reference table schema to be created. */ @JsonPropertyOrder({ CreateTableRequestDataAttributesSchemaFieldsItems.JSON_PROPERTY_NAME, CreateTableRequestDataAttributesSchemaFieldsItems.JSON_PROPERTY_TYPE diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequest.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequest.java index 1a3302327d0..856999f88fa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequest.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadRequest object. */ +/** Request to create an upload for a file to be ingested into a reference table. */ @JsonPropertyOrder({CreateUploadRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +32,7 @@ public CreateUploadRequest data(CreateUploadRequestData data) { } /** - * The definition of CreateUploadRequestData object. + * Request data for creating an upload for a file to be ingested into a reference table. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestData.java index e1db3592469..ea170c72622 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestData.java @@ -6,21 +6,16 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadRequestData object. */ +/** Request data for creating an upload for a file to be ingested into a reference table. */ @JsonPropertyOrder({ CreateUploadRequestData.JSON_PROPERTY_ATTRIBUTES, - CreateUploadRequestData.JSON_PROPERTY_ID, CreateUploadRequestData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( @@ -30,9 +25,6 @@ public class CreateUploadRequestData { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateUploadRequestDataAttributes attributes; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - public static final String JSON_PROPERTY_TYPE = "type"; private CreateUploadRequestDataType type = CreateUploadRequestDataType.UPLOAD; @@ -52,7 +44,8 @@ public CreateUploadRequestData attributes(CreateUploadRequestDataAttributes attr } /** - * The definition of CreateUploadRequestDataAttributes object. + * Upload configuration specifying how data is uploaded by the user, and properties of the table + * to associate the upload with. * * @return attributes */ @@ -67,27 +60,6 @@ public void setAttributes(CreateUploadRequestDataAttributes attributes) { this.attributes = attributes; } - public CreateUploadRequestData id(String id) { - this.id = id; - return this; - } - - /** - * The ID of the upload. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - public CreateUploadRequestData type(CreateUploadRequestDataType type) { this.type = type; this.unparsed |= !type.isValid(); @@ -112,52 +84,6 @@ public void setType(CreateUploadRequestDataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CreateUploadRequestData - */ - @JsonAnySetter - public CreateUploadRequestData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this CreateUploadRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -169,14 +95,12 @@ public boolean equals(Object o) { } CreateUploadRequestData createUploadRequestData = (CreateUploadRequestData) o; return Objects.equals(this.attributes, createUploadRequestData.attributes) - && Objects.equals(this.id, createUploadRequestData.id) - && Objects.equals(this.type, createUploadRequestData.type) - && Objects.equals(this.additionalProperties, createUploadRequestData.additionalProperties); + && Objects.equals(this.type, createUploadRequestData.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, type); } @Override @@ -184,11 +108,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateUploadRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestDataAttributes.java index e9a44804424..fa863e864ba 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadRequestDataAttributes.java @@ -19,7 +19,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadRequestDataAttributes object. */ +/** + * Upload configuration specifying how data is uploaded by the user, and properties of the table to + * associate the upload with. + */ @JsonPropertyOrder({ CreateUploadRequestDataAttributes.JSON_PROPERTY_HEADERS, CreateUploadRequestDataAttributes.JSON_PROPERTY_PART_COUNT, @@ -67,7 +70,8 @@ public CreateUploadRequestDataAttributes addHeadersItem(String headersItem) { } /** - * The headers of the file to upload. + * The CSV file headers that define the schema fields, provided in the same order as the columns + * in the uploaded file. * * @return headers */ @@ -87,7 +91,7 @@ public CreateUploadRequestDataAttributes partCount(Integer partCount) { } /** - * The number of parts in the upload. maximum: 20 + * Number of parts to split the file into for multipart upload. maximum: 20 * * @return partCount */ @@ -107,9 +111,8 @@ public CreateUploadRequestDataAttributes partSize(Long partSize) { } /** - * The size of each part in the upload in bytes. For multipart uploads (part_count > 1), all - * parts except the last one must be at least 5,000,000 bytes. For single-part uploads (part_count - * = 1), any size is allowed. + * The size of each part in the upload in bytes. All parts except the last one must be at least + * 5,000,000 bytes. * * @return partSize */ @@ -129,7 +132,7 @@ public CreateUploadRequestDataAttributes tableName(String tableName) { } /** - * The name of the reference table. + * Name of the table to associate with this upload. * * @return tableName */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponse.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponse.java index 9aed5c52ec0..c80f70b1d78 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponse.java @@ -16,7 +16,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadResponse object. */ +/** + * Information about the upload created containing the upload ID and pre-signed URLs to PUT chunks + * of the CSV file to. + */ @JsonPropertyOrder({CreateUploadResponse.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +35,7 @@ public CreateUploadResponse data(CreateUploadResponseData data) { } /** - * The definition of CreateUploadResponseData object. + * Upload ID and attributes of the created upload. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseData.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseData.java index 57970320ce3..375e810a500 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseData.java @@ -6,18 +6,14 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadResponseData object. */ +/** Upload ID and attributes of the created upload. */ @JsonPropertyOrder({ CreateUploadResponseData.JSON_PROPERTY_ATTRIBUTES, CreateUploadResponseData.JSON_PROPERTY_ID, @@ -53,7 +49,7 @@ public CreateUploadResponseData attributes(CreateUploadResponseDataAttributes at } /** - * The definition of CreateUploadResponseDataAttributes object. + * Pre-signed URLs for uploading parts of the file. * * @return attributes */ @@ -74,7 +70,7 @@ public CreateUploadResponseData id(String id) { } /** - * The ID of the upload. + * Unique identifier for this upload. Use this ID when creating the reference table. * * @return id */ @@ -113,52 +109,6 @@ public void setType(CreateUploadResponseDataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CreateUploadResponseData - */ - @JsonAnySetter - public CreateUploadResponseData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this CreateUploadResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -171,13 +121,12 @@ public boolean equals(Object o) { CreateUploadResponseData createUploadResponseData = (CreateUploadResponseData) o; return Objects.equals(this.attributes, createUploadResponseData.attributes) && Objects.equals(this.id, createUploadResponseData.id) - && Objects.equals(this.type, createUploadResponseData.type) - && Objects.equals(this.additionalProperties, createUploadResponseData.additionalProperties); + && Objects.equals(this.type, createUploadResponseData.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, id, type); } @Override @@ -187,9 +136,6 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseDataAttributes.java index c1ee36512f4..eb63f58ef5c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateUploadResponseDataAttributes.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateUploadResponseDataAttributes object. */ +/** Pre-signed URLs for uploading parts of the file. */ @JsonPropertyOrder({CreateUploadResponseDataAttributes.JSON_PROPERTY_PART_URLS}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -41,7 +41,7 @@ public CreateUploadResponseDataAttributes addPartUrlsItem(String partUrlsItem) { } /** - * The URLs of the parts in the upload. + * The pre-signed URLs for uploading parts. These URLs expire after 5 minutes. * * @return partUrls */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequest.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequest.java index dda2b1338ad..7f691d105bf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequest.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of PatchTableRequest object. */ +/** Request body for updating an existing reference table. */ @JsonPropertyOrder({PatchTableRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +32,7 @@ public PatchTableRequest data(PatchTableRequestData data) { } /** - * The definition of PatchTableRequestData object. + * The data object containing the partial table definition updates. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestData.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestData.java index 8dd35a5c0f0..869658b0f03 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestData.java @@ -6,21 +6,16 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of PatchTableRequestData object. */ +/** The data object containing the partial table definition updates. */ @JsonPropertyOrder({ PatchTableRequestData.JSON_PROPERTY_ATTRIBUTES, - PatchTableRequestData.JSON_PROPERTY_ID, PatchTableRequestData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( @@ -30,9 +25,6 @@ public class PatchTableRequestData { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private PatchTableRequestDataAttributes attributes; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - public static final String JSON_PROPERTY_TYPE = "type"; private PatchTableRequestDataType type = PatchTableRequestDataType.REFERENCE_TABLE; @@ -52,7 +44,7 @@ public PatchTableRequestData attributes(PatchTableRequestDataAttributes attribut } /** - * The definition of PatchTableRequestDataAttributes object. + * Attributes that define the updates to the reference table's configuration and properties. * * @return attributes */ @@ -67,27 +59,6 @@ public void setAttributes(PatchTableRequestDataAttributes attributes) { this.attributes = attributes; } - public PatchTableRequestData id(String id) { - this.id = id; - return this; - } - - /** - * The ID of the reference table. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - public PatchTableRequestData type(PatchTableRequestDataType type) { this.type = type; this.unparsed |= !type.isValid(); @@ -112,52 +83,6 @@ public void setType(PatchTableRequestDataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return PatchTableRequestData - */ - @JsonAnySetter - public PatchTableRequestData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this PatchTableRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -169,14 +94,12 @@ public boolean equals(Object o) { } PatchTableRequestData patchTableRequestData = (PatchTableRequestData) o; return Objects.equals(this.attributes, patchTableRequestData.attributes) - && Objects.equals(this.id, patchTableRequestData.id) - && Objects.equals(this.type, patchTableRequestData.type) - && Objects.equals(this.additionalProperties, patchTableRequestData.additionalProperties); + && Objects.equals(this.type, patchTableRequestData.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, type); } @Override @@ -184,11 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PatchTableRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java index a47b71f5c79..af04a141aad 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributes.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of PatchTableRequestDataAttributes object. */ +/** Attributes that define the updates to the reference table's configuration and properties. */ @JsonPropertyOrder({ PatchTableRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, PatchTableRequestDataAttributes.JSON_PROPERTY_FILE_METADATA, @@ -51,7 +51,7 @@ public PatchTableRequestDataAttributes description(String description) { } /** - * The description of the reference table. + * Optional text describing the purpose or contents of this reference table. * * @return description */ @@ -74,7 +74,7 @@ public PatchTableRequestDataAttributes fileMetadata( } /** - * The definition of PatchTableRequestDataAttributesFileMetadata object. + * Metadata specifying where and how to access the reference table's data file. * * @return fileMetadata */ @@ -96,7 +96,8 @@ public PatchTableRequestDataAttributes schema(PatchTableRequestDataAttributesSch } /** - * The definition of PatchTableRequestDataAttributesSchema object. + * Schema defining the updates to the structure and columns of the reference table. Schema fields + * cannot be deleted or renamed. * * @return schema */ @@ -146,7 +147,7 @@ public PatchTableRequestDataAttributes addTagsItem(String tagsItem) { } /** - * The tags of the reference table. + * Tags for organizing and filtering reference tables. * * @return tags */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataCloudStorage.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataCloudStorage.java index 0851be97b80..c1e930132a5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataCloudStorage.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataCloudStorage.java @@ -38,8 +38,7 @@ public PatchTableRequestDataAttributesFileMetadataCloudStorage accessDetails( } /** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails - * object. + * Cloud storage access configuration for the reference table data file. * * @return accessDetails */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.java index 44cdc27ff2d..5cf5886d9c1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails - * object. - */ +/** Cloud storage access configuration for the reference table data file. */ @JsonPropertyOrder({ PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AWS_DETAIL, PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AZURE_DETAIL, @@ -46,8 +43,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails awsDetail( } /** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. + * Amazon Web Services S3 storage access configuration. * * @return awsDetail */ @@ -71,8 +67,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails azureDetail } /** - * The definition of - * PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail object. + * Azure Blob Storage access configuration. * * @return azureDetail */ @@ -96,8 +91,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetails gcpDetail( } /** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. + * Google Cloud Platform storage access configuration. * * @return gcpDetail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java index 1d754f6d385..6fa182030d2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. - */ +/** Amazon Web Services S3 storage access configuration. */ @JsonPropertyOrder({ PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail .JSON_PROPERTY_AWS_ACCOUNT_ID, @@ -47,7 +44,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail aw } /** - * The ID of the AWS account. + * AWS account ID where the S3 bucket is located. * * @return awsAccountId */ @@ -69,7 +66,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail aw } /** - * The name of the AWS bucket. + * S3 bucket containing the CSV file. * * @return awsBucketName */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java index 3565e2f8dd1..829b2ddb301 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail - * object. - */ +/** Azure Blob Storage access configuration. */ @JsonPropertyOrder({ PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail .JSON_PROPERTY_AZURE_CLIENT_ID, @@ -58,7 +55,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail } /** - * The Azure client ID. + * Azure service principal (application) client ID with permissions to read from the container. * * @return azureClientId */ @@ -80,7 +77,7 @@ public void setAzureClientId(String azureClientId) { } /** - * The name of the Azure container. + * Azure Blob Storage container containing the CSV file. * * @return azureContainerName */ @@ -102,7 +99,7 @@ public void setAzureContainerName(String azureContainerName) { } /** - * The name of the Azure storage account. + * Azure storage account where the container is located. * * @return azureStorageAccountName */ @@ -124,7 +121,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail } /** - * The ID of the Azure tenant. + * Azure Active Directory tenant ID. * * @return azureTenantId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java index 282ddbbaff5..b12126f5a74 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. - */ +/** Google Cloud Platform storage access configuration. */ @JsonPropertyOrder({ PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail.JSON_PROPERTY_FILE_PATH, PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail @@ -74,7 +71,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail gc } /** - * The name of the GCP bucket. + * GCP bucket containing the CSV file. * * @return gcpBucketName */ @@ -96,7 +93,7 @@ public PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail gc } /** - * The ID of the GCP project. + * GCP project ID where the bucket is located. * * @return gcpProjectId */ @@ -118,7 +115,7 @@ public void setGcpProjectId(String gcpProjectId) { } /** - * The email of the GCP service account. + * Service account email with read permissions for the GCS bucket. * * @return gcpServiceAccountEmail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchema.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchema.java index e057f9aa1b7..51ea19aeccc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchema.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchema.java @@ -19,7 +19,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of PatchTableRequestDataAttributesSchema object. */ +/** + * Schema defining the updates to the structure and columns of the reference table. Schema fields + * cannot be deleted or renamed. + */ @JsonPropertyOrder({ PatchTableRequestDataAttributesSchema.JSON_PROPERTY_FIELDS, PatchTableRequestDataAttributesSchema.JSON_PROPERTY_PRIMARY_KEYS @@ -62,7 +65,7 @@ public PatchTableRequestDataAttributesSchema addFieldsItem( } /** - * The schema fields. + * The schema fields. * * @return fields */ @@ -88,7 +91,8 @@ public PatchTableRequestDataAttributesSchema addPrimaryKeysItem(String primaryKe /** * 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. + * supported, and it is used as an ID to retrieve rows. Primary keys cannot be changed after table + * creation. * * @return primaryKeys */ diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchemaFieldsItems.java b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchemaFieldsItems.java index 03b0fc5eb3d..c1bee9001b3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchemaFieldsItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchTableRequestDataAttributesSchemaFieldsItems.java @@ -17,7 +17,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of PatchTableRequestDataAttributesSchemaFieldsItems object. */ +/** + * A single field (column) in the reference table schema to be updated. Schema fields cannot be + * deleted or renamed. + */ @JsonPropertyOrder({ PatchTableRequestDataAttributesSchemaFieldsItems.JSON_PROPERTY_NAME, PatchTableRequestDataAttributesSchemaFieldsItems.JSON_PROPERTY_TYPE diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2.java index e0541f2f2f4..b056254227e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2 object. */ +/** A reference table resource containing its full configuration and state. */ @JsonPropertyOrder({TableResultV2.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +32,7 @@ public TableResultV2 data(TableResultV2Data data) { } /** - * The definition of TableResultV2Data object. + * The data object containing the reference table configuration and state. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2Array.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2Array.java index 8aa810d5713..98cf0020a79 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2Array.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2Array.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2Array object. */ +/** List of reference tables. */ @JsonPropertyOrder({TableResultV2Array.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2Data.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2Data.java index 189f8b06885..5f39e95e378 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2Data.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2Data.java @@ -6,18 +6,14 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2Data object. */ +/** The data object containing the reference table configuration and state. */ @JsonPropertyOrder({ TableResultV2Data.JSON_PROPERTY_ATTRIBUTES, TableResultV2Data.JSON_PROPERTY_ID, @@ -52,7 +48,7 @@ public TableResultV2Data attributes(TableResultV2DataAttributes attributes) { } /** - * The definition of TableResultV2DataAttributes object. + * Attributes that define the reference table's configuration and properties. * * @return attributes */ @@ -73,7 +69,7 @@ public TableResultV2Data id(String id) { } /** - * The ID of the reference table. + * Unique identifier for the reference table. * * @return id */ @@ -112,52 +108,6 @@ public void setType(TableResultV2DataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return TableResultV2Data - */ - @JsonAnySetter - public TableResultV2Data putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this TableResultV2Data object is equal to o. */ @Override public boolean equals(Object o) { @@ -170,13 +120,12 @@ public boolean equals(Object o) { TableResultV2Data tableResultV2Data = (TableResultV2Data) o; return Objects.equals(this.attributes, tableResultV2Data.attributes) && Objects.equals(this.id, tableResultV2Data.id) - && Objects.equals(this.type, tableResultV2Data.type) - && Objects.equals(this.additionalProperties, tableResultV2Data.additionalProperties); + && Objects.equals(this.type, tableResultV2Data.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, id, type); } @Override @@ -186,9 +135,6 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributes.java index 0e3955df844..f534f45c61a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributes.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2DataAttributes object. */ +/** Attributes that define the reference table's configuration and properties. */ @JsonPropertyOrder({ TableResultV2DataAttributes.JSON_PROPERTY_CREATED_BY, TableResultV2DataAttributes.JSON_PROPERTY_DESCRIPTION, @@ -96,7 +96,7 @@ public TableResultV2DataAttributes description(String description) { } /** - * The description of the reference table. + * Optional text describing the purpose or contents of this reference table. * * @return description */ @@ -119,7 +119,7 @@ public TableResultV2DataAttributes fileMetadata( } /** - * The definition of TableResultV2DataAttributesFileMetadata object. + * Metadata specifying where and how to access the reference table's data file. * * @return fileMetadata */ @@ -183,7 +183,7 @@ public TableResultV2DataAttributes schema(TableResultV2DataAttributesSchema sche } /** - * The definition of TableResultV2DataAttributesSchema object. + * Schema defining the structure and columns of the reference table. * * @return schema */ @@ -230,7 +230,7 @@ public TableResultV2DataAttributes status(String status) { } /** - * The status of the reference table. + * The processing status of the table. * * @return status */ @@ -251,7 +251,7 @@ public TableResultV2DataAttributes tableName(String tableName) { } /** - * The name of the reference table. + * Unique name to identify this reference table. Used in enrichment processors and API calls. * * @return tableName */ @@ -280,7 +280,7 @@ public TableResultV2DataAttributes addTagsItem(String tagsItem) { } /** - * The tags of the reference table. + * Tags for organizing and filtering reference tables. * * @return tags */ @@ -301,7 +301,7 @@ public TableResultV2DataAttributes updatedAt(String updatedAt) { } /** - * The timestamp of the last update to the reference table in ISO 8601 format. + * When the reference table was last updated, in ISO 8601 format. * * @return updatedAt */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataCloudStorage.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataCloudStorage.java index 0b1794a2c13..6253d806f46 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataCloudStorage.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataCloudStorage.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -43,6 +44,16 @@ public class TableResultV2DataAttributesFileMetadataCloudStorage { public static final String JSON_PROPERTY_SYNC_ENABLED = "sync_enabled"; private Boolean syncEnabled; + public TableResultV2DataAttributesFileMetadataCloudStorage() {} + + @JsonCreator + public TableResultV2DataAttributesFileMetadataCloudStorage( + @JsonProperty(required = true, value = JSON_PROPERTY_ACCESS_DETAILS) + TableResultV2DataAttributesFileMetadataOneOfAccessDetails accessDetails) { + this.accessDetails = accessDetails; + this.unparsed |= accessDetails.unparsed; + } + public TableResultV2DataAttributesFileMetadataCloudStorage accessDetails( TableResultV2DataAttributesFileMetadataOneOfAccessDetails accessDetails) { this.accessDetails = accessDetails; @@ -51,14 +62,12 @@ public TableResultV2DataAttributesFileMetadataCloudStorage accessDetails( } /** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetails - * object. + * Cloud storage access configuration for the reference table data file. * * @return accessDetails */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCESS_DETAILS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public TableResultV2DataAttributesFileMetadataOneOfAccessDetails getAccessDetails() { return accessDetails; } diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataLocalFile.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataLocalFile.java index eecd40f891b..b57a58ce817 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataLocalFile.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataLocalFile.java @@ -16,11 +16,13 @@ import java.util.Map; import java.util.Objects; -/** File metadata for reference tables created by upload. */ +/** + * File metadata for reference tables created by upload. Note that upload_id is only returned in the + * immediate create/replace response and is not available in subsequent GET requests. + */ @JsonPropertyOrder({ TableResultV2DataAttributesFileMetadataLocalFile.JSON_PROPERTY_ERROR_MESSAGE, - TableResultV2DataAttributesFileMetadataLocalFile.JSON_PROPERTY_ERROR_ROW_COUNT, - TableResultV2DataAttributesFileMetadataLocalFile.JSON_PROPERTY_UPLOAD_ID + TableResultV2DataAttributesFileMetadataLocalFile.JSON_PROPERTY_ERROR_ROW_COUNT }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,9 +34,6 @@ public class TableResultV2DataAttributesFileMetadataLocalFile { public static final String JSON_PROPERTY_ERROR_ROW_COUNT = "error_row_count"; private Long errorRowCount; - public static final String JSON_PROPERTY_UPLOAD_ID = "upload_id"; - private String uploadId; - public TableResultV2DataAttributesFileMetadataLocalFile errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; @@ -77,27 +76,6 @@ public void setErrorRowCount(Long errorRowCount) { this.errorRowCount = errorRowCount; } - public TableResultV2DataAttributesFileMetadataLocalFile uploadId(String uploadId) { - this.uploadId = uploadId; - return this; - } - - /** - * The upload ID that was used to create/update the table. - * - * @return uploadId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPLOAD_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUploadId() { - return uploadId; - } - - public void setUploadId(String uploadId) { - this.uploadId = uploadId; - } - /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -161,7 +139,6 @@ public boolean equals(Object o) { this.errorMessage, tableResultV2DataAttributesFileMetadataLocalFile.errorMessage) && Objects.equals( this.errorRowCount, tableResultV2DataAttributesFileMetadataLocalFile.errorRowCount) - && Objects.equals(this.uploadId, tableResultV2DataAttributesFileMetadataLocalFile.uploadId) && Objects.equals( this.additionalProperties, tableResultV2DataAttributesFileMetadataLocalFile.additionalProperties); @@ -169,7 +146,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(errorMessage, errorRowCount, uploadId, additionalProperties); + return Objects.hash(errorMessage, errorRowCount, additionalProperties); } @Override @@ -178,7 +155,6 @@ public String toString() { sb.append("class TableResultV2DataAttributesFileMetadataLocalFile {\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" errorRowCount: ").append(toIndentedString(errorRowCount)).append("\n"); - sb.append(" uploadId: ").append(toIndentedString(uploadId)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetails.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetails.java index 96b0ddb2d4c..490c9e9d719 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetails.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetails.java @@ -16,9 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetails object. - */ +/** Cloud storage access configuration for the reference table data file. */ @JsonPropertyOrder({ TableResultV2DataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AWS_DETAIL, TableResultV2DataAttributesFileMetadataOneOfAccessDetails.JSON_PROPERTY_AZURE_DETAIL, @@ -45,8 +43,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetails awsDetail( } /** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. + * Amazon Web Services S3 storage access configuration. * * @return awsDetail */ @@ -70,8 +67,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetails azureDetail( } /** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail - * object. + * Azure Blob Storage access configuration. * * @return azureDetail */ @@ -95,8 +91,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetails gcpDetail( } /** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. + * Google Cloud Platform storage access configuration. * * @return gcpDetail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java index f594a29b6f6..97f9b80a041 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail - * object. - */ +/** Amazon Web Services S3 storage access configuration. */ @JsonPropertyOrder({ TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.JSON_PROPERTY_AWS_ACCOUNT_ID, TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail.JSON_PROPERTY_AWS_BUCKET_NAME, @@ -45,7 +42,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail awsAcc } /** - * The ID of the AWS account. + * AWS account ID where the S3 bucket is located. * * @return awsAccountId */ @@ -67,7 +64,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail awsBuc } /** - * The name of the AWS bucket. + * S3 bucket containing the CSV file. * * @return awsBucketName */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java index 62cad79f50d..c4d89a2c508 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail - * object. - */ +/** Azure Blob Storage access configuration. */ @JsonPropertyOrder({ TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail .JSON_PROPERTY_AZURE_CLIENT_ID, @@ -58,7 +55,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail azur } /** - * The Azure client ID. + * Azure service principal (application) client ID with permissions to read from the container. * * @return azureClientId */ @@ -80,7 +77,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail azur } /** - * The name of the Azure container. + * Azure Blob Storage container containing the CSV file. * * @return azureContainerName */ @@ -102,7 +99,7 @@ public void setAzureContainerName(String azureContainerName) { } /** - * The name of the Azure storage account. + * Azure storage account where the container is located. * * @return azureStorageAccountName */ @@ -124,7 +121,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail azur } /** - * The ID of the Azure tenant. + * Azure Active Directory tenant ID. * * @return azureTenantId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java index 20ebf029082..076fa51f4ec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.java @@ -16,10 +16,7 @@ import java.util.Map; import java.util.Objects; -/** - * The definition of TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail - * object. - */ +/** Google Cloud Platform storage access configuration. */ @JsonPropertyOrder({ TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.JSON_PROPERTY_FILE_PATH, TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail.JSON_PROPERTY_GCP_BUCKET_NAME, @@ -72,7 +69,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail gcpBuc } /** - * The name of the GCP bucket. + * GCP bucket containing the CSV file. * * @return gcpBucketName */ @@ -94,7 +91,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail gcpPro } /** - * The ID of the GCP project. + * GCP project ID where the bucket is located. * * @return gcpProjectId */ @@ -116,7 +113,7 @@ public TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail gcpSer } /** - * The email of the GCP service account. + * Service account email with read permissions for the GCS bucket. * * @return gcpServiceAccountEmail */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchema.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchema.java index 148c8b5d1e1..5444581faeb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchema.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchema.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2DataAttributesSchema object. */ +/** Schema defining the structure and columns of the reference table. */ @JsonPropertyOrder({ TableResultV2DataAttributesSchema.JSON_PROPERTY_FIELDS, TableResultV2DataAttributesSchema.JSON_PROPERTY_PRIMARY_KEYS @@ -62,7 +62,7 @@ public TableResultV2DataAttributesSchema addFieldsItem( } /** - * The schema fields. + * The schema fields. * * @return fields */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchemaFieldsItems.java b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchemaFieldsItems.java index 733c6f714db..f0e72331a6b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchemaFieldsItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableResultV2DataAttributesSchemaFieldsItems.java @@ -17,7 +17,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableResultV2DataAttributesSchemaFieldsItems object. */ +/** A single field (column) in the reference table schema to be returned. */ @JsonPropertyOrder({ TableResultV2DataAttributesSchemaFieldsItems.JSON_PROPERTY_NAME, TableResultV2DataAttributesSchemaFieldsItems.JSON_PROPERTY_TYPE diff --git a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceArray.java b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceArray.java index d70ba0eb2c2..e1e278c8376 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceArray.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceArray.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of TableRowResourceArray object. */ +/** List of rows from a reference table query. */ @JsonPropertyOrder({TableRowResourceArray.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") diff --git a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceData.java b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceData.java index 6768e084162..88abb7f23e3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceData.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceData.java @@ -6,18 +6,14 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of TableRowResourceData object. */ +/** The data object containing the row column names and values. */ @JsonPropertyOrder({ TableRowResourceData.JSON_PROPERTY_ATTRIBUTES, TableRowResourceData.JSON_PROPERTY_ID, @@ -52,7 +48,7 @@ public TableRowResourceData attributes(TableRowResourceDataAttributes attributes } /** - * The definition of TableRowResourceDataAttributes object. + * Column values for this row in the reference table. * * @return attributes */ @@ -73,7 +69,7 @@ public TableRowResourceData id(String id) { } /** - * The ID of the row. + * Row identifier, corresponding to the primary key value. * * @return id */ @@ -112,52 +108,6 @@ public void setType(TableRowResourceDataType type) { this.type = type; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return TableRowResourceData - */ - @JsonAnySetter - public TableRowResourceData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this TableRowResourceData object is equal to o. */ @Override public boolean equals(Object o) { @@ -170,13 +120,12 @@ public boolean equals(Object o) { TableRowResourceData tableRowResourceData = (TableRowResourceData) o; return Objects.equals(this.attributes, tableRowResourceData.attributes) && Objects.equals(this.id, tableRowResourceData.id) - && Objects.equals(this.type, tableRowResourceData.type) - && Objects.equals(this.additionalProperties, tableRowResourceData.additionalProperties); + && Objects.equals(this.type, tableRowResourceData.type); } @Override public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); + return Objects.hash(attributes, id, type); } @Override @@ -186,9 +135,6 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceDataAttributes.java index 37605e2657f..4b65873a6e3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TableRowResourceDataAttributes.java @@ -6,100 +6,42 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** The definition of TableRowResourceDataAttributes object. */ +/** Column values for this row in the reference table. */ @JsonPropertyOrder({TableRowResourceDataAttributes.JSON_PROPERTY_VALUES}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TableRowResourceDataAttributes { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_VALUES = "values"; - private Map values = null; + private Object values; - public TableRowResourceDataAttributes values(Map values) { + public TableRowResourceDataAttributes values(Object values) { this.values = values; return this; } - public TableRowResourceDataAttributes putValuesItem(String key, Object valuesItem) { - if (this.values == null) { - this.values = new HashMap<>(); - } - this.values.put(key, valuesItem); - return this; - } - /** - * The values of the row. + * Key-value pairs representing the row data, where keys are field names from the schema. * * @return values */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getValues() { + public Object getValues() { return values; } - public void setValues(Map values) { + public void setValues(Object values) { this.values = values; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return TableRowResourceDataAttributes - */ - @JsonAnySetter - public TableRowResourceDataAttributes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this TableRowResourceDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,14 +53,12 @@ public boolean equals(Object o) { } TableRowResourceDataAttributes tableRowResourceDataAttributes = (TableRowResourceDataAttributes) o; - return Objects.equals(this.values, tableRowResourceDataAttributes.values) - && Objects.equals( - this.additionalProperties, tableRowResourceDataAttributes.additionalProperties); + return Objects.equals(this.values, tableRowResourceDataAttributes.values); } @Override public int hashCode() { - return Objects.hash(values, additionalProperties); + return Objects.hash(values); } @Override @@ -126,9 +66,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TableRowResourceDataAttributes {\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature index 8a01298dc59..6d4bc4b97f5 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature @@ -24,7 +24,7 @@ Feature: Reference Tables @generated @skip @team:DataDog/redapl-experiences Scenario: Create reference table upload returns "Bad Request" response Given new "CreateReferenceTableUpload" request - And body with value {"data": {"attributes": {"headers": [""], "part_count": 3, "part_size": 10000000, "table_name": ""}, "type": "upload"}} + And body with value {"data": {"attributes": {"headers": ["field_1", "field_2"], "part_count": 3, "part_size": 10000000, "table_name": ""}, "type": "upload"}} When the request is sent Then the response status is 400 Bad Request @@ -108,7 +108,7 @@ Feature: Reference Tables Scenario: Update reference table returns "Bad Request" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 400 Bad Request @@ -116,6 +116,6 @@ Feature: Reference Tables Scenario: Update reference table returns "OK" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 200 OK