2 ==================================================================================
3 Copyright (c) 2021 Samsung
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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
17 This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 platform project (RICP).
19 ==================================================================================
21 // Code generated by go-swagger; DO NOT EDIT.
25 // This file was generated by the swagger tool.
26 // Editing this file might prove futile when you re-run the swagger generate command
31 "github.com/go-openapi/runtime"
33 "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/models"
36 // A1ControllerGetAllInstancesForTypeOKCode is the HTTP code returned for type A1ControllerGetAllInstancesForTypeOK
37 const A1ControllerGetAllInstancesForTypeOKCode int = 200
39 /*A1ControllerGetAllInstancesForTypeOK list of all policy instance ids for this policy type id
41 swagger:response a1ControllerGetAllInstancesForTypeOK
43 type A1ControllerGetAllInstancesForTypeOK struct {
48 Payload []models.PolicyInstanceID `json:"body,omitempty"`
51 // NewA1ControllerGetAllInstancesForTypeOK creates A1ControllerGetAllInstancesForTypeOK with default headers values
52 func NewA1ControllerGetAllInstancesForTypeOK() *A1ControllerGetAllInstancesForTypeOK {
54 return &A1ControllerGetAllInstancesForTypeOK{}
57 // WithPayload adds the payload to the a1 controller get all instances for type o k response
58 func (o *A1ControllerGetAllInstancesForTypeOK) WithPayload(payload []models.PolicyInstanceID) *A1ControllerGetAllInstancesForTypeOK {
63 // SetPayload sets the payload to the a1 controller get all instances for type o k response
64 func (o *A1ControllerGetAllInstancesForTypeOK) SetPayload(payload []models.PolicyInstanceID) {
68 // WriteResponse to the client
69 func (o *A1ControllerGetAllInstancesForTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
75 payload = make([]models.PolicyInstanceID, 0, 50)
78 if err := producer.Produce(rw, payload); err != nil {
79 panic(err) // let the recovery middleware deal with this
83 // A1ControllerGetAllInstancesForTypeServiceUnavailableCode is the HTTP code returned for type A1ControllerGetAllInstancesForTypeServiceUnavailable
84 const A1ControllerGetAllInstancesForTypeServiceUnavailableCode int = 503
86 /*A1ControllerGetAllInstancesForTypeServiceUnavailable Potentially transient backend database error. Client should attempt to retry later.
88 swagger:response a1ControllerGetAllInstancesForTypeServiceUnavailable
90 type A1ControllerGetAllInstancesForTypeServiceUnavailable struct {
93 // NewA1ControllerGetAllInstancesForTypeServiceUnavailable creates A1ControllerGetAllInstancesForTypeServiceUnavailable with default headers values
94 func NewA1ControllerGetAllInstancesForTypeServiceUnavailable() *A1ControllerGetAllInstancesForTypeServiceUnavailable {
96 return &A1ControllerGetAllInstancesForTypeServiceUnavailable{}
99 // WriteResponse to the client
100 func (o *A1ControllerGetAllInstancesForTypeServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
102 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses