From 9cf6ee79efe4e2f81b3d15c2fcda870d6d9d67d2 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2020 18:40:08 +0100 Subject: [PATCH] Regenerate client from commit 92b08fe of spec repo (#583) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- api/v1/datadog/api/openapi.yaml | 9 ++++++++- api/v1/datadog/docs/EventAlertType.md | 6 ++++++ api/v1/datadog/model_event_alert_type.go | 15 +++++++++------ 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 61eb129daa5..6ce89fc2abe 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-19 18:22:12.789949", - "spec_repo_commit": "171775a" + "regenerated": "2020-11-20 17:20:02.494299", + "spec_repo_commit": "92b08fe" }, "v2": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-19 18:22:19.235818", - "spec_repo_commit": "171775a" + "regenerated": "2020-11-20 17:20:08.772898", + "spec_repo_commit": "92b08fe" } } } \ No newline at end of file diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index 7e84fd017c7..e0a3b565c20 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -8376,12 +8376,16 @@ components: EventAlertType: description: |- If an alert event is enabled, set its type. - For example, `error`, `warning`, `info`, and `success`. + For example, `error`, `warning`, `info`, `success`, `user_update`, + `recommendation`, and `snapshot`. enum: - error - warning - info - success + - user_update + - recommendation + - snapshot example: info type: string x-enum-varnames: @@ -8389,6 +8393,9 @@ components: - WARNING - INFO - SUCCESS + - USER_UPDATE + - RECOMMENDATION + - SNAPSHOT EventListResponse: description: An event list response. example: diff --git a/api/v1/datadog/docs/EventAlertType.md b/api/v1/datadog/docs/EventAlertType.md index bc98e6e9e25..88e75f838fa 100644 --- a/api/v1/datadog/docs/EventAlertType.md +++ b/api/v1/datadog/docs/EventAlertType.md @@ -11,6 +11,12 @@ * `SUCCESS` (value: `"success"`) +* `USER_UPDATE` (value: `"user_update"`) + +* `RECOMMENDATION` (value: `"recommendation"`) + +* `SNAPSHOT` (value: `"snapshot"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/model_event_alert_type.go b/api/v1/datadog/model_event_alert_type.go index 460b5e6f30c..68be2ef54a9 100644 --- a/api/v1/datadog/model_event_alert_type.go +++ b/api/v1/datadog/model_event_alert_type.go @@ -13,15 +13,18 @@ import ( "fmt" ) -// EventAlertType If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, and `success`. +// EventAlertType If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`. type EventAlertType string // List of EventAlertType const ( - EVENTALERTTYPE_ERROR EventAlertType = "error" - EVENTALERTTYPE_WARNING EventAlertType = "warning" - EVENTALERTTYPE_INFO EventAlertType = "info" - EVENTALERTTYPE_SUCCESS EventAlertType = "success" + EVENTALERTTYPE_ERROR EventAlertType = "error" + EVENTALERTTYPE_WARNING EventAlertType = "warning" + EVENTALERTTYPE_INFO EventAlertType = "info" + EVENTALERTTYPE_SUCCESS EventAlertType = "success" + EVENTALERTTYPE_USER_UPDATE EventAlertType = "user_update" + EVENTALERTTYPE_RECOMMENDATION EventAlertType = "recommendation" + EVENTALERTTYPE_SNAPSHOT EventAlertType = "snapshot" ) func (v *EventAlertType) UnmarshalJSON(src []byte) error { @@ -31,7 +34,7 @@ func (v *EventAlertType) UnmarshalJSON(src []byte) error { return err } enumTypeValue := EventAlertType(value) - for _, existing := range []EventAlertType{"error", "warning", "info", "success"} { + for _, existing := range []EventAlertType{"error", "warning", "info", "success", "user_update", "recommendation", "snapshot"} { if existing == enumTypeValue { *v = enumTypeValue return nil