diff --git a/.generated-info b/.generated-info index 1aabf0e6bb4e..121c1ef034a0 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "8001cbb", - "generated": "2025-08-13 20:28:25.331" + "spec_repo_commit": "7029440", + "generated": "2025-08-15 03:45:21.352" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5ab5923ba83d..b16005c865b5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -5650,6 +5650,46 @@ 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/BulkPutAppsDatastoreItemsRequestDataType' + required: + - type + type: object + BulkPutAppsDatastoreItemsRequestDataAttributes: + description: The definition of `BulkPutAppsDatastoreItemsRequestDataAttributes` + object. + properties: + conflict_mode: + description: The `attributes` `conflict_mode`. + type: string + values: + $ref: '#/components/schemas/DatastoreItemValues' + required: + - values + type: object + BulkPutAppsDatastoreItemsRequestDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS CIAppAggregateBucketValue: description: A bucket value, can either be a timeseries or a single value. oneOf: @@ -10609,6 +10649,185 @@ 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/CreateAppsDatastoreFromImportRequestDataType' + 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/CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy' + values: + $ref: '#/components/schemas/DatastoreItemValues' + required: + - name + - primary_column_name + - values + type: object + CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy: + description: The `attributes` `primary_key_generation_strategy`. + enum: + - none + - uuid + type: string + x-enum-varnames: + - NONE + - UUID + CreateAppsDatastoreFromImportRequestDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES + 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/CreateAppsDatastoreFromImportResponseDataType' + 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 + CreateAppsDatastoreFromImportResponseDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES + 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/CreateAppsDatastoreRequestDataType' + 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: + description: The `attributes` `primary_key_generation_strategy`. + type: string + required: + - name + - primary_column_name + type: object + CreateAppsDatastoreRequestDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES + 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/CreateAppsDatastoreResponseDataType' + required: + - type + type: object + CreateAppsDatastoreResponseDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES CreateCustomFrameworkRequest: description: Request object to create a custom framework. properties: @@ -13315,6 +13534,100 @@ 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/DatastoreDataAttributesPrimaryKeyGenerationStrategy' + type: object + DatastoreDataAttributesPrimaryKeyGenerationStrategy: + description: The `attributes` `primary_key_generation_strategy`. + enum: + - none + - uuid + type: string + x-enum-varnames: + - NONE + - UUID + DatastoreDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES + 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 Date: description: Date as Unix timestamp in milliseconds. example: 1722439510282 @@ -13340,6 +13653,101 @@ 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/DeleteAppsDatastoreItemRequestDataType' + 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 + DeleteAppsDatastoreItemRequestDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS + 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/DeleteAppsDatastoreItemResponseDataType' + required: + - type + type: object + DeleteAppsDatastoreItemResponseDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS + DeleteAppsDatastoreResponse: + description: The definition of `DeleteAppsDatastoreResponse` object. + properties: + data: + $ref: '#/components/schemas/DeleteAppsDatastoreResponseData' + type: object + DeleteAppsDatastoreResponseData: + description: The definition of `DeleteAppsDatastoreResponseData` object. + properties: + id: + description: The `DeleteAppsDatastoreResponseData` `id`. + type: string + type: + $ref: '#/components/schemas/DeleteAppsDatastoreResponseDataType' + required: + - type + type: object + DeleteAppsDatastoreResponseDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES DeleteAppsRequest: description: A request object for deleting multiple apps by ID. example: @@ -21321,6 +21729,133 @@ 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/ItemApiPayloadDataType' + 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 + ItemApiPayloadDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS + 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 + ItemApiPayloadMetaSchemaItem: + description: The definition of `ItemApiPayloadMetaSchemaItem` object. + properties: + name: + description: The `ItemApiPayloadMetaSchemaItem` `name`. + type: string + type: + description: The `ItemApiPayloadMetaSchemaItem` `type`. + type: string + type: object JSONAPIErrorItem: description: API error response body properties: @@ -31947,6 +32482,84 @@ 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/PutAppsDatastoreItemRequestDataType' + 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 + PutAppsDatastoreItemRequestDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS + 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/PutAppsDatastoreItemResponseDataType' + required: + - type + type: object + PutAppsDatastoreItemResponseDataType: + default: items + description: Items resource type. + enum: + - items + example: items + type: string + x-enum-varnames: + - ITEMS 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. @@ -43552,6 +44165,44 @@ 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/UpdateAppsDatastoreRequestDataType' + 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 + UpdateAppsDatastoreRequestDataType: + default: datastores + description: Datastores resource type. + enum: + - datastores + example: datastores + type: string + x-enum-varnames: + - DATASTORES UpdateCustomFrameworkRequest: description: Request object to update a custom framework. properties: @@ -45493,6 +46144,499 @@ 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Create datastore + tags: + - Actions Datastores + x-codegen-request-body-name: body + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Create datastore from import + tags: + - Actions Datastores + x-codegen-request-body-name: body + 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 + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Not Found + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Update datastore + tags: + - Actions Datastores + x-codegen-request-body-name: body + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Delete datastore item + tags: + - Actions Datastores + x-codegen-request-body-name: body + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + 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: PutDatastoreItem + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Put datastore item + tags: + - Actions Datastores + x-codegen-request-body-name: body + 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: BulkPutDatastoreItems + 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' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Bulk put datastore items + tags: + - Actions Datastores + x-codegen-request-body-name: body + x-permission: + operator: OR + permissions: + - apps_datastore_write /api/v2/actions/app_key_registrations: get: description: List App Key Registrations @@ -68464,6 +69608,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-put-datastore-items-returns-Bad-Request-response_50837603/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Bad-Request-response_50837603/frozen.json new file mode 100644 index 000000000000..0eeff6172b71 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Bad-Request-response_50837603/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:18:59.568Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Bad-Request-response_50837603/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Bad-Request-response_50837603/recording.har new file mode 100644 index 000000000000..2de6234a71f8 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Bad-Request-response_50837603/recording.har @@ -0,0 +1,200 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk put 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": 568, + "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\":\"2311c2ef-1448-4dad-a67a-53cb3ea678be\",\"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-11T22:18:59.573Z", + "time": 156 + }, + { + "_id": "1f9d38ad45aecab999fefe0d98671ff1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/2311c2ef-1448-4dad-a67a-53cb3ea678be" + }, + "response": { + "bodySize": 384, + "content": { + "mimeType": "application/vnd.api+json", + "size": 384, + "text": "{\"data\":{\"id\":\"2311c2ef-1448-4dad-a67a-53cb3ea678be\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:18:59.68687Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:18:59.68687Z\",\"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-11T22:18:59.735Z", + "time": 134 + }, + { + "_id": "44b53181db744ddbf8602e857710519d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 230, + "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\":\"key1\",\"value\":{\"data\":\"example data 1\",\"key\":\"value\"}},{\"badPrimaryKey\":\"key2\",\"value\":{\"data\":\"example data 2\",\"key\":\"value\"}}]},\"id\":\"2311c2ef-1448-4dad-a67a-53cb3ea678be\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/2311c2ef-1448-4dad-a67a-53cb3ea678be/items/bulk" + }, + "response": { + "bodySize": 113, + "content": { + "mimeType": "application/vnd.api+json", + "size": 113, + "text": "{\"errors\":[{\"title\":\"item key missing or invalid\",\"detail\":\"item at index 1: 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-11T22:18:59.875Z", + "time": 151 + }, + { + "_id": "4d245cc1c40fa3f960dec99fe9319cc3", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/2311c2ef-1448-4dad-a67a-53cb3ea678be" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:00.036Z", + "time": 153 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/frozen.json new file mode 100644 index 000000000000..52ddde26a397 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:00.202Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/recording.har new file mode 100644 index 000000000000..7b166b84e97a --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-Not-Found-response_1662594532/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk put datastore items returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "4088eafa453d5bef7637f2eba2d3cf35", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 235, + "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\":[{\"primaryKey\":\"key1\",\"value\":{\"data\":\"example data 1\",\"key\":\"value\"}},{\"primaryKey\":\"key2\",\"value\":{\"data\":\"example data 2\",\"key\":\"value\"}}]},\"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": 44, + "content": { + "mimeType": "application/vnd.api+json", + "size": 44, + "text": "{\"errors\":[{\"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-11T22:19:00.206Z", + "time": 166 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/frozen.json new file mode 100644 index 000000000000..2eb1607ea589 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:00.383Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/recording.har new file mode 100644 index 000000000000..0be2d375adb2 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Bulk-put-datastore-items-returns-OK-response_2381091943/recording.har @@ -0,0 +1,200 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Bulk put 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": 568, + "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\":\"d0b1264c-fc7f-4b8c-855e-ef7c433efe6f\",\"type\":\"datastores\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 659, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-11T22:19:00.385Z", + "time": 155 + }, + { + "_id": "50305dadcf0091394ac42bf6a389cc10", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/d0b1264c-fc7f-4b8c-855e-ef7c433efe6f" + }, + "response": { + "bodySize": 386, + "content": { + "mimeType": "application/vnd.api+json", + "size": 386, + "text": "{\"data\":{\"id\":\"d0b1264c-fc7f-4b8c-855e-ef7c433efe6f\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:00.513238Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:00.513238Z\",\"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": 660, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-11T22:19:00.547Z", + "time": 133 + }, + { + "_id": "ffa27a4e0ef14c3d0cd8d89cfdc57a72", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 175, + "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\":\"key1\",\"value\":{\"data\":\"example data 1\",\"key\":\"value\"}},{\"id\":\"key2\",\"value\":{\"data\":\"example data 2\",\"key\":\"value\"}}]},\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/d0b1264c-fc7f-4b8c-855e-ef7c433efe6f/items/bulk" + }, + "response": { + "bodySize": 132, + "content": { + "mimeType": "application/vnd.api+json", + "size": 132, + "text": "{\"data\":[{\"id\":\"a74b5936-79bf-43b4-b319-1f28357e72df\",\"type\":\"items\"},{\"id\":\"cc12cffb-d035-4241-979a-e7ad9fe6b148\",\"type\":\"items\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 942, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-11T22:19:00.688Z", + "time": 156 + }, + { + "_id": "78686599b54547d77185b8f4d9d8ec86", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/d0b1264c-fc7f-4b8c-855e-ef7c433efe6f" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:00.852Z", + "time": 141 + } + ], + "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..0c587fecbf86 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-Bad-Request-response_2291270031/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:00.998Z" 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..2a9400944fbf --- /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": 585, + "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": 189, + "content": { + "mimeType": "application/vnd.api+json", + "size": 189, + "text": "{\"errors\":[{\"title\":\"invalid column name\",\"detail\":\"column name '0invalid_name' does not start with a letter or an underscore\",\"source\":{\"pointer\":\"/data/attributes/primary_column_name\"}}]}" + }, + "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-11T22:19:01.002Z", + "time": 147 + } + ], + "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..2a551a1de753 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:01.153Z" 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..8d634f45ee4e --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-from-import-returns-OK-response_2557439675/recording.har @@ -0,0 +1,104 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Create datastore from import returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "587a4b2b741cac8cc0446acb0434c6ec", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 255, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 585, + "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\":{\"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": 104, + "content": { + "mimeType": "application/vnd.api+json", + "size": 104, + "text": "{\"data\":{\"id\":\"cd30ef44-0088-43ac-925b-01f13f55b5ed\",\"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-11T22:19:01.155Z", + "time": 183 + }, + { + "_id": "009cc2a48786430f44e596dfe4abcf22", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/cd30ef44-0088-43ac-925b-01f13f55b5ed" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:01.348Z", + "time": 130 + } + ], + "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..40d26959df83 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-Bad-Request-response_1442997600/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:01.482Z" 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..3ad68daabce1 --- /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": 568, + "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": 188, + "content": { + "mimeType": "application/vnd.api+json", + "size": 188, + "text": "{\"errors\":[{\"title\":\"invalid column name\",\"detail\":\"column name '0invalid_key' does not start with a letter or an underscore\",\"source\":{\"pointer\":\"/data/attributes/primary_column_name\"}}]}" + }, + "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-11T22:19:01.484Z", + "time": 129 + } + ], + "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..c6b8f577485c --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:01.620Z" 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..338ec3d7201f --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Create-datastore-returns-OK-response_4166232622/recording.har @@ -0,0 +1,104 @@ +{ + "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": 568, + "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\":\"d57621df-a245-47e0-af1c-fb5aa84b113c\",\"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-11T22:19:01.623Z", + "time": 153 + }, + { + "_id": "fa2976234b12c3247388f65d4ba5bd91", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/d57621df-a245-47e0-af1c-fb5aa84b113c" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:01.786Z", + "time": 148 + } + ], + "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..1d3cb2927427 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Bad-Request-response_1005140978/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:01.936Z" 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..e29b9d766a22 --- /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": 592, + "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": 130, + "content": { + "mimeType": "application/vnd.api+json", + "size": 130, + "text": "{\"errors\":[{\"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-11T22:19:01.937Z", + "time": 145 + } + ], + "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..034424efc5dc --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-Not-Found-response_3673288865/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:02.086Z" 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..c1b856a1d3f7 --- /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": 617, + "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": 44, + "content": { + "mimeType": "application/vnd.api+json", + "size": 44, + "text": "{\"errors\":[{\"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-11T22:19:02.088Z", + "time": 152 + } + ], + "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..db513cdebf78 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:02.248Z" 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..a6a937ca44de --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-item-returns-OK-response_2198168048/recording.har @@ -0,0 +1,301 @@ +{ + "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": 568, + "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\":\"74103e72-83a1-483a-82a0-ece193df3352\",\"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-11T22:19:02.250Z", + "time": 157 + }, + { + "_id": "6eb18724cbd783d7b11c2518aed0aa09", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/74103e72-83a1-483a-82a0-ece193df3352" + }, + "response": { + "bodySize": 384, + "content": { + "mimeType": "application/vnd.api+json", + "size": 384, + "text": "{\"data\":{\"id\":\"74103e72-83a1-483a-82a0-ece193df3352\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:02.37855Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:02.37855Z\",\"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-11T22:19:02.418Z", + "time": 117 + }, + { + "_id": "bc0a9644e10e927adfba4081b1fce523", + "_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\":\"74103e72-83a1-483a-82a0-ece193df3352\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/74103e72-83a1-483a-82a0-ece193df3352/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"48241ef8-650f-494e-93f5-da1414376efe\",\"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-11T22:19:02.541Z", + "time": 150 + }, + { + "_id": "b088064513a8914b81a77332d3f03bfd", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 578, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "item_key", + "value": "test-key" + } + ], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/74103e72-83a1-483a-82a0-ece193df3352/items" + }, + "response": { + "bodySize": 850, + "content": { + "mimeType": "application/vnd.api+json", + "size": 850, + "text": "{\"data\":[{\"id\":\"48241ef8-650f-494e-93f5-da1414376efe\",\"type\":\"items\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:02.680284Z\",\"modified_at\":\"2025-08-11T22:19:02.680284Z\",\"org_id\":321813,\"primary_column_name\":\"id\",\"signature\":\"{\\\"signature\\\":\\\"{\\\\\\\"version\\\\\\\":2,\\\\\\\"algorithm\\\\\\\":\\\\\\\"ecdsa-p384\\\\\\\",\\\\\\\"pubkey\\\\\\\":\\\\\\\"3Sh//jFQJZ+uhUOwvHL8krXnbOjEFxMZrYnngo8J/AY=\\\\\\\",\\\\\\\"timestamp\\\\\\\":1754950742,\\\\\\\"proof\\\\\\\":\\\\\\\"MGYCMQC5kVpFCj7klWkFz2lhtv8aTE7OrYX2onKe4KIOKVjKdHDffVByBTZ2QtRr5ABr7kICMQDi+4pLo2jMvTWYWWC9cd17cmkvgMEciB0Jb9NWNaNMae4ny+xyObi2r2NPEDCp3Os=\\\\\\\"}\\\",\\\"version\\\":1}\",\"store_id\":\"74103e72-83a1-483a-82a0-ece193df3352\",\"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-11T22:19:02.701Z", + "time": 147 + }, + { + "_id": "162d85d55386fac604f16da57a6fbe6f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 150, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 617, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"id\":\"48241ef8-650f-494e-93f5-da1414376efe\",\"item_key\":\"test-key\"},\"id\":\"74103e72-83a1-483a-82a0-ece193df3352\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/74103e72-83a1-483a-82a0-ece193df3352/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"48241ef8-650f-494e-93f5-da1414376efe\",\"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-11T22:19:02.856Z", + "time": 137 + }, + { + "_id": "1c0f10c970b2c970e2d471ec31e49652", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/74103e72-83a1-483a-82a0-ece193df3352" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:02.998Z", + "time": 136 + } + ], + "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..0e34626ebb97 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-Bad-Request-response_2003852341/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:03.140Z" 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..a6ea744bfcc0 --- /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": 517, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid" + }, + "response": { + "bodySize": 130, + "content": { + "mimeType": "application/vnd.api+json", + "size": 130, + "text": "{\"errors\":[{\"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-11T22:19:03.143Z", + "time": 140 + } + ], + "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..be693b393ef3 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/frozen.json @@ -0,0 +1 @@ +"2025-08-13T19:04:54.910Z" 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..3af633d1a11c --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Delete-datastore-returns-OK-response_2873322313/recording.har @@ -0,0 +1,147 @@ +{ + "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": 568, + "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\":\"f12a6a3b-ee1a-4388-a47b-d4aae4988a45\",\"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-13T19:04:54.914Z", + "time": 168 + }, + { + "_id": "4ef5435553667d1cb407ebdc8fbbfbc9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f12a6a3b-ee1a-4388-a47b-d4aae4988a45" + }, + "response": { + "bodySize": 74, + "content": { + "mimeType": "application/vnd.api+json", + "size": 74, + "text": "{\"data\":{\"id\":\"f12a6a3b-ee1a-4388-a47b-d4aae4988a45\",\"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-13T19:04:55.089Z", + "time": 114 + }, + { + "_id": "4ef5435553667d1cb407ebdc8fbbfbc9", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/f12a6a3b-ee1a-4388-a47b-d4aae4988a45" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-13T19:04:55.208Z", + "time": 119 + } + ], + "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..edfb5483f761 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Bad-Request-response_1219510482/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:03.850Z" 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..39454b18f10b --- /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": 524, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid" + }, + "response": { + "bodySize": 130, + "content": { + "mimeType": "application/vnd.api+json", + "size": 130, + "text": "{\"errors\":[{\"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-11T22:19:03.852Z", + "time": 103 + } + ], + "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..6dd26647cc19 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-Not-Found-response_1292498433/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:03.960Z" 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..9eb0056ef26c --- /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": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/5bf53b3f-b230-4b35-ab1a-b39f2633eb22" + }, + "response": { + "bodySize": 44, + "content": { + "mimeType": "application/vnd.api+json", + "size": 44, + "text": "{\"errors\":[{\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-11T22:19:03.961Z", + "time": 126 + } + ], + "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..a2c258827dd5 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:04.095Z" 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..46a4202aab5a --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Get-datastore-returns-OK-response_2132349520/recording.har @@ -0,0 +1,147 @@ +{ + "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": 568, + "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\":\"0aeda3c9-fa45-4e5a-bb06-69c73b18e36a\",\"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-11T22:19:04.096Z", + "time": 142 + }, + { + "_id": "827ed7ee38174b8969125addd6d4743c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/0aeda3c9-fa45-4e5a-bb06-69c73b18e36a" + }, + "response": { + "bodySize": 386, + "content": { + "mimeType": "application/vnd.api+json", + "size": 386, + "text": "{\"data\":{\"id\":\"0aeda3c9-fa45-4e5a-bb06-69c73b18e36a\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:04.208564Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:04.208564Z\",\"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-11T22:19:04.242Z", + "time": 157 + }, + { + "_id": "f9c659d66bd67712d405cacf2eb261a5", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/0aeda3c9-fa45-4e5a-bb06-69c73b18e36a" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:04.404Z", + "time": 124 + } + ], + "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..ba11005a63a4 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:04.532Z" 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..28f545db71e0 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Bad-Request-response_255097336/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "Actions Datastores/List 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": 568, + "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\":\"ddb41c1d-51d8-4975-94b4-261e659dec74\",\"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-11T22:19:04.534Z", + "time": 135 + }, + { + "_id": "89734d049511bd4e2cfcbdcea411cf1a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/invalid-uuid/items" + }, + "response": { + "bodySize": 130, + "content": { + "mimeType": "application/vnd.api+json", + "size": 130, + "text": "{\"errors\":[{\"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-11T22:19:04.676Z", + "time": 133 + }, + { + "_id": "cdf0a91a4ee03fc3c29b79299bb79075", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/ddb41c1d-51d8-4975-94b4-261e659dec74" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:04.818Z", + "time": 130 + } + ], + "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..042102ab0515 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-Not-Found-response_6857551/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:04.951Z" 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..6bfff10fa80f --- /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": 560, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/3cfdd0b8-c490-4969-8d51-69add64a70ea/items" + }, + "response": { + "bodySize": 44, + "content": { + "mimeType": "application/vnd.api+json", + "size": 44, + "text": "{\"errors\":[{\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 804, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-11T22:19:04.954Z", + "time": 135 + } + ], + "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..7f0a8388d720 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:05.094Z" 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..22f03f72bb15 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastore-items-returns-OK-response_2236082966/recording.har @@ -0,0 +1,291 @@ +{ + "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": 568, + "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\":\"750ca6cd-e032-451f-91c5-be07a26ed420\",\"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-11T22:19:05.096Z", + "time": 128 + }, + { + "_id": "6cd380d62247f0630a10892abcb04a61", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/750ca6cd-e032-451f-91c5-be07a26ed420" + }, + "response": { + "bodySize": 384, + "content": { + "mimeType": "application/vnd.api+json", + "size": 384, + "text": "{\"data\":{\"id\":\"750ca6cd-e032-451f-91c5-be07a26ed420\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:05.19296Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:05.19296Z\",\"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-11T22:19:05.231Z", + "time": 126 + }, + { + "_id": "6a4f66b604adf47da92713d7345c37aa", + "_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\":\"750ca6cd-e032-451f-91c5-be07a26ed420\",\"type\":\"items\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/750ca6cd-e032-451f-91c5-be07a26ed420/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"d88904ef-386c-4723-a3b9-4e0d4ed2ea95\",\"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-11T22:19:05.366Z", + "time": 225 + }, + { + "_id": "240c309247cfe6f437df070a88c3d6f5", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 578, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "item_key", + "value": "test-key" + } + ], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/750ca6cd-e032-451f-91c5-be07a26ed420/items" + }, + "response": { + "bodySize": 846, + "content": { + "mimeType": "application/vnd.api+json", + "size": 846, + "text": "{\"data\":[{\"id\":\"d88904ef-386c-4723-a3b9-4e0d4ed2ea95\",\"type\":\"items\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:05.581035Z\",\"modified_at\":\"2025-08-11T22:19:05.581035Z\",\"org_id\":321813,\"primary_column_name\":\"id\",\"signature\":\"{\\\"signature\\\":\\\"{\\\\\\\"version\\\\\\\":2,\\\\\\\"algorithm\\\\\\\":\\\\\\\"ecdsa-p384\\\\\\\",\\\\\\\"pubkey\\\\\\\":\\\\\\\"3Sh//jFQJZ+uhUOwvHL8krXnbOjEFxMZrYnngo8J/AY=\\\\\\\",\\\\\\\"timestamp\\\\\\\":1754950745,\\\\\\\"proof\\\\\\\":\\\\\\\"MGQCMH3EHN8dRcyYnlAGca1oavAiWREFIjqCYs26LJ0U7jnzVf3zNNzdnCHW+5p9CUoGKQIwMQ/hTuaHqQRKcaENqDr4tWhHbzTI+/KCW0ooyC8K1m6soAOZq1QHJi0b0BGbojPy\\\\\\\"}\\\",\\\"version\\\":1}\",\"store_id\":\"750ca6cd-e032-451f-91c5-be07a26ed420\",\"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-11T22:19:05.597Z", + "time": 140 + }, + { + "_id": "6abe1db2c89a3f5a5af8649d5fa1ed0e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/750ca6cd-e032-451f-91c5-be07a26ed420/items" + }, + "response": { + "bodySize": 846, + "content": { + "mimeType": "application/vnd.api+json", + "size": 846, + "text": "{\"data\":[{\"id\":\"d88904ef-386c-4723-a3b9-4e0d4ed2ea95\",\"type\":\"items\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:05.581035Z\",\"modified_at\":\"2025-08-11T22:19:05.581035Z\",\"org_id\":321813,\"primary_column_name\":\"id\",\"signature\":\"{\\\"signature\\\":\\\"{\\\\\\\"version\\\\\\\":2,\\\\\\\"algorithm\\\\\\\":\\\\\\\"ecdsa-p384\\\\\\\",\\\\\\\"pubkey\\\\\\\":\\\\\\\"3Sh//jFQJZ+uhUOwvHL8krXnbOjEFxMZrYnngo8J/AY=\\\\\\\",\\\\\\\"timestamp\\\\\\\":1754950745,\\\\\\\"proof\\\\\\\":\\\\\\\"MGQCMH3EHN8dRcyYnlAGca1oavAiWREFIjqCYs26LJ0U7jnzVf3zNNzdnCHW+5p9CUoGKQIwMQ/hTuaHqQRKcaENqDr4tWhHbzTI+/KCW0ooyC8K1m6soAOZq1QHJi0b0BGbojPy\\\\\\\"}\\\",\\\"version\\\":1}\",\"store_id\":\"750ca6cd-e032-451f-91c5-be07a26ed420\",\"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-11T22:19:05.742Z", + "time": 171 + }, + { + "_id": "251e87f6eb2df683ecbde62515dd4dba", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/750ca6cd-e032-451f-91c5-be07a26ed420" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:05.923Z", + "time": 116 + } + ], + "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..0eafdaac9922 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/List-datastores-returns-OK-response_2604545467/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:06.049Z" 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..37bb9ab0825c --- /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": 513, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores" + }, + "response": { + "bodySize": 15126, + "content": { + "mimeType": "application/vnd.api+json", + "size": 15126, + "text": "{\"data\":[{\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\":\"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\"}},{\"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\":\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 665, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-11T22:19:06.053Z", + "time": 127 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/frozen.json new file mode 100644 index 000000000000..f3ee58bc8f4b --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:06.188Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/recording.har new file mode 100644 index 000000000000..3cdbf43718ee --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-Bad-Request-response_4261019854/recording.har @@ -0,0 +1,157 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Put 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": 568, + "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\":\"5d430898-fa17-4fe6-aab0-75f1b2880b9c\",\"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-11T22:19:06.190Z", + "time": 149 + }, + { + "_id": "53e4e0178bb741ccd0467d0dd405c6c3", + "_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/5d430898-fa17-4fe6-aab0-75f1b2880b9c/items" + }, + "response": { + "bodySize": 113, + "content": { + "mimeType": "application/vnd.api+json", + "size": 113, + "text": "{\"errors\":[{\"title\":\"item key missing or invalid\",\"detail\":\"item at index 0: 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-11T22:19:06.345Z", + "time": 136 + }, + { + "_id": "b721c0c59e26f93682ff5497284aa176", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/5d430898-fa17-4fe6-aab0-75f1b2880b9c" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:06.488Z", + "time": 124 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/frozen.json b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/frozen.json new file mode 100644 index 000000000000..84641f38fc4e --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:19:06.617Z" diff --git a/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/recording.har b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/recording.har new file mode 100644 index 000000000000..7aed6a898918 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Put-datastore-item-returns-OK-response_3921780644/recording.har @@ -0,0 +1,200 @@ +{ + "log": { + "_recordingName": "Actions Datastores/Put 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": 568, + "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\":\"4bb0f4ff-bb80-45fe-ac06-73a66bb7b488\",\"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-11T22:19:06.618Z", + "time": 111 + }, + { + "_id": "ae172a959c06b8a7410c6a3b3129246f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/4bb0f4ff-bb80-45fe-ac06-73a66bb7b488" + }, + "response": { + "bodySize": 384, + "content": { + "mimeType": "application/vnd.api+json", + "size": 384, + "text": "{\"data\":{\"id\":\"4bb0f4ff-bb80-45fe-ac06-73a66bb7b488\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:19:06.69789Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:19:06.69789Z\",\"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": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-11T22:19:06.736Z", + "time": 120 + }, + { + "_id": "14efb1ae90747c91be538c3b06c2f2f9", + "_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/4bb0f4ff-bb80-45fe-ac06-73a66bb7b488/items" + }, + "response": { + "bodySize": 69, + "content": { + "mimeType": "application/vnd.api+json", + "size": 69, + "text": "{\"data\":{\"id\":\"94a0f1d7-0049-4a89-bd8b-38d596feb328\",\"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-11T22:19:06.864Z", + "time": 139 + }, + { + "_id": "ac0f7d9a1aa45b1f1872a011a814edfb", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/4bb0f4ff-bb80-45fe-ac06-73a66bb7b488" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:19:07.010Z", + "time": 127 + } + ], + "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..142db478959f --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Bad-Request-response_846207679/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:25:45.331Z" 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..3a3737a993c1 --- /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": 581, + "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": 130, + "content": { + "mimeType": "application/vnd.api+json", + "size": 130, + "text": "{\"errors\":[{\"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-11T22:25:45.336Z", + "time": 123 + } + ], + "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..07d9789d7872 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-Not-Found-response_2656017816/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:26:28.062Z" 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..1ebc758958b2 --- /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": 606, + "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": 44, + "content": { + "mimeType": "application/vnd.api+json", + "size": 44, + "text": "{\"errors\":[{\"title\":\"datastore not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-11T22:26:28.067Z", + "time": 133 + } + ], + "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..2088262d1aa0 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/frozen.json @@ -0,0 +1 @@ +"2025-08-11T22:27:22.872Z" 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..79de4ee4b959 --- /dev/null +++ b/cassettes/v2/Actions-Datastores_3792888034/Update-datastore-returns-OK-response_2928111531/recording.har @@ -0,0 +1,200 @@ +{ + "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": 568, + "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\":\"b7312b5f-ff05-4c96-972e-2d4d04ace106\",\"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-11T22:27:22.877Z", + "time": 159 + }, + { + "_id": "13acf0ae5eaa145c9523ebad5956e989", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 548, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/b7312b5f-ff05-4c96-972e-2d4d04ace106" + }, + "response": { + "bodySize": 386, + "content": { + "mimeType": "application/vnd.api+json", + "size": 386, + "text": "{\"data\":{\"id\":\"b7312b5f-ff05-4c96-972e-2d4d04ace106\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:27:23.001019Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:27:23.001019Z\",\"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-11T22:27:23.044Z", + "time": 135 + }, + { + "_id": "bf85449b0c9aba6205835b1c857ff81b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 111, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 606, + "httpVersion": "HTTP/1.1", + "method": "PATCH", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"updated name\"},\"id\":\"b7312b5f-ff05-4c96-972e-2d4d04ace106\",\"type\":\"datastores\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/b7312b5f-ff05-4c96-972e-2d4d04ace106" + }, + "response": { + "bodySize": 384, + "content": { + "mimeType": "application/vnd.api+json", + "size": 384, + "text": "{\"data\":{\"id\":\"b7312b5f-ff05-4c96-972e-2d4d04ace106\",\"type\":\"datastores\",\"attributes\":{\"created_at\":\"2025-08-11T22:27:23.001019Z\",\"creator_user_id\":1445416,\"creator_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"\",\"modified_at\":\"2025-08-11T22:27:23.321805Z\",\"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-11T22:27:23.187Z", + "time": 146 + }, + { + "_id": "946eb2d99a1121610641d8794910dede", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 541, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/actions-datastores/b7312b5f-ff05-4c96-972e-2d4d04ace106" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 598, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-11T22:27:23.345Z", + "time": 148 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/examples/v2/actions-datastores/BulkPutDatastoreItems.ts b/examples/v2/actions-datastores/BulkPutDatastoreItems.ts new file mode 100644 index 000000000000..c1dad04c2684 --- /dev/null +++ b/examples/v2/actions-datastores/BulkPutDatastoreItems.ts @@ -0,0 +1,41 @@ +/** + * Bulk put 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.ActionsDatastoresApiBulkPutDatastoreItemsRequest = { + body: { + data: { + attributes: { + values: [ + { + "28173b88-1a0e-001e-28c0-7664b6410518": "key1", + value: "{'data': 'example data 1', 'key': 'value'}", + }, + { + "28173b88-1a0e-001e-28c0-7664b6410518": "key2", + value: "{'data': 'example data 2', 'key': 'value'}", + }, + ], + }, + type: "items", + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .bulkPutDatastoreItems(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..d06c94ac6b0c --- /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: "{'data': 'example data 1', 'key': 'value'}", + }, + { + primaryKey: "key2", + value: "{'data': 'example data 2', 'key': 'value'}", + }, + ], + }, + 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..624010f49406 --- /dev/null +++ b/examples/v2/actions-datastores/DeleteDatastore.ts @@ -0,0 +1,25 @@ +/** + * Delete datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// a "datastore" is created in the system +const CREATED_DATASTORE_DATA_ID = process.env + .CREATED_DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiDeleteDatastoreRequest = { + datastoreId: CREATED_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..2ac390d910ed --- /dev/null +++ b/examples/v2/actions-datastores/DeleteDatastoreItem.ts @@ -0,0 +1,38 @@ +/** + * 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; + +// there are valid "datastore items" in the system +const DATASTORE_ITEMS_DATA_0_ID = process.env + .DATASTORE_ITEMS_DATA_0_ID as string; + +const params: v2.ActionsDatastoresApiDeleteDatastoreItemRequest = { + body: { + data: { + attributes: { + id: DATASTORE_ITEMS_DATA_0_ID, + 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..9892705f6650 --- /dev/null +++ b/examples/v2/actions-datastores/GetDatastore.ts @@ -0,0 +1,25 @@ +/** + * Get datastore returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.ActionsDatastoresApi(configuration); + +// a "datastore" is created in the system +const CREATED_DATASTORE_DATA_ID = process.env + .CREATED_DATASTORE_DATA_ID as string; + +const params: v2.ActionsDatastoresApiGetDatastoreRequest = { + datastoreId: CREATED_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/PutDatastoreItem.ts b/examples/v2/actions-datastores/PutDatastoreItem.ts new file mode 100644 index 000000000000..8d5541d96753 --- /dev/null +++ b/examples/v2/actions-datastores/PutDatastoreItem.ts @@ -0,0 +1,37 @@ +/** + * Put 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.ActionsDatastoresApiPutDatastoreItemRequest = { + body: { + data: { + attributes: { + value: { + "28173b88-1a0e-001e-28c0-7664b6410518": "new-item-key", + data: "example data", + key: "value", + }, + }, + type: "items", + id: "e7e64418-b60c-4789-9612-895ac8423207", + }, + }, + datastoreId: DATASTORE_DATA_ID, +}; + +apiInstance + .putDatastoreItem(params) + .then((data: v2.PutAppsDatastoreItemResponse) => { + 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/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index c35553405b4b..c2a76078e44f 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.DeleteDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "operationResponseType": "void", + }, + "v2.GetDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "operationResponseType": "Datastore", + }, + "v2.UpdateDatastore": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "UpdateAppsDatastoreRequest", + "format": "", + }, + "operationResponseType": "Datastore", + }, + "v2.DeleteDatastoreItem": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "DeleteAppsDatastoreItemRequest", + "format": "", + }, + "operationResponseType": "DeleteAppsDatastoreItemResponse", + }, + "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.PutDatastoreItem": { + "datastoreId": { + "type": "string", + "format": "", + }, + "body": { + "type": "PutAppsDatastoreItemRequest", + "format": "", + }, + "operationResponseType": "PutAppsDatastoreItemResponse", + }, + "v2.BulkPutDatastoreItems": { + "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..eac17c569ab8 --- /dev/null +++ b/features/v2/actions_datastores.feature @@ -0,0 +1,248 @@ +@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 put datastore items returns "Bad Request" response + Given new "BulkPutDatastoreItems" request + And a "datastore" is created in the system + 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": [{"{{datastore.data.attributes.primary_column_name}}": "key1", "value": {"data": "example data 1", "key": "value"}}, {"badPrimaryKey": "key2", "value": {"data": "example data 2", "key": "value"}}]}, "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 put datastore items returns "Not Found" response + Given new "BulkPutDatastoreItems" request + And request contains "datastore_id" parameter with value "70b87c26-886f-497a-bd9d-09f53bc9b40c" + And body with value {"data": {"attributes": {"values": [{"primaryKey": "key1", "value": {"data": "example data 1", "key": "value"}}, {"primaryKey": "key2", "value": {"data": "example data 2", "key": "value"}}]}, "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 put datastore items returns "OK" response + Given new "BulkPutDatastoreItems" request + And a "datastore" is created in the system + 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": [{"{{datastore.data.attributes.primary_column_name}}": "key1", "value": {"data": "example data 1", "key": "value"}}, {"{{datastore.data.attributes.primary_column_name}}": "key2", "value": {"data": "example data 2", "key": "value"}}]}, "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 "invalid column name" + + @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": {"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 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 "invalid column name" + + @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" + + @team:DataDog/app-builder-backend + Scenario: Delete datastore item returns "OK" response + Given new "DeleteDatastoreItem" request + And a "datastore" is created in the system + And there is a valid "datastore" in the system + And a "datastore item" is created in the system + And there are valid "datastore items" in the system + And request contains "datastore_id" parameter from "datastore.data.id" + And body with value {"data": {"attributes": {"id": "{{datastore_items.data[0].id}}", "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 @team:DataDog/app-builder-backend + Scenario: Delete datastore returns "Not Found" response + Given new "DeleteDatastore" request + And request contains "datastore_id" parameter with value "f4822dc6-3c79-4963-8980-291a65d3b196" + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/app-builder-backend + Scenario: Delete datastore returns "OK" response + Given new "DeleteDatastore" request + And a "datastore" is created in the system + And request contains "datastore_id" parameter from "created_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 a "datastore" is created in the system + And request contains "datastore_id" parameter from "created_datastore.data.id" + When the request is sent + Then the response status is 200 OK + And the response "data.id" is equal to "{{created_datastore.data.id}}" + + @team:DataDog/app-builder-backend + Scenario: List datastore items returns "Bad Request" response + Given new "ListDatastoreItems" request + And a "datastore" is created in the system + 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" + + @team:DataDog/app-builder-backend + Scenario: List datastore items returns "OK" response + Given new "ListDatastoreItems" request + And a "datastore" is created in the system + And there is a valid "datastore" in the system + And a "datastore item" is created in the system + And there are valid "datastore items" 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_items.data[0].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: Put datastore item returns "Bad Request" response + Given new "PutDatastoreItem" request + And a "datastore" is created in the system + And request contains "datastore_id" parameter from "created_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" + + @team:DataDog/app-builder-backend + Scenario: Put datastore item returns "OK" response + Given new "PutDatastoreItem" request + And a "datastore" is created in the system + 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": {"{{datastore.data.attributes.primary_column_name}}": "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 + + @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 a "datastore" is created in the system + 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" diff --git a/features/v2/given.json b/features/v2/given.json index b6097093658a..561610254556 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -1,4 +1,68 @@ [ + { + "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": "a \"datastore\" is created in the system", + "key": "created_datastore", + "tag": "Actions Datastores", + "operationId": "CreateDatastore" + }, + { + "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 \"values\": [],\n \"description\": \"\",\n \"org_access\": \"contributor\"\n }\n }\n}" + } + ], + "step": "there is a valid imported \"datastore\" in the system", + "key": "imported_datastore", + "tag": "Actions Datastores", + "operationId": "CreateDatastoreFromImport" + }, + { + "parameters": [ + { + "name": "datastore_id", + "value": "\"{{created_datastore.data.id}}\"" + } + ], + "step": "there is a valid \"datastore\" in the system", + "key": "datastore", + "tag": "Actions Datastores", + "operationId": "GetDatastore" + }, + { + "parameters": [ + { + "name": "datastore_id", + "value": "\"{{datastore.data.id}}\"" + } + ], + "step": "there are valid \"datastore items\" in the system", + "key": "datastore_items", + "tag": "Actions Datastores", + "operationId": "ListDatastoreItems" + }, + { + "parameters": [ + { + "name": "datastore_id", + "value": "\"{{datastore.data.id}}\"" + }, + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"items\",\n \"attributes\": {\n \"value\": {\n \"{{datastore.data.attributes.primary_column_name}}\": \"test-key\",\n \"data\": \"test-value\"\n }\n },\n \"id\": \"{{datastore.data.id}}\"\n }\n}" + } + ], + "step": "a \"datastore item\" is created in the system", + "key": "created_datastore_item", + "tag": "Actions Datastores", + "operationId": "PutDatastoreItem" + }, { "parameters": [ { diff --git a/features/v2/undo.json b/features/v2/undo.json index fd14fad09365..8a815429a5f3 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -1,4 +1,91 @@ { + "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" + } + }, + "PutDatastoreItem": { + "tag": "Actions Datastores", + "undo": { + "operationId": "DeleteDatastoreItem", + "parameters": [ + { + "name": "datastore_id", + "origin": "request", + "source": "data.id" + }, + { + "name": "body", + "origin": "request", + "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" + } + }, + "BulkPutDatastoreItems": { + "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..b4a0e1bd6568 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.ts @@ -0,0 +1,1667 @@ +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 bulkPutDatastoreItems( + 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", "bulkPutDatastoreItems"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "bulkPutDatastoreItems"); + } + + // 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.bulkPutDatastoreItems") + .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 putDatastoreItem( + 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", "putDatastoreItem"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "putDatastoreItem"); + } + + // 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.putDatastoreItem") + .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; + } + + 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; + } +} + +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 bulkPutDatastoreItems + * @throws ApiException if the response code was not in [200, 299] + */ + public async bulkPutDatastoreItems( + 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 || + response.httpStatusCode === 500 + ) { + 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 || response.httpStatusCode === 500) { + 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 || response.httpStatusCode === 500) { + 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 || + response.httpStatusCode === 404 || + response.httpStatusCode === 500 + ) { + 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: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", + "" + ) as void; + 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 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 || + response.httpStatusCode === 500 + ) { + 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 || + response.httpStatusCode === 500 + ) { + 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 || + response.httpStatusCode === 500 + ) { + 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); + } + if (response.httpStatusCode === 500) { + 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 + ); + } + + // 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 putDatastoreItem + * @throws ApiException if the response code was not in [200, 299] + */ + public async putDatastoreItem( + 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 || response.httpStatusCode === 500) { + 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 + '"' + ); + } + + /** + * 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 || + response.httpStatusCode === 500 + ) { + 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 + '"' + ); + } +} + +export interface ActionsDatastoresApiBulkPutDatastoreItemsRequest { + /** + * 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 ActionsDatastoresApiPutDatastoreItemRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type PutAppsDatastoreItemRequest + */ + body: PutAppsDatastoreItemRequest; +} + +export interface ActionsDatastoresApiUpdateDatastoreRequest { + /** + * The ID of the datastore. + * @type string + */ + datastoreId: string; + /** + * @type UpdateAppsDatastoreRequest + */ + body: UpdateAppsDatastoreRequest; +} + +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 bulkPutDatastoreItems( + param: ActionsDatastoresApiBulkPutDatastoreItemsRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.bulkPutDatastoreItems( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.bulkPutDatastoreItems(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); + }); + }); + } + + /** + * Creates or replaces an item in a datastore by its key. + * @param param The request object + */ + public putDatastoreItem( + param: ActionsDatastoresApiPutDatastoreItemRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.putDatastoreItem( + param.datastoreId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.putDatastoreItem(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); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 133f2727d8ab..430bb9112363 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 { + ActionsDatastoresApiBulkPutDatastoreItemsRequest, + ActionsDatastoresApiCreateDatastoreRequest, + ActionsDatastoresApiCreateDatastoreFromImportRequest, + ActionsDatastoresApiDeleteDatastoreRequest, + ActionsDatastoresApiDeleteDatastoreItemRequest, + ActionsDatastoresApiGetDatastoreRequest, + ActionsDatastoresApiListDatastoreItemsRequest, + ActionsDatastoresApiPutDatastoreItemRequest, + ActionsDatastoresApiUpdateDatastoreRequest, + ActionsDatastoresApi, +} from "./apis/ActionsDatastoresApi"; + export { AgentlessScanningApiCreateAwsOnDemandTaskRequest, AgentlessScanningApiCreateAwsScanOptionsRequest, @@ -1077,6 +1090,10 @@ 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 { BulkPutAppsDatastoreItemsRequestDataType } from "./models/BulkPutAppsDatastoreItemsRequestDataType"; export { CalculatedField } from "./models/CalculatedField"; export { CancelDataDeletionResponseBody } from "./models/CancelDataDeletionResponseBody"; export { Case } from "./models/Case"; @@ -1367,6 +1384,22 @@ 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 { CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy } from "./models/CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy"; +export { CreateAppsDatastoreFromImportRequestDataType } from "./models/CreateAppsDatastoreFromImportRequestDataType"; +export { CreateAppsDatastoreFromImportResponse } from "./models/CreateAppsDatastoreFromImportResponse"; +export { CreateAppsDatastoreFromImportResponseData } from "./models/CreateAppsDatastoreFromImportResponseData"; +export { CreateAppsDatastoreFromImportResponseDataAttributes } from "./models/CreateAppsDatastoreFromImportResponseDataAttributes"; +export { CreateAppsDatastoreFromImportResponseDataType } from "./models/CreateAppsDatastoreFromImportResponseDataType"; +export { CreateAppsDatastoreRequest } from "./models/CreateAppsDatastoreRequest"; +export { CreateAppsDatastoreRequestData } from "./models/CreateAppsDatastoreRequestData"; +export { CreateAppsDatastoreRequestDataAttributes } from "./models/CreateAppsDatastoreRequestDataAttributes"; +export { CreateAppsDatastoreRequestDataType } from "./models/CreateAppsDatastoreRequestDataType"; +export { CreateAppsDatastoreResponse } from "./models/CreateAppsDatastoreResponse"; +export { CreateAppsDatastoreResponseData } from "./models/CreateAppsDatastoreResponseData"; +export { CreateAppsDatastoreResponseDataType } from "./models/CreateAppsDatastoreResponseDataType"; export { CreateCustomFrameworkRequest } from "./models/CreateCustomFrameworkRequest"; export { CreateCustomFrameworkResponse } from "./models/CreateCustomFrameworkResponse"; export { CreateDataDeletionRequestBody } from "./models/CreateDataDeletionRequestBody"; @@ -1513,11 +1546,24 @@ export { DatasetResponse } from "./models/DatasetResponse"; export { DatasetResponseMulti } from "./models/DatasetResponseMulti"; export { DatasetResponseSingle } from "./models/DatasetResponseSingle"; 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 { DatastoreDataAttributesPrimaryKeyGenerationStrategy } from "./models/DatastoreDataAttributesPrimaryKeyGenerationStrategy"; +export { DatastoreDataType } from "./models/DatastoreDataType"; 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 { DeleteAppsDatastoreItemRequestDataType } from "./models/DeleteAppsDatastoreItemRequestDataType"; +export { DeleteAppsDatastoreItemResponse } from "./models/DeleteAppsDatastoreItemResponse"; +export { DeleteAppsDatastoreItemResponseData } from "./models/DeleteAppsDatastoreItemResponseData"; +export { DeleteAppsDatastoreItemResponseDataType } from "./models/DeleteAppsDatastoreItemResponseDataType"; export { DeleteAppsRequest } from "./models/DeleteAppsRequest"; export { DeleteAppsRequestDataItems } from "./models/DeleteAppsRequestDataItems"; export { DeleteAppsResponse } from "./models/DeleteAppsResponse"; @@ -2068,6 +2114,14 @@ 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 { ItemApiPayloadDataType } from "./models/ItemApiPayloadDataType"; +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"; @@ -2769,6 +2823,14 @@ 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 { PutAppsDatastoreItemRequestDataType } from "./models/PutAppsDatastoreItemRequestDataType"; +export { PutAppsDatastoreItemResponse } from "./models/PutAppsDatastoreItemResponse"; +export { PutAppsDatastoreItemResponseArray } from "./models/PutAppsDatastoreItemResponseArray"; +export { PutAppsDatastoreItemResponseData } from "./models/PutAppsDatastoreItemResponseData"; +export { PutAppsDatastoreItemResponseDataType } from "./models/PutAppsDatastoreItemResponseDataType"; export { Query } from "./models/Query"; export { QueryFormula } from "./models/QueryFormula"; export { QuerySortOrder } from "./models/QuerySortOrder"; @@ -3508,6 +3570,10 @@ 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 { UpdateAppsDatastoreRequestDataType } from "./models/UpdateAppsDatastoreRequestDataType"; 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..43a6142f9d02 --- /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: "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..b8d6a8ed7022 --- /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 { BulkPutAppsDatastoreItemsRequestDataType } from "./BulkPutAppsDatastoreItemsRequestDataType"; + +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": BulkPutAppsDatastoreItemsRequestDataType; + + /** + * 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: "BulkPutAppsDatastoreItemsRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..472baae2f862 --- /dev/null +++ b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.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 `BulkPutAppsDatastoreItemsRequestDataAttributes` object. + */ +export class BulkPutAppsDatastoreItemsRequestDataAttributes { + /** + * The `attributes` `conflict_mode`. + */ + "conflictMode"?: string; + /** + * 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: "string", + }, + values: { + baseName: "values", + type: "Array<{ [key: string]: any; }>", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return BulkPutAppsDatastoreItemsRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataType.ts b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataType.ts new file mode 100644 index 000000000000..300267485cfe --- /dev/null +++ b/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 BulkPutAppsDatastoreItemsRequestDataType = + | typeof ITEMS + | UnparsedObject; +export const ITEMS = "items"; 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..8f27542d97f3 --- /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: "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..641dea225a7c --- /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 { CreateAppsDatastoreFromImportRequestDataType } from "./CreateAppsDatastoreFromImportRequestDataType"; + +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": CreateAppsDatastoreFromImportRequestDataType; + + /** + * 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: "CreateAppsDatastoreFromImportRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..f7f9099b6457 --- /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 { CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy } from "./CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy"; + +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"?: CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy; + /** + * 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: "CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy", + }, + values: { + baseName: "values", + type: "Array<{ [key: string]: any; }>", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy.ts new file mode 100644 index 000000000000..5c6f683369b2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy.ts @@ -0,0 +1,16 @@ +/** + * 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 CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy = + typeof NONE | typeof UUID | UnparsedObject; +export const NONE = "none"; +export const UUID = "uuid"; diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataType.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataType.ts new file mode 100644 index 000000000000..fd7a757318c6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportRequestDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 CreateAppsDatastoreFromImportRequestDataType = + | typeof DATASTORES + | UnparsedObject; +export const DATASTORES = "datastores"; 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..9ab399fac71c --- /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: "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..2c45c12acc90 --- /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 { CreateAppsDatastoreFromImportResponseDataType } from "./CreateAppsDatastoreFromImportResponseDataType"; + +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": CreateAppsDatastoreFromImportResponseDataType; + + /** + * 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: "CreateAppsDatastoreFromImportResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..8fe4d9562292 --- /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: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreFromImportResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataType.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataType.ts new file mode 100644 index 000000000000..22ef26b1b575 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreFromImportResponseDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 CreateAppsDatastoreFromImportResponseDataType = + | typeof DATASTORES + | UnparsedObject; +export const DATASTORES = "datastores"; 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..3e7508eec6aa --- /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: "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..a720ec7283a3 --- /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 { CreateAppsDatastoreRequestDataType } from "./CreateAppsDatastoreRequestDataType"; + +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": CreateAppsDatastoreRequestDataType; + + /** + * 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: "CreateAppsDatastoreRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..c1960a92ca66 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.ts @@ -0,0 +1,86 @@ +/** + * 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 `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"?: 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", + required: true, + }, + orgAccess: { + baseName: "org_access", + type: "string", + }, + primaryColumnName: { + baseName: "primary_column_name", + type: "string", + required: true, + }, + primaryKeyGenerationStrategy: { + baseName: "primary_key_generation_strategy", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataType.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataType.ts new file mode 100644 index 000000000000..54f79660910a --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 CreateAppsDatastoreRequestDataType = + | typeof DATASTORES + | UnparsedObject; +export const DATASTORES = "datastores"; 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..490970bbd14a --- /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: "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..f4ce5e5b5840 --- /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 { CreateAppsDatastoreResponseDataType } from "./CreateAppsDatastoreResponseDataType"; + +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": CreateAppsDatastoreResponseDataType; + + /** + * 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: "CreateAppsDatastoreResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CreateAppsDatastoreResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseDataType.ts b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseDataType.ts new file mode 100644 index 000000000000..ba64fd2a7768 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 CreateAppsDatastoreResponseDataType = + | typeof DATASTORES + | UnparsedObject; +export const DATASTORES = "datastores"; 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..7492a5709a1c --- /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: "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..371da95f5063 --- /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: "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..1de39a9113f3 --- /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: "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..7a974f188bd2 --- /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 { DatastoreDataAttributesPrimaryKeyGenerationStrategy } from "./DatastoreDataAttributesPrimaryKeyGenerationStrategy"; + +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"?: DatastoreDataAttributesPrimaryKeyGenerationStrategy; + + /** + * 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: "DatastoreDataAttributesPrimaryKeyGenerationStrategy", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DatastoreDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DatastoreDataAttributesPrimaryKeyGenerationStrategy.ts b/packages/datadog-api-client-v2/models/DatastoreDataAttributesPrimaryKeyGenerationStrategy.ts new file mode 100644 index 000000000000..c5eaac6e7c8b --- /dev/null +++ b/packages/datadog-api-client-v2/models/DatastoreDataAttributesPrimaryKeyGenerationStrategy.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 DatastoreDataAttributesPrimaryKeyGenerationStrategy = + | typeof NONE + | typeof UUID + | UnparsedObject; +export const NONE = "none"; +export const UUID = "uuid"; 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/DeleteAppsDatastoreItemRequest.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.ts new file mode 100644 index 000000000000..b46b9a243e4b --- /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: "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..d134d63d36b6 --- /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 { DeleteAppsDatastoreItemRequestDataAttributes } from "./DeleteAppsDatastoreItemRequestDataAttributes"; +import { DeleteAppsDatastoreItemRequestDataType } from "./DeleteAppsDatastoreItemRequestDataType"; + +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": DeleteAppsDatastoreItemRequestDataType; + + /** + * 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: "DeleteAppsDatastoreItemRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..78edc61ad1cd --- /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: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataType.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataType.ts new file mode 100644 index 000000000000..4c4316eabc51 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 DeleteAppsDatastoreItemRequestDataType = + | typeof ITEMS + | UnparsedObject; +export const ITEMS = "items"; 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..c940ef5d2677 --- /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: "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..630a08def5b6 --- /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 { DeleteAppsDatastoreItemResponseDataType } from "./DeleteAppsDatastoreItemResponseDataType"; + +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": DeleteAppsDatastoreItemResponseDataType; + + /** + * 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: "DeleteAppsDatastoreItemResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DeleteAppsDatastoreItemResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseDataType.ts b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseDataType.ts new file mode 100644 index 000000000000..b7f433774ffa --- /dev/null +++ b/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 DeleteAppsDatastoreItemResponseDataType = + | typeof ITEMS + | UnparsedObject; +export const ITEMS = "items"; 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..8b491935a054 --- /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: "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..12d90661c871 --- /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 { ItemApiPayloadDataAttributes } from "./ItemApiPayloadDataAttributes"; +import { ItemApiPayloadDataType } from "./ItemApiPayloadDataType"; + +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": ItemApiPayloadDataType; + + /** + * 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: "ItemApiPayloadDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..39b5681d52df --- /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: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ItemApiPayloadDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ItemApiPayloadDataType.ts b/packages/datadog-api-client-v2/models/ItemApiPayloadDataType.ts new file mode 100644 index 000000000000..307c2a8b1fe7 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ItemApiPayloadDataType.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 ItemApiPayloadDataType = typeof ITEMS | UnparsedObject; +export const ITEMS = "items"; 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..2cb41910334b --- /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: "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..d616d3f61020 --- /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: "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..d19182ad73dd --- /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: "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..a853de749fd9 --- /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: "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 65e221db36e3..0084694a8a75 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"; @@ -437,6 +440,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"; @@ -573,8 +587,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"; @@ -966,6 +989,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"; @@ -1456,6 +1486,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"; @@ -2010,6 +2046,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"; @@ -2306,6 +2345,7 @@ const enumsMap: { [key: string]: any[] } = { "OK", "NOT_FOUND", ], + BulkPutAppsDatastoreItemsRequestDataType: ["items"], CIAppAggregateSortType: ["alphabetical", "measure"], CIAppAggregationFunction: [ "count", @@ -2436,6 +2476,12 @@ const enumsMap: { [key: string]: any[] } = { ], CostAttributionType: ["cost_by_tag"], CostByOrgType: ["cost_by_org"], + CreateAppsDatastoreFromImportRequestDataAttributesPrimaryKeyGenerationStrategy: + ["none", "uuid"], + CreateAppsDatastoreFromImportRequestDataType: ["datastores"], + CreateAppsDatastoreFromImportResponseDataType: ["datastores"], + CreateAppsDatastoreRequestDataType: ["datastores"], + CreateAppsDatastoreResponseDataType: ["datastores"], CreateDataDeletionRequestBodyDataType: ["create_deletion_req"], CreatePageRequestDataType: ["pages"], CreatePageResponseDataType: ["pages"], @@ -2481,6 +2527,10 @@ const enumsMap: { [key: string]: any[] } = { DataTransformType: ["dataTransform"], DatadogAPIKeyType: ["DatadogAPIKey"], DatadogIntegrationType: ["Datadog"], + DatastoreDataAttributesPrimaryKeyGenerationStrategy: ["none", "uuid"], + DatastoreDataType: ["datastores"], + DeleteAppsDatastoreItemRequestDataType: ["items"], + DeleteAppsDatastoreItemResponseDataType: ["items"], DetailedFindingType: ["detailed_finding"], DnsMetricKey: [ "dns_total_requests", @@ -2660,6 +2710,7 @@ const enumsMap: { [key: string]: any[] } = { "ARRAY_OBJECT", ], InterfaceAttributesStatus: ["up", "down", "warning", "off"], + ItemApiPayloadDataType: ["items"], LaunchDarklyAPIKeyType: ["LaunchDarklyAPIKey"], LaunchDarklyIntegrationType: ["LaunchDarkly"], LayerRelationshipsMembersDataItemsType: ["members"], @@ -3012,6 +3063,8 @@ const enumsMap: { [key: string]: any[] } = { ProcessSummaryType: ["process"], ProjectResourceType: ["project"], ProjectedCostType: ["projected_cost"], + PutAppsDatastoreItemRequestDataType: ["items"], + PutAppsDatastoreItemResponseDataType: ["items"], QuerySortOrder: ["asc", "desc"], RUMAggregateSortType: ["alphabetical", "measure"], RUMAggregationFunction: [ @@ -3390,6 +3443,7 @@ const enumsMap: { [key: string]: any[] } = { TimeseriesFormulaResponseType: ["timeseries_response"], TokenType: ["SECRET"], TriggerSource: ["security_findings", "security_signals"], + UpdateAppsDatastoreRequestDataType: ["datastores"], Urgency: ["low", "high", "dynamic"], UsageTimeSeriesType: ["usage_timeseries"], UserAttributesStatus: ["active", "deactivated", "pending"], @@ -3770,6 +3824,10 @@ const typeMap: { [index: string]: any } = { BulkMuteFindingsRequestProperties: BulkMuteFindingsRequestProperties, BulkMuteFindingsResponse: BulkMuteFindingsResponse, BulkMuteFindingsResponseData: BulkMuteFindingsResponseData, + BulkPutAppsDatastoreItemsRequest: BulkPutAppsDatastoreItemsRequest, + BulkPutAppsDatastoreItemsRequestData: BulkPutAppsDatastoreItemsRequestData, + BulkPutAppsDatastoreItemsRequestDataAttributes: + BulkPutAppsDatastoreItemsRequestDataAttributes, CIAppAggregateBucketValueTimeseriesPoint: CIAppAggregateBucketValueTimeseriesPoint, CIAppAggregateSort: CIAppAggregateSort, @@ -4020,6 +4078,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, @@ -4183,8 +4257,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, @@ -4614,6 +4698,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, @@ -5221,6 +5312,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, @@ -5854,6 +5952,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..1badec1cd8f4 --- /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: "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..047ed945bc6c --- /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 { PutAppsDatastoreItemRequestDataAttributes } from "./PutAppsDatastoreItemRequestDataAttributes"; +import { PutAppsDatastoreItemRequestDataType } from "./PutAppsDatastoreItemRequestDataType"; + +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": PutAppsDatastoreItemRequestDataType; + + /** + * 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: "PutAppsDatastoreItemRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..a8443f3e1ea7 --- /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: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataType.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataType.ts new file mode 100644 index 000000000000..ea971ec8e179 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemRequestDataType.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 PutAppsDatastoreItemRequestDataType = typeof ITEMS | UnparsedObject; +export const ITEMS = "items"; 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..602b07b086ed --- /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: "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..3c103454c349 --- /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: "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..f693cb5d8a31 --- /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 { PutAppsDatastoreItemResponseDataType } from "./PutAppsDatastoreItemResponseDataType"; + +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": PutAppsDatastoreItemResponseDataType; + + /** + * 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: "PutAppsDatastoreItemResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PutAppsDatastoreItemResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseDataType.ts b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseDataType.ts new file mode 100644 index 000000000000..5e49a41dfe0a --- /dev/null +++ b/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 PutAppsDatastoreItemResponseDataType = + | typeof ITEMS + | UnparsedObject; +export const ITEMS = "items"; 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..752292022ebe --- /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: "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..f2bbc6177872 --- /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 { UpdateAppsDatastoreRequestDataAttributes } from "./UpdateAppsDatastoreRequestDataAttributes"; +import { UpdateAppsDatastoreRequestDataType } from "./UpdateAppsDatastoreRequestDataType"; + +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": UpdateAppsDatastoreRequestDataType; + + /** + * 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: "UpdateAppsDatastoreRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "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..4b969b6bd0c1 --- /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: "any", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return UpdateAppsDatastoreRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataType.ts b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataType.ts new file mode 100644 index 000000000000..a258bfd0384d --- /dev/null +++ b/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 UpdateAppsDatastoreRequestDataType = + | typeof DATASTORES + | UnparsedObject; +export const DATASTORES = "datastores";