From 49cefd3774f8d5d7745a2fbfd723bef865f5bffd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 29 Aug 2025 22:05:33 +0000 Subject: [PATCH] Regenerate client from commit 293e80b of spec repo --- .generator/schemas/v2/openapi.yaml | 921 ++++++++++ .../frozen.json | 1 + .../recording.har | 163 ++ .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 163 ++ .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 110 ++ .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 110 ++ .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 216 +++ .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 152 ++ .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 153 ++ .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 206 +++ .../frozen.json | 1 + .../recording.har | 57 + .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 67 + .../frozen.json | 1 + .../recording.har | 163 ++ .../frozen.json | 1 + .../recording.har | 163 ++ .../frozen.json | 1 + .../recording.har | 163 ++ .../BulkWriteDatastoreItems.ts | 41 + .../v2/actions-datastores/CreateDatastore.ts | 29 + .../CreateDatastoreFromImport.ts | 39 + .../v2/actions-datastores/DeleteDatastore.ts | 24 + .../actions-datastores/DeleteDatastoreItem.ts | 33 + .../v2/actions-datastores/GetDatastore.ts | 24 + .../actions-datastores/ListDatastoreItems.ts | 24 + .../v2/actions-datastores/ListDatastores.ts | 17 + .../v2/actions-datastores/UpdateDatastore.ts | 33 + .../actions-datastores/WriteDatastoreItem.ts | 37 + features/support/scenarios_model_mapping.ts | 102 ++ features/v2/actions_datastores.feature | 232 +++ features/v2/given.json | 28 + features/v2/undo.json | 85 + .../apis/ActionsDatastoresApi.ts | 1617 +++++++++++++++++ packages/datadog-api-client-v2/index.ts | 56 + .../BulkPutAppsDatastoreItemsRequest.ts | 53 + .../BulkPutAppsDatastoreItemsRequestData.ts | 71 + ...AppsDatastoreItemsRequestDataAttributes.ts | 62 + .../CreateAppsDatastoreFromImportRequest.ts | 53 + ...reateAppsDatastoreFromImportRequestData.ts | 71 + ...atastoreFromImportRequestDataAttributes.ts | 96 + .../CreateAppsDatastoreFromImportResponse.ts | 53 + ...eateAppsDatastoreFromImportResponseData.ts | 71 + ...tastoreFromImportResponseDataAttributes.ts | 53 + .../models/CreateAppsDatastoreRequest.ts | 53 + .../models/CreateAppsDatastoreRequestData.ts | 71 + ...reateAppsDatastoreRequestDataAttributes.ts | 87 + .../models/CreateAppsDatastoreResponse.ts | 53 + .../models/CreateAppsDatastoreResponseData.ts | 62 + .../datadog-api-client-v2/models/Datastore.ts | 53 + .../models/DatastoreArray.ts | 54 + .../models/DatastoreData.ts | 71 + .../models/DatastoreDataAttributes.ts | 121 ++ .../models/DatastoreDataType.ts | 14 + .../models/DatastoreItemConflictMode.ts | 18 + .../models/DatastoreItemsDataType.ts | 14 + .../DatastorePrimaryKeyGenerationStrategy.ts | 18 + .../models/DeleteAppsDatastoreItemRequest.ts | 53 + .../DeleteAppsDatastoreItemRequestData.ts | 71 + ...eAppsDatastoreItemRequestDataAttributes.ts | 61 + .../models/DeleteAppsDatastoreItemResponse.ts | 53 + .../DeleteAppsDatastoreItemResponseData.ts | 62 + .../models/ItemApiPayloadArray.ts | 63 + .../models/ItemApiPayloadData.ts | 71 + .../models/ItemApiPayloadDataAttributes.ts | 103 ++ .../models/ItemApiPayloadMeta.ts | 62 + .../models/ItemApiPayloadMetaPage.ts | 70 + .../models/ItemApiPayloadMetaSchema.ts | 61 + .../models/ItemApiPayloadMetaSchemaField.ts | 62 + .../models/ObjectSerializer.ts | 91 + .../models/PutAppsDatastoreItemRequest.ts | 53 + .../models/PutAppsDatastoreItemRequestData.ts | 71 + ...tAppsDatastoreItemRequestDataAttributes.ts | 53 + .../models/PutAppsDatastoreItemResponse.ts | 53 + .../PutAppsDatastoreItemResponseArray.ts | 54 + .../PutAppsDatastoreItemResponseData.ts | 62 + .../models/UpdateAppsDatastoreRequest.ts | 53 + .../models/UpdateAppsDatastoreRequestData.ts | 71 + ...pdateAppsDatastoreRequestDataAttributes.ts | 60 + 109 files changed, 8624 insertions(+) create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/recording.har create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/frozen.json create mode 100644 cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/recording.har create mode 100644 examples/v2/actions-datastores/BulkWriteDatastoreItems.ts create mode 100644 examples/v2/actions-datastores/CreateDatastore.ts create mode 100644 examples/v2/actions-datastores/CreateDatastoreFromImport.ts create mode 100644 examples/v2/actions-datastores/DeleteDatastore.ts create mode 100644 examples/v2/actions-datastores/DeleteDatastoreItem.ts create mode 100644 examples/v2/actions-datastores/GetDatastore.ts create mode 100644 examples/v2/actions-datastores/ListDatastoreItems.ts create mode 100644 examples/v2/actions-datastores/ListDatastores.ts create mode 100644 examples/v2/actions-datastores/UpdateDatastore.ts create mode 100644 examples/v2/actions-datastores/WriteDatastoreItem.ts create mode 100644 features/v2/actions_datastores.feature create mode 100644 packages/datadog-api-client-v2/apis/ActionsDatastoresApi.ts create mode 100644 packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.ts create mode 100644 packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequest.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponse.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.ts create mode 100644 packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/Datastore.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreArray.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreData.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreDataType.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreItemConflictMode.ts create mode 100644 packages/datadog-api-client-v2/models/DatastoreItemsDataType.ts create mode 100644 packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.ts create mode 100644 packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.ts create mode 100644 packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.ts create mode 100644 packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadArray.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadData.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadMeta.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.ts create mode 100644 packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequest.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponse.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.ts create mode 100644 packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.ts create mode 100644 packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.ts diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a0f0a2bd0980..5bdfb8f2a1ec 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -5645,6 +5645,36 @@ components: type: $ref: '#/components/schemas/FindingType' type: object + BulkPutAppsDatastoreItemsRequest: + description: The definition of `BulkPutAppsDatastoreItemsRequest` object. + properties: + data: + $ref: '#/components/schemas/BulkPutAppsDatastoreItemsRequestData' + type: object + BulkPutAppsDatastoreItemsRequestData: + description: The definition of `BulkPutAppsDatastoreItemsRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/BulkPutAppsDatastoreItemsRequestDataAttributes' + id: + description: The `BulkPutAppsDatastoreItemsRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object + BulkPutAppsDatastoreItemsRequestDataAttributes: + description: The definition of `BulkPutAppsDatastoreItemsRequestDataAttributes` + object. + properties: + conflict_mode: + $ref: '#/components/schemas/DatastoreItemConflictMode' + values: + $ref: '#/components/schemas/DatastoreItemValues' + required: + - values + type: object CIAppAggregateBucketValue: description: A bucket value, can either be a timeseries or a single value. oneOf: @@ -10635,6 +10665,139 @@ components: - id - type type: object + CreateAppsDatastoreFromImportRequest: + description: The definition of `CreateAppsDatastoreFromImportRequest` object. + properties: + data: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportRequestData' + type: object + CreateAppsDatastoreFromImportRequestData: + description: The definition of `CreateAppsDatastoreFromImportRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportRequestDataAttributes' + id: + description: The `CreateAppsDatastoreFromImportRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object + CreateAppsDatastoreFromImportRequestDataAttributes: + description: The definition of `CreateAppsDatastoreFromImportRequestDataAttributes` + object. + properties: + description: + description: The `attributes` `description`. + type: string + name: + description: The `attributes` `name`. + example: datastore-name + type: string + org_access: + description: The `attributes` `org_access`. + type: string + primary_column_name: + description: The `attributes` `primary_column_name`. + example: primaryKey + type: string + primary_key_generation_strategy: + $ref: '#/components/schemas/DatastorePrimaryKeyGenerationStrategy' + values: + $ref: '#/components/schemas/DatastoreItemValues' + required: + - name + - primary_column_name + - values + type: object + CreateAppsDatastoreFromImportResponse: + description: The definition of `CreateAppsDatastoreFromImportResponse` object. + properties: + data: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportResponseData' + type: object + CreateAppsDatastoreFromImportResponseData: + description: The definition of `CreateAppsDatastoreFromImportResponseData` object. + properties: + attributes: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportResponseDataAttributes' + id: + description: The `CreateAppsDatastoreFromImportResponseData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object + CreateAppsDatastoreFromImportResponseDataAttributes: + description: The definition of `CreateAppsDatastoreFromImportResponseDataAttributes` + object. + properties: + item_count: + description: The `attributes` `item_count`. + format: int64 + type: integer + type: object + CreateAppsDatastoreRequest: + description: The definition of `CreateAppsDatastoreRequest` object. + properties: + data: + $ref: '#/components/schemas/CreateAppsDatastoreRequestData' + type: object + CreateAppsDatastoreRequestData: + description: The definition of `CreateAppsDatastoreRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/CreateAppsDatastoreRequestDataAttributes' + id: + description: The `CreateAppsDatastoreRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object + CreateAppsDatastoreRequestDataAttributes: + description: The definition of `CreateAppsDatastoreRequestDataAttributes` object. + properties: + description: + description: The `attributes` `description`. + type: string + name: + description: The `attributes` `name`. + example: datastore-name + type: string + org_access: + description: The `attributes` `org_access`. + type: string + primary_column_name: + description: The `attributes` `primary_column_name`. + example: primaryKey + type: string + primary_key_generation_strategy: + $ref: '#/components/schemas/DatastorePrimaryKeyGenerationStrategy' + required: + - name + - primary_column_name + type: object + CreateAppsDatastoreResponse: + description: The definition of `CreateAppsDatastoreResponse` object. + properties: + data: + $ref: '#/components/schemas/CreateAppsDatastoreResponseData' + type: object + CreateAppsDatastoreResponseData: + description: The definition of `CreateAppsDatastoreResponseData` object. + properties: + id: + description: The `CreateAppsDatastoreResponseData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object CreateCustomFrameworkRequest: description: Request object to create a custom framework. properties: @@ -13346,6 +13509,119 @@ components: required: - data type: object + Datastore: + description: The definition of `Datastore` object. + properties: + data: + $ref: '#/components/schemas/DatastoreData' + type: object + DatastoreArray: + description: The definition of `DatastoreArray` object. + properties: + data: + description: The `DatastoreArray` `data`. + items: + $ref: '#/components/schemas/DatastoreData' + type: array + required: + - data + type: object + DatastoreData: + description: The definition of `DatastoreData` object. + properties: + attributes: + $ref: '#/components/schemas/DatastoreDataAttributes' + id: + description: The `DatastoreData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object + DatastoreDataAttributes: + description: The definition of `DatastoreDataAttributes` object. + properties: + created_at: + description: The `attributes` `created_at`. + format: date-time + type: string + creator_user_id: + description: The `attributes` `creator_user_id`. + format: int64 + type: integer + creator_user_uuid: + description: The `attributes` `creator_user_uuid`. + type: string + description: + description: The `attributes` `description`. + type: string + modified_at: + description: The `attributes` `modified_at`. + format: date-time + type: string + name: + description: The `attributes` `name`. + type: string + org_id: + description: The `attributes` `org_id`. + format: int64 + type: integer + primary_column_name: + description: The `attributes` `primary_column_name`. + type: string + primary_key_generation_strategy: + $ref: '#/components/schemas/DatastorePrimaryKeyGenerationStrategy' + type: object + DatastoreDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES + DatastoreItemConflictMode: + description: The definition of `DatastoreItemConflictMode` object. + enum: + - fail_on_conflict + - overwrite_on_conflict + example: overwrite_on_conflict + type: string + x-enum-varnames: + - FAIL_ON_CONFLICT + - OVERWRITE_ON_CONFLICT + DatastoreItemValues: + description: The `attributes` `values`. + example: + - data: example data + key: value + - data: example data2 + key: value2 + items: + additionalProperties: {} + description: Item values to add to the datastore. + type: object + type: array + DatastoreItemsDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS + DatastorePrimaryKeyGenerationStrategy: + description: The `attributes` `primary_key_generation_strategy`. + enum: + - none + - uuid + type: string + x-enum-varnames: + - NONE + - UUID Date: description: Date as Unix timestamp in milliseconds. example: 1722439510282 @@ -13371,6 +13647,57 @@ components: - id - type type: object + DeleteAppsDatastoreItemRequest: + description: The definition of `DeleteAppsDatastoreItemRequest` object. + properties: + data: + $ref: '#/components/schemas/DeleteAppsDatastoreItemRequestData' + type: object + DeleteAppsDatastoreItemRequestData: + description: The definition of `DeleteAppsDatastoreItemRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/DeleteAppsDatastoreItemRequestDataAttributes' + id: + description: The `DeleteAppsDatastoreItemRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object + DeleteAppsDatastoreItemRequestDataAttributes: + description: The definition of `DeleteAppsDatastoreItemRequestDataAttributes` + object. + properties: + id: + description: The `item` `id`. + example: a7656bcc-51d4-4884-adf7-4d0d9a3e0633 + type: string + item_key: + description: The `attributes` `item_key`. + example: primaryKey + type: string + required: + - item_key + type: object + DeleteAppsDatastoreItemResponse: + description: The definition of `DeleteAppsDatastoreItemResponse` object. + properties: + data: + $ref: '#/components/schemas/DeleteAppsDatastoreItemResponseData' + type: object + DeleteAppsDatastoreItemResponseData: + description: The definition of `DeleteAppsDatastoreItemResponseData` object. + properties: + id: + description: The `DeleteAppsDatastoreItemResponseData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object DeleteAppsRequest: description: A request object for deleting multiple apps by ID. example: @@ -21383,6 +21710,114 @@ components: - DOWN - WARNING - 'OFF' + ItemApiPayloadArray: + description: The definition of `ItemApiPayloadArray` object. + properties: + data: + description: The `ItemApiPayloadArray` `data`. + items: + $ref: '#/components/schemas/ItemApiPayloadData' + type: array + meta: + $ref: '#/components/schemas/ItemApiPayloadMeta' + description: Metadata about the `ItemApiPayloadArray`. + required: + - data + type: object + ItemApiPayloadData: + description: The definition of `ItemApiPayloadData` object. + properties: + attributes: + $ref: '#/components/schemas/ItemApiPayloadDataAttributes' + id: + description: The `ItemApiPayloadData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object + ItemApiPayloadDataAttributes: + description: The definition of `ItemApiPayloadDataAttributes` object. + properties: + created_at: + description: The `attributes` `created_at`. + format: date-time + type: string + modified_at: + description: The `attributes` `modified_at`. + format: date-time + type: string + org_id: + description: The `attributes` `org_id`. + format: int64 + type: integer + primary_column_name: + description: The `attributes` `primary_column_name`. + type: string + signature: + description: The `attributes` `signature`. + type: string + store_id: + description: The `attributes` `store_id`. + type: string + value: + $ref: '#/components/schemas/ItemApiPayloadDataAttributesValue' + type: object + ItemApiPayloadDataAttributesValue: + additionalProperties: {} + description: The `attributes` `value`. + type: object + ItemApiPayloadMeta: + description: The definition of `ItemApiPayloadMeta` object. + properties: + page: + $ref: '#/components/schemas/ItemApiPayloadMetaPage' + schema: + $ref: '#/components/schemas/ItemApiPayloadMetaSchema' + type: object + ItemApiPayloadMetaPage: + description: The definition of `ItemApiPayloadMetaPage` object. + properties: + hasMore: + description: The `ItemApiPayloadMeta` `hasMore`. + type: boolean + totalCount: + description: The `ItemApiPayloadMeta` `totalCount`. + format: int64 + type: integer + totalFilteredCount: + description: The `ItemApiPayloadMeta` `totalFilteredCount`. + format: int64 + type: integer + type: object + ItemApiPayloadMetaSchema: + description: The definition of `ItemApiPayloadMetaSchema` object. + properties: + fields: + description: The `ItemApiPayloadMetaSchema` `fields`. + items: + $ref: '#/components/schemas/ItemApiPayloadMetaSchemaField' + type: array + primary_key: + description: The `ItemApiPayloadMetaSchema` `primary_key`. + type: string + type: object + ItemApiPayloadMetaSchemaField: + description: The definition of `ItemApiPayloadMetaSchemaField` object. + properties: + name: + description: The `ItemApiPayloadMetaSchemaField` `name`. + example: '' + type: string + type: + description: The `ItemApiPayloadMetaSchemaField` `type`. + example: '' + type: string + required: + - name + - type + type: object JSONAPIErrorItem: description: API error response body properties: @@ -32009,6 +32444,66 @@ components: data: $ref: '#/components/schemas/Deployment' type: object + PutAppsDatastoreItemRequest: + description: The definition of `PutAppsDatastoreItemRequest` object. + properties: + data: + $ref: '#/components/schemas/PutAppsDatastoreItemRequestData' + type: object + PutAppsDatastoreItemRequestData: + description: The definition of `PutAppsDatastoreItemRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/PutAppsDatastoreItemRequestDataAttributes' + id: + description: The `PutAppsDatastoreItemRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object + PutAppsDatastoreItemRequestDataAttributes: + description: The definition of `PutAppsDatastoreItemRequestDataAttributes` object. + properties: + value: + additionalProperties: {} + description: The `attributes` `value`. + example: + data: example data + key: value + type: object + required: + - value + type: object + PutAppsDatastoreItemResponse: + description: The definition of `PutAppsDatastoreItemResponse` object. + properties: + data: + $ref: '#/components/schemas/PutAppsDatastoreItemResponseData' + type: object + PutAppsDatastoreItemResponseArray: + description: The definition of `PutAppsDatastoreItemResponseArray` object. + properties: + data: + description: The `PutAppsDatastoreItemResponseArray` `data`. + items: + $ref: '#/components/schemas/PutAppsDatastoreItemResponseData' + type: array + required: + - data + type: object + PutAppsDatastoreItemResponseData: + description: The definition of `PutAppsDatastoreItemResponseData` object. + properties: + id: + description: The `PutAppsDatastoreItemResponseData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreItemsDataType' + required: + - type + type: object Query: description: A data query used by an app. This can take the form of an external action, a data transformation, or a state variable. @@ -43809,6 +44304,35 @@ components: type: string type: array type: object + UpdateAppsDatastoreRequest: + description: The definition of `UpdateAppsDatastoreRequest` object. + properties: + data: + $ref: '#/components/schemas/UpdateAppsDatastoreRequestData' + type: object + UpdateAppsDatastoreRequestData: + description: The definition of `UpdateAppsDatastoreRequestData` object. + properties: + attributes: + $ref: '#/components/schemas/UpdateAppsDatastoreRequestDataAttributes' + id: + description: The `UpdateAppsDatastoreRequestData` `id`. + type: string + type: + $ref: '#/components/schemas/DatastoreDataType' + required: + - type + type: object + UpdateAppsDatastoreRequestDataAttributes: + description: The definition of `UpdateAppsDatastoreRequestDataAttributes` object. + properties: + description: + description: The `attributes` `description`. + type: string + name: + description: The `attributes` `name`. + type: string + type: object UpdateCustomFrameworkRequest: description: Request object to update a custom framework. properties: @@ -45801,6 +46325,397 @@ info: version: '1.0' openapi: 3.0.0 paths: + /api/v2/actions-datastores: + get: + description: Lists all datastores for the organization. + operationId: ListDatastores + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DatastoreArray' + description: OK + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: List datastores + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_read + post: + description: Creates a new datastore. + operationId: CreateDatastore + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAppsDatastoreRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAppsDatastoreResponse' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Create datastore + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_manage + /api/v2/actions-datastores/import: + post: + description: Creates a new datastore and populates it with items from the provided + data. + operationId: CreateDatastoreFromImport + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAppsDatastoreFromImportResponse' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Create datastore from import + tags: + - Actions Datastores + x-permission: + operator: AND + permissions: + - apps_datastore_manage + - apps_datastore_write + /api/v2/actions-datastores/{datastore_id}: + delete: + description: Deletes a datastore by its ID. + operationId: DeleteDatastore + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + responses: + '200': + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Delete datastore + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_manage + get: + description: Retrieves a specific datastore by its ID. + operationId: GetDatastore + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Datastore' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get datastore + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_read + patch: + description: Updates an existing datastore's attributes. + operationId: UpdateDatastore + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAppsDatastoreRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Datastore' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Update datastore + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_manage + /api/v2/actions-datastores/{datastore_id}/items: + delete: + description: Deletes an item from a datastore by its key. + operationId: DeleteDatastoreItem + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteAppsDatastoreItemRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteAppsDatastoreItemResponse' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Delete datastore item + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_write + get: + description: Lists items from a datastore. You can filter the results by specifying + either an item key or a filter query parameter, but not both at the same time. + operationId: ListDatastoreItems + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + - description: Optional filter to filter the list of items. + in: query + name: filter + schema: + type: string + - description: Optional item key to filter the list of items. + in: query + name: item_key + schema: + type: string + - description: Optional limit to limit the number of items in the list. + in: query + name: page[limit] + schema: + format: int64 + type: integer + - description: Optional offset to offset the list of items. + in: query + name: page[offset] + schema: + format: int64 + type: integer + - description: Optional sort to sort the list of items. + in: query + name: sort + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ItemApiPayloadArray' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: List datastore items + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_read + post: + description: Creates or replaces an item in a datastore by its key. + operationId: WriteDatastoreItem + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PutAppsDatastoreItemRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PutAppsDatastoreItemResponse' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Write datastore item + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_write + /api/v2/actions-datastores/{datastore_id}/items/bulk: + post: + description: Creates or replaces multiple items in a datastore by their keys + in a single operation. + operationId: BulkWriteDatastoreItems + parameters: + - description: The ID of the datastore. + in: path + name: datastore_id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BulkPutAppsDatastoreItemsRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PutAppsDatastoreItemResponseArray' + description: OK + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Bulk write datastore items + tags: + - Actions Datastores + x-permission: + operator: OR + permissions: + - apps_datastore_write /api/v2/actions/app_key_registrations: get: description: List App Key Registrations @@ -69044,6 +69959,12 @@ tags: description: Find out more at url: https://docs.datadoghq.com/service_management/workflows/connections/ name: Action Connection +- description: 'Leverage the Actions Datastore API to create, modify, and delete + + items in datastores owned by your organization.' + externalDocs: + url: https://docs.datadoghq.com/actions/datastore + name: Actions Datastores - description: "Datadog Agentless Scanning provides visibility into risks and vulnerabilities\nwithin your hosts, running containers, and serverless functions\u2014all without\nrequiring teams to install Agents on every host or where Agents cannot be installed.\nAgentless diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/frozen.json new file mode 100644 index 000000000000..735cfe92c887 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:02.696Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/recording.har new file mode 100644 index 000000000000..c5c86fa64d06 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Bad-Request-response_2469357677/recording.har @@ -0,0 +1,163 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk write datastore items returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"0897a535-85dd-4c5e-ab27-97ed4a8f54fd\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:02.699Z", + "time": 127 + }, + { + "_id": "9ed69b4c6d9288d6a580b5aec67e182d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 177, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 622, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"values\":[{\"id\":\"cust_3141\",\"name\":\"Johnathan\"},{\"badPrimaryKey\":\"key2\",\"name\":\"Johnathan\"}]},\"id\":\"0897a535-85dd-4c5e-ab27-97ed4a8f54fd\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/0897a535-85dd-4c5e-ab27-97ed4a8f54fd/items/bulk" + }, + "response": { + "bodySize": 155, + "content": { + "mimeType": "application/vnd.api+json", + "size": 155, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"24f4ef0c-a849-41dd-8a0e-35338086172c\",\"title\":\"item key missing or invalid\",\"detail\":\"primary column \\\"id\\\" is missing\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 941, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:02.833Z", + "time": 112 + }, + { + "_id": "9a66b7a9d6e631b25df9b58b5cf87968", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/0897a535-85dd-4c5e-ab27-97ed4a8f54fd" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"0897a535-85dd-4c5e-ab27-97ed4a8f54fd\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:02.954Z", + "time": 107 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/frozen.json new file mode 100644 index 000000000000..e0ce0dab5fc7 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.071Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/recording.har new file mode 100644 index 000000000000..c4b1f651808a --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-Not-Found-response_2557073806/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk write datastore items returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "412614fa226516926b5ba7336ea2adc9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 166, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 622, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"values\":[{\"id\":\"cust_3141\",\"name\":\"Johnathan\"},{\"id\":\"cust_3142\",\"name\":\"Mary\"}]},\"id\":\"70b87c26-886f-497a-bd9d-09f53bc9b40c\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/70b87c26-886f-497a-bd9d-09f53bc9b40c/items/bulk" + }, + "response": { + "bodySize": 103, + "content": { + "mimeType": "application/vnd.api+json", + "size": 103, + "text": "{\"errors\":[{\"status\":\"404\",\"id\":\"c90cb65a-90b6-47e8-9662-d36dfef3ffe9\",\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 941, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-29T21:35:03.077Z", + "time": 70 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/frozen.json new file mode 100644 index 000000000000..2c2d4388fd9a --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.157Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/recording.har new file mode 100644 index 000000000000..7e52a7fa17bc --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-write-datastore-items-returns-OK-response_172349745/recording.har @@ -0,0 +1,163 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk write datastore items returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"dee6610c-a9b5-42c3-ab4b-ea131f55c9c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.160Z", + "time": 125 + }, + { + "_id": "40628bcd2e7f14449f1fca9b83b5b7e6", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 122, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 622, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"values\":[{\"id\":\"cust_3141\",\"name\":\"Johnathan\"},{\"id\":\"cust_3142\",\"name\":\"Mary\"}]},\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/dee6610c-a9b5-42c3-ab4b-ea131f55c9c5/items/bulk" + }, + "response": { + "bodySize": 132, + "content": { + "mimeType": "application/vnd.api+json", + "size": 132, + "text": "{\"data\":[{\"id\":\"ce100abd-c60a-486a-b069-d8e34fa75b08\",\"type\":\"items\"},{\"id\":\"765a1eed-8fb5-420a-9e59-dd339a1707dd\",\"type\":\"items\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 941, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.293Z", + "time": 120 + }, + { + "_id": "8d8357ac0a5c01252659931d9688beac", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/dee6610c-a9b5-42c3-ab4b-ea131f55c9c5" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"dee6610c-a9b5-42c3-ab4b-ea131f55c9c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.422Z", + "time": 89 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/frozen.json new file mode 100644 index 000000000000..a2ed5b0f77c3 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.513Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/recording.har new file mode 100644 index 000000000000..6c1e89eaa6da --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Create datastore from import returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "3df0341d8798bab39ae2013c0e55eb56", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 258, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 583, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"datastore-name\",\"primary_column_name\":\"0invalid_name\",\"values\":[{\"primaryKey\":\"key1\",\"value\":{\"data\":\"example data 1\",\"key\":\"value\"}},{\"primaryKey\":\"key2\",\"value\":{\"data\":\"example data 2\",\"key\":\"value\"}}]},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/import" + }, + "response": { + "bodySize": 200, + "content": { + "mimeType": "application/vnd.api+json", + "size": 200, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"996818df-5080-4cfd-bd5a-44c995871c30\",\"title\":\"datastore configuration invalid\",\"detail\":\"column name '0invalid_name' does not start with a letter or an underscore\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 794, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:03.514Z", + "time": 81 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/frozen.json new file mode 100644 index 000000000000..4848caefbc73 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.599Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/recording.har new file mode 100644 index 000000000000..e0e4ab7adf2c --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Create datastore from import returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "2f26f558bcc4fc8b904914a1b1112712", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 194, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 583, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"datastore-name\",\"primary_column_name\":\"primaryKey\",\"values\":[{\"primaryKey\":\"key1\",\"value\":\"Newton\"},{\"primaryKey\":\"key2\",\"value\":\"Leibniz\"}]},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/import" + }, + "response": { + "bodySize": 104, + "content": { + "mimeType": "application/vnd.api+json", + "size": 104, + "text": "{\"data\":{\"id\":\"20c0eef2-c999-4b9f-a0c0-e3aa2ee4e602\",\"type\":\"datastores\",\"attributes\":{\"item_count\":2}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 794, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.600Z", + "time": 135 + }, + { + "_id": "c69ded8453cf81486010b9ff9388caea", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/20c0eef2-c999-4b9f-a0c0-e3aa2ee4e602" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"20c0eef2-c999-4b9f-a0c0-e3aa2ee4e602\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.743Z", + "time": 116 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/frozen.json new file mode 100644 index 000000000000..14b025c4e11e --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.867Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/recording.har new file mode 100644 index 000000000000..d38ca5024931 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Create datastore returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dd2db85ee1858240b00877862d9d896a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 106, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"datastore-name\",\"primary_column_name\":\"0invalid_key\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 199, + "content": { + "mimeType": "application/vnd.api+json", + "size": 199, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"7fb0d7af-ab2a-4c6b-b060-b10669012608\",\"title\":\"datastore configuration invalid\",\"detail\":\"column name '0invalid_key' does not start with a letter or an underscore\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:03.871Z", + "time": 92 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/frozen.json new file mode 100644 index 000000000000..385d534b31fc --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:03.967Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/recording.har new file mode 100644 index 000000000000..4799f1eda264 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Create datastore returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "0ff3d90c15dd9e7623c0ab147a12dd44", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 104, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"datastore-name\",\"primary_column_name\":\"primaryKey\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"e9042666-6cd4-4fe1-911c-9271b9c00469\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:03.969Z", + "time": 100 + }, + { + "_id": "686db8ffd8936de409da3d782674b6af", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/e9042666-6cd4-4fe1-911c-9271b9c00469" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"e9042666-6cd4-4fe1-911c-9271b9c00469\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.071Z", + "time": 91 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/frozen.json new file mode 100644 index 000000000000..fac411d35fbb --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:04.165Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/recording.har new file mode 100644 index 000000000000..ee2a623a3ec3 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Delete datastore item returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "091ff7907e3091cbb21c73405ce42e9f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 84, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 590, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"item_key\":\"primaryKey\"},\"id\":\"invalid-uuid\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid/items" + }, + "response": { + "bodySize": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"752730df-08dc-4e40-9f93-84e0ca26f80c\",\"title\":\"invalid path parameter\",\"detail\":\"invalid datastoreId format in path\",\"source\":{\"parameter\":\"datastoreId\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:04.166Z", + "time": 87 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/frozen.json new file mode 100644 index 000000000000..afac127aef4d --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:04.259Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/recording.har new file mode 100644 index 000000000000..3eba8f1abb65 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Delete datastore item returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "984b772674e6efef34d2cfa186a669ad", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 108, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 615, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"item_key\":\"primaryKey\"},\"id\":\"70b87c26-886f-497a-bd9d-09f53bc9b40c\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/70b87c26-886f-497a-bd9d-09f53bc9b40c/items" + }, + "response": { + "bodySize": 103, + "content": { + "mimeType": "application/vnd.api+json", + "size": 103, + "text": "{\"errors\":[{\"status\":\"404\",\"id\":\"50f3e691-47e4-4810-b918-e0a9e501b4ab\",\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 806, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-29T21:35:04.261Z", + "time": 96 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/frozen.json new file mode 100644 index 000000000000..86ba48c7acfb --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:04.364Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/recording.har new file mode 100644 index 000000000000..5d285f835698 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/recording.har @@ -0,0 +1,216 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Delete datastore item returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"db5c5a0b-87ee-4747-9dfa-de2edd6910c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.371Z", + "time": 103 + }, + { + "_id": "14c432ad14b8e885c9b910ca92630668", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 130, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 612, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"value\":{\"data\":\"test-value\",\"id\":\"test-key\"}},\"id\":\"263cb32b-0e88-48d5-8b60-1e3b58d5a43d\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/db5c5a0b-87ee-4747-9dfa-de2edd6910c5/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"720541b7-325b-463c-a755-558e1460bd36\",\"type\":\"items\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.480Z", + "time": 93 + }, + { + "_id": "1e93ead98aa1b7b0ccb1eabf5f05b71c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 106, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 615, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"item_key\":\"test-key\"},\"id\":\"db5c5a0b-87ee-4747-9dfa-de2edd6910c5\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/db5c5a0b-87ee-4747-9dfa-de2edd6910c5/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"720541b7-325b-463c-a755-558e1460bd36\",\"type\":\"items\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.581Z", + "time": 100 + }, + { + "_id": "7d1927a252069239e37eab10204512a0", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/db5c5a0b-87ee-4747-9dfa-de2edd6910c5" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"db5c5a0b-87ee-4747-9dfa-de2edd6910c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.689Z", + "time": 84 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/frozen.json new file mode 100644 index 000000000000..a35dded5e711 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:04.778Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/recording.har new file mode 100644 index 000000000000..65e56a711245 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Delete datastore returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "9ac967a08efe4c445259d4058c442635", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 515, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid" + }, + "response": { + "bodySize": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"66fae709-c312-4dd5-9ed7-eb8d1036b051\",\"title\":\"invalid path parameter\",\"detail\":\"invalid datastoreId format in path\",\"source\":{\"parameter\":\"datastoreId\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:04.782Z", + "time": 91 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/frozen.json new file mode 100644 index 000000000000..d2d2ff923072 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:04.881Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/recording.har new file mode 100644 index 000000000000..41f1be329b4b --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/recording.har @@ -0,0 +1,152 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Delete datastore returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"9276d913-9f79-4fec-a198-57b169ca9c89\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.883Z", + "time": 104 + }, + { + "_id": "26e6adc228e91d114765e93c20081573", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/9276d913-9f79-4fec-a198-57b169ca9c89" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"9276d913-9f79-4fec-a198-57b169ca9c89\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:04.993Z", + "time": 82 + }, + { + "_id": "26e6adc228e91d114765e93c20081573", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/9276d913-9f79-4fec-a198-57b169ca9c89" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "application/vnd.api+json", + "size": 0 + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 657, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.080Z", + "time": 78 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/frozen.json new file mode 100644 index 000000000000..441607be5744 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.160Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/recording.har new file mode 100644 index 000000000000..e45580441ccb --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Get datastore returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "5e548b9da68e566f45ffe15937232294", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 522, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid" + }, + "response": { + "bodySize": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"d6463757-83d3-4494-b6d8-9871405c6513\",\"title\":\"invalid path parameter\",\"detail\":\"invalid datastoreId format in path\",\"source\":{\"parameter\":\"datastoreId\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:05.162Z", + "time": 80 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/frozen.json new file mode 100644 index 000000000000..be9e4063a2fa --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.247Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/recording.har new file mode 100644 index 000000000000..9182d4d4463f --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Get datastore returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "a60a64ca808862eefdc668fcf8999c3a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 546, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/5bf53b3f-b230-4b35-ab1a-b39f2633eb22" + }, + "response": { + "bodySize": 103, + "content": { + "mimeType": "application/vnd.api+json", + "size": 103, + "text": "{\"errors\":[{\"status\":\"404\",\"id\":\"ed0f2851-9b29-4323-bd5b-37a701a17207\",\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-29T21:35:05.249Z", + "time": 101 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/frozen.json new file mode 100644 index 000000000000..db4bdf43756a --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.354Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/recording.har new file mode 100644 index 000000000000..2723ade2a49d --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/recording.har @@ -0,0 +1,153 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Get datastore returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"f21ed922-eb4b-41e0-8906-424252c7ace7\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.355Z", + "time": 103 + }, + { + "_id": "5e914efc78d95ae3fd3faad6fe385322", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 546, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f21ed922-eb4b-41e0-8906-424252c7ace7" + }, + "response": { + "bodySize": 386, + "content": { + "mimeType": "application/vnd.api+json", + "size": 386, + "text": "{\"data\":{\"id\":\"f21ed922-eb4b-41e0-8906-424252c7ace7\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-29T21:35:05.441762Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-29T21:35:05.441762Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.462Z", + "time": 95 + }, + { + "_id": "42af184ac4a1e399e0a7dd781c759f6d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f21ed922-eb4b-41e0-8906-424252c7ace7" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"f21ed922-eb4b-41e0-8906-424252c7ace7\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.562Z", + "time": 103 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/frozen.json new file mode 100644 index 000000000000..c8ca95743957 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.667Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/recording.har b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/recording.har new file mode 100644 index 000000000000..82a49717fe63 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/List datastore items returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "89734d049511bd4e2cfcbdcea411cf1a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 534, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid/items" + }, + "response": { + "bodySize": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"689856ae-2b7f-44ba-9ff2-df0045865d4f\",\"title\":\"invalid path parameter\",\"detail\":\"invalid datastoreId format in path\",\"source\":{\"parameter\":\"datastoreId\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:05.668Z", + "time": 79 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/frozen.json new file mode 100644 index 000000000000..569db3ed6e50 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.751Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/recording.har b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/recording.har new file mode 100644 index 000000000000..d40318618cae --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/List datastore items returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "ab8625afa894dd2d0418a800c34fea08", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 558, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/3cfdd0b8-c490-4969-8d51-69add64a70ea/items" + }, + "response": { + "bodySize": 103, + "content": { + "mimeType": "application/vnd.api+json", + "size": 103, + "text": "{\"errors\":[{\"status\":\"404\",\"id\":\"a8dfcf36-0642-4274-919a-4e292d483ca2\",\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-29T21:35:05.752Z", + "time": 92 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/frozen.json new file mode 100644 index 000000000000..257e14de4fd0 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:05.848Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/recording.har b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/recording.har new file mode 100644 index 000000000000..582c1631b88d --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/recording.har @@ -0,0 +1,206 @@ +{ + "log": { + "_recordingName": "Actions Datastores/List datastore items returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"ce9fa438-af5e-45da-8de1-d9a786bf28cd\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.849Z", + "time": 106 + }, + { + "_id": "ded898040394a466561fc548f9256f73", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 130, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 612, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"value\":{\"data\":\"test-value\",\"id\":\"test-key\"}},\"id\":\"263cb32b-0e88-48d5-8b60-1e3b58d5a43d\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/ce9fa438-af5e-45da-8de1-d9a786bf28cd/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"fe3c4075-7a0f-45ff-b4a5-2a0a64f1f721\",\"type\":\"items\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:05.960Z", + "time": 121 + }, + { + "_id": "77091f4bdd93ba766f40cc1c0eb8097c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 558, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/ce9fa438-af5e-45da-8de1-d9a786bf28cd/items" + }, + "response": { + "bodySize": 846, + "content": { + "mimeType": "application/vnd.api+json", + "size": 846, + "text": "{\"data\":[{\"id\":\"fe3c4075-7a0f-45ff-b4a5-2a0a64f1f721\",\"type\":\"items\",\"attributes\":{\"created_at\":\"2025-08-29T21:35:06.078802Z\",\"modified_at\":\"2025-08-29T21:35:06.078802Z\",\"org_id\":321813,\"primary_column_name\":\"id\",\"signature\":\"{\\\"signature\\\":\\\"{\\\\\\\"version\\\\\\\":2,\\\\\\\"algorithm\\\\\\\":\\\\\\\"ecdsa-p384\\\\\\\",\\\\\\\"pubkey\\\\\\\":\\\\\\\"3Sh//jFQJZ+uhUOwvHL8krXnbOjEFxMZrYnngo8J/AY=\\\\\\\",\\\\\\\"timestamp\\\\\\\":1756503306,\\\\\\\"proof\\\\\\\":\\\\\\\"MGQCMGyi06wRNayVzrvrR91VMeiIVi3WlRr5CIOHlCuPQZhdZ9xzEcDFEbY//WVikv5eTQIwQJF0SIq+f5j41UaMSpP48WyLBb6BNvv/M70UYVxTLAw1O4xkeroiVsNVNAeMPkLO\\\\\\\"}\\\",\\\"version\\\":1}\",\"store_id\":\"ce9fa438-af5e-45da-8de1-d9a786bf28cd\",\"value\":{\"data\":\"test-value\",\"id\":\"test-key\"}}}],\"meta\":{\"page\":{\"totalCount\":1,\"totalFilteredCount\":1,\"hasMore\":false},\"schema\":{\"primary_key\":\"id\",\"fields\":[{\"name\":\"id\",\"type\":\"STRING\"},{\"name\":\"data\",\"type\":\"JSON\"}]}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.085Z", + "time": 107 + }, + { + "_id": "d206608c2dadcb643b693844ff4df1a6", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/ce9fa438-af5e-45da-8de1-d9a786bf28cd" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"ce9fa438-af5e-45da-8de1-d9a786bf28cd\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.200Z", + "time": 78 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/frozen.json new file mode 100644 index 000000000000..69127c57a7a5 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:06.283Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/recording.har b/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/recording.har new file mode 100644 index 000000000000..f8c1ec61584c --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Actions Datastores/List datastores returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "ab9667182c5694c8d72ab79d99b6f9f6", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 511, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 15504, + "content": { + "mimeType": "application/vnd.api+json", + "size": 15504, + "text": "{\"data\":[{\"id\":\"0ff20856-6af3-4b8a-bfa6-26ffd7f61551\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:45:48.532915Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:45:48.532915Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"1c60feb8-f9ea-4b81-9f7d-b0ae97b10cc7\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T21:33:38.587401Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T21:33:38.587401Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"1d38b58d-d7ac-4a47-be37-6457cea49630\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:42:31.923013Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:42:31.923013Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"1d6f1853-eb64-43a3-a85b-b187853393c7\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:41:27.399846Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:41:27.399846Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"236e7736-44d9-40d0-985f-1ab73f25ad09\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T18:02:29.490155Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T18:02:29.490155Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"2b0704ce-1efd-4485-976b-f272ea39a9b9\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T14:02:11.360529Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T14:02:11.360529Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"2bccd24d-715d-473f-8771-eff9370d14b9\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:07.258146Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:07.258146Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"31af63e6-8363-45a4-ad6b-d92ec256b005\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:27:41.246238Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:27:41.246238Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"3d4f33dd-41af-4b4e-94e0-a142cd47f83d\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:58:55.363703Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:58:55.363703Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"44f23b41-3925-4620-b5ad-641c0cac57b9\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:30:39.520162Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:30:39.520162Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"457cae9c-32ad-4598-9ac0-489c7d4fc20b\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:07:54.05107Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:07:54.05107Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"55a92f3e-6804-4f45-9ecf-7c09cef155ed\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:33:42.534986Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:33:42.534987Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"5b3664f0-faaa-4f1b-b067-f521aa156516\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:35:02.776449Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:35:02.776449Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"7059cb1d-20f6-44e6-a5ee-8eeb19b799e2\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:24:03.907384Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:24:03.907384Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"7ef9ca96-be6d-435c-b452-9e562beedb4a\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:27:38.411129Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:27:38.411129Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"8204dff8-7335-4e33-a28b-8f8a0dd47ad0\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T14:08:19.382083Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T14:08:19.382083Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"84e4ca89-9266-4fb3-a552-e6da080abc3f\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T18:11:58.405584Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T18:11:58.405584Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"858032d2-1c2f-4ac1-a434-de5773fc14c2\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T02:55:43.831724Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T02:55:43.831724Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"89c95311-d63a-4535-be9d-92a3912ec074\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T21:24:28.298273Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T21:24:28.298273Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"8b0fb519-c55f-45d5-b532-1645bed41a92\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:54:02.27972Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:54:02.27972Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"99366571-d1de-4a6f-9213-5c77a5468de9\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:50:10.748216Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:50:10.748217Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"9d9d7162-cfd2-40f1-b413-d2df89a5eba9\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:28:50.178882Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:28:50.178882Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"a751bca4-54eb-4739-a4a3-4779650f9fad\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:45:28.881437Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:45:28.881437Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"a78fe3e0-4325-459f-aca4-69c084ab818d\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:22:37.043971Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:22:37.043972Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"aec831f3-cbc3-411f-8ef0-23fdb834d549\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:36:12.428171Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:36:12.428171Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"b55b6d33-da75-4432-85fc-e0f0a28b4826\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:38:13.641577Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:38:13.641578Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"bd5e4649-674b-444f-850c-74625b0be9ab\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T18:03:00.425892Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T18:03:00.425892Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"be6825fd-82d5-4d9d-8db5-cc674404b710\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:01:57.110842Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:01:57.110843Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"c412c4b3-7d3d-4ac3-ace6-99abfc0a8567\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T02:57:09.998039Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T02:57:09.998039Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"c698d221-5dc9-44d3-ae61-a6a422d204ab\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:18:11.876246Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:18:11.876246Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"cd915e84-87b1-495d-a868-9c24578696e3\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:36:53.994588Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:36:53.994588Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"cfadef50-963b-45fa-8334-f33094ca6d76\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T14:29:33.425183Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T14:29:33.425183Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"d018730c-26cb-47af-ba93-3604d8a8ad74\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:35:23.034496Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:35:23.034496Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"d14f84a9-9a26-4b0d-bd6d-f7baf8c9a9ae\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:30:07.452804Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:30:07.452804Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"d3dedf8d-6620-4dec-bb8b-b0fa53b19135\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:45:16.371907Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:45:16.371907Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"d8cdfbae-8ec9-4c50-8459-5d55a7b5a945\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T17:27:01.039091Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T17:27:01.039091Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"de765300-fca1-4ab2-a441-a6633cd7f976\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T14:11:34.405607Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T14:11:34.405607Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"e174ff20-eff7-40b9-a472-b8ce2a8492d8\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T20:40:08.137413Z\",\"creator_user_id\":2320499,\"creator_user_uuid\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"description\":\"\",\"modified_at\":\"2025-08-11T20:40:08.137413Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"ea68e1d7-6e4d-40d2-a67f-f5c3c54aab2b\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:03:21.673996Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:03:21.673996Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"ee56b789-56b6-481c-851b-d0c14a7228d4\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T13:44:50.073893Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T13:44:50.073894Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}},{\"id\":\"f5a8ac6e-0cfb-44ad-b71d-28fd40a210a6\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-08T03:36:29.121686Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-08T03:36:29.121686Z\",\"name\":\"Test Datastore\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 666, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.285Z", + "time": 88 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/frozen.json new file mode 100644 index 000000000000..f4b51ba6ebe7 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:06.380Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/recording.har new file mode 100644 index 000000000000..a21f5eb10037 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Update datastore returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "f7e2be7c9634a82bc51d7c0402fda314", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 66, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 579, + "httpVersion": "HTTP/1.1", + "method": "PATCH", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{},\"id\":\"invalid-uuid\",\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid" + }, + "response": { + "bodySize": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"bea9975d-a9cd-43dc-bb3c-df0f8fc09ea4\",\"title\":\"invalid path parameter\",\"detail\":\"invalid datastoreId format in path\",\"source\":{\"parameter\":\"datastoreId\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:06.383Z", + "time": 97 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/frozen.json new file mode 100644 index 000000000000..f7e10d354db9 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:06.489Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/recording.har new file mode 100644 index 000000000000..34ddd47d9430 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Update datastore returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "7492d56221090cf2be6e1cef2c60d941", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 111, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 604, + "httpVersion": "HTTP/1.1", + "method": "PATCH", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"updated name\"},\"id\":\"c1eb5bb8-726a-4e59-9a61-ccbb26f95329\",\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/c1eb5bb8-726a-4e59-9a61-ccbb26f95329" + }, + "response": { + "bodySize": 103, + "content": { + "mimeType": "application/vnd.api+json", + "size": 103, + "text": "{\"errors\":[{\"status\":\"404\",\"id\":\"dcf18cf0-41a0-453b-b589-c2caec54f898\",\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-29T21:35:06.492Z", + "time": 92 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/frozen.json new file mode 100644 index 000000000000..8ed3945fc7c8 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:06.591Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/recording.har new file mode 100644 index 000000000000..ad4c04be15a4 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/recording.har @@ -0,0 +1,163 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Update datastore returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"39aebb3a-b164-4958-a7b1-b913ed7fa6c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.593Z", + "time": 109 + }, + { + "_id": "c0f2c1a9a4e5e20f17818bdc12484d32", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 111, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 604, + "httpVersion": "HTTP/1.1", + "method": "PATCH", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"updated name\"},\"id\":\"39aebb3a-b164-4958-a7b1-b913ed7fa6c5\",\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/39aebb3a-b164-4958-a7b1-b913ed7fa6c5" + }, + "response": { + "bodySize": 383, + "content": { + "mimeType": "application/vnd.api+json", + "size": 383, + "text": "{\"data\":{\"id\":\"39aebb3a-b164-4958-a7b1-b913ed7fa6c5\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-29T21:35:06.68526Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-29T21:35:06.812398Z\",\"name\":\"updated name\",\"org_id\":321813,\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.708Z", + "time": 105 + }, + { + "_id": "688a47eedf2c44b7c5f51daf0cf9f25a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/39aebb3a-b164-4958-a7b1-b913ed7fa6c5" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"39aebb3a-b164-4958-a7b1-b913ed7fa6c5\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.818Z", + "time": 128 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/frozen.json new file mode 100644 index 000000000000..179627a37da4 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:06.949Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/recording.har new file mode 100644 index 000000000000..9039f7410a99 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-Bad-Request-response_2226585896/recording.har @@ -0,0 +1,163 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Write datastore item returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"f5bb885b-d05e-4a9f-97f6-c050a5ba771b\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 657, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:06.950Z", + "time": 97 + }, + { + "_id": "0495f096ec5225564ddb261841af589e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 71, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 611, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"value\":{\"missing\":\"item-key\"}},\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f5bb885b-d05e-4a9f-97f6-c050a5ba771b/items" + }, + "response": { + "bodySize": 155, + "content": { + "mimeType": "application/vnd.api+json", + "size": 155, + "text": "{\"errors\":[{\"status\":\"400\",\"id\":\"be36891b-613e-4a1a-bca8-5bcb05cfb1b5\",\"title\":\"item key missing or invalid\",\"detail\":\"primary column \\\"id\\\" is missing\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 805, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-29T21:35:07.053Z", + "time": 87 + }, + { + "_id": "088d68e83bbc9d40df97a9f7a0eb9c02", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f5bb885b-d05e-4a9f-97f6-c050a5ba771b" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"f5bb885b-d05e-4a9f-97f6-c050a5ba771b\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 657, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:07.149Z", + "time": 90 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/frozen.json new file mode 100644 index 000000000000..d56401c459de --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/frozen.json @@ -0,0 +1 @@ +"2025-08-29T21:35:07.246Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/recording.har new file mode 100644 index 000000000000..896d7d790c28 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Write-datastore-item-returns-OK-response_3788657478/recording.har @@ -0,0 +1,163 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Write datastore item returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "6574cf7e1c5524e145d2b92f9fa74d2c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 181, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 566, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"8afbd887-9465-45f4-8a3f-78d6bba0724c\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 657, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:07.249Z", + "time": 111 + }, + { + "_id": "14c1b8b6ccbbbbf9528efa64734efdca", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 150, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 612, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"value\":{\"data\":\"example data\",\"id\":\"new-item-key\",\"key\":\"value\"}},\"id\":\"e7e64418-b60c-4789-9612-895ac8423207\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/8afbd887-9465-45f4-8a3f-78d6bba0724c/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"cb77f9d6-532d-4d43-b5db-6a48012d9d3d\",\"type\":\"items\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 804, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:07.367Z", + "time": 97 + }, + { + "_id": "1b58b1fd9867e4a60cef00718f05389f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 539, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/8afbd887-9465-45f4-8a3f-78d6bba0724c" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"8afbd887-9465-45f4-8a3f-78d6bba0724c\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 657, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-29T21:35:07.470Z", + "time": 99 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/examples/v2/actions-datastores/BulkWriteDatastoreItems.ts b/examples/v2/actions-datastores/BulkWriteDatastoreItems.ts new file mode 100644 index 000000000000..a63d8061cc23 --- /dev/null +++ b/examples/v2/actions-datastores/BulkWriteDatastoreItems.ts @@ -0,0 +1,41 @@ +/** + * Bulk write datastore items returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiBulkWriteDatastoreItemsRequest = { + body: { + data: { + attributes: { + values: [ + { + id: "cust_3141", + name: "Johnathan", + }, + { + id: "cust_3142", + name: "Mary", + }, + ], + }, + type: "items", + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .bulkWriteDatastoreItems(params) + .then((data: v2.PutAppsDatastoreItemResponseArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/CreateDatastore.ts b/examples/v2/actions-datastores/CreateDatastore.ts new file mode 100644 index 000000000000..3bef3cef6b75 --- /dev/null +++ b/examples/v2/actions-datastores/CreateDatastore.ts @@ -0,0 +1,29 @@ +/** + * Create datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +const params: v2.ActionsDatastoresApiCreateDatastoreRequest = { + body: { + data: { + attributes: { + name: "datastore-name", + primaryColumnName: "primaryKey", + }, + type: "datastores", + }, + }, +}; + +apiInstance + .createDatastore(params) + .then((data: v2.CreateAppsDatastoreResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/CreateDatastoreFromImport.ts b/examples/v2/actions-datastores/CreateDatastoreFromImport.ts new file mode 100644 index 000000000000..14b8cf527e5a --- /dev/null +++ b/examples/v2/actions-datastores/CreateDatastoreFromImport.ts @@ -0,0 +1,39 @@ +/** + * Create datastore from import returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +const params: v2.ActionsDatastoresApiCreateDatastoreFromImportRequest = { + body: { + data: { + attributes: { + name: "datastore-name", + primaryColumnName: "primaryKey", + values: [ + { + primaryKey: "key1", + value: "Newton", + }, + { + primaryKey: "key2", + value: "Leibniz", + }, + ], + }, + type: "datastores", + }, + }, +}; + +apiInstance + .createDatastoreFromImport(params) + .then((data: v2.CreateAppsDatastoreFromImportResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/DeleteDatastore.ts b/examples/v2/actions-datastores/DeleteDatastore.ts new file mode 100644 index 000000000000..6f33e0700ac7 --- /dev/null +++ b/examples/v2/actions-datastores/DeleteDatastore.ts @@ -0,0 +1,24 @@ +/** + * Delete datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiDeleteDatastoreRequest = { + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .deleteDatastore(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/DeleteDatastoreItem.ts b/examples/v2/actions-datastores/DeleteDatastoreItem.ts new file mode 100644 index 000000000000..a5220d0dc773 --- /dev/null +++ b/examples/v2/actions-datastores/DeleteDatastoreItem.ts @@ -0,0 +1,33 @@ +/** + * Delete datastore item returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiDeleteDatastoreItemRequest = { + body: { + data: { + attributes: { + itemKey: "test-key", + }, + type: "items", + id: DATASTORE_DATA_ID, + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .deleteDatastoreItem(params) + .then((data: v2.DeleteAppsDatastoreItemResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/GetDatastore.ts b/examples/v2/actions-datastores/GetDatastore.ts new file mode 100644 index 000000000000..34955035ff80 --- /dev/null +++ b/examples/v2/actions-datastores/GetDatastore.ts @@ -0,0 +1,24 @@ +/** + * Get datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiGetDatastoreRequest = { + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .getDatastore(params) + .then((data: v2.Datastore) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/ListDatastoreItems.ts b/examples/v2/actions-datastores/ListDatastoreItems.ts new file mode 100644 index 000000000000..e9df7d2a5c0f --- /dev/null +++ b/examples/v2/actions-datastores/ListDatastoreItems.ts @@ -0,0 +1,24 @@ +/** + * List datastore items returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiListDatastoreItemsRequest = { + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .listDatastoreItems(params) + .then((data: v2.ItemApiPayloadArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/ListDatastores.ts b/examples/v2/actions-datastores/ListDatastores.ts new file mode 100644 index 000000000000..c5c3894d96a3 --- /dev/null +++ b/examples/v2/actions-datastores/ListDatastores.ts @@ -0,0 +1,17 @@ +/** + * List datastores returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +apiInstance + .listDatastores() + .then((data: v2.DatastoreArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/UpdateDatastore.ts b/examples/v2/actions-datastores/UpdateDatastore.ts new file mode 100644 index 000000000000..7c3e55f4c6ab --- /dev/null +++ b/examples/v2/actions-datastores/UpdateDatastore.ts @@ -0,0 +1,33 @@ +/** + * Update datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiUpdateDatastoreRequest = { + body: { + data: { + attributes: { + name: "updated name", + }, + type: "datastores", + id: DATASTORE_DATA_ID, + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .updateDatastore(params) + .then((data: v2.Datastore) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/actions-datastores/WriteDatastoreItem.ts b/examples/v2/actions-datastores/WriteDatastoreItem.ts new file mode 100644 index 000000000000..c7d9c01d7e92 --- /dev/null +++ b/examples/v2/actions-datastores/WriteDatastoreItem.ts @@ -0,0 +1,37 @@ +/** + * Write datastore item returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// there is a valid "datastore" in the system +const DATASTORE_DATA_ID = process.env.DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiWriteDatastoreItemRequest = { + body: { + data: { + attributes: { + value: { + id: "new-item-key", + data: "example data", + key: "value", + }, + }, + type: "items", + id: "e7e64418-b60c-4789-9612-895ac8423207", + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .writeDatastoreItem(params) + .then((data: v2.PutAppsDatastoreItemResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 83bb2b3f84ad..46735d4454f6 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -2344,6 +2344,108 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "v1.Validate": { "operationResponseType": "AuthenticationValidationResponse", }, + "v2.ListDatastores": { + "operationResponseType": "DatastoreArray", + }, + "v2.CreateDatastore": { + "body": { + "type": "CreateAppsDatastoreRequest", + "format": "", + }, + "operationResponseType": "CreateAppsDatastoreResponse", + }, + "v2.CreateDatastoreFromImport": { + "body": { + "type": "CreateAppsDatastoreFromImportRequest", + "format": "", + }, + "operationResponseType": "CreateAppsDatastoreFromImportResponse", + }, + "v2.GetDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "operationResponseType": "Datastore", + }, + "v2.DeleteDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "operationResponseType": "{}", + }, + "v2.UpdateDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "UpdateAppsDatastoreRequest", + "format": "", + }, + "operationResponseType": "Datastore", + }, + "v2.ListDatastoreItems": { + "datastoreId": { + "type": "string", + "format": "", + }, + "filter": { + "type": "string", + "format": "", + }, + "itemKey": { + "type": "string", + "format": "", + }, + "pageLimit": { + "type": "number", + "format": "int64", + }, + "pageOffset": { + "type": "number", + "format": "int64", + }, + "sort": { + "type": "string", + "format": "", + }, + "operationResponseType": "ItemApiPayloadArray", + }, + "v2.WriteDatastoreItem": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "PutAppsDatastoreItemRequest", + "format": "", + }, + "operationResponseType": "PutAppsDatastoreItemResponse", + }, + "v2.DeleteDatastoreItem": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "DeleteAppsDatastoreItemRequest", + "format": "", + }, + "operationResponseType": "DeleteAppsDatastoreItemResponse", + }, + "v2.BulkWriteDatastoreItems": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "BulkPutAppsDatastoreItemsRequest", + "format": "", + }, + "operationResponseType": "PutAppsDatastoreItemResponseArray", + }, "v2.ListAppKeyRegistrations": { "pageSize": { "type": "number", diff --git a/features/v2/actions_datastores.feature b/features/v2/actions_datastores.feature new file mode 100644 index 000000000000..c69ed19478ed --- /dev/null +++ b/features/v2/actions_datastores.feature @@ -0,0 +1,232 @@ +@endpoint(actions-datastores) @endpoint(actions-datastores-v2) +Feature: Actions Datastores + Leverage the Actions Datastore API to create, modify, and delete items in + datastores owned by your organization. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "ActionsDatastores" API + + @team:DataDog/app-builder-backend + Scenario: Bulk write datastore items returns "Bad Request" response + Given new "BulkWriteDatastoreItems" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"values": [{"id": "cust_3141", "name": "Johnathan"}, {"badPrimaryKey": "key2", "name": "Johnathan"}]}, "type": "items", "id": "{{datastore.data.id}}"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "item key missing or invalid" + + @team:DataDog/app-builder-backend + Scenario: Bulk write datastore items returns "Not Found" response + Given new "BulkWriteDatastoreItems" request + And request contains "datastore_id" parameter with value "70b87c26-886f-497a-bd9d-09f53bc9b40c" + And body with value {"data": {"attributes": {"values": [{"id": "cust_3141", "name": "Johnathan"}, {"id": "cust_3142", "name": "Mary"}]}, "type": "items", "id": "70b87c26-886f-497a-bd9d-09f53bc9b40c"}} + When the request is sent + Then the response status is 404 Not Found + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore not found" + + @team:DataDog/app-builder-backend + Scenario: Bulk write datastore items returns "OK" response + Given new "BulkWriteDatastoreItems" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"values": [{"id": "cust_3141", "name": "Johnathan"}, {"id": "cust_3142", "name": "Mary"}]}, "type": "items"}} + When the request is sent + Then the response status is 200 OK + And the response "data" has length 2 + + @team:DataDog/app-builder-backend + Scenario: Create datastore from import returns "Bad Request" response + Given new "CreateDatastoreFromImport" request + And body with value {"data": {"attributes": {"name": "datastore-name", "primary_column_name": "0invalid_name", "values": [{"primaryKey": "key1", "value": {"data": "example data 1", "key": "value"}}, {"primaryKey": "key2", "value": {"data": "example data 2", "key": "value"}}]}, "type": "datastores"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore configuration invalid" + + @team:DataDog/app-builder-backend + Scenario: Create datastore from import returns "OK" response + Given new "CreateDatastoreFromImport" request + And body with value {"data": {"attributes": {"name": "datastore-name", "primary_column_name": "primaryKey", "values": [{"primaryKey": "key1", "value": "Newton"}, {"primaryKey": "key2", "value": "Leibniz"}]}, "type": "datastores"}} + When the request is sent + Then the response status is 200 OK + And the response "data.attributes.item_count" is equal to 2 + + @team:DataDog/app-builder-backend + Scenario: Create datastore returns "Bad Request" response + Given new "CreateDatastore" request + And body with value {"data": {"attributes": {"name": "datastore-name", "primary_column_name": "0invalid_key"}, "type": "datastores"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore configuration invalid" + + @team:DataDog/app-builder-backend + Scenario: Create datastore returns "OK" response + Given new "CreateDatastore" request + And body with value {"data": {"attributes": {"name": "datastore-name", "primary_column_name": "primaryKey"}, "type": "datastores"}} + When the request is sent + Then the response status is 200 OK + + @team:DataDog/app-builder-backend + Scenario: Delete datastore item returns "Bad Request" response + Given new "DeleteDatastoreItem" request + And request contains "datastore_id" parameter with value "invalid-uuid" + And body with value {"data": {"attributes": {"item_key": "primaryKey"}, "type": "items", "id": "invalid-uuid"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "invalid path parameter" + + @team:DataDog/app-builder-backend + Scenario: Delete datastore item returns "Not Found" response + Given new "DeleteDatastoreItem" request + And request contains "datastore_id" parameter with value "70b87c26-886f-497a-bd9d-09f53bc9b40c" + And body with value {"data": {"attributes": {"item_key": "primaryKey"}, "type": "items", "id": "70b87c26-886f-497a-bd9d-09f53bc9b40c"}} + When the request is sent + Then the response status is 404 Not Found + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore not found" + + @skip-typescript @team:DataDog/app-builder-backend + Scenario: Delete datastore item returns "OK" response + Given new "DeleteDatastoreItem" request + And there is a valid "datastore" in the system + And there is a valid "datastore_item" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"item_key": "test-key"}, "type": "items", "id": "{{datastore.data.id}}"}} + When the request is sent + Then the response status is 200 OK + + @team:DataDog/app-builder-backend + Scenario: Delete datastore returns "Bad Request" response + Given new "DeleteDatastore" request + And request contains "datastore_id" parameter with value "invalid-uuid" + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "invalid path parameter" + + @skip-typescript @skip-validation @team:DataDog/app-builder-backend + Scenario: Delete datastore returns "OK" response + Given new "DeleteDatastore" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + When the request is sent + Then the response status is 200 OK + + @team:DataDog/app-builder-backend + Scenario: Get datastore returns "Bad Request" response + Given new "GetDatastore" request + And request contains "datastore_id" parameter with value "invalid-uuid" + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "invalid path parameter" + + @team:DataDog/app-builder-backend + Scenario: Get datastore returns "Not Found" response + Given new "GetDatastore" request + And request contains "datastore_id" parameter with value "5bf53b3f-b230-4b35-ab1a-b39f2633eb22" + When the request is sent + Then the response status is 404 Not Found + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore not found" + + @team:DataDog/app-builder-backend + Scenario: Get datastore returns "OK" response + Given new "GetDatastore" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + When the request is sent + Then the response status is 200 OK + And the response "data.id" is equal to "{{datastore.data.id}}" + + @team:DataDog/app-builder-backend + Scenario: List datastore items returns "Bad Request" response + Given new "ListDatastoreItems" request + And request contains "datastore_id" parameter with value "invalid-uuid" + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "invalid path parameter" + + @team:DataDog/app-builder-backend + Scenario: List datastore items returns "Not Found" response + Given new "ListDatastoreItems" request + And request contains "datastore_id" parameter with value "3cfdd0b8-c490-4969-8d51-69add64a70ea" + When the request is sent + Then the response status is 404 Not Found + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore not found" + + @skip-typescript @team:DataDog/app-builder-backend + Scenario: List datastore items returns "OK" response + Given new "ListDatastoreItems" request + And there is a valid "datastore" in the system + And there is a valid "datastore_item" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + When the request is sent + Then the response status is 200 OK + And the response "data" has length 1 + And the response "data[0].id" is equal to "{{datastore_item.data.id}}" + + @team:DataDog/app-builder-backend + Scenario: List datastores returns "OK" response + Given new "ListDatastores" request + When the request is sent + Then the response status is 200 OK + + @team:DataDog/app-builder-backend + Scenario: Update datastore returns "Bad Request" response + Given new "UpdateDatastore" request + And request contains "datastore_id" parameter with value "invalid-uuid" + And body with value {"data": {"attributes": {}, "type": "datastores", "id": "invalid-uuid"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "invalid path parameter" + + @team:DataDog/app-builder-backend + Scenario: Update datastore returns "Not Found" response + Given new "UpdateDatastore" request + And request contains "datastore_id" parameter with value "c1eb5bb8-726a-4e59-9a61-ccbb26f95329" + And body with value {"data": {"attributes": {"name": "updated name"}, "type": "datastores", "id": "c1eb5bb8-726a-4e59-9a61-ccbb26f95329"}} + When the request is sent + Then the response status is 404 Not Found + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "datastore not found" + + @team:DataDog/app-builder-backend + Scenario: Update datastore returns "OK" response + Given new "UpdateDatastore" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"name": "updated name"}, "type": "datastores", "id": "{{datastore.data.id}}"}} + When the request is sent + Then the response status is 200 OK + And the response "data.attributes.name" is equal to "updated name" + + @team:DataDog/app-builder-backend + Scenario: Write datastore item returns "Bad Request" response + Given new "WriteDatastoreItem" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"value": {"missing": "item-key"}}, "type": "items"}} + When the request is sent + Then the response status is 400 Bad Request + And the response "errors" has length 1 + And the response "errors[0].title" is equal to "item key missing or invalid" + + @skip-typescript @team:DataDog/app-builder-backend + Scenario: Write datastore item returns "OK" response + Given new "WriteDatastoreItem" request + And there is a valid "datastore" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"value": {"id": "new-item-key", "data": "example data", "key": "value"}}, "type": "items", "id": "e7e64418-b60c-4789-9612-895ac8423207"}} + When the request is sent + Then the response status is 200 OK diff --git a/features/v2/given.json b/features/v2/given.json index fbeea567872f..43c7f411cf7f 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -1,4 +1,32 @@ [ + { + "parameters": [ + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"datastores\",\n \"attributes\": {\n \"name\": \"Test Datastore\",\n \"primary_column_name\": \"id\",\n \"primary_key_generation_strategy\": \"none\",\n \"description\": \"\",\n \"org_access\": \"contributor\"\n }\n }\n}" + } + ], + "step": "there is a valid \"datastore\" in the system", + "key": "datastore", + "tag": "Actions Datastores", + "operationId": "CreateDatastore" + }, + { + "parameters": [ + { + "name": "datastore_id", + "source": "datastore.data.id" + }, + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"items\",\n \"attributes\": {\n \"value\": {\n \"id\": \"test-key\",\n \"data\": \"test-value\"\n }\n },\n \"id\": \"263cb32b-0e88-48d5-8b60-1e3b58d5a43d\"\n }\n}" + } + ], + "step": "there is a valid \"datastore_item\" in the system", + "key": "datastore_item", + "tag": "Actions Datastores", + "operationId": "WriteDatastoreItem" + }, { "parameters": [ { diff --git a/features/v2/undo.json b/features/v2/undo.json index ec94e15e11da..46c5e7faf6b7 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -1,4 +1,89 @@ { + "ListDatastores": { + "tag": "Actions Datastores", + "undo": { + "type": "safe" + } + }, + "CreateDatastore": { + "tag": "Actions Datastores", + "undo": { + "operationId": "DeleteDatastore", + "parameters": [ + { + "name": "datastore_id", + "source": "data.id" + } + ], + "type": "unsafe" + } + }, + "CreateDatastoreFromImport": { + "tag": "Actions Datastores", + "undo": { + "operationId": "DeleteDatastore", + "parameters": [ + { + "name": "datastore_id", + "source": "data.id" + } + ], + "type": "unsafe" + } + }, + "DeleteDatastore": { + "tag": "Actions Datastores", + "undo": { + "type": "idempotent" + } + }, + "GetDatastore": { + "tag": "Actions Datastores", + "undo": { + "type": "safe" + } + }, + "UpdateDatastore": { + "tag": "Actions Datastores", + "undo": { + "type": "idempotent" + } + }, + "DeleteDatastoreItem": { + "tag": "Actions Datastores", + "undo": { + "type": "idempotent" + } + }, + "ListDatastoreItems": { + "tag": "Actions Datastores", + "undo": { + "type": "safe" + } + }, + "WriteDatastoreItem": { + "tag": "Actions Datastores", + "undo": { + "operationId": "DeleteDatastoreItem", + "parameters": [ + { + "name": "datastore_id", + "source": "datastore.data.id" + }, + { + "name": "body", + "template": "{\n \"data\": {\n \"type\": \"items\",\n \"attributes\": {\n \"id\": \"{{data.id}}\",\n \"item_key\": \"test-key\"\n },\n \"id\": \"{{data.id}}\"\n }\n}" + } + ], + "type": "idempotent" + } + }, + "BulkWriteDatastoreItems": { + "tag": "Actions Datastores", + "undo": { + "type": "idempotent" + } + }, "ListAppKeyRegistrations": { "tag": "Action Connection", "undo": { diff --git a/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.ts b/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.ts new file mode 100644 index 000000000000..0f2df205d09a --- /dev/null +++ b/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.ts @@ -0,0 +1,1617 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { + Configuration, + applySecurityAuthentication, +} from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { BulkPutAppsDatastoreItemsRequest } from "../models/BulkPutAppsDatastoreItemsRequest"; +import { CreateAppsDatastoreFromImportRequest } from "../models/CreateAppsDatastoreFromImportRequest"; +import { CreateAppsDatastoreFromImportResponse } from "../models/CreateAppsDatastoreFromImportResponse"; +import { CreateAppsDatastoreRequest } from "../models/CreateAppsDatastoreRequest"; +import { CreateAppsDatastoreResponse } from "../models/CreateAppsDatastoreResponse"; +import { Datastore } from "../models/Datastore"; +import { DatastoreArray } from "../models/DatastoreArray"; +import { DeleteAppsDatastoreItemRequest } from "../models/DeleteAppsDatastoreItemRequest"; +import { DeleteAppsDatastoreItemResponse } from "../models/DeleteAppsDatastoreItemResponse"; +import { ItemApiPayloadArray } from "../models/ItemApiPayloadArray"; +import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse"; +import { PutAppsDatastoreItemRequest } from "../models/PutAppsDatastoreItemRequest"; +import { PutAppsDatastoreItemResponse } from "../models/PutAppsDatastoreItemResponse"; +import { PutAppsDatastoreItemResponseArray } from "../models/PutAppsDatastoreItemResponseArray"; +import { UpdateAppsDatastoreRequest } from "../models/UpdateAppsDatastoreRequest"; + +export class ActionsDatastoresApiRequestFactory extends BaseAPIRequestFactory { + public async bulkWriteDatastoreItems( + datastoreId: string, + body: BulkPutAppsDatastoreItemsRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "bulkWriteDatastoreItems"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "bulkWriteDatastoreItems"); + } + + // Path Params + const localVarPath = + "/api/v2/actions-datastores/{datastore_id}/items/bulk".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.bulkWriteDatastoreItems") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "BulkPutAppsDatastoreItemsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async createDatastore( + body: CreateAppsDatastoreRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createDatastore"); + } + + // Path Params + const localVarPath = "/api/v2/actions-datastores"; + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.createDatastore") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CreateAppsDatastoreRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async createDatastoreFromImport( + body: CreateAppsDatastoreFromImportRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createDatastoreFromImport"); + } + + // Path Params + const localVarPath = "/api/v2/actions-datastores/import"; + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.createDatastoreFromImport") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize( + body, + "CreateAppsDatastoreFromImportRequest", + "" + ), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async deleteDatastore( + datastoreId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "deleteDatastore"); + } + + // Path Params + const localVarPath = "/api/v2/actions-datastores/{datastore_id}".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.deleteDatastore") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async deleteDatastoreItem( + datastoreId: string, + body: DeleteAppsDatastoreItemRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "deleteDatastoreItem"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "deleteDatastoreItem"); + } + + // Path Params + const localVarPath = + "/api/v2/actions-datastores/{datastore_id}/items".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.deleteDatastoreItem") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "DeleteAppsDatastoreItemRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async getDatastore( + datastoreId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "getDatastore"); + } + + // Path Params + const localVarPath = "/api/v2/actions-datastores/{datastore_id}".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.getDatastore") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async listDatastoreItems( + datastoreId: string, + filter?: string, + itemKey?: string, + pageLimit?: number, + pageOffset?: number, + sort?: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "listDatastoreItems"); + } + + // Path Params + const localVarPath = + "/api/v2/actions-datastores/{datastore_id}/items".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.listDatastoreItems") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Query Params + if (filter !== undefined) { + requestContext.setQueryParam( + "filter", + ObjectSerializer.serialize(filter, "string", ""), + "" + ); + } + if (itemKey !== undefined) { + requestContext.setQueryParam( + "item_key", + ObjectSerializer.serialize(itemKey, "string", ""), + "" + ); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam( + "page[limit]", + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" + ); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam( + "page[offset]", + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" + ); + } + if (sort !== undefined) { + requestContext.setQueryParam( + "sort", + ObjectSerializer.serialize(sort, "string", ""), + "" + ); + } + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async listDatastores( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/actions-datastores"; + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.listDatastores") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async updateDatastore( + datastoreId: string, + body: UpdateAppsDatastoreRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "updateDatastore"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "updateDatastore"); + } + + // Path Params + const localVarPath = "/api/v2/actions-datastores/{datastore_id}".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.updateDatastore") + .makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "UpdateAppsDatastoreRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async writeDatastoreItem( + datastoreId: string, + body: PutAppsDatastoreItemRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'datastoreId' is not null or undefined + if (datastoreId === null || datastoreId === undefined) { + throw new RequiredError("datastoreId", "writeDatastoreItem"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "writeDatastoreItem"); + } + + // Path Params + const localVarPath = + "/api/v2/actions-datastores/{datastore_id}/items".replace( + "{datastore_id}", + encodeURIComponent(String(datastoreId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.ActionsDatastoresApi.writeDatastoreItem") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "PutAppsDatastoreItemRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } +} + +export class ActionsDatastoresApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to bulkWriteDatastoreItems + * @throws ApiException if the response code was not in [200, 299] + */ + public async bulkWriteDatastoreItems( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: PutAppsDatastoreItemResponseArray = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "PutAppsDatastoreItemResponseArray" + ) as PutAppsDatastoreItemResponseArray; + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: PutAppsDatastoreItemResponseArray = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "PutAppsDatastoreItemResponseArray", + "" + ) as PutAppsDatastoreItemResponseArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDatastore + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDatastore( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CreateAppsDatastoreResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CreateAppsDatastoreResponse" + ) as CreateAppsDatastoreResponse; + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CreateAppsDatastoreResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CreateAppsDatastoreResponse", + "" + ) as CreateAppsDatastoreResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDatastoreFromImport + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDatastoreFromImport( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CreateAppsDatastoreFromImportResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CreateAppsDatastoreFromImportResponse" + ) as CreateAppsDatastoreFromImportResponse; + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CreateAppsDatastoreFromImportResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CreateAppsDatastoreFromImportResponse", + "" + ) as CreateAppsDatastoreFromImportResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDatastore + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDatastore(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDatastoreItem + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDatastoreItem( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: DeleteAppsDatastoreItemResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DeleteAppsDatastoreItemResponse" + ) as DeleteAppsDatastoreItemResponse; + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: DeleteAppsDatastoreItemResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DeleteAppsDatastoreItemResponse", + "" + ) as DeleteAppsDatastoreItemResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDatastore + * @throws ApiException if the response code was not in [200, 299] + */ + public async getDatastore(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: Datastore = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Datastore" + ) as Datastore; + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: Datastore = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Datastore", + "" + ) as Datastore; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDatastoreItems + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDatastoreItems( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: ItemApiPayloadArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ItemApiPayloadArray" + ) as ItemApiPayloadArray; + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ItemApiPayloadArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ItemApiPayloadArray", + "" + ) as ItemApiPayloadArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDatastores + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDatastores( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: DatastoreArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DatastoreArray" + ) as DatastoreArray; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: DatastoreArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DatastoreArray", + "" + ) as DatastoreArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDatastore + * @throws ApiException if the response code was not in [200, 299] + */ + public async updateDatastore(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: Datastore = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Datastore" + ) as Datastore; + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: Datastore = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Datastore", + "" + ) as Datastore; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to writeDatastoreItem + * @throws ApiException if the response code was not in [200, 299] + */ + public async writeDatastoreItem( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: PutAppsDatastoreItemResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "PutAppsDatastoreItemResponse" + ) as PutAppsDatastoreItemResponse; + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: PutAppsDatastoreItemResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "PutAppsDatastoreItemResponse", + "" + ) as PutAppsDatastoreItemResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface ActionsDatastoresApiBulkWriteDatastoreItemsRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type BulkPutAppsDatastoreItemsRequest + */ + body: BulkPutAppsDatastoreItemsRequest; +} + +export interface ActionsDatastoresApiCreateDatastoreRequest { + /** + * @type CreateAppsDatastoreRequest + */ + body: CreateAppsDatastoreRequest; +} + +export interface ActionsDatastoresApiCreateDatastoreFromImportRequest { + /** + * @type CreateAppsDatastoreFromImportRequest + */ + body: CreateAppsDatastoreFromImportRequest; +} + +export interface ActionsDatastoresApiDeleteDatastoreRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; +} + +export interface ActionsDatastoresApiDeleteDatastoreItemRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type DeleteAppsDatastoreItemRequest + */ + body: DeleteAppsDatastoreItemRequest; +} + +export interface ActionsDatastoresApiGetDatastoreRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; +} + +export interface ActionsDatastoresApiListDatastoreItemsRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * Optional filter to filter the list of items. + * @type string + */ + filter?: string; + /** + * Optional item key to filter the list of items. + * @type string + */ + itemKey?: string; + /** + * Optional limit to limit the number of items in the list. + * @type number + */ + pageLimit?: number; + /** + * Optional offset to offset the list of items. + * @type number + */ + pageOffset?: number; + /** + * Optional sort to sort the list of items. + * @type string + */ + sort?: string; +} + +export interface ActionsDatastoresApiUpdateDatastoreRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type UpdateAppsDatastoreRequest + */ + body: UpdateAppsDatastoreRequest; +} + +export interface ActionsDatastoresApiWriteDatastoreItemRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type PutAppsDatastoreItemRequest + */ + body: PutAppsDatastoreItemRequest; +} + +export class ActionsDatastoresApi { + private requestFactory: ActionsDatastoresApiRequestFactory; + private responseProcessor: ActionsDatastoresApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: ActionsDatastoresApiRequestFactory, + responseProcessor?: ActionsDatastoresApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ActionsDatastoresApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ActionsDatastoresApiResponseProcessor(); + } + + /** + * Creates or replaces multiple items in a datastore by their keys in a single operation. + * @param param The request object + */ + public bulkWriteDatastoreItems( + param: ActionsDatastoresApiBulkWriteDatastoreItemsRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.bulkWriteDatastoreItems( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.bulkWriteDatastoreItems( + responseContext + ); + }); + }); + } + + /** + * Creates a new datastore. + * @param param The request object + */ + public createDatastore( + param: ActionsDatastoresApiCreateDatastoreRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.createDatastore( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDatastore(responseContext); + }); + }); + } + + /** + * Creates a new datastore and populates it with items from the provided data. + * @param param The request object + */ + public createDatastoreFromImport( + param: ActionsDatastoresApiCreateDatastoreFromImportRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.createDatastoreFromImport( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDatastoreFromImport( + responseContext + ); + }); + }); + } + + /** + * Deletes a datastore by its ID. + * @param param The request object + */ + public deleteDatastore( + param: ActionsDatastoresApiDeleteDatastoreRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.deleteDatastore( + param.datastoreId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDatastore(responseContext); + }); + }); + } + + /** + * Deletes an item from a datastore by its key. + * @param param The request object + */ + public deleteDatastoreItem( + param: ActionsDatastoresApiDeleteDatastoreItemRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.deleteDatastoreItem( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDatastoreItem(responseContext); + }); + }); + } + + /** + * Retrieves a specific datastore by its ID. + * @param param The request object + */ + public getDatastore( + param: ActionsDatastoresApiGetDatastoreRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.getDatastore( + param.datastoreId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDatastore(responseContext); + }); + }); + } + + /** + * Lists items from a datastore. You can filter the results by specifying either an item key or a filter query parameter, but not both at the same time. + * @param param The request object + */ + public listDatastoreItems( + param: ActionsDatastoresApiListDatastoreItemsRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.listDatastoreItems( + param.datastoreId, + param.filter, + param.itemKey, + param.pageLimit, + param.pageOffset, + param.sort, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDatastoreItems(responseContext); + }); + }); + } + + /** + * Lists all datastores for the organization. + * @param param The request object + */ + public listDatastores(options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDatastores(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDatastores(responseContext); + }); + }); + } + + /** + * Updates an existing datastore's attributes. + * @param param The request object + */ + public updateDatastore( + param: ActionsDatastoresApiUpdateDatastoreRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.updateDatastore( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDatastore(responseContext); + }); + }); + } + + /** + * Creates or replaces an item in a datastore by its key. + * @param param The request object + */ + public writeDatastoreItem( + param: ActionsDatastoresApiWriteDatastoreItemRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.writeDatastoreItem( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.writeDatastoreItem(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index f87b74b7fca9..974a7935eb0a 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -39,6 +39,19 @@ export { ActionConnectionApi, } from "./apis/ActionConnectionApi"; +export { + ActionsDatastoresApiBulkWriteDatastoreItemsRequest, + ActionsDatastoresApiCreateDatastoreRequest, + ActionsDatastoresApiCreateDatastoreFromImportRequest, + ActionsDatastoresApiDeleteDatastoreRequest, + ActionsDatastoresApiDeleteDatastoreItemRequest, + ActionsDatastoresApiGetDatastoreRequest, + ActionsDatastoresApiListDatastoreItemsRequest, + ActionsDatastoresApiUpdateDatastoreRequest, + ActionsDatastoresApiWriteDatastoreItemRequest, + ActionsDatastoresApi, +} from "./apis/ActionsDatastoresApi"; + export { AgentlessScanningApiCreateAwsOnDemandTaskRequest, AgentlessScanningApiCreateAwsScanOptionsRequest, @@ -1083,6 +1096,9 @@ export { BulkMuteFindingsRequestMetaFindings } from "./models/BulkMuteFindingsRe export { BulkMuteFindingsRequestProperties } from "./models/BulkMuteFindingsRequestProperties"; export { BulkMuteFindingsResponse } from "./models/BulkMuteFindingsResponse"; export { BulkMuteFindingsResponseData } from "./models/BulkMuteFindingsResponseData"; +export { BulkPutAppsDatastoreItemsRequest } from "./models/BulkPutAppsDatastoreItemsRequest"; +export { BulkPutAppsDatastoreItemsRequestData } from "./models/BulkPutAppsDatastoreItemsRequestData"; +export { BulkPutAppsDatastoreItemsRequestDataAttributes } from "./models/BulkPutAppsDatastoreItemsRequestDataAttributes"; export { CalculatedField } from "./models/CalculatedField"; export { CancelDataDeletionResponseBody } from "./models/CancelDataDeletionResponseBody"; export { Case } from "./models/Case"; @@ -1375,6 +1391,17 @@ export { CreateAppRequestData } from "./models/CreateAppRequestData"; export { CreateAppRequestDataAttributes } from "./models/CreateAppRequestDataAttributes"; export { CreateAppResponse } from "./models/CreateAppResponse"; export { CreateAppResponseData } from "./models/CreateAppResponseData"; +export { CreateAppsDatastoreFromImportRequest } from "./models/CreateAppsDatastoreFromImportRequest"; +export { CreateAppsDatastoreFromImportRequestData } from "./models/CreateAppsDatastoreFromImportRequestData"; +export { CreateAppsDatastoreFromImportRequestDataAttributes } from "./models/CreateAppsDatastoreFromImportRequestDataAttributes"; +export { CreateAppsDatastoreFromImportResponse } from "./models/CreateAppsDatastoreFromImportResponse"; +export { CreateAppsDatastoreFromImportResponseData } from "./models/CreateAppsDatastoreFromImportResponseData"; +export { CreateAppsDatastoreFromImportResponseDataAttributes } from "./models/CreateAppsDatastoreFromImportResponseDataAttributes"; +export { CreateAppsDatastoreRequest } from "./models/CreateAppsDatastoreRequest"; +export { CreateAppsDatastoreRequestData } from "./models/CreateAppsDatastoreRequestData"; +export { CreateAppsDatastoreRequestDataAttributes } from "./models/CreateAppsDatastoreRequestDataAttributes"; +export { CreateAppsDatastoreResponse } from "./models/CreateAppsDatastoreResponse"; +export { CreateAppsDatastoreResponseData } from "./models/CreateAppsDatastoreResponseData"; export { CreateCustomFrameworkRequest } from "./models/CreateCustomFrameworkRequest"; export { CreateCustomFrameworkResponse } from "./models/CreateCustomFrameworkResponse"; export { CreateDataDeletionRequestBody } from "./models/CreateDataDeletionRequestBody"; @@ -1522,11 +1549,24 @@ export { DatasetResponseMulti } from "./models/DatasetResponseMulti"; export { DatasetResponseSingle } from "./models/DatasetResponseSingle"; export { DatasetType } from "./models/DatasetType"; export { DatasetUpdateRequest } from "./models/DatasetUpdateRequest"; +export { Datastore } from "./models/Datastore"; +export { DatastoreArray } from "./models/DatastoreArray"; +export { DatastoreData } from "./models/DatastoreData"; +export { DatastoreDataAttributes } from "./models/DatastoreDataAttributes"; +export { DatastoreDataType } from "./models/DatastoreDataType"; +export { DatastoreItemConflictMode } from "./models/DatastoreItemConflictMode"; +export { DatastoreItemsDataType } from "./models/DatastoreItemsDataType"; +export { DatastorePrimaryKeyGenerationStrategy } from "./models/DatastorePrimaryKeyGenerationStrategy"; export { DataTransform } from "./models/DataTransform"; export { DataTransformProperties } from "./models/DataTransformProperties"; export { DataTransformType } from "./models/DataTransformType"; export { DeleteAppResponse } from "./models/DeleteAppResponse"; export { DeleteAppResponseData } from "./models/DeleteAppResponseData"; +export { DeleteAppsDatastoreItemRequest } from "./models/DeleteAppsDatastoreItemRequest"; +export { DeleteAppsDatastoreItemRequestData } from "./models/DeleteAppsDatastoreItemRequestData"; +export { DeleteAppsDatastoreItemRequestDataAttributes } from "./models/DeleteAppsDatastoreItemRequestDataAttributes"; +export { DeleteAppsDatastoreItemResponse } from "./models/DeleteAppsDatastoreItemResponse"; +export { DeleteAppsDatastoreItemResponseData } from "./models/DeleteAppsDatastoreItemResponseData"; export { DeleteAppsRequest } from "./models/DeleteAppsRequest"; export { DeleteAppsRequestDataItems } from "./models/DeleteAppsRequestDataItems"; export { DeleteAppsResponse } from "./models/DeleteAppsResponse"; @@ -2077,6 +2117,13 @@ export { IPAllowlistEntryType } from "./models/IPAllowlistEntryType"; export { IPAllowlistResponse } from "./models/IPAllowlistResponse"; export { IPAllowlistType } from "./models/IPAllowlistType"; export { IPAllowlistUpdateRequest } from "./models/IPAllowlistUpdateRequest"; +export { ItemApiPayloadArray } from "./models/ItemApiPayloadArray"; +export { ItemApiPayloadData } from "./models/ItemApiPayloadData"; +export { ItemApiPayloadDataAttributes } from "./models/ItemApiPayloadDataAttributes"; +export { ItemApiPayloadMeta } from "./models/ItemApiPayloadMeta"; +export { ItemApiPayloadMetaPage } from "./models/ItemApiPayloadMetaPage"; +export { ItemApiPayloadMetaSchema } from "./models/ItemApiPayloadMetaSchema"; +export { ItemApiPayloadMetaSchemaField } from "./models/ItemApiPayloadMetaSchemaField"; export { JiraIntegrationMetadata } from "./models/JiraIntegrationMetadata"; export { JiraIntegrationMetadataIssuesItem } from "./models/JiraIntegrationMetadataIssuesItem"; export { JiraIssue } from "./models/JiraIssue"; @@ -2778,6 +2825,12 @@ export { ProjectResourceType } from "./models/ProjectResourceType"; export { ProjectResponse } from "./models/ProjectResponse"; export { ProjectsResponse } from "./models/ProjectsResponse"; export { PublishAppResponse } from "./models/PublishAppResponse"; +export { PutAppsDatastoreItemRequest } from "./models/PutAppsDatastoreItemRequest"; +export { PutAppsDatastoreItemRequestData } from "./models/PutAppsDatastoreItemRequestData"; +export { PutAppsDatastoreItemRequestDataAttributes } from "./models/PutAppsDatastoreItemRequestDataAttributes"; +export { PutAppsDatastoreItemResponse } from "./models/PutAppsDatastoreItemResponse"; +export { PutAppsDatastoreItemResponseArray } from "./models/PutAppsDatastoreItemResponseArray"; +export { PutAppsDatastoreItemResponseData } from "./models/PutAppsDatastoreItemResponseData"; export { Query } from "./models/Query"; export { QueryFormula } from "./models/QueryFormula"; export { QuerySortOrder } from "./models/QuerySortOrder"; @@ -3532,6 +3585,9 @@ export { UpdateAppRequestDataAttributes } from "./models/UpdateAppRequestDataAtt export { UpdateAppResponse } from "./models/UpdateAppResponse"; export { UpdateAppResponseData } from "./models/UpdateAppResponseData"; export { UpdateAppResponseDataAttributes } from "./models/UpdateAppResponseDataAttributes"; +export { UpdateAppsDatastoreRequest } from "./models/UpdateAppsDatastoreRequest"; +export { UpdateAppsDatastoreRequestData } from "./models/UpdateAppsDatastoreRequestData"; +export { UpdateAppsDatastoreRequestDataAttributes } from "./models/UpdateAppsDatastoreRequestDataAttributes"; export { UpdateCustomFrameworkRequest } from "./models/UpdateCustomFrameworkRequest"; export { UpdateCustomFrameworkResponse } from "./models/UpdateCustomFrameworkResponse"; export { UpdateOpenAPIResponse } from "./models/UpdateOpenAPIResponse"; diff --git a/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.ts b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.ts new file mode 100644 index 000000000000..ba2e821f8d0e --- /dev/null +++ b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { BulkPutAppsDatastoreItemsRequestData } from "./BulkPutAppsDatastoreItemsRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `BulkPutAppsDatastoreItemsRequest` object. + */ +export class BulkPutAppsDatastoreItemsRequest { + /** + * The definition of `BulkPutAppsDatastoreItemsRequestData` object. + */ + "data"?: BulkPutAppsDatastoreItemsRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "BulkPutAppsDatastoreItemsRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return BulkPutAppsDatastoreItemsRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.ts b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.ts new file mode 100644 index 000000000000..c66f2c415898 --- /dev/null +++ b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { BulkPutAppsDatastoreItemsRequestDataAttributes } from "./BulkPutAppsDatastoreItemsRequestDataAttributes"; +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `BulkPutAppsDatastoreItemsRequestData` object. + */ +export class BulkPutAppsDatastoreItemsRequestData { + /** + * The definition of `BulkPutAppsDatastoreItemsRequestDataAttributes` object. + */ + "attributes"?: BulkPutAppsDatastoreItemsRequestDataAttributes; + /** + * The `BulkPutAppsDatastoreItemsRequestData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "BulkPutAppsDatastoreItemsRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return BulkPutAppsDatastoreItemsRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.ts new file mode 100644 index 000000000000..8274f20a6291 --- /dev/null +++ b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemConflictMode } from "./DatastoreItemConflictMode"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `BulkPutAppsDatastoreItemsRequestDataAttributes` object. + */ +export class BulkPutAppsDatastoreItemsRequestDataAttributes { + /** + * The definition of `DatastoreItemConflictMode` object. + */ + "conflictMode"?: DatastoreItemConflictMode; + /** + * The `attributes` `values`. + */ + "values": Array<{ [key: string]: any }>; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + conflictMode: { + baseName: "conflict_mode", + type: "DatastoreItemConflictMode", + }, + values: { + baseName: "values", + type: "Array<{ [key: string]: any; }>", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return BulkPutAppsDatastoreItemsRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequest.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequest.ts new file mode 100644 index 000000000000..7cdcafb16beb --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreFromImportRequestData } from "./CreateAppsDatastoreFromImportRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportRequest` object. + */ +export class CreateAppsDatastoreFromImportRequest { + /** + * The definition of `CreateAppsDatastoreFromImportRequestData` object. + */ + "data"?: CreateAppsDatastoreFromImportRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CreateAppsDatastoreFromImportRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestData.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestData.ts new file mode 100644 index 000000000000..f131d871b8b9 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreFromImportRequestDataAttributes } from "./CreateAppsDatastoreFromImportRequestDataAttributes"; +import { DatastoreDataType } from "./DatastoreDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportRequestData` object. + */ +export class CreateAppsDatastoreFromImportRequestData { + /** + * The definition of `CreateAppsDatastoreFromImportRequestDataAttributes` object. + */ + "attributes"?: CreateAppsDatastoreFromImportRequestDataAttributes; + /** + * The `CreateAppsDatastoreFromImportRequestData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CreateAppsDatastoreFromImportRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributes.ts new file mode 100644 index 000000000000..8db79af89b08 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributes.ts @@ -0,0 +1,96 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastorePrimaryKeyGenerationStrategy } from "./DatastorePrimaryKeyGenerationStrategy"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportRequestDataAttributes` object. + */ +export class CreateAppsDatastoreFromImportRequestDataAttributes { + /** + * The `attributes` `description`. + */ + "description"?: string; + /** + * The `attributes` `name`. + */ + "name": string; + /** + * The `attributes` `org_access`. + */ + "orgAccess"?: string; + /** + * The `attributes` `primary_column_name`. + */ + "primaryColumnName": string; + /** + * The `attributes` `primary_key_generation_strategy`. + */ + "primaryKeyGenerationStrategy"?: DatastorePrimaryKeyGenerationStrategy; + /** + * The `attributes` `values`. + */ + "values": Array<{ [key: string]: any }>; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + orgAccess: { + baseName: "org_access", + type: "string", + }, + primaryColumnName: { + baseName: "primary_column_name", + type: "string", + required: true, + }, + primaryKeyGenerationStrategy: { + baseName: "primary_key_generation_strategy", + type: "DatastorePrimaryKeyGenerationStrategy", + }, + values: { + baseName: "values", + type: "Array<{ [key: string]: any; }>", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponse.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponse.ts new file mode 100644 index 000000000000..812f266e7124 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponse.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreFromImportResponseData } from "./CreateAppsDatastoreFromImportResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportResponse` object. + */ +export class CreateAppsDatastoreFromImportResponse { + /** + * The definition of `CreateAppsDatastoreFromImportResponseData` object. + */ + "data"?: CreateAppsDatastoreFromImportResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CreateAppsDatastoreFromImportResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseData.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseData.ts new file mode 100644 index 000000000000..ca280d0ca3c8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreFromImportResponseDataAttributes } from "./CreateAppsDatastoreFromImportResponseDataAttributes"; +import { DatastoreDataType } from "./DatastoreDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportResponseData` object. + */ +export class CreateAppsDatastoreFromImportResponseData { + /** + * The definition of `CreateAppsDatastoreFromImportResponseDataAttributes` object. + */ + "attributes"?: CreateAppsDatastoreFromImportResponseDataAttributes; + /** + * The `CreateAppsDatastoreFromImportResponseData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CreateAppsDatastoreFromImportResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataAttributes.ts new file mode 100644 index 000000000000..4fbd8449a447 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreFromImportResponseDataAttributes` object. + */ +export class CreateAppsDatastoreFromImportResponseDataAttributes { + /** + * The `attributes` `item_count`. + */ + "itemCount"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + itemCount: { + baseName: "item_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.ts new file mode 100644 index 000000000000..bc35471b1584 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreRequestData } from "./CreateAppsDatastoreRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreRequest` object. + */ +export class CreateAppsDatastoreRequest { + /** + * The definition of `CreateAppsDatastoreRequestData` object. + */ + "data"?: CreateAppsDatastoreRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CreateAppsDatastoreRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.ts new file mode 100644 index 000000000000..31913c75a45c --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreRequestDataAttributes } from "./CreateAppsDatastoreRequestDataAttributes"; +import { DatastoreDataType } from "./DatastoreDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreRequestData` object. + */ +export class CreateAppsDatastoreRequestData { + /** + * The definition of `CreateAppsDatastoreRequestDataAttributes` object. + */ + "attributes"?: CreateAppsDatastoreRequestDataAttributes; + /** + * The `CreateAppsDatastoreRequestData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CreateAppsDatastoreRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.ts new file mode 100644 index 000000000000..bb761592032b --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.ts @@ -0,0 +1,87 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastorePrimaryKeyGenerationStrategy } from "./DatastorePrimaryKeyGenerationStrategy"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreRequestDataAttributes` object. + */ +export class CreateAppsDatastoreRequestDataAttributes { + /** + * The `attributes` `description`. + */ + "description"?: string; + /** + * The `attributes` `name`. + */ + "name": string; + /** + * The `attributes` `org_access`. + */ + "orgAccess"?: string; + /** + * The `attributes` `primary_column_name`. + */ + "primaryColumnName": string; + /** + * The `attributes` `primary_key_generation_strategy`. + */ + "primaryKeyGenerationStrategy"?: DatastorePrimaryKeyGenerationStrategy; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + orgAccess: { + baseName: "org_access", + type: "string", + }, + primaryColumnName: { + baseName: "primary_column_name", + type: "string", + required: true, + }, + primaryKeyGenerationStrategy: { + baseName: "primary_key_generation_strategy", + type: "DatastorePrimaryKeyGenerationStrategy", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.ts new file mode 100644 index 000000000000..29db62e9fed3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { CreateAppsDatastoreResponseData } from "./CreateAppsDatastoreResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreResponse` object. + */ +export class CreateAppsDatastoreResponse { + /** + * The definition of `CreateAppsDatastoreResponseData` object. + */ + "data"?: CreateAppsDatastoreResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CreateAppsDatastoreResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.ts new file mode 100644 index 000000000000..5060c19cb2f6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreDataType } from "./DatastoreDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CreateAppsDatastoreResponseData` object. + */ +export class CreateAppsDatastoreResponseData { + /** + * The `CreateAppsDatastoreResponseData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/Datastore.ts b/packages/datadog-api-client-v2/models/Datastore.ts new file mode 100644 index 000000000000..017305d5bb2c --- /dev/null +++ b/packages/datadog-api-client-v2/models/Datastore.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreData } from "./DatastoreData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `Datastore` object. + */ +export class Datastore { + /** + * The definition of `DatastoreData` object. + */ + "data"?: DatastoreData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "DatastoreData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return Datastore.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DatastoreArray.ts b/packages/datadog-api-client-v2/models/DatastoreArray.ts new file mode 100644 index 000000000000..dd1214a62a03 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreArray.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreData } from "./DatastoreData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DatastoreArray` object. + */ +export class DatastoreArray { + /** + * The `DatastoreArray` `data`. + */ + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DatastoreArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DatastoreData.ts b/packages/datadog-api-client-v2/models/DatastoreData.ts new file mode 100644 index 000000000000..4e7191ba560e --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreDataAttributes } from "./DatastoreDataAttributes"; +import { DatastoreDataType } from "./DatastoreDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DatastoreData` object. + */ +export class DatastoreData { + /** + * The definition of `DatastoreDataAttributes` object. + */ + "attributes"?: DatastoreDataAttributes; + /** + * The `DatastoreData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "DatastoreDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DatastoreData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DatastoreDataAttributes.ts b/packages/datadog-api-client-v2/models/DatastoreDataAttributes.ts new file mode 100644 index 000000000000..fcca4fdf4cc3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreDataAttributes.ts @@ -0,0 +1,121 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastorePrimaryKeyGenerationStrategy } from "./DatastorePrimaryKeyGenerationStrategy"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DatastoreDataAttributes` object. + */ +export class DatastoreDataAttributes { + /** + * The `attributes` `created_at`. + */ + "createdAt"?: Date; + /** + * The `attributes` `creator_user_id`. + */ + "creatorUserId"?: number; + /** + * The `attributes` `creator_user_uuid`. + */ + "creatorUserUuid"?: string; + /** + * The `attributes` `description`. + */ + "description"?: string; + /** + * The `attributes` `modified_at`. + */ + "modifiedAt"?: Date; + /** + * The `attributes` `name`. + */ + "name"?: string; + /** + * The `attributes` `org_id`. + */ + "orgId"?: number; + /** + * The `attributes` `primary_column_name`. + */ + "primaryColumnName"?: string; + /** + * The `attributes` `primary_key_generation_strategy`. + */ + "primaryKeyGenerationStrategy"?: DatastorePrimaryKeyGenerationStrategy; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + creatorUserId: { + baseName: "creator_user_id", + type: "number", + format: "int64", + }, + creatorUserUuid: { + baseName: "creator_user_uuid", + type: "string", + }, + description: { + baseName: "description", + type: "string", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + name: { + baseName: "name", + type: "string", + }, + orgId: { + baseName: "org_id", + type: "number", + format: "int64", + }, + primaryColumnName: { + baseName: "primary_column_name", + type: "string", + }, + primaryKeyGenerationStrategy: { + baseName: "primary_key_generation_strategy", + type: "DatastorePrimaryKeyGenerationStrategy", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DatastoreDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DatastoreDataType.ts b/packages/datadog-api-client-v2/models/DatastoreDataType.ts new file mode 100644 index 000000000000..4c74cc5e125e --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreDataType.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Datastores resource type. + */ + +export type DatastoreDataType = typeof DATASTORES | UnparsedObject; +export const DATASTORES = "datastores"; diff --git a/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.ts b/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.ts new file mode 100644 index 000000000000..5642355f6004 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.ts @@ -0,0 +1,18 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DatastoreItemConflictMode` object. + */ + +export type DatastoreItemConflictMode = + | typeof FAIL_ON_CONFLICT + | typeof OVERWRITE_ON_CONFLICT + | UnparsedObject; +export const FAIL_ON_CONFLICT = "fail_on_conflict"; +export const OVERWRITE_ON_CONFLICT = "overwrite_on_conflict"; diff --git a/packages/datadog-api-client-v2/models/DatastoreItemsDataType.ts b/packages/datadog-api-client-v2/models/DatastoreItemsDataType.ts new file mode 100644 index 000000000000..b1c2990bbf28 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreItemsDataType.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Items resource type. + */ + +export type DatastoreItemsDataType = typeof ITEMS | UnparsedObject; +export const ITEMS = "items"; diff --git a/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.ts b/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.ts new file mode 100644 index 000000000000..e69ada798c51 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.ts @@ -0,0 +1,18 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The `attributes` `primary_key_generation_strategy`. + */ + +export type DatastorePrimaryKeyGenerationStrategy = + | typeof NONE + | typeof UUID + | UnparsedObject; +export const NONE = "none"; +export const UUID = "uuid"; diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.ts new file mode 100644 index 000000000000..550055ab7b2b --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DeleteAppsDatastoreItemRequestData } from "./DeleteAppsDatastoreItemRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DeleteAppsDatastoreItemRequest` object. + */ +export class DeleteAppsDatastoreItemRequest { + /** + * The definition of `DeleteAppsDatastoreItemRequestData` object. + */ + "data"?: DeleteAppsDatastoreItemRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "DeleteAppsDatastoreItemRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.ts new file mode 100644 index 000000000000..44dfa7b660e4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; +import { DeleteAppsDatastoreItemRequestDataAttributes } from "./DeleteAppsDatastoreItemRequestDataAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DeleteAppsDatastoreItemRequestData` object. + */ +export class DeleteAppsDatastoreItemRequestData { + /** + * The definition of `DeleteAppsDatastoreItemRequestDataAttributes` object. + */ + "attributes"?: DeleteAppsDatastoreItemRequestDataAttributes; + /** + * The `DeleteAppsDatastoreItemRequestData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "DeleteAppsDatastoreItemRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.ts new file mode 100644 index 000000000000..321a3384054e --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.ts @@ -0,0 +1,61 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DeleteAppsDatastoreItemRequestDataAttributes` object. + */ +export class DeleteAppsDatastoreItemRequestDataAttributes { + /** + * The `item` `id`. + */ + "id"?: string; + /** + * The `attributes` `item_key`. + */ + "itemKey": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + itemKey: { + baseName: "item_key", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.ts new file mode 100644 index 000000000000..a4d180abe25d --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DeleteAppsDatastoreItemResponseData } from "./DeleteAppsDatastoreItemResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DeleteAppsDatastoreItemResponse` object. + */ +export class DeleteAppsDatastoreItemResponse { + /** + * The definition of `DeleteAppsDatastoreItemResponseData` object. + */ + "data"?: DeleteAppsDatastoreItemResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "DeleteAppsDatastoreItemResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.ts new file mode 100644 index 000000000000..0a34ea7e2547 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `DeleteAppsDatastoreItemResponseData` object. + */ +export class DeleteAppsDatastoreItemResponseData { + /** + * The `DeleteAppsDatastoreItemResponseData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadArray.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadArray.ts new file mode 100644 index 000000000000..40d481844a70 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadArray.ts @@ -0,0 +1,63 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { ItemApiPayloadData } from "./ItemApiPayloadData"; +import { ItemApiPayloadMeta } from "./ItemApiPayloadMeta"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadArray` object. + */ +export class ItemApiPayloadArray { + /** + * The `ItemApiPayloadArray` `data`. + */ + "data": Array; + /** + * The definition of `ItemApiPayloadMeta` object. + */ + "meta"?: ItemApiPayloadMeta; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + meta: { + baseName: "meta", + type: "ItemApiPayloadMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadData.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadData.ts new file mode 100644 index 000000000000..2b4a191f4f1d --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; +import { ItemApiPayloadDataAttributes } from "./ItemApiPayloadDataAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadData` object. + */ +export class ItemApiPayloadData { + /** + * The definition of `ItemApiPayloadDataAttributes` object. + */ + "attributes"?: ItemApiPayloadDataAttributes; + /** + * The `ItemApiPayloadData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ItemApiPayloadDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.ts new file mode 100644 index 000000000000..3759ecec77f0 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.ts @@ -0,0 +1,103 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadDataAttributes` object. + */ +export class ItemApiPayloadDataAttributes { + /** + * The `attributes` `created_at`. + */ + "createdAt"?: Date; + /** + * The `attributes` `modified_at`. + */ + "modifiedAt"?: Date; + /** + * The `attributes` `org_id`. + */ + "orgId"?: number; + /** + * The `attributes` `primary_column_name`. + */ + "primaryColumnName"?: string; + /** + * The `attributes` `signature`. + */ + "signature"?: string; + /** + * The `attributes` `store_id`. + */ + "storeId"?: string; + /** + * The `attributes` `value`. + */ + "value"?: { [key: string]: any }; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + orgId: { + baseName: "org_id", + type: "number", + format: "int64", + }, + primaryColumnName: { + baseName: "primary_column_name", + type: "string", + }, + signature: { + baseName: "signature", + type: "string", + }, + storeId: { + baseName: "store_id", + type: "string", + }, + value: { + baseName: "value", + type: "{ [key: string]: any; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.ts new file mode 100644 index 000000000000..bd23d2e7d3ed --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { ItemApiPayloadMetaPage } from "./ItemApiPayloadMetaPage"; +import { ItemApiPayloadMetaSchema } from "./ItemApiPayloadMetaSchema"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadMeta` object. + */ +export class ItemApiPayloadMeta { + /** + * The definition of `ItemApiPayloadMetaPage` object. + */ + "page"?: ItemApiPayloadMetaPage; + /** + * The definition of `ItemApiPayloadMetaSchema` object. + */ + "schema"?: ItemApiPayloadMetaSchema; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + page: { + baseName: "page", + type: "ItemApiPayloadMetaPage", + }, + schema: { + baseName: "schema", + type: "ItemApiPayloadMetaSchema", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadMeta.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.ts new file mode 100644 index 000000000000..708a42e54408 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.ts @@ -0,0 +1,70 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadMetaPage` object. + */ +export class ItemApiPayloadMetaPage { + /** + * The `ItemApiPayloadMeta` `hasMore`. + */ + "hasMore"?: boolean; + /** + * The `ItemApiPayloadMeta` `totalCount`. + */ + "totalCount"?: number; + /** + * The `ItemApiPayloadMeta` `totalFilteredCount`. + */ + "totalFilteredCount"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + hasMore: { + baseName: "hasMore", + type: "boolean", + }, + totalCount: { + baseName: "totalCount", + type: "number", + format: "int64", + }, + totalFilteredCount: { + baseName: "totalFilteredCount", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadMetaPage.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.ts new file mode 100644 index 000000000000..af58cebc12df --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.ts @@ -0,0 +1,61 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { ItemApiPayloadMetaSchemaField } from "./ItemApiPayloadMetaSchemaField"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadMetaSchema` object. + */ +export class ItemApiPayloadMetaSchema { + /** + * The `ItemApiPayloadMetaSchema` `fields`. + */ + "fields"?: Array; + /** + * The `ItemApiPayloadMetaSchema` `primary_key`. + */ + "primaryKey"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + fields: { + baseName: "fields", + type: "Array", + }, + primaryKey: { + baseName: "primary_key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadMetaSchema.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.ts new file mode 100644 index 000000000000..4501203cdfeb --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ItemApiPayloadMetaSchemaField` object. + */ +export class ItemApiPayloadMetaSchemaField { + /** + * The `ItemApiPayloadMetaSchemaField` `name`. + */ + "name": string; + /** + * The `ItemApiPayloadMetaSchemaField` `type`. + */ + "type": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadMetaSchemaField.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index c8bf233e35c8..09579d052d84 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -224,6 +224,9 @@ import { BulkMuteFindingsRequestMetaFindings } from "./BulkMuteFindingsRequestMe import { BulkMuteFindingsRequestProperties } from "./BulkMuteFindingsRequestProperties"; import { BulkMuteFindingsResponse } from "./BulkMuteFindingsResponse"; import { BulkMuteFindingsResponseData } from "./BulkMuteFindingsResponseData"; +import { BulkPutAppsDatastoreItemsRequest } from "./BulkPutAppsDatastoreItemsRequest"; +import { BulkPutAppsDatastoreItemsRequestData } from "./BulkPutAppsDatastoreItemsRequestData"; +import { BulkPutAppsDatastoreItemsRequestDataAttributes } from "./BulkPutAppsDatastoreItemsRequestDataAttributes"; import { CIAppAggregateBucketValueTimeseriesPoint } from "./CIAppAggregateBucketValueTimeseriesPoint"; import { CIAppAggregateSort } from "./CIAppAggregateSort"; import { CIAppCIError } from "./CIAppCIError"; @@ -439,6 +442,17 @@ import { CreateAppRequestData } from "./CreateAppRequestData"; import { CreateAppRequestDataAttributes } from "./CreateAppRequestDataAttributes"; import { CreateAppResponse } from "./CreateAppResponse"; import { CreateAppResponseData } from "./CreateAppResponseData"; +import { CreateAppsDatastoreFromImportRequest } from "./CreateAppsDatastoreFromImportRequest"; +import { CreateAppsDatastoreFromImportRequestData } from "./CreateAppsDatastoreFromImportRequestData"; +import { CreateAppsDatastoreFromImportRequestDataAttributes } from "./CreateAppsDatastoreFromImportRequestDataAttributes"; +import { CreateAppsDatastoreFromImportResponse } from "./CreateAppsDatastoreFromImportResponse"; +import { CreateAppsDatastoreFromImportResponseData } from "./CreateAppsDatastoreFromImportResponseData"; +import { CreateAppsDatastoreFromImportResponseDataAttributes } from "./CreateAppsDatastoreFromImportResponseDataAttributes"; +import { CreateAppsDatastoreRequest } from "./CreateAppsDatastoreRequest"; +import { CreateAppsDatastoreRequestData } from "./CreateAppsDatastoreRequestData"; +import { CreateAppsDatastoreRequestDataAttributes } from "./CreateAppsDatastoreRequestDataAttributes"; +import { CreateAppsDatastoreResponse } from "./CreateAppsDatastoreResponse"; +import { CreateAppsDatastoreResponseData } from "./CreateAppsDatastoreResponseData"; import { CreateCustomFrameworkRequest } from "./CreateCustomFrameworkRequest"; import { CreateCustomFrameworkResponse } from "./CreateCustomFrameworkResponse"; import { CreateDataDeletionRequestBody } from "./CreateDataDeletionRequestBody"; @@ -575,8 +589,17 @@ import { DatasetResponse } from "./DatasetResponse"; import { DatasetResponseMulti } from "./DatasetResponseMulti"; import { DatasetResponseSingle } from "./DatasetResponseSingle"; import { DatasetUpdateRequest } from "./DatasetUpdateRequest"; +import { Datastore } from "./Datastore"; +import { DatastoreArray } from "./DatastoreArray"; +import { DatastoreData } from "./DatastoreData"; +import { DatastoreDataAttributes } from "./DatastoreDataAttributes"; import { DeleteAppResponse } from "./DeleteAppResponse"; import { DeleteAppResponseData } from "./DeleteAppResponseData"; +import { DeleteAppsDatastoreItemRequest } from "./DeleteAppsDatastoreItemRequest"; +import { DeleteAppsDatastoreItemRequestData } from "./DeleteAppsDatastoreItemRequestData"; +import { DeleteAppsDatastoreItemRequestDataAttributes } from "./DeleteAppsDatastoreItemRequestDataAttributes"; +import { DeleteAppsDatastoreItemResponse } from "./DeleteAppsDatastoreItemResponse"; +import { DeleteAppsDatastoreItemResponseData } from "./DeleteAppsDatastoreItemResponseData"; import { DeleteAppsRequest } from "./DeleteAppsRequest"; import { DeleteAppsRequestDataItems } from "./DeleteAppsRequestDataItems"; import { DeleteAppsResponse } from "./DeleteAppsResponse"; @@ -968,6 +991,13 @@ import { InputSchema } from "./InputSchema"; import { InputSchemaParameters } from "./InputSchemaParameters"; import { IntakePayloadAccepted } from "./IntakePayloadAccepted"; import { InterfaceAttributes } from "./InterfaceAttributes"; +import { ItemApiPayloadArray } from "./ItemApiPayloadArray"; +import { ItemApiPayloadData } from "./ItemApiPayloadData"; +import { ItemApiPayloadDataAttributes } from "./ItemApiPayloadDataAttributes"; +import { ItemApiPayloadMeta } from "./ItemApiPayloadMeta"; +import { ItemApiPayloadMetaPage } from "./ItemApiPayloadMetaPage"; +import { ItemApiPayloadMetaSchema } from "./ItemApiPayloadMetaSchema"; +import { ItemApiPayloadMetaSchemaField } from "./ItemApiPayloadMetaSchemaField"; import { JSONAPIErrorItem } from "./JSONAPIErrorItem"; import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource"; import { JSONAPIErrorResponse } from "./JSONAPIErrorResponse"; @@ -1458,6 +1488,12 @@ import { ProjectedCostAttributes } from "./ProjectedCostAttributes"; import { ProjectedCostResponse } from "./ProjectedCostResponse"; import { ProjectsResponse } from "./ProjectsResponse"; import { PublishAppResponse } from "./PublishAppResponse"; +import { PutAppsDatastoreItemRequest } from "./PutAppsDatastoreItemRequest"; +import { PutAppsDatastoreItemRequestData } from "./PutAppsDatastoreItemRequestData"; +import { PutAppsDatastoreItemRequestDataAttributes } from "./PutAppsDatastoreItemRequestDataAttributes"; +import { PutAppsDatastoreItemResponse } from "./PutAppsDatastoreItemResponse"; +import { PutAppsDatastoreItemResponseArray } from "./PutAppsDatastoreItemResponseArray"; +import { PutAppsDatastoreItemResponseData } from "./PutAppsDatastoreItemResponseData"; import { QueryFormula } from "./QueryFormula"; import { RUMAggregateBucketValueTimeseriesPoint } from "./RUMAggregateBucketValueTimeseriesPoint"; import { RUMAggregateRequest } from "./RUMAggregateRequest"; @@ -2021,6 +2057,9 @@ import { UpdateAppRequestDataAttributes } from "./UpdateAppRequestDataAttributes import { UpdateAppResponse } from "./UpdateAppResponse"; import { UpdateAppResponseData } from "./UpdateAppResponseData"; import { UpdateAppResponseDataAttributes } from "./UpdateAppResponseDataAttributes"; +import { UpdateAppsDatastoreRequest } from "./UpdateAppsDatastoreRequest"; +import { UpdateAppsDatastoreRequestData } from "./UpdateAppsDatastoreRequestData"; +import { UpdateAppsDatastoreRequestDataAttributes } from "./UpdateAppsDatastoreRequestDataAttributes"; import { UpdateCustomFrameworkRequest } from "./UpdateCustomFrameworkRequest"; import { UpdateCustomFrameworkResponse } from "./UpdateCustomFrameworkResponse"; import { UpdateOpenAPIResponse } from "./UpdateOpenAPIResponse"; @@ -2497,6 +2536,10 @@ const enumsMap: { [key: string]: any[] } = { DatadogAPIKeyType: ["DatadogAPIKey"], DatadogIntegrationType: ["Datadog"], DatasetType: ["dataset"], + DatastoreDataType: ["datastores"], + DatastoreItemConflictMode: ["fail_on_conflict", "overwrite_on_conflict"], + DatastoreItemsDataType: ["items"], + DatastorePrimaryKeyGenerationStrategy: ["none", "uuid"], DetailedFindingType: ["detailed_finding"], DnsMetricKey: [ "dns_total_requests", @@ -3793,6 +3836,10 @@ const typeMap: { [index: string]: any } = { BulkMuteFindingsRequestProperties: BulkMuteFindingsRequestProperties, BulkMuteFindingsResponse: BulkMuteFindingsResponse, BulkMuteFindingsResponseData: BulkMuteFindingsResponseData, + BulkPutAppsDatastoreItemsRequest: BulkPutAppsDatastoreItemsRequest, + BulkPutAppsDatastoreItemsRequestData: BulkPutAppsDatastoreItemsRequestData, + BulkPutAppsDatastoreItemsRequestDataAttributes: + BulkPutAppsDatastoreItemsRequestDataAttributes, CIAppAggregateBucketValueTimeseriesPoint: CIAppAggregateBucketValueTimeseriesPoint, CIAppAggregateSort: CIAppAggregateSort, @@ -4045,6 +4092,22 @@ const typeMap: { [index: string]: any } = { CreateAppRequestDataAttributes: CreateAppRequestDataAttributes, CreateAppResponse: CreateAppResponse, CreateAppResponseData: CreateAppResponseData, + CreateAppsDatastoreFromImportRequest: CreateAppsDatastoreFromImportRequest, + CreateAppsDatastoreFromImportRequestData: + CreateAppsDatastoreFromImportRequestData, + CreateAppsDatastoreFromImportRequestDataAttributes: + CreateAppsDatastoreFromImportRequestDataAttributes, + CreateAppsDatastoreFromImportResponse: CreateAppsDatastoreFromImportResponse, + CreateAppsDatastoreFromImportResponseData: + CreateAppsDatastoreFromImportResponseData, + CreateAppsDatastoreFromImportResponseDataAttributes: + CreateAppsDatastoreFromImportResponseDataAttributes, + CreateAppsDatastoreRequest: CreateAppsDatastoreRequest, + CreateAppsDatastoreRequestData: CreateAppsDatastoreRequestData, + CreateAppsDatastoreRequestDataAttributes: + CreateAppsDatastoreRequestDataAttributes, + CreateAppsDatastoreResponse: CreateAppsDatastoreResponse, + CreateAppsDatastoreResponseData: CreateAppsDatastoreResponseData, CreateCustomFrameworkRequest: CreateCustomFrameworkRequest, CreateCustomFrameworkResponse: CreateCustomFrameworkResponse, CreateDataDeletionRequestBody: CreateDataDeletionRequestBody, @@ -4208,8 +4271,18 @@ const typeMap: { [index: string]: any } = { DatasetResponseMulti: DatasetResponseMulti, DatasetResponseSingle: DatasetResponseSingle, DatasetUpdateRequest: DatasetUpdateRequest, + Datastore: Datastore, + DatastoreArray: DatastoreArray, + DatastoreData: DatastoreData, + DatastoreDataAttributes: DatastoreDataAttributes, DeleteAppResponse: DeleteAppResponse, DeleteAppResponseData: DeleteAppResponseData, + DeleteAppsDatastoreItemRequest: DeleteAppsDatastoreItemRequest, + DeleteAppsDatastoreItemRequestData: DeleteAppsDatastoreItemRequestData, + DeleteAppsDatastoreItemRequestDataAttributes: + DeleteAppsDatastoreItemRequestDataAttributes, + DeleteAppsDatastoreItemResponse: DeleteAppsDatastoreItemResponse, + DeleteAppsDatastoreItemResponseData: DeleteAppsDatastoreItemResponseData, DeleteAppsRequest: DeleteAppsRequest, DeleteAppsRequestDataItems: DeleteAppsRequestDataItems, DeleteAppsResponse: DeleteAppsResponse, @@ -4639,6 +4712,13 @@ const typeMap: { [index: string]: any } = { InputSchemaParameters: InputSchemaParameters, IntakePayloadAccepted: IntakePayloadAccepted, InterfaceAttributes: InterfaceAttributes, + ItemApiPayloadArray: ItemApiPayloadArray, + ItemApiPayloadData: ItemApiPayloadData, + ItemApiPayloadDataAttributes: ItemApiPayloadDataAttributes, + ItemApiPayloadMeta: ItemApiPayloadMeta, + ItemApiPayloadMetaPage: ItemApiPayloadMetaPage, + ItemApiPayloadMetaSchema: ItemApiPayloadMetaSchema, + ItemApiPayloadMetaSchemaField: ItemApiPayloadMetaSchemaField, JSONAPIErrorItem: JSONAPIErrorItem, JSONAPIErrorItemSource: JSONAPIErrorItemSource, JSONAPIErrorResponse: JSONAPIErrorResponse, @@ -5246,6 +5326,13 @@ const typeMap: { [index: string]: any } = { ProjectedCostResponse: ProjectedCostResponse, ProjectsResponse: ProjectsResponse, PublishAppResponse: PublishAppResponse, + PutAppsDatastoreItemRequest: PutAppsDatastoreItemRequest, + PutAppsDatastoreItemRequestData: PutAppsDatastoreItemRequestData, + PutAppsDatastoreItemRequestDataAttributes: + PutAppsDatastoreItemRequestDataAttributes, + PutAppsDatastoreItemResponse: PutAppsDatastoreItemResponse, + PutAppsDatastoreItemResponseArray: PutAppsDatastoreItemResponseArray, + PutAppsDatastoreItemResponseData: PutAppsDatastoreItemResponseData, QueryFormula: QueryFormula, RUMAggregateBucketValueTimeseriesPoint: RUMAggregateBucketValueTimeseriesPoint, @@ -5888,6 +5975,10 @@ const typeMap: { [index: string]: any } = { UpdateAppResponse: UpdateAppResponse, UpdateAppResponseData: UpdateAppResponseData, UpdateAppResponseDataAttributes: UpdateAppResponseDataAttributes, + UpdateAppsDatastoreRequest: UpdateAppsDatastoreRequest, + UpdateAppsDatastoreRequestData: UpdateAppsDatastoreRequestData, + UpdateAppsDatastoreRequestDataAttributes: + UpdateAppsDatastoreRequestDataAttributes, UpdateCustomFrameworkRequest: UpdateCustomFrameworkRequest, UpdateCustomFrameworkResponse: UpdateCustomFrameworkResponse, UpdateOpenAPIResponse: UpdateOpenAPIResponse, diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequest.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequest.ts new file mode 100644 index 000000000000..b3451ed643d1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { PutAppsDatastoreItemRequestData } from "./PutAppsDatastoreItemRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemRequest` object. + */ +export class PutAppsDatastoreItemRequest { + /** + * The definition of `PutAppsDatastoreItemRequestData` object. + */ + "data"?: PutAppsDatastoreItemRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "PutAppsDatastoreItemRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestData.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestData.ts new file mode 100644 index 000000000000..00f6c4bcf273 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; +import { PutAppsDatastoreItemRequestDataAttributes } from "./PutAppsDatastoreItemRequestDataAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemRequestData` object. + */ +export class PutAppsDatastoreItemRequestData { + /** + * The definition of `PutAppsDatastoreItemRequestDataAttributes` object. + */ + "attributes"?: PutAppsDatastoreItemRequestDataAttributes; + /** + * The `PutAppsDatastoreItemRequestData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "PutAppsDatastoreItemRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataAttributes.ts new file mode 100644 index 000000000000..f94314f83e1c --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemRequestDataAttributes` object. + */ +export class PutAppsDatastoreItemRequestDataAttributes { + /** + * The `attributes` `value`. + */ + "value": { [key: string]: any }; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + value: { + baseName: "value", + type: "{ [key: string]: any; }", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponse.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponse.ts new file mode 100644 index 000000000000..defc31edc6a3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponse.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { PutAppsDatastoreItemResponseData } from "./PutAppsDatastoreItemResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemResponse` object. + */ +export class PutAppsDatastoreItemResponse { + /** + * The definition of `PutAppsDatastoreItemResponseData` object. + */ + "data"?: PutAppsDatastoreItemResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "PutAppsDatastoreItemResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.ts new file mode 100644 index 000000000000..e6e3976f0934 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { PutAppsDatastoreItemResponseData } from "./PutAppsDatastoreItemResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemResponseArray` object. + */ +export class PutAppsDatastoreItemResponseArray { + /** + * The `PutAppsDatastoreItemResponseArray` `data`. + */ + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemResponseArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.ts new file mode 100644 index 000000000000..3859d9449064 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreItemsDataType } from "./DatastoreItemsDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `PutAppsDatastoreItemResponseData` object. + */ +export class PutAppsDatastoreItemResponseData { + /** + * The `PutAppsDatastoreItemResponseData` `id`. + */ + "id"?: string; + /** + * Items resource type. + */ + "type": DatastoreItemsDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreItemsDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.ts b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.ts new file mode 100644 index 000000000000..125bf9f9722b --- /dev/null +++ b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { UpdateAppsDatastoreRequestData } from "./UpdateAppsDatastoreRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `UpdateAppsDatastoreRequest` object. + */ +export class UpdateAppsDatastoreRequest { + /** + * The definition of `UpdateAppsDatastoreRequestData` object. + */ + "data"?: UpdateAppsDatastoreRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "UpdateAppsDatastoreRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return UpdateAppsDatastoreRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.ts b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.ts new file mode 100644 index 000000000000..39d1992d8714 --- /dev/null +++ b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DatastoreDataType } from "./DatastoreDataType"; +import { UpdateAppsDatastoreRequestDataAttributes } from "./UpdateAppsDatastoreRequestDataAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `UpdateAppsDatastoreRequestData` object. + */ +export class UpdateAppsDatastoreRequestData { + /** + * The definition of `UpdateAppsDatastoreRequestDataAttributes` object. + */ + "attributes"?: UpdateAppsDatastoreRequestDataAttributes; + /** + * The `UpdateAppsDatastoreRequestData` `id`. + */ + "id"?: string; + /** + * Datastores resource type. + */ + "type": DatastoreDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "UpdateAppsDatastoreRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "DatastoreDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return UpdateAppsDatastoreRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.ts new file mode 100644 index 000000000000..37984726ecd3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.ts @@ -0,0 +1,60 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `UpdateAppsDatastoreRequestDataAttributes` object. + */ +export class UpdateAppsDatastoreRequestDataAttributes { + /** + * The `attributes` `description`. + */ + "description"?: string; + /** + * The `attributes` `name`. + */ + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return UpdateAppsDatastoreRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +}