Skip to content

Commit

Permalink
Regenerate client from commit 47465fb of spec repo (#236)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 6, 2021
1 parent f1a37ce commit 7796bf5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 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.4.1.dev11",
"regenerated": "2021-08-06 09:08:17.522982",
"spec_repo_commit": "772783e"
"regenerated": "2021-08-06 09:28:23.037469",
"spec_repo_commit": "47465fb"
},
"v2": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-08-06 09:09:36.004124",
"spec_repo_commit": "772783e"
"regenerated": "2021-08-06 09:29:50.565498",
"spec_repo_commit": "47465fb"
}
}
}
12 changes: 10 additions & 2 deletions packages/datadog-api-client-v1/models/ListStreamQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export class ListStreamQuery {
"missing required attribute 'data_source' on 'ListStreamQuery' object"
);
}
if (["issue_stream", "logs_stream", undefined].includes(data.data_source)) {
if (
["issue_stream", "logs_stream", "audit_stream", undefined].includes(
data.data_source
)
) {
res.dataSource = data.data_source;
} else {
throw TypeError(`invalid enum value ${data.data_source} for data_source`);
Expand Down Expand Up @@ -99,7 +103,11 @@ export class ListStreamQuery {
"missing required attribute 'data_source' on 'ListStreamQuery' object"
);
}
if (["issue_stream", "logs_stream", undefined].includes(data.dataSource)) {
if (
["issue_stream", "logs_stream", "audit_stream", undefined].includes(
data.dataSource
)
) {
res.data_source = data.dataSource;
} else {
throw TypeError(`invalid enum value ${data.dataSource} for dataSource`);
Expand Down
6 changes: 5 additions & 1 deletion packages/datadog-api-client-v1/models/ListStreamSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Do not edit the class manually.
*/

export type ListStreamSource = typeof ISSUE_STREAM | typeof LOGS_STREAM;
export type ListStreamSource =
| typeof ISSUE_STREAM
| typeof LOGS_STREAM
| typeof AUDIT_STREAM;
export const ISSUE_STREAM = "issue_stream";
export const LOGS_STREAM = "logs_stream";
export const AUDIT_STREAM = "audit_stream";

0 comments on commit 7796bf5

Please sign in to comment.