github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/operations/objects/objects_class_references_delete_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 // ObjectsClassReferencesDeleteNoContentCode is the HTTP code returned for type ObjectsClassReferencesDeleteNoContent 28 const ObjectsClassReferencesDeleteNoContentCode int = 204 29 30 /* 31 ObjectsClassReferencesDeleteNoContent Successfully deleted. 32 33 swagger:response objectsClassReferencesDeleteNoContent 34 */ 35 type ObjectsClassReferencesDeleteNoContent struct { 36 } 37 38 // NewObjectsClassReferencesDeleteNoContent creates ObjectsClassReferencesDeleteNoContent with default headers values 39 func NewObjectsClassReferencesDeleteNoContent() *ObjectsClassReferencesDeleteNoContent { 40 41 return &ObjectsClassReferencesDeleteNoContent{} 42 } 43 44 // WriteResponse to the client 45 func (o *ObjectsClassReferencesDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 46 47 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 48 49 rw.WriteHeader(204) 50 } 51 52 // ObjectsClassReferencesDeleteBadRequestCode is the HTTP code returned for type ObjectsClassReferencesDeleteBadRequest 53 const ObjectsClassReferencesDeleteBadRequestCode int = 400 54 55 /* 56 ObjectsClassReferencesDeleteBadRequest Malformed request. 57 58 swagger:response objectsClassReferencesDeleteBadRequest 59 */ 60 type ObjectsClassReferencesDeleteBadRequest struct { 61 62 /* 63 In: Body 64 */ 65 Payload *models.ErrorResponse `json:"body,omitempty"` 66 } 67 68 // NewObjectsClassReferencesDeleteBadRequest creates ObjectsClassReferencesDeleteBadRequest with default headers values 69 func NewObjectsClassReferencesDeleteBadRequest() *ObjectsClassReferencesDeleteBadRequest { 70 71 return &ObjectsClassReferencesDeleteBadRequest{} 72 } 73 74 // WithPayload adds the payload to the objects class references delete bad request response 75 func (o *ObjectsClassReferencesDeleteBadRequest) WithPayload(payload *models.ErrorResponse) *ObjectsClassReferencesDeleteBadRequest { 76 o.Payload = payload 77 return o 78 } 79 80 // SetPayload sets the payload to the objects class references delete bad request response 81 func (o *ObjectsClassReferencesDeleteBadRequest) SetPayload(payload *models.ErrorResponse) { 82 o.Payload = payload 83 } 84 85 // WriteResponse to the client 86 func (o *ObjectsClassReferencesDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 87 88 rw.WriteHeader(400) 89 if o.Payload != nil { 90 payload := o.Payload 91 if err := producer.Produce(rw, payload); err != nil { 92 panic(err) // let the recovery middleware deal with this 93 } 94 } 95 } 96 97 // ObjectsClassReferencesDeleteUnauthorizedCode is the HTTP code returned for type ObjectsClassReferencesDeleteUnauthorized 98 const ObjectsClassReferencesDeleteUnauthorizedCode int = 401 99 100 /* 101 ObjectsClassReferencesDeleteUnauthorized Unauthorized or invalid credentials. 102 103 swagger:response objectsClassReferencesDeleteUnauthorized 104 */ 105 type ObjectsClassReferencesDeleteUnauthorized struct { 106 } 107 108 // NewObjectsClassReferencesDeleteUnauthorized creates ObjectsClassReferencesDeleteUnauthorized with default headers values 109 func NewObjectsClassReferencesDeleteUnauthorized() *ObjectsClassReferencesDeleteUnauthorized { 110 111 return &ObjectsClassReferencesDeleteUnauthorized{} 112 } 113 114 // WriteResponse to the client 115 func (o *ObjectsClassReferencesDeleteUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 116 117 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 118 119 rw.WriteHeader(401) 120 } 121 122 // ObjectsClassReferencesDeleteForbiddenCode is the HTTP code returned for type ObjectsClassReferencesDeleteForbidden 123 const ObjectsClassReferencesDeleteForbiddenCode int = 403 124 125 /* 126 ObjectsClassReferencesDeleteForbidden Forbidden 127 128 swagger:response objectsClassReferencesDeleteForbidden 129 */ 130 type ObjectsClassReferencesDeleteForbidden struct { 131 132 /* 133 In: Body 134 */ 135 Payload *models.ErrorResponse `json:"body,omitempty"` 136 } 137 138 // NewObjectsClassReferencesDeleteForbidden creates ObjectsClassReferencesDeleteForbidden with default headers values 139 func NewObjectsClassReferencesDeleteForbidden() *ObjectsClassReferencesDeleteForbidden { 140 141 return &ObjectsClassReferencesDeleteForbidden{} 142 } 143 144 // WithPayload adds the payload to the objects class references delete forbidden response 145 func (o *ObjectsClassReferencesDeleteForbidden) WithPayload(payload *models.ErrorResponse) *ObjectsClassReferencesDeleteForbidden { 146 o.Payload = payload 147 return o 148 } 149 150 // SetPayload sets the payload to the objects class references delete forbidden response 151 func (o *ObjectsClassReferencesDeleteForbidden) SetPayload(payload *models.ErrorResponse) { 152 o.Payload = payload 153 } 154 155 // WriteResponse to the client 156 func (o *ObjectsClassReferencesDeleteForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 157 158 rw.WriteHeader(403) 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 // ObjectsClassReferencesDeleteNotFoundCode is the HTTP code returned for type ObjectsClassReferencesDeleteNotFound 168 const ObjectsClassReferencesDeleteNotFoundCode int = 404 169 170 /* 171 ObjectsClassReferencesDeleteNotFound Successful query result but no resource was found. 172 173 swagger:response objectsClassReferencesDeleteNotFound 174 */ 175 type ObjectsClassReferencesDeleteNotFound struct { 176 177 /* 178 In: Body 179 */ 180 Payload *models.ErrorResponse `json:"body,omitempty"` 181 } 182 183 // NewObjectsClassReferencesDeleteNotFound creates ObjectsClassReferencesDeleteNotFound with default headers values 184 func NewObjectsClassReferencesDeleteNotFound() *ObjectsClassReferencesDeleteNotFound { 185 186 return &ObjectsClassReferencesDeleteNotFound{} 187 } 188 189 // WithPayload adds the payload to the objects class references delete not found response 190 func (o *ObjectsClassReferencesDeleteNotFound) WithPayload(payload *models.ErrorResponse) *ObjectsClassReferencesDeleteNotFound { 191 o.Payload = payload 192 return o 193 } 194 195 // SetPayload sets the payload to the objects class references delete not found response 196 func (o *ObjectsClassReferencesDeleteNotFound) SetPayload(payload *models.ErrorResponse) { 197 o.Payload = payload 198 } 199 200 // WriteResponse to the client 201 func (o *ObjectsClassReferencesDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 202 203 rw.WriteHeader(404) 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 } 211 212 // ObjectsClassReferencesDeleteUnprocessableEntityCode is the HTTP code returned for type ObjectsClassReferencesDeleteUnprocessableEntity 213 const ObjectsClassReferencesDeleteUnprocessableEntityCode int = 422 214 215 /* 216 ObjectsClassReferencesDeleteUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the property exists or that it is a class? 217 218 swagger:response objectsClassReferencesDeleteUnprocessableEntity 219 */ 220 type ObjectsClassReferencesDeleteUnprocessableEntity struct { 221 222 /* 223 In: Body 224 */ 225 Payload *models.ErrorResponse `json:"body,omitempty"` 226 } 227 228 // NewObjectsClassReferencesDeleteUnprocessableEntity creates ObjectsClassReferencesDeleteUnprocessableEntity with default headers values 229 func NewObjectsClassReferencesDeleteUnprocessableEntity() *ObjectsClassReferencesDeleteUnprocessableEntity { 230 231 return &ObjectsClassReferencesDeleteUnprocessableEntity{} 232 } 233 234 // WithPayload adds the payload to the objects class references delete unprocessable entity response 235 func (o *ObjectsClassReferencesDeleteUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *ObjectsClassReferencesDeleteUnprocessableEntity { 236 o.Payload = payload 237 return o 238 } 239 240 // SetPayload sets the payload to the objects class references delete unprocessable entity response 241 func (o *ObjectsClassReferencesDeleteUnprocessableEntity) SetPayload(payload *models.ErrorResponse) { 242 o.Payload = payload 243 } 244 245 // WriteResponse to the client 246 func (o *ObjectsClassReferencesDeleteUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 247 248 rw.WriteHeader(422) 249 if o.Payload != nil { 250 payload := o.Payload 251 if err := producer.Produce(rw, payload); err != nil { 252 panic(err) // let the recovery middleware deal with this 253 } 254 } 255 } 256 257 // ObjectsClassReferencesDeleteInternalServerErrorCode is the HTTP code returned for type ObjectsClassReferencesDeleteInternalServerError 258 const ObjectsClassReferencesDeleteInternalServerErrorCode int = 500 259 260 /* 261 ObjectsClassReferencesDeleteInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. 262 263 swagger:response objectsClassReferencesDeleteInternalServerError 264 */ 265 type ObjectsClassReferencesDeleteInternalServerError struct { 266 267 /* 268 In: Body 269 */ 270 Payload *models.ErrorResponse `json:"body,omitempty"` 271 } 272 273 // NewObjectsClassReferencesDeleteInternalServerError creates ObjectsClassReferencesDeleteInternalServerError with default headers values 274 func NewObjectsClassReferencesDeleteInternalServerError() *ObjectsClassReferencesDeleteInternalServerError { 275 276 return &ObjectsClassReferencesDeleteInternalServerError{} 277 } 278 279 // WithPayload adds the payload to the objects class references delete internal server error response 280 func (o *ObjectsClassReferencesDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *ObjectsClassReferencesDeleteInternalServerError { 281 o.Payload = payload 282 return o 283 } 284 285 // SetPayload sets the payload to the objects class references delete internal server error response 286 func (o *ObjectsClassReferencesDeleteInternalServerError) SetPayload(payload *models.ErrorResponse) { 287 o.Payload = payload 288 } 289 290 // WriteResponse to the client 291 func (o *ObjectsClassReferencesDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 292 293 rw.WriteHeader(500) 294 if o.Payload != nil { 295 payload := o.Payload 296 if err := producer.Produce(rw, payload); err != nil { 297 panic(err) // let the recovery middleware deal with this 298 } 299 } 300 }