Skip to content

Commit

Permalink
Regenerate client from commit 7b7ec49c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 20, 2024
1 parent e17558a commit 3575ec8
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:26.500720",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 20:08:07.506115",
"spec_repo_commit": "7b7ec49c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:26.515806",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 20:08:07.521109",
"spec_repo_commit": "7b7ec49c"
}
}
}
24 changes: 24 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14770,6 +14770,12 @@ components:
the error.
example: Missing required attribute in body
type: string
meta:
additionalProperties: {}
description: Non-standard meta-information about the error
type: object
source:
$ref: '#/components/schemas/JSONAPIErrorItemSource'
status:
description: Status code of the response.
example: '400'
Expand All @@ -14779,6 +14785,24 @@ components:
example: Bad Request
type: string
type: object
JSONAPIErrorItemSource:
description: References to the source of the error.
properties:
header:
description: a string indicating the name of a single request header which
caused the error.
example: Authorization
type: string
parameter:
description: A string indicating which URI query parameter caused the error.
example: limit
type: string
pointer:
description: A JSON Pointer to the value in the request document that caused
the error.
example: /data/attributes/title
type: string
type: object
JSONAPIErrorResponse:
description: API error response.
properties:
Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,7 @@ export { JobCreateResponseData } from "./models/JobCreateResponseData";
export { JobDefinition } from "./models/JobDefinition";
export { JobDefinitionFromRule } from "./models/JobDefinitionFromRule";
export { JSONAPIErrorItem } from "./models/JSONAPIErrorItem";
export { JSONAPIErrorItemSource } from "./models/JSONAPIErrorItemSource";
export { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse";
export { LeakedKey } from "./models/LeakedKey";
export { LeakedKeyAttributes } from "./models/LeakedKeyAttributes";
Expand Down
17 changes: 17 additions & 0 deletions packages/datadog-api-client-v2/models/JSONAPIErrorItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

Expand All @@ -14,6 +15,14 @@ export class JSONAPIErrorItem {
* A human-readable explanation specific to this occurrence of the error.
*/
"detail"?: string;
/**
* Non-standard meta-information about the error
*/
"meta"?: { [key: string]: any };
/**
* References to the source of the error.
*/
"source"?: JSONAPIErrorItemSource;
/**
* Status code of the response.
*/
Expand Down Expand Up @@ -43,6 +52,14 @@ export class JSONAPIErrorItem {
baseName: "detail",
type: "string",
},
meta: {
baseName: "meta",
type: "{ [key: string]: any; }",
},
source: {
baseName: "source",
type: "JSONAPIErrorItemSource",
},
status: {
baseName: "status",
type: "string",
Expand Down
68 changes: 68 additions & 0 deletions packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* 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";

/**
* References to the source of the error.
*/
export class JSONAPIErrorItemSource {
/**
* a string indicating the name of a single request header which caused the error.
*/
"header"?: string;
/**
* A string indicating which URI query parameter caused the error.
*/
"parameter"?: string;
/**
* A JSON Pointer to the value in the request document that caused the error.
*/
"pointer"?: 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 = {
header: {
baseName: "header",
type: "string",
},
parameter: {
baseName: "parameter",
type: "string",
},
pointer: {
baseName: "pointer",
type: "string",
},
additionalProperties: {
baseName: "additionalProperties",
type: "any",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return JSONAPIErrorItemSource.attributeTypeMap;
}

public constructor() {}
}
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ import { InputSchemaDataAttributesParametersItemsDataAttributes } from "./InputS
import { IntakePayloadAccepted } from "./IntakePayloadAccepted";
import { InterfaceAttributes } from "./InterfaceAttributes";
import { JSONAPIErrorItem } from "./JSONAPIErrorItem";
import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource";
import { JSONAPIErrorResponse } from "./JSONAPIErrorResponse";
import { JiraIntegrationMetadata } from "./JiraIntegrationMetadata";
import { JiraIntegrationMetadataIssuesItem } from "./JiraIntegrationMetadataIssuesItem";
Expand Down Expand Up @@ -2927,6 +2928,7 @@ const typeMap: { [index: string]: any } = {
IntakePayloadAccepted: IntakePayloadAccepted,
InterfaceAttributes: InterfaceAttributes,
JSONAPIErrorItem: JSONAPIErrorItem,
JSONAPIErrorItemSource: JSONAPIErrorItemSource,
JSONAPIErrorResponse: JSONAPIErrorResponse,
JiraIntegrationMetadata: JiraIntegrationMetadata,
JiraIntegrationMetadataIssuesItem: JiraIntegrationMetadataIssuesItem,
Expand Down

0 comments on commit 3575ec8

Please sign in to comment.