github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/operations/objects/objects_references_update_responses.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 // Code generated by go-swagger; DO NOT EDIT. 13 14 package objects 15 16 // This file was generated by the swagger tool. 17 // Editing this file might prove futile when you re-run the swagger generate command 18 19 import ( 20 "net/http" 21 22 "github.com/go-openapi/runtime" 23 24 "github.com/weaviate/weaviate/entities/models" 25 ) 26 27 // ObjectsReferencesUpdateOKCode is the HTTP code returned for type ObjectsReferencesUpdateOK 28 const ObjectsReferencesUpdateOKCode int = 200 29 30 /* 31 ObjectsReferencesUpdateOK Successfully replaced all the references. 32 33 swagger:response objectsReferencesUpdateOK 34 */ 35 type ObjectsReferencesUpdateOK struct { 36 } 37 38 // NewObjectsReferencesUpdateOK creates ObjectsReferencesUpdateOK with default headers values 39 func NewObjectsReferencesUpdateOK() *ObjectsReferencesUpdateOK { 40 41 return &ObjectsReferencesUpdateOK{} 42 } 43 44 // WriteResponse to the client 45 func (o *ObjectsReferencesUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 46 47 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 48 49 rw.WriteHeader(200) 50 } 51 52 // ObjectsReferencesUpdateUnauthorizedCode is the HTTP code returned for type ObjectsReferencesUpdateUnauthorized 53 const ObjectsReferencesUpdateUnauthorizedCode int = 401 54 55 /* 56 ObjectsReferencesUpdateUnauthorized Unauthorized or invalid credentials. 57 58 swagger:response objectsReferencesUpdateUnauthorized 59 */ 60 type ObjectsReferencesUpdateUnauthorized struct { 61 } 62 63 // NewObjectsReferencesUpdateUnauthorized creates ObjectsReferencesUpdateUnauthorized with default headers values 64 func NewObjectsReferencesUpdateUnauthorized() *ObjectsReferencesUpdateUnauthorized { 65 66 return &ObjectsReferencesUpdateUnauthorized{} 67 } 68 69 // WriteResponse to the client 70 func (o *ObjectsReferencesUpdateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 71 72 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 73 74 rw.WriteHeader(401) 75 } 76 77 // ObjectsReferencesUpdateForbiddenCode is the HTTP code returned for type ObjectsReferencesUpdateForbidden 78 const ObjectsReferencesUpdateForbiddenCode int = 403 79 80 /* 81 ObjectsReferencesUpdateForbidden Forbidden 82 83 swagger:response objectsReferencesUpdateForbidden 84 */ 85 type ObjectsReferencesUpdateForbidden struct { 86 87 /* 88 In: Body 89 */ 90 Payload *models.ErrorResponse `json:"body,omitempty"` 91 } 92 93 // NewObjectsReferencesUpdateForbidden creates ObjectsReferencesUpdateForbidden with default headers values 94 func NewObjectsReferencesUpdateForbidden() *ObjectsReferencesUpdateForbidden { 95 96 return &ObjectsReferencesUpdateForbidden{} 97 } 98 99 // WithPayload adds the payload to the objects references update forbidden response 100 func (o *ObjectsReferencesUpdateForbidden) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesUpdateForbidden { 101 o.Payload = payload 102 return o 103 } 104 105 // SetPayload sets the payload to the objects references update forbidden response 106 func (o *ObjectsReferencesUpdateForbidden) SetPayload(payload *models.ErrorResponse) { 107 o.Payload = payload 108 } 109 110 // WriteResponse to the client 111 func (o *ObjectsReferencesUpdateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 112 113 rw.WriteHeader(403) 114 if o.Payload != nil { 115 payload := o.Payload 116 if err := producer.Produce(rw, payload); err != nil { 117 panic(err) // let the recovery middleware deal with this 118 } 119 } 120 } 121 122 // ObjectsReferencesUpdateUnprocessableEntityCode is the HTTP code returned for type ObjectsReferencesUpdateUnprocessableEntity 123 const ObjectsReferencesUpdateUnprocessableEntityCode int = 422 124 125 /* 126 ObjectsReferencesUpdateUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the property exists or that it is a class? 127 128 swagger:response objectsReferencesUpdateUnprocessableEntity 129 */ 130 type ObjectsReferencesUpdateUnprocessableEntity struct { 131 132 /* 133 In: Body 134 */ 135 Payload *models.ErrorResponse `json:"body,omitempty"` 136 } 137 138 // NewObjectsReferencesUpdateUnprocessableEntity creates ObjectsReferencesUpdateUnprocessableEntity with default headers values 139 func NewObjectsReferencesUpdateUnprocessableEntity() *ObjectsReferencesUpdateUnprocessableEntity { 140 141 return &ObjectsReferencesUpdateUnprocessableEntity{} 142 } 143 144 // WithPayload adds the payload to the objects references update unprocessable entity response 145 func (o *ObjectsReferencesUpdateUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesUpdateUnprocessableEntity { 146 o.Payload = payload 147 return o 148 } 149 150 // SetPayload sets the payload to the objects references update unprocessable entity response 151 func (o *ObjectsReferencesUpdateUnprocessableEntity) SetPayload(payload *models.ErrorResponse) { 152 o.Payload = payload 153 } 154 155 // WriteResponse to the client 156 func (o *ObjectsReferencesUpdateUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 157 158 rw.WriteHeader(422) 159 if o.Payload != nil { 160 payload := o.Payload 161 if err := producer.Produce(rw, payload); err != nil { 162 panic(err) // let the recovery middleware deal with this 163 } 164 } 165 } 166 167 // ObjectsReferencesUpdateInternalServerErrorCode is the HTTP code returned for type ObjectsReferencesUpdateInternalServerError 168 const ObjectsReferencesUpdateInternalServerErrorCode int = 500 169 170 /* 171 ObjectsReferencesUpdateInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. 172 173 swagger:response objectsReferencesUpdateInternalServerError 174 */ 175 type ObjectsReferencesUpdateInternalServerError struct { 176 177 /* 178 In: Body 179 */ 180 Payload *models.ErrorResponse `json:"body,omitempty"` 181 } 182 183 // NewObjectsReferencesUpdateInternalServerError creates ObjectsReferencesUpdateInternalServerError with default headers values 184 func NewObjectsReferencesUpdateInternalServerError() *ObjectsReferencesUpdateInternalServerError { 185 186 return &ObjectsReferencesUpdateInternalServerError{} 187 } 188 189 // WithPayload adds the payload to the objects references update internal server error response 190 func (o *ObjectsReferencesUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesUpdateInternalServerError { 191 o.Payload = payload 192 return o 193 } 194 195 // SetPayload sets the payload to the objects references update internal server error response 196 func (o *ObjectsReferencesUpdateInternalServerError) SetPayload(payload *models.ErrorResponse) { 197 o.Payload = payload 198 } 199 200 // WriteResponse to the client 201 func (o *ObjectsReferencesUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 202 203 rw.WriteHeader(500) 204 if o.Payload != nil { 205 payload := o.Payload 206 if err := producer.Produce(rw, payload); err != nil { 207 panic(err) // let the recovery middleware deal with this 208 } 209 } 210 }