github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/operations/objects/objects_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  // ObjectsReferencesDeleteNoContentCode is the HTTP code returned for type ObjectsReferencesDeleteNoContent
    28  const ObjectsReferencesDeleteNoContentCode int = 204
    29  
    30  /*
    31  ObjectsReferencesDeleteNoContent Successfully deleted.
    32  
    33  swagger:response objectsReferencesDeleteNoContent
    34  */
    35  type ObjectsReferencesDeleteNoContent struct {
    36  }
    37  
    38  // NewObjectsReferencesDeleteNoContent creates ObjectsReferencesDeleteNoContent with default headers values
    39  func NewObjectsReferencesDeleteNoContent() *ObjectsReferencesDeleteNoContent {
    40  
    41  	return &ObjectsReferencesDeleteNoContent{}
    42  }
    43  
    44  // WriteResponse to the client
    45  func (o *ObjectsReferencesDeleteNoContent) 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  // ObjectsReferencesDeleteUnauthorizedCode is the HTTP code returned for type ObjectsReferencesDeleteUnauthorized
    53  const ObjectsReferencesDeleteUnauthorizedCode int = 401
    54  
    55  /*
    56  ObjectsReferencesDeleteUnauthorized Unauthorized or invalid credentials.
    57  
    58  swagger:response objectsReferencesDeleteUnauthorized
    59  */
    60  type ObjectsReferencesDeleteUnauthorized struct {
    61  }
    62  
    63  // NewObjectsReferencesDeleteUnauthorized creates ObjectsReferencesDeleteUnauthorized with default headers values
    64  func NewObjectsReferencesDeleteUnauthorized() *ObjectsReferencesDeleteUnauthorized {
    65  
    66  	return &ObjectsReferencesDeleteUnauthorized{}
    67  }
    68  
    69  // WriteResponse to the client
    70  func (o *ObjectsReferencesDeleteUnauthorized) 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  // ObjectsReferencesDeleteForbiddenCode is the HTTP code returned for type ObjectsReferencesDeleteForbidden
    78  const ObjectsReferencesDeleteForbiddenCode int = 403
    79  
    80  /*
    81  ObjectsReferencesDeleteForbidden Forbidden
    82  
    83  swagger:response objectsReferencesDeleteForbidden
    84  */
    85  type ObjectsReferencesDeleteForbidden struct {
    86  
    87  	/*
    88  	  In: Body
    89  	*/
    90  	Payload *models.ErrorResponse `json:"body,omitempty"`
    91  }
    92  
    93  // NewObjectsReferencesDeleteForbidden creates ObjectsReferencesDeleteForbidden with default headers values
    94  func NewObjectsReferencesDeleteForbidden() *ObjectsReferencesDeleteForbidden {
    95  
    96  	return &ObjectsReferencesDeleteForbidden{}
    97  }
    98  
    99  // WithPayload adds the payload to the objects references delete forbidden response
   100  func (o *ObjectsReferencesDeleteForbidden) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesDeleteForbidden {
   101  	o.Payload = payload
   102  	return o
   103  }
   104  
   105  // SetPayload sets the payload to the objects references delete forbidden response
   106  func (o *ObjectsReferencesDeleteForbidden) SetPayload(payload *models.ErrorResponse) {
   107  	o.Payload = payload
   108  }
   109  
   110  // WriteResponse to the client
   111  func (o *ObjectsReferencesDeleteForbidden) 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  // ObjectsReferencesDeleteNotFoundCode is the HTTP code returned for type ObjectsReferencesDeleteNotFound
   123  const ObjectsReferencesDeleteNotFoundCode int = 404
   124  
   125  /*
   126  ObjectsReferencesDeleteNotFound Successful query result but no resource was found.
   127  
   128  swagger:response objectsReferencesDeleteNotFound
   129  */
   130  type ObjectsReferencesDeleteNotFound struct {
   131  
   132  	/*
   133  	  In: Body
   134  	*/
   135  	Payload *models.ErrorResponse `json:"body,omitempty"`
   136  }
   137  
   138  // NewObjectsReferencesDeleteNotFound creates ObjectsReferencesDeleteNotFound with default headers values
   139  func NewObjectsReferencesDeleteNotFound() *ObjectsReferencesDeleteNotFound {
   140  
   141  	return &ObjectsReferencesDeleteNotFound{}
   142  }
   143  
   144  // WithPayload adds the payload to the objects references delete not found response
   145  func (o *ObjectsReferencesDeleteNotFound) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesDeleteNotFound {
   146  	o.Payload = payload
   147  	return o
   148  }
   149  
   150  // SetPayload sets the payload to the objects references delete not found response
   151  func (o *ObjectsReferencesDeleteNotFound) SetPayload(payload *models.ErrorResponse) {
   152  	o.Payload = payload
   153  }
   154  
   155  // WriteResponse to the client
   156  func (o *ObjectsReferencesDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
   157  
   158  	rw.WriteHeader(404)
   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  // ObjectsReferencesDeleteInternalServerErrorCode is the HTTP code returned for type ObjectsReferencesDeleteInternalServerError
   168  const ObjectsReferencesDeleteInternalServerErrorCode int = 500
   169  
   170  /*
   171  ObjectsReferencesDeleteInternalServerError 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 objectsReferencesDeleteInternalServerError
   174  */
   175  type ObjectsReferencesDeleteInternalServerError struct {
   176  
   177  	/*
   178  	  In: Body
   179  	*/
   180  	Payload *models.ErrorResponse `json:"body,omitempty"`
   181  }
   182  
   183  // NewObjectsReferencesDeleteInternalServerError creates ObjectsReferencesDeleteInternalServerError with default headers values
   184  func NewObjectsReferencesDeleteInternalServerError() *ObjectsReferencesDeleteInternalServerError {
   185  
   186  	return &ObjectsReferencesDeleteInternalServerError{}
   187  }
   188  
   189  // WithPayload adds the payload to the objects references delete internal server error response
   190  func (o *ObjectsReferencesDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *ObjectsReferencesDeleteInternalServerError {
   191  	o.Payload = payload
   192  	return o
   193  }
   194  
   195  // SetPayload sets the payload to the objects references delete internal server error response
   196  func (o *ObjectsReferencesDeleteInternalServerError) SetPayload(payload *models.ErrorResponse) {
   197  	o.Payload = payload
   198  }
   199  
   200  // WriteResponse to the client
   201  func (o *ObjectsReferencesDeleteInternalServerError) 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  }