diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt new file mode 100644 index 000000000..af2570c1e --- /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 aa8ebeba0..049f65cc3 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 27475868e..832df76e4 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 673deaabd..cadbad364 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 6b41f1bcd..a7ef560d0 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 5c6c785df..88afa7fe2 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 8132e332b..9db4491d8 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 8dd114f4e..c0c983486 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 c6df65dc0..fe7f1defd 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 a03412d2b..e2cad9319 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 3993a967d..8f1604e3f 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 cc6ff758f..0d1d35389 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 78bc81947..eae3605a7 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 18ffb8ac0..bd2854897 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 9d9c34f40..29e10ece6 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 3f05bc815..afa91ca96 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 c7014719d..7097adcaf 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 1fa1fb291..45efa4ff7 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 61c2748a5..3686e6d19 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 742ba17d7..0a842a301 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 82c9b435d..669269e18 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 5cdbc2bdd..232d805d2 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 4c13ba266..68a73af60 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 8eae3a935..ccf41ec68 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 4188d63ac..041cafb6e 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 543534717..0177f79b7 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 5c81828d9..7ae752e67 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 af6e309f9..a9a4bd885 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 29ddcf3a7..430470839 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 3c1e139c9..d5b41d6e8 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 072d15a41..d35610f0f 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 3b8589083..5fc53cd84 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 68f9d42df..fdfd24e60 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 a4e64b469..e999dba5c 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 37049966c..d86682504 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 f9b5d9ba8..3a7d16c76 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 5399f9df8..27f114580 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 d1ace2d2c..ec165fb5e 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 1085290a4..1ae303e3d 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 519e493c7..ef1ca653f 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 e4c2a0df2..dbfccc0bd 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 417de0966..861d98f60 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 3a3565e34..410f0904d 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 ea11c4e11..dc2761f49 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 ab12ca2b8..9c1e93555 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 623abc6bf..e98d616a6 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 fd1a1d8bf..4cc3cdd13 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 c5eb1b405..72b7f86d4 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 55fc4377e..c05a317d7 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 e7c4478a9..0d2efa769 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 93b895d2e..ab7ddba2d 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 07804d941..66c5af37c 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 4de24c6c2..f4238a003 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 94111b17a..7ab757fd0 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 30f2b6c54..82246621e 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 843973690..0fdebcfa2 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 c4eaaf819..7fe6354fe 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 af9e644c3..7341cb31d 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 176b9fef2..a17ca5c4e 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 035cbd313..eba06f9d9 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 ae188480d..cba0387c8 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 798f596f8..21d804549 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 00fd9b81b..816bdf60a 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 50c27bd7e..0416f39aa 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 a28323011..d9c926cab 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 239acbb0b..7e1d8aff7 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 2fae2aee3..f8f3e2b9c 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 1ffc65e59..cb7414a8b 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 fd2b08b0d..99b478a2f 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 0249abb31..2e9a943ca 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 065ef56d4..ed0927dcf 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 6b49b3028..98914082b 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 bd87dc9ef..bd6e2f52b 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 bd6f34504..f083e45a0 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 a891eb531..1f48052c5 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 687d1fb28..e4e26771d 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 4e6338f51..a0add60a4 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 23b2d9f90..b8c4c0a4b 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 9b68b692b..37c562d67 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 86080fccd..bfa1cc4b1 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 27475868e..832df76e4 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 673deaabd..cadbad364 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 6b41f1bcd..a7ef560d0 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 5c6c785df..88afa7fe2 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 8132e332b..9db4491d8 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 8dd114f4e..c0c983486 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 c6df65dc0..fe7f1defd 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 a03412d2b..e2cad9319 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 3993a967d..8f1604e3f 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 cc6ff758f..0d1d35389 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 78bc81947..eae3605a7 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 18ffb8ac0..bd2854897 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 9d9c34f40..29e10ece6 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 3f05bc815..afa91ca96 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 c7014719d..7097adcaf 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 1fa1fb291..45efa4ff7 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 61c2748a5..3686e6d19 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 742ba17d7..0a842a301 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 82c9b435d..669269e18 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 5cdbc2bdd..232d805d2 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 5014b03ed..f462c2ef6 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