From 458f1d646bf4e38fdab3ef8dce9cd3b14a517e9b Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Tue, 5 Mar 2019 11:57:07 -0600 Subject: [PATCH] Makefile improvements - make clean shouldn't print errors when files/directories have already been removed - add copyright header to generated api files to pass license check Signed-off-by: Paul Gier --- COPYRIGHT.txt | 12 ++++++++++++ Makefile | 12 +++++++----- api/v2/models/alert.go | 14 ++++++++++++++ api/v2/models/alert_status.go | 14 ++++++++++++++ api/v2/models/alertmanager_config.go | 14 ++++++++++++++ api/v2/models/alertmanager_status.go | 14 ++++++++++++++ api/v2/models/cluster_status.go | 14 ++++++++++++++ api/v2/models/gettable_alert.go | 14 ++++++++++++++ api/v2/models/gettable_alerts.go | 14 ++++++++++++++ api/v2/models/gettable_silence.go | 14 ++++++++++++++ api/v2/models/gettable_silences.go | 14 ++++++++++++++ api/v2/models/label_set.go | 14 ++++++++++++++ api/v2/models/matcher.go | 14 ++++++++++++++ api/v2/models/matchers.go | 14 ++++++++++++++ api/v2/models/peer_status.go | 14 ++++++++++++++ api/v2/models/postable_alert.go | 14 ++++++++++++++ api/v2/models/postable_alerts.go | 14 ++++++++++++++ api/v2/models/postable_silence.go | 14 ++++++++++++++ api/v2/models/receiver.go | 14 ++++++++++++++ api/v2/models/silence.go | 14 ++++++++++++++ api/v2/models/silence_status.go | 14 ++++++++++++++ api/v2/models/version_info.go | 14 ++++++++++++++ api/v2/restapi/configure_alertmanager.go | 7 ++++--- api/v2/restapi/doc.go | 14 ++++++++++++++ api/v2/restapi/embedded_spec.go | 14 ++++++++++++++ api/v2/restapi/operations/alert/get_alerts.go | 14 ++++++++++++++ .../operations/alert/get_alerts_parameters.go | 14 ++++++++++++++ .../operations/alert/get_alerts_responses.go | 14 ++++++++++++++ .../operations/alert/get_alerts_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/operations/alert/post_alerts.go | 14 ++++++++++++++ .../operations/alert/post_alerts_parameters.go | 14 ++++++++++++++ .../operations/alert/post_alerts_responses.go | 14 ++++++++++++++ .../operations/alert/post_alerts_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/operations/alertmanager_api.go | 14 ++++++++++++++ api/v2/restapi/operations/general/get_status.go | 14 ++++++++++++++ .../operations/general/get_status_parameters.go | 14 ++++++++++++++ .../operations/general/get_status_responses.go | 14 ++++++++++++++ .../operations/general/get_status_urlbuilder.go | 14 ++++++++++++++ .../restapi/operations/receiver/get_receivers.go | 14 ++++++++++++++ .../receiver/get_receivers_parameters.go | 14 ++++++++++++++ .../operations/receiver/get_receivers_responses.go | 14 ++++++++++++++ .../receiver/get_receivers_urlbuilder.go | 14 ++++++++++++++ .../restapi/operations/silence/delete_silence.go | 14 ++++++++++++++ .../silence/delete_silence_parameters.go | 14 ++++++++++++++ .../operations/silence/delete_silence_responses.go | 14 ++++++++++++++ .../silence/delete_silence_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/operations/silence/get_silence.go | 14 ++++++++++++++ .../operations/silence/get_silence_parameters.go | 14 ++++++++++++++ .../operations/silence/get_silence_responses.go | 14 ++++++++++++++ .../operations/silence/get_silence_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/operations/silence/get_silences.go | 14 ++++++++++++++ .../operations/silence/get_silences_parameters.go | 14 ++++++++++++++ .../operations/silence/get_silences_responses.go | 14 ++++++++++++++ .../operations/silence/get_silences_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/operations/silence/post_silences.go | 14 ++++++++++++++ .../operations/silence/post_silences_parameters.go | 14 ++++++++++++++ .../operations/silence/post_silences_responses.go | 14 ++++++++++++++ .../operations/silence/post_silences_urlbuilder.go | 14 ++++++++++++++ api/v2/restapi/server.go | 14 ++++++++++++++ .../api_v2_client/client/alert/alert_client.go | 14 ++++++++++++++ .../client/alert/get_alerts_parameters.go | 14 ++++++++++++++ .../client/alert/get_alerts_responses.go | 14 ++++++++++++++ .../client/alert/post_alerts_parameters.go | 14 ++++++++++++++ .../client/alert/post_alerts_responses.go | 14 ++++++++++++++ .../api_v2_client/client/alertmanager_client.go | 14 ++++++++++++++ .../api_v2_client/client/general/general_client.go | 14 ++++++++++++++ .../client/general/get_status_parameters.go | 14 ++++++++++++++ .../client/general/get_status_responses.go | 14 ++++++++++++++ .../client/receiver/get_receivers_parameters.go | 14 ++++++++++++++ .../client/receiver/get_receivers_responses.go | 14 ++++++++++++++ .../client/receiver/receiver_client.go | 14 ++++++++++++++ .../client/silence/delete_silence_parameters.go | 14 ++++++++++++++ .../client/silence/delete_silence_responses.go | 14 ++++++++++++++ .../client/silence/get_silence_parameters.go | 14 ++++++++++++++ .../client/silence/get_silence_responses.go | 14 ++++++++++++++ .../client/silence/get_silences_parameters.go | 14 ++++++++++++++ .../client/silence/get_silences_responses.go | 14 ++++++++++++++ .../client/silence/post_silences_parameters.go | 14 ++++++++++++++ .../client/silence/post_silences_responses.go | 14 ++++++++++++++ .../api_v2_client/client/silence/silence_client.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/alert.go | 14 ++++++++++++++ .../api_v2_client/models/alert_status.go | 14 ++++++++++++++ .../api_v2_client/models/alertmanager_config.go | 14 ++++++++++++++ .../api_v2_client/models/alertmanager_status.go | 14 ++++++++++++++ .../api_v2_client/models/cluster_status.go | 14 ++++++++++++++ .../api_v2_client/models/gettable_alert.go | 14 ++++++++++++++ .../api_v2_client/models/gettable_alerts.go | 14 ++++++++++++++ .../api_v2_client/models/gettable_silence.go | 14 ++++++++++++++ .../api_v2_client/models/gettable_silences.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/label_set.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/matcher.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/matchers.go | 14 ++++++++++++++ .../api_v2_client/models/peer_status.go | 14 ++++++++++++++ .../api_v2_client/models/postable_alert.go | 14 ++++++++++++++ .../api_v2_client/models/postable_alerts.go | 14 ++++++++++++++ .../api_v2_client/models/postable_silence.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/receiver.go | 14 ++++++++++++++ test/with_api_v2/api_v2_client/models/silence.go | 14 ++++++++++++++ .../api_v2_client/models/silence_status.go | 14 ++++++++++++++ .../api_v2_client/models/version_info.go | 14 ++++++++++++++ ui/app/Makefile | 14 ++++++-------- 101 files changed, 1387 insertions(+), 16 deletions(-) create mode 100644 COPYRIGHT.txt diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt new file mode 100644 index 00000000..af2570c1 --- /dev/null +++ b/COPYRIGHT.txt @@ -0,0 +1,12 @@ +Copyright Prometheus Team +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/Makefile b/Makefile index aa8ebeba..049f65cc 100644 --- a/Makefile +++ b/Makefile @@ -45,17 +45,19 @@ SWAGGER = docker run \ api/v2/models api/v2/restapi: api/v2/openapi.yaml -rm -r api/v2/{models,restapi} - $(SWAGGER) generate server -f api/v2/openapi.yaml --exclude-main -A alertmanager --target api/v2/ + $(SWAGGER) generate server -f api/v2/openapi.yaml --copyright-file=COPYRIGHT.txt --exclude-main -A alertmanager --target api/v2/ test/with_api_v2/api_v2_client/models test/with_api_v2/api_v2_client/client: api/v2/openapi.yaml -rm -r test/with_api_v1/api_v2_client; mkdir -p test/with_api_v2/api_v2_client - $(SWAGGER) generate client -f api/v2/openapi.yaml --target test/with_api_v2/api_v2_client + $(SWAGGER) generate client -f api/v2/openapi.yaml --copyright-file=COPYRIGHT.txt --target test/with_api_v2/api_v2_client .PHONY: clean clean: - - rm -f asset/assets_vfsdata.go - - rm -r api/v2/models api/v2/restapi test/with_api_v2/api_v2_client/models test/with_api_v2/api_v2_client/client - - cd $(FRONTEND_DIR) && $(MAKE) clean + - @rm -rf asset/assets_vfsdata.go \ + api/v2/models api/v2/restapi \ + test/with_api_v2/api_v2_client/models \ + test/with_api_v2/api_v2_client/client + - @cd $(FRONTEND_DIR) && $(MAKE) clean .PHONY: test test: common-test $(ERRCHECK_BINARY) diff --git a/api/v2/models/alert.go b/api/v2/models/alert.go index 27475868..832df76e 100644 --- a/api/v2/models/alert.go +++ b/api/v2/models/alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/alert_status.go b/api/v2/models/alert_status.go index 673deaab..cadbad36 100644 --- a/api/v2/models/alert_status.go +++ b/api/v2/models/alert_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/alertmanager_config.go b/api/v2/models/alertmanager_config.go index 6b41f1bc..a7ef560d 100644 --- a/api/v2/models/alertmanager_config.go +++ b/api/v2/models/alertmanager_config.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/alertmanager_status.go b/api/v2/models/alertmanager_status.go index 5c6c785d..88afa7fe 100644 --- a/api/v2/models/alertmanager_status.go +++ b/api/v2/models/alertmanager_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/cluster_status.go b/api/v2/models/cluster_status.go index 8132e332..9db4491d 100644 --- a/api/v2/models/cluster_status.go +++ b/api/v2/models/cluster_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/gettable_alert.go b/api/v2/models/gettable_alert.go index 8dd114f4..c0c98348 100644 --- a/api/v2/models/gettable_alert.go +++ b/api/v2/models/gettable_alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/gettable_alerts.go b/api/v2/models/gettable_alerts.go index c6df65dc..fe7f1def 100644 --- a/api/v2/models/gettable_alerts.go +++ b/api/v2/models/gettable_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/gettable_silence.go b/api/v2/models/gettable_silence.go index a03412d2..e2cad931 100644 --- a/api/v2/models/gettable_silence.go +++ b/api/v2/models/gettable_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/gettable_silences.go b/api/v2/models/gettable_silences.go index 3993a967..8f1604e3 100644 --- a/api/v2/models/gettable_silences.go +++ b/api/v2/models/gettable_silences.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/label_set.go b/api/v2/models/label_set.go index cc6ff758..0d1d3538 100644 --- a/api/v2/models/label_set.go +++ b/api/v2/models/label_set.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/matcher.go b/api/v2/models/matcher.go index 78bc8194..eae3605a 100644 --- a/api/v2/models/matcher.go +++ b/api/v2/models/matcher.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/matchers.go b/api/v2/models/matchers.go index 18ffb8ac..bd285489 100644 --- a/api/v2/models/matchers.go +++ b/api/v2/models/matchers.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/peer_status.go b/api/v2/models/peer_status.go index 9d9c34f4..29e10ece 100644 --- a/api/v2/models/peer_status.go +++ b/api/v2/models/peer_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/postable_alert.go b/api/v2/models/postable_alert.go index 3f05bc81..afa91ca9 100644 --- a/api/v2/models/postable_alert.go +++ b/api/v2/models/postable_alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/postable_alerts.go b/api/v2/models/postable_alerts.go index c7014719..7097adca 100644 --- a/api/v2/models/postable_alerts.go +++ b/api/v2/models/postable_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/postable_silence.go b/api/v2/models/postable_silence.go index 1fa1fb29..45efa4ff 100644 --- a/api/v2/models/postable_silence.go +++ b/api/v2/models/postable_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/receiver.go b/api/v2/models/receiver.go index 61c2748a..3686e6d1 100644 --- a/api/v2/models/receiver.go +++ b/api/v2/models/receiver.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/silence.go b/api/v2/models/silence.go index 742ba17d..0a842a30 100644 --- a/api/v2/models/silence.go +++ b/api/v2/models/silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/silence_status.go b/api/v2/models/silence_status.go index 82c9b435..669269e1 100644 --- a/api/v2/models/silence_status.go +++ b/api/v2/models/silence_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/models/version_info.go b/api/v2/models/version_info.go index 5cdbc2bd..232d805d 100644 --- a/api/v2/models/version_info.go +++ b/api/v2/models/version_info.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/api/v2/restapi/configure_alertmanager.go b/api/v2/restapi/configure_alertmanager.go index 4c13ba26..68a73af6 100644 --- a/api/v2/restapi/configure_alertmanager.go +++ b/api/v2/restapi/configure_alertmanager.go @@ -1,4 +1,6 @@ -// Copyright 2018 Prometheus Team +// This file is safe to edit. Once it exists it will not be overwritten + +// Copyright Prometheus Team // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -10,8 +12,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. - -// This file is safe to edit. Once it exists it will not be overwritten +// package restapi diff --git a/api/v2/restapi/doc.go b/api/v2/restapi/doc.go index 8eae3a93..ccf41ec6 100644 --- a/api/v2/restapi/doc.go +++ b/api/v2/restapi/doc.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + /* Package restapi Alertmanager API API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager) diff --git a/api/v2/restapi/embedded_spec.go b/api/v2/restapi/embedded_spec.go index 4188d63a..041cafb6 100644 --- a/api/v2/restapi/embedded_spec.go +++ b/api/v2/restapi/embedded_spec.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package restapi // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/get_alerts.go b/api/v2/restapi/operations/alert/get_alerts.go index 54353471..0177f79b 100644 --- a/api/v2/restapi/operations/alert/get_alerts.go +++ b/api/v2/restapi/operations/alert/get_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/get_alerts_parameters.go b/api/v2/restapi/operations/alert/get_alerts_parameters.go index 5c81828d..7ae752e6 100644 --- a/api/v2/restapi/operations/alert/get_alerts_parameters.go +++ b/api/v2/restapi/operations/alert/get_alerts_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/get_alerts_responses.go b/api/v2/restapi/operations/alert/get_alerts_responses.go index af6e309f..a9a4bd88 100644 --- a/api/v2/restapi/operations/alert/get_alerts_responses.go +++ b/api/v2/restapi/operations/alert/get_alerts_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/get_alerts_urlbuilder.go b/api/v2/restapi/operations/alert/get_alerts_urlbuilder.go index 29ddcf3a..43047083 100644 --- a/api/v2/restapi/operations/alert/get_alerts_urlbuilder.go +++ b/api/v2/restapi/operations/alert/get_alerts_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/post_alerts.go b/api/v2/restapi/operations/alert/post_alerts.go index 3c1e139c..d5b41d6e 100644 --- a/api/v2/restapi/operations/alert/post_alerts.go +++ b/api/v2/restapi/operations/alert/post_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/post_alerts_parameters.go b/api/v2/restapi/operations/alert/post_alerts_parameters.go index 072d15a4..d35610f0 100644 --- a/api/v2/restapi/operations/alert/post_alerts_parameters.go +++ b/api/v2/restapi/operations/alert/post_alerts_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/post_alerts_responses.go b/api/v2/restapi/operations/alert/post_alerts_responses.go index 3b858908..5fc53cd8 100644 --- a/api/v2/restapi/operations/alert/post_alerts_responses.go +++ b/api/v2/restapi/operations/alert/post_alerts_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alert/post_alerts_urlbuilder.go b/api/v2/restapi/operations/alert/post_alerts_urlbuilder.go index 68f9d42d..fdfd24e6 100644 --- a/api/v2/restapi/operations/alert/post_alerts_urlbuilder.go +++ b/api/v2/restapi/operations/alert/post_alerts_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/alertmanager_api.go b/api/v2/restapi/operations/alertmanager_api.go index a4e64b46..e999dba5 100644 --- a/api/v2/restapi/operations/alertmanager_api.go +++ b/api/v2/restapi/operations/alertmanager_api.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package operations // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/general/get_status.go b/api/v2/restapi/operations/general/get_status.go index 37049966..d8668250 100644 --- a/api/v2/restapi/operations/general/get_status.go +++ b/api/v2/restapi/operations/general/get_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/general/get_status_parameters.go b/api/v2/restapi/operations/general/get_status_parameters.go index f9b5d9ba..3a7d16c7 100644 --- a/api/v2/restapi/operations/general/get_status_parameters.go +++ b/api/v2/restapi/operations/general/get_status_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/general/get_status_responses.go b/api/v2/restapi/operations/general/get_status_responses.go index 5399f9df..27f11458 100644 --- a/api/v2/restapi/operations/general/get_status_responses.go +++ b/api/v2/restapi/operations/general/get_status_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/general/get_status_urlbuilder.go b/api/v2/restapi/operations/general/get_status_urlbuilder.go index d1ace2d2..ec165fb5 100644 --- a/api/v2/restapi/operations/general/get_status_urlbuilder.go +++ b/api/v2/restapi/operations/general/get_status_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/receiver/get_receivers.go b/api/v2/restapi/operations/receiver/get_receivers.go index 1085290a..1ae303e3 100644 --- a/api/v2/restapi/operations/receiver/get_receivers.go +++ b/api/v2/restapi/operations/receiver/get_receivers.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/receiver/get_receivers_parameters.go b/api/v2/restapi/operations/receiver/get_receivers_parameters.go index 519e493c..ef1ca653 100644 --- a/api/v2/restapi/operations/receiver/get_receivers_parameters.go +++ b/api/v2/restapi/operations/receiver/get_receivers_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/receiver/get_receivers_responses.go b/api/v2/restapi/operations/receiver/get_receivers_responses.go index e4c2a0df..dbfccc0b 100644 --- a/api/v2/restapi/operations/receiver/get_receivers_responses.go +++ b/api/v2/restapi/operations/receiver/get_receivers_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/receiver/get_receivers_urlbuilder.go b/api/v2/restapi/operations/receiver/get_receivers_urlbuilder.go index 417de096..861d98f6 100644 --- a/api/v2/restapi/operations/receiver/get_receivers_urlbuilder.go +++ b/api/v2/restapi/operations/receiver/get_receivers_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/delete_silence.go b/api/v2/restapi/operations/silence/delete_silence.go index 3a3565e3..410f0904 100644 --- a/api/v2/restapi/operations/silence/delete_silence.go +++ b/api/v2/restapi/operations/silence/delete_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/delete_silence_parameters.go b/api/v2/restapi/operations/silence/delete_silence_parameters.go index ea11c4e1..dc2761f4 100644 --- a/api/v2/restapi/operations/silence/delete_silence_parameters.go +++ b/api/v2/restapi/operations/silence/delete_silence_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/delete_silence_responses.go b/api/v2/restapi/operations/silence/delete_silence_responses.go index ab12ca2b..9c1e9355 100644 --- a/api/v2/restapi/operations/silence/delete_silence_responses.go +++ b/api/v2/restapi/operations/silence/delete_silence_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/delete_silence_urlbuilder.go b/api/v2/restapi/operations/silence/delete_silence_urlbuilder.go index 623abc6b..e98d616a 100644 --- a/api/v2/restapi/operations/silence/delete_silence_urlbuilder.go +++ b/api/v2/restapi/operations/silence/delete_silence_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silence.go b/api/v2/restapi/operations/silence/get_silence.go index fd1a1d8b..4cc3cdd1 100644 --- a/api/v2/restapi/operations/silence/get_silence.go +++ b/api/v2/restapi/operations/silence/get_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silence_parameters.go b/api/v2/restapi/operations/silence/get_silence_parameters.go index c5eb1b40..72b7f86d 100644 --- a/api/v2/restapi/operations/silence/get_silence_parameters.go +++ b/api/v2/restapi/operations/silence/get_silence_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silence_responses.go b/api/v2/restapi/operations/silence/get_silence_responses.go index 55fc4377..c05a317d 100644 --- a/api/v2/restapi/operations/silence/get_silence_responses.go +++ b/api/v2/restapi/operations/silence/get_silence_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silence_urlbuilder.go b/api/v2/restapi/operations/silence/get_silence_urlbuilder.go index e7c4478a..0d2efa76 100644 --- a/api/v2/restapi/operations/silence/get_silence_urlbuilder.go +++ b/api/v2/restapi/operations/silence/get_silence_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silences.go b/api/v2/restapi/operations/silence/get_silences.go index 93b895d2..ab7ddba2 100644 --- a/api/v2/restapi/operations/silence/get_silences.go +++ b/api/v2/restapi/operations/silence/get_silences.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silences_parameters.go b/api/v2/restapi/operations/silence/get_silences_parameters.go index 07804d94..66c5af37 100644 --- a/api/v2/restapi/operations/silence/get_silences_parameters.go +++ b/api/v2/restapi/operations/silence/get_silences_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silences_responses.go b/api/v2/restapi/operations/silence/get_silences_responses.go index 4de24c6c..f4238a00 100644 --- a/api/v2/restapi/operations/silence/get_silences_responses.go +++ b/api/v2/restapi/operations/silence/get_silences_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/get_silences_urlbuilder.go b/api/v2/restapi/operations/silence/get_silences_urlbuilder.go index 94111b17..7ab757fd 100644 --- a/api/v2/restapi/operations/silence/get_silences_urlbuilder.go +++ b/api/v2/restapi/operations/silence/get_silences_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/post_silences.go b/api/v2/restapi/operations/silence/post_silences.go index 30f2b6c5..82246621 100644 --- a/api/v2/restapi/operations/silence/post_silences.go +++ b/api/v2/restapi/operations/silence/post_silences.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/post_silences_parameters.go b/api/v2/restapi/operations/silence/post_silences_parameters.go index 84397369..0fdebcfa 100644 --- a/api/v2/restapi/operations/silence/post_silences_parameters.go +++ b/api/v2/restapi/operations/silence/post_silences_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/post_silences_responses.go b/api/v2/restapi/operations/silence/post_silences_responses.go index c4eaaf81..7fe6354f 100644 --- a/api/v2/restapi/operations/silence/post_silences_responses.go +++ b/api/v2/restapi/operations/silence/post_silences_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/operations/silence/post_silences_urlbuilder.go b/api/v2/restapi/operations/silence/post_silences_urlbuilder.go index af9e644c..7341cb31 100644 --- a/api/v2/restapi/operations/silence/post_silences_urlbuilder.go +++ b/api/v2/restapi/operations/silence/post_silences_urlbuilder.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/api/v2/restapi/server.go b/api/v2/restapi/server.go index 176b9fef..a17ca5c4 100644 --- a/api/v2/restapi/server.go +++ b/api/v2/restapi/server.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package restapi import ( diff --git a/test/with_api_v2/api_v2_client/client/alert/alert_client.go b/test/with_api_v2/api_v2_client/client/alert/alert_client.go index 035cbd31..eba06f9d 100644 --- a/test/with_api_v2/api_v2_client/client/alert/alert_client.go +++ b/test/with_api_v2/api_v2_client/client/alert/alert_client.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/alert/get_alerts_parameters.go b/test/with_api_v2/api_v2_client/client/alert/get_alerts_parameters.go index ae188480..cba0387c 100644 --- a/test/with_api_v2/api_v2_client/client/alert/get_alerts_parameters.go +++ b/test/with_api_v2/api_v2_client/client/alert/get_alerts_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/alert/get_alerts_responses.go b/test/with_api_v2/api_v2_client/client/alert/get_alerts_responses.go index 798f596f..21d80454 100644 --- a/test/with_api_v2/api_v2_client/client/alert/get_alerts_responses.go +++ b/test/with_api_v2/api_v2_client/client/alert/get_alerts_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/alert/post_alerts_parameters.go b/test/with_api_v2/api_v2_client/client/alert/post_alerts_parameters.go index 00fd9b81..816bdf60 100644 --- a/test/with_api_v2/api_v2_client/client/alert/post_alerts_parameters.go +++ b/test/with_api_v2/api_v2_client/client/alert/post_alerts_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/alert/post_alerts_responses.go b/test/with_api_v2/api_v2_client/client/alert/post_alerts_responses.go index 50c27bd7..0416f39a 100644 --- a/test/with_api_v2/api_v2_client/client/alert/post_alerts_responses.go +++ b/test/with_api_v2/api_v2_client/client/alert/post_alerts_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package alert // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/alertmanager_client.go b/test/with_api_v2/api_v2_client/client/alertmanager_client.go index a2832301..d9c926ca 100644 --- a/test/with_api_v2/api_v2_client/client/alertmanager_client.go +++ b/test/with_api_v2/api_v2_client/client/alertmanager_client.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package client // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/general/general_client.go b/test/with_api_v2/api_v2_client/client/general/general_client.go index 239acbb0..7e1d8aff 100644 --- a/test/with_api_v2/api_v2_client/client/general/general_client.go +++ b/test/with_api_v2/api_v2_client/client/general/general_client.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/general/get_status_parameters.go b/test/with_api_v2/api_v2_client/client/general/get_status_parameters.go index 2fae2aee..f8f3e2b9 100644 --- a/test/with_api_v2/api_v2_client/client/general/get_status_parameters.go +++ b/test/with_api_v2/api_v2_client/client/general/get_status_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/general/get_status_responses.go b/test/with_api_v2/api_v2_client/client/general/get_status_responses.go index 1ffc65e5..cb7414a8 100644 --- a/test/with_api_v2/api_v2_client/client/general/get_status_responses.go +++ b/test/with_api_v2/api_v2_client/client/general/get_status_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package general // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/receiver/get_receivers_parameters.go b/test/with_api_v2/api_v2_client/client/receiver/get_receivers_parameters.go index fd2b08b0..99b478a2 100644 --- a/test/with_api_v2/api_v2_client/client/receiver/get_receivers_parameters.go +++ b/test/with_api_v2/api_v2_client/client/receiver/get_receivers_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/receiver/get_receivers_responses.go b/test/with_api_v2/api_v2_client/client/receiver/get_receivers_responses.go index 0249abb3..2e9a943c 100644 --- a/test/with_api_v2/api_v2_client/client/receiver/get_receivers_responses.go +++ b/test/with_api_v2/api_v2_client/client/receiver/get_receivers_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/receiver/receiver_client.go b/test/with_api_v2/api_v2_client/client/receiver/receiver_client.go index 065ef56d..ed0927dc 100644 --- a/test/with_api_v2/api_v2_client/client/receiver/receiver_client.go +++ b/test/with_api_v2/api_v2_client/client/receiver/receiver_client.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package receiver // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/delete_silence_parameters.go b/test/with_api_v2/api_v2_client/client/silence/delete_silence_parameters.go index 6b49b302..98914082 100644 --- a/test/with_api_v2/api_v2_client/client/silence/delete_silence_parameters.go +++ b/test/with_api_v2/api_v2_client/client/silence/delete_silence_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/delete_silence_responses.go b/test/with_api_v2/api_v2_client/client/silence/delete_silence_responses.go index bd87dc9e..bd6e2f52 100644 --- a/test/with_api_v2/api_v2_client/client/silence/delete_silence_responses.go +++ b/test/with_api_v2/api_v2_client/client/silence/delete_silence_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/get_silence_parameters.go b/test/with_api_v2/api_v2_client/client/silence/get_silence_parameters.go index bd6f3450..f083e45a 100644 --- a/test/with_api_v2/api_v2_client/client/silence/get_silence_parameters.go +++ b/test/with_api_v2/api_v2_client/client/silence/get_silence_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/get_silence_responses.go b/test/with_api_v2/api_v2_client/client/silence/get_silence_responses.go index a891eb53..1f48052c 100644 --- a/test/with_api_v2/api_v2_client/client/silence/get_silence_responses.go +++ b/test/with_api_v2/api_v2_client/client/silence/get_silence_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/get_silences_parameters.go b/test/with_api_v2/api_v2_client/client/silence/get_silences_parameters.go index 687d1fb2..e4e26771 100644 --- a/test/with_api_v2/api_v2_client/client/silence/get_silences_parameters.go +++ b/test/with_api_v2/api_v2_client/client/silence/get_silences_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/get_silences_responses.go b/test/with_api_v2/api_v2_client/client/silence/get_silences_responses.go index 4e6338f5..a0add60a 100644 --- a/test/with_api_v2/api_v2_client/client/silence/get_silences_responses.go +++ b/test/with_api_v2/api_v2_client/client/silence/get_silences_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/post_silences_parameters.go b/test/with_api_v2/api_v2_client/client/silence/post_silences_parameters.go index 23b2d9f9..b8c4c0a4 100644 --- a/test/with_api_v2/api_v2_client/client/silence/post_silences_parameters.go +++ b/test/with_api_v2/api_v2_client/client/silence/post_silences_parameters.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/post_silences_responses.go b/test/with_api_v2/api_v2_client/client/silence/post_silences_responses.go index 9b68b692..37c562d6 100644 --- a/test/with_api_v2/api_v2_client/client/silence/post_silences_responses.go +++ b/test/with_api_v2/api_v2_client/client/silence/post_silences_responses.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/client/silence/silence_client.go b/test/with_api_v2/api_v2_client/client/silence/silence_client.go index 86080fcc..bfa1cc4b 100644 --- a/test/with_api_v2/api_v2_client/client/silence/silence_client.go +++ b/test/with_api_v2/api_v2_client/client/silence/silence_client.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package silence // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/alert.go b/test/with_api_v2/api_v2_client/models/alert.go index 27475868..832df76e 100644 --- a/test/with_api_v2/api_v2_client/models/alert.go +++ b/test/with_api_v2/api_v2_client/models/alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/alert_status.go b/test/with_api_v2/api_v2_client/models/alert_status.go index 673deaab..cadbad36 100644 --- a/test/with_api_v2/api_v2_client/models/alert_status.go +++ b/test/with_api_v2/api_v2_client/models/alert_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/alertmanager_config.go b/test/with_api_v2/api_v2_client/models/alertmanager_config.go index 6b41f1bc..a7ef560d 100644 --- a/test/with_api_v2/api_v2_client/models/alertmanager_config.go +++ b/test/with_api_v2/api_v2_client/models/alertmanager_config.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/alertmanager_status.go b/test/with_api_v2/api_v2_client/models/alertmanager_status.go index 5c6c785d..88afa7fe 100644 --- a/test/with_api_v2/api_v2_client/models/alertmanager_status.go +++ b/test/with_api_v2/api_v2_client/models/alertmanager_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/cluster_status.go b/test/with_api_v2/api_v2_client/models/cluster_status.go index 8132e332..9db4491d 100644 --- a/test/with_api_v2/api_v2_client/models/cluster_status.go +++ b/test/with_api_v2/api_v2_client/models/cluster_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/gettable_alert.go b/test/with_api_v2/api_v2_client/models/gettable_alert.go index 8dd114f4..c0c98348 100644 --- a/test/with_api_v2/api_v2_client/models/gettable_alert.go +++ b/test/with_api_v2/api_v2_client/models/gettable_alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/gettable_alerts.go b/test/with_api_v2/api_v2_client/models/gettable_alerts.go index c6df65dc..fe7f1def 100644 --- a/test/with_api_v2/api_v2_client/models/gettable_alerts.go +++ b/test/with_api_v2/api_v2_client/models/gettable_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/gettable_silence.go b/test/with_api_v2/api_v2_client/models/gettable_silence.go index a03412d2..e2cad931 100644 --- a/test/with_api_v2/api_v2_client/models/gettable_silence.go +++ b/test/with_api_v2/api_v2_client/models/gettable_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/gettable_silences.go b/test/with_api_v2/api_v2_client/models/gettable_silences.go index 3993a967..8f1604e3 100644 --- a/test/with_api_v2/api_v2_client/models/gettable_silences.go +++ b/test/with_api_v2/api_v2_client/models/gettable_silences.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/label_set.go b/test/with_api_v2/api_v2_client/models/label_set.go index cc6ff758..0d1d3538 100644 --- a/test/with_api_v2/api_v2_client/models/label_set.go +++ b/test/with_api_v2/api_v2_client/models/label_set.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/matcher.go b/test/with_api_v2/api_v2_client/models/matcher.go index 78bc8194..eae3605a 100644 --- a/test/with_api_v2/api_v2_client/models/matcher.go +++ b/test/with_api_v2/api_v2_client/models/matcher.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/matchers.go b/test/with_api_v2/api_v2_client/models/matchers.go index 18ffb8ac..bd285489 100644 --- a/test/with_api_v2/api_v2_client/models/matchers.go +++ b/test/with_api_v2/api_v2_client/models/matchers.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/peer_status.go b/test/with_api_v2/api_v2_client/models/peer_status.go index 9d9c34f4..29e10ece 100644 --- a/test/with_api_v2/api_v2_client/models/peer_status.go +++ b/test/with_api_v2/api_v2_client/models/peer_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/postable_alert.go b/test/with_api_v2/api_v2_client/models/postable_alert.go index 3f05bc81..afa91ca9 100644 --- a/test/with_api_v2/api_v2_client/models/postable_alert.go +++ b/test/with_api_v2/api_v2_client/models/postable_alert.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/postable_alerts.go b/test/with_api_v2/api_v2_client/models/postable_alerts.go index c7014719..7097adca 100644 --- a/test/with_api_v2/api_v2_client/models/postable_alerts.go +++ b/test/with_api_v2/api_v2_client/models/postable_alerts.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/postable_silence.go b/test/with_api_v2/api_v2_client/models/postable_silence.go index 1fa1fb29..45efa4ff 100644 --- a/test/with_api_v2/api_v2_client/models/postable_silence.go +++ b/test/with_api_v2/api_v2_client/models/postable_silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/receiver.go b/test/with_api_v2/api_v2_client/models/receiver.go index 61c2748a..3686e6d1 100644 --- a/test/with_api_v2/api_v2_client/models/receiver.go +++ b/test/with_api_v2/api_v2_client/models/receiver.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/silence.go b/test/with_api_v2/api_v2_client/models/silence.go index 742ba17d..0a842a30 100644 --- a/test/with_api_v2/api_v2_client/models/silence.go +++ b/test/with_api_v2/api_v2_client/models/silence.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/silence_status.go b/test/with_api_v2/api_v2_client/models/silence_status.go index 82c9b435..669269e1 100644 --- a/test/with_api_v2/api_v2_client/models/silence_status.go +++ b/test/with_api_v2/api_v2_client/models/silence_status.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/test/with_api_v2/api_v2_client/models/version_info.go b/test/with_api_v2/api_v2_client/models/version_info.go index 5cdbc2bd..232d805d 100644 --- a/test/with_api_v2/api_v2_client/models/version_info.go +++ b/test/with_api_v2/api_v2_client/models/version_info.go @@ -1,5 +1,19 @@ // Code generated by go-swagger; DO NOT EDIT. +// Copyright Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + package models // This file was generated by the swagger tool. diff --git a/ui/app/Makefile b/ui/app/Makefile index 5014b03e..f462c2ef 100644 --- a/ui/app/Makefile +++ b/ui/app/Makefile @@ -2,7 +2,8 @@ # elm files change during execution. ELM_FILES = $(shell find src -iname *.elm) DOCKER_IMG := elm-env -DOCKER_CMD := docker run --rm -t -v $(PWD):/app -w /app $(DOCKER_IMG) +DOCKER_RUN_CURRENT_USER := docker run --user=$(shell id -u $(USER)):$(shell id -g $(USER)) +DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app $(DOCKER_IMG) # macOS requires mktemp template to be at the end of the filename. TEMPFILE := $(shell mktemp ./elm-XXXXXXXXXX) # --output flag for elm make must end in .js or .html. @@ -43,7 +44,7 @@ script.js: src/Data elm-env format $(ELM_FILES) src/Data: ../../api/v2/openapi.yaml -rm -r src/Data - docker run --user=$(shell id -u $(USER)):$(shell id -g $(USER)) --rm -v ${PWD}/../..:/local openapitools/openapi-generator-cli:v3.3.4 generate \ + $(DOCKER_RUN_CURRENT_USER) --rm -v ${PWD}/../..:/local openapitools/openapi-generator-cli:v3.3.4 generate \ -i /local/api/v2/openapi.yaml \ -g elm \ -o /local/ui/app/$(TEMPOPENAPI) @@ -54,9 +55,6 @@ src/Data: ../../api/v2/openapi.yaml clean: - - @rm script.js - - @rm -rf elm-stuff - - @rm -rf src/Data - - @rm -f src/DateTime.elm - - @docker rmi $(DOCKER_IMG) - - rm -r openapi-* + - @rm -rf script.js elm-stuff src/Data src/DateTime.elm openapi-* + - @if [ ! -z "$(docker images -q $(DOCKER_IMG))" ]; then \ + docker rmi $(DOCKER_IMG); fi