diff --git a/internal/mapper/v017/client/alert/get_alerts_responses.go b/internal/mapper/v017/client/alert/get_alerts_responses.go index c090fd3a3..9fa0e0379 100644 --- a/internal/mapper/v017/client/alert/get_alerts_responses.go +++ b/internal/mapper/v017/client/alert/get_alerts_responses.go @@ -85,6 +85,11 @@ func (o *GetAlertsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get alerts o k response +func (o *GetAlertsOK) Code() int { + return 200 +} + func (o *GetAlertsOK) Error() string { return fmt.Sprintf("[GET /alerts][%d] getAlertsOK %+v", 200, o.Payload) } @@ -146,6 +151,11 @@ func (o *GetAlertsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the get alerts bad request response +func (o *GetAlertsBadRequest) Code() int { + return 400 +} + func (o *GetAlertsBadRequest) Error() string { return fmt.Sprintf("[GET /alerts][%d] getAlertsBadRequest %+v", 400, o.Payload) } @@ -207,6 +217,11 @@ func (o *GetAlertsInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the get alerts internal server error response +func (o *GetAlertsInternalServerError) Code() int { + return 500 +} + func (o *GetAlertsInternalServerError) Error() string { return fmt.Sprintf("[GET /alerts][%d] getAlertsInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/alert/post_alerts_responses.go b/internal/mapper/v017/client/alert/post_alerts_responses.go index 2b0b8b921..8407bcb31 100644 --- a/internal/mapper/v017/client/alert/post_alerts_responses.go +++ b/internal/mapper/v017/client/alert/post_alerts_responses.go @@ -82,6 +82,11 @@ func (o *PostAlertsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the post alerts o k response +func (o *PostAlertsOK) Code() int { + return 200 +} + func (o *PostAlertsOK) Error() string { return fmt.Sprintf("[POST /alerts][%d] postAlertsOK ", 200) } @@ -134,6 +139,11 @@ func (o *PostAlertsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the post alerts bad request response +func (o *PostAlertsBadRequest) Code() int { + return 400 +} + func (o *PostAlertsBadRequest) Error() string { return fmt.Sprintf("[POST /alerts][%d] postAlertsBadRequest %+v", 400, o.Payload) } @@ -195,6 +205,11 @@ func (o *PostAlertsInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the post alerts internal server error response +func (o *PostAlertsInternalServerError) Code() int { + return 500 +} + func (o *PostAlertsInternalServerError) Error() string { return fmt.Sprintf("[POST /alerts][%d] postAlertsInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/alertgroup/get_alert_groups_responses.go b/internal/mapper/v017/client/alertgroup/get_alert_groups_responses.go index 9f218234d..7aaacc830 100644 --- a/internal/mapper/v017/client/alertgroup/get_alert_groups_responses.go +++ b/internal/mapper/v017/client/alertgroup/get_alert_groups_responses.go @@ -85,6 +85,11 @@ func (o *GetAlertGroupsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get alert groups o k response +func (o *GetAlertGroupsOK) Code() int { + return 200 +} + func (o *GetAlertGroupsOK) Error() string { return fmt.Sprintf("[GET /alerts/groups][%d] getAlertGroupsOK %+v", 200, o.Payload) } @@ -146,6 +151,11 @@ func (o *GetAlertGroupsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the get alert groups bad request response +func (o *GetAlertGroupsBadRequest) Code() int { + return 400 +} + func (o *GetAlertGroupsBadRequest) Error() string { return fmt.Sprintf("[GET /alerts/groups][%d] getAlertGroupsBadRequest %+v", 400, o.Payload) } @@ -207,6 +217,11 @@ func (o *GetAlertGroupsInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the get alert groups internal server error response +func (o *GetAlertGroupsInternalServerError) Code() int { + return 500 +} + func (o *GetAlertGroupsInternalServerError) Error() string { return fmt.Sprintf("[GET /alerts/groups][%d] getAlertGroupsInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/general/get_status_responses.go b/internal/mapper/v017/client/general/get_status_responses.go index a9516e745..84c039990 100644 --- a/internal/mapper/v017/client/general/get_status_responses.go +++ b/internal/mapper/v017/client/general/get_status_responses.go @@ -73,6 +73,11 @@ func (o *GetStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get status o k response +func (o *GetStatusOK) Code() int { + return 200 +} + func (o *GetStatusOK) Error() string { return fmt.Sprintf("[GET /status][%d] getStatusOK %+v", 200, o.Payload) } diff --git a/internal/mapper/v017/client/receiver/get_receivers_responses.go b/internal/mapper/v017/client/receiver/get_receivers_responses.go index 587279888..0dc11709b 100644 --- a/internal/mapper/v017/client/receiver/get_receivers_responses.go +++ b/internal/mapper/v017/client/receiver/get_receivers_responses.go @@ -73,6 +73,11 @@ func (o *GetReceiversOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get receivers o k response +func (o *GetReceiversOK) Code() int { + return 200 +} + func (o *GetReceiversOK) Error() string { return fmt.Sprintf("[GET /receivers][%d] getReceiversOK %+v", 200, o.Payload) } diff --git a/internal/mapper/v017/client/silence/delete_silence_responses.go b/internal/mapper/v017/client/silence/delete_silence_responses.go index 2251bcdc4..e9ec62966 100644 --- a/internal/mapper/v017/client/silence/delete_silence_responses.go +++ b/internal/mapper/v017/client/silence/delete_silence_responses.go @@ -76,6 +76,11 @@ func (o *DeleteSilenceOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the delete silence o k response +func (o *DeleteSilenceOK) Code() int { + return 200 +} + func (o *DeleteSilenceOK) Error() string { return fmt.Sprintf("[DELETE /silence/{silenceID}][%d] deleteSilenceOK ", 200) } @@ -128,6 +133,11 @@ func (o *DeleteSilenceInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the delete silence internal server error response +func (o *DeleteSilenceInternalServerError) Code() int { + return 500 +} + func (o *DeleteSilenceInternalServerError) Error() string { return fmt.Sprintf("[DELETE /silence/{silenceID}][%d] deleteSilenceInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/silence/get_silence_responses.go b/internal/mapper/v017/client/silence/get_silence_responses.go index 20dafb86a..b7615a373 100644 --- a/internal/mapper/v017/client/silence/get_silence_responses.go +++ b/internal/mapper/v017/client/silence/get_silence_responses.go @@ -85,6 +85,11 @@ func (o *GetSilenceOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get silence o k response +func (o *GetSilenceOK) Code() int { + return 200 +} + func (o *GetSilenceOK) Error() string { return fmt.Sprintf("[GET /silence/{silenceID}][%d] getSilenceOK %+v", 200, o.Payload) } @@ -147,6 +152,11 @@ func (o *GetSilenceNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the get silence not found response +func (o *GetSilenceNotFound) Code() int { + return 404 +} + func (o *GetSilenceNotFound) Error() string { return fmt.Sprintf("[GET /silence/{silenceID}][%d] getSilenceNotFound ", 404) } @@ -199,6 +209,11 @@ func (o *GetSilenceInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the get silence internal server error response +func (o *GetSilenceInternalServerError) Code() int { + return 500 +} + func (o *GetSilenceInternalServerError) Error() string { return fmt.Sprintf("[GET /silence/{silenceID}][%d] getSilenceInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/silence/get_silences_responses.go b/internal/mapper/v017/client/silence/get_silences_responses.go index 5ff44366a..e88eec830 100644 --- a/internal/mapper/v017/client/silence/get_silences_responses.go +++ b/internal/mapper/v017/client/silence/get_silences_responses.go @@ -79,6 +79,11 @@ func (o *GetSilencesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the get silences o k response +func (o *GetSilencesOK) Code() int { + return 200 +} + func (o *GetSilencesOK) Error() string { return fmt.Sprintf("[GET /silences][%d] getSilencesOK %+v", 200, o.Payload) } @@ -140,6 +145,11 @@ func (o *GetSilencesInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the get silences internal server error response +func (o *GetSilencesInternalServerError) Code() int { + return 500 +} + func (o *GetSilencesInternalServerError) Error() string { return fmt.Sprintf("[GET /silences][%d] getSilencesInternalServerError %+v", 500, o.Payload) } diff --git a/internal/mapper/v017/client/silence/post_silences_responses.go b/internal/mapper/v017/client/silence/post_silences_responses.go index 29b7a2d27..aa6304f54 100644 --- a/internal/mapper/v017/client/silence/post_silences_responses.go +++ b/internal/mapper/v017/client/silence/post_silences_responses.go @@ -85,6 +85,11 @@ func (o *PostSilencesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the post silences o k response +func (o *PostSilencesOK) Code() int { + return 200 +} + func (o *PostSilencesOK) Error() string { return fmt.Sprintf("[POST /silences][%d] postSilencesOK %+v", 200, o.Payload) } @@ -148,6 +153,11 @@ func (o *PostSilencesBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the post silences bad request response +func (o *PostSilencesBadRequest) Code() int { + return 400 +} + func (o *PostSilencesBadRequest) Error() string { return fmt.Sprintf("[POST /silences][%d] postSilencesBadRequest %+v", 400, o.Payload) } @@ -209,6 +219,11 @@ func (o *PostSilencesNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the post silences not found response +func (o *PostSilencesNotFound) Code() int { + return 404 +} + func (o *PostSilencesNotFound) Error() string { return fmt.Sprintf("[POST /silences][%d] postSilencesNotFound %+v", 404, o.Payload) }