Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove read only fields in EventCreateRequest #475

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5.1.dev2",
"regenerated": "2022-01-13 09:33:14.041348",
"spec_repo_commit": "830f39c"
"regenerated": "2022-01-13 11:49:30.037062",
"spec_repo_commit": "bb2c57f"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2022-01-13 09:33:14.071600",
"spec_repo_commit": "830f39c"
"regenerated": "2022-01-13 11:49:30.064653",
"spec_repo_commit": "bb2c57f"
}
}
}
14 changes: 0 additions & 14 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1862,16 +1862,6 @@ components:

Any tags associated with the host are also applied to this event.'
type: string
id:
description: Integer ID of the event.
format: int64
readOnly: true
type: integer
payload:
description: Payload of the event.
example: '{}'
readOnly: true
type: string
priority:
$ref: '#/components/schemas/EventPriority'
related_event_id:
Expand Down Expand Up @@ -1908,10 +1898,6 @@ components:
description: The event title.
example: Did you hear the news today?
type: string
url:
description: URL of the event.
readOnly: true
type: string
required:
- title
- text
Expand Down
25 changes: 0 additions & 25 deletions packages/datadog-api-client-v1/models/EventCreateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ export class EventCreateRequest {
* Host name to associate with the event. Any tags associated with the host are also applied to this event.
*/
"host"?: string;
/**
* Integer ID of the event.
*/
"id"?: number;
/**
* Payload of the event.
*/
"payload"?: string;
"priority"?: EventPriority;
/**
* ID of the parent event. Must be sent as an integer (that is no quotes).
Expand All @@ -63,10 +55,6 @@ export class EventCreateRequest {
* The event title.
*/
"title": string;
/**
* URL of the event.
*/
"url"?: string;

"unparsedObject"?: any;

Expand All @@ -92,15 +80,6 @@ export class EventCreateRequest {
baseName: "host",
type: "string",
},
id: {
baseName: "id",
type: "number",
format: "int64",
},
payload: {
baseName: "payload",
type: "string",
},
priority: {
baseName: "priority",
type: "EventPriority",
Expand Down Expand Up @@ -128,10 +107,6 @@ export class EventCreateRequest {
type: "string",
required: true,
},
url: {
baseName: "url",
type: "string",
},
};

static getAttributeTypeMap(): AttributeTypeMap {
Expand Down