Skip to content

Commit

Permalink
Regenerate client from commit 9cb48f2 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 29, 2021
1 parent 09b2599 commit f3b64e5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 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-07-23 09:20:49.780085",
"spec_repo_commit": "0b10309"
"regenerated": "2021-07-29 18:39:33.719331",
"spec_repo_commit": "9cb48f2"
},
"v2": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-07-23 09:22:26.567866",
"spec_repo_commit": "0b10309"
"regenerated": "2021-07-29 18:40:47.338470",
"spec_repo_commit": "9cb48f2"
}
}
}
2 changes: 1 addition & 1 deletion features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Feature: Synthetics
And a valid "appKeyAuth" key in the system
And an instance of "Synthetics" API

@replay-only @skip-python @skip-typescript @skip-java @skip-ruby
@replay-only @skip-java @skip-python @skip-ruby @skip-typescript
Scenario: Client is resilient to enum and oneOf deserialization errors
Given new "ListTests" request
When the request is sent
Expand Down
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 f3b64e5

Please sign in to comment.