Replacing a1-python with a1-go implementation
[ric-plt/a1.git] / pkg / restapi / operations / a1_e_i_data_delivery / a1_controller_data_delivery_responses.go
1 /*
2 ==================================================================================
3   Copyright (c) 2021 Samsung
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17    This source code is part of the near-RT RIC (RAN Intelligent Controller)
18    platform project (RICP).
19 ==================================================================================
20 */
21 // Code generated by go-swagger; DO NOT EDIT.
22
23 package a1_e_i_data_delivery
24
25 // This file was generated by the swagger tool.
26 // Editing this file might prove futile when you re-run the swagger generate command
27
28 import (
29         "net/http"
30
31         "github.com/go-openapi/runtime"
32 )
33
34 // A1ControllerDataDeliveryOKCode is the HTTP code returned for type A1ControllerDataDeliveryOK
35 const A1ControllerDataDeliveryOKCode int = 200
36
37 /*A1ControllerDataDeliveryOK successfully delivered data from data producer
38
39
40 swagger:response a1ControllerDataDeliveryOK
41 */
42 type A1ControllerDataDeliveryOK struct {
43 }
44
45 // NewA1ControllerDataDeliveryOK creates A1ControllerDataDeliveryOK with default headers values
46 func NewA1ControllerDataDeliveryOK() *A1ControllerDataDeliveryOK {
47
48         return &A1ControllerDataDeliveryOK{}
49 }
50
51 // WriteResponse to the client
52 func (o *A1ControllerDataDeliveryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
53
54         rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
55
56         rw.WriteHeader(200)
57 }
58
59 // A1ControllerDataDeliveryNotFoundCode is the HTTP code returned for type A1ControllerDataDeliveryNotFound
60 const A1ControllerDataDeliveryNotFoundCode int = 404
61
62 /*A1ControllerDataDeliveryNotFound no job id defined for this data delivery
63
64
65 swagger:response a1ControllerDataDeliveryNotFound
66 */
67 type A1ControllerDataDeliveryNotFound struct {
68 }
69
70 // NewA1ControllerDataDeliveryNotFound creates A1ControllerDataDeliveryNotFound with default headers values
71 func NewA1ControllerDataDeliveryNotFound() *A1ControllerDataDeliveryNotFound {
72
73         return &A1ControllerDataDeliveryNotFound{}
74 }
75
76 // WriteResponse to the client
77 func (o *A1ControllerDataDeliveryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
78
79         rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
80
81         rw.WriteHeader(404)
82 }