github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/restclient/operations/purge_configuration_responses.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package operations 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "fmt" 10 11 "github.com/go-openapi/runtime" 12 13 strfmt "github.com/go-openapi/strfmt" 14 15 baseclient "github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient" 16 ) 17 18 // PurgeConfigurationReader is a Reader for the PurgeConfiguration structure. 19 type PurgeConfigurationReader struct { 20 formats strfmt.Registry 21 } 22 23 // ReadResponse reads a server response into the received o. 24 func (o *PurgeConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { 25 switch response.Code() { 26 27 case 204: 28 result := NewPurgeConfigurationNoContent() 29 if err := result.readResponse(response, consumer, o.formats); err != nil { 30 return nil, err 31 } 32 return result, nil 33 34 default: 35 return nil, baseclient.BuildErrorResponse(response, consumer, o.formats) 36 } 37 } 38 39 // NewPurgeConfigurationNoContent creates a PurgeConfigurationNoContent with default headers values 40 func NewPurgeConfigurationNoContent() *PurgeConfigurationNoContent { 41 return &PurgeConfigurationNoContent{} 42 } 43 44 /*PurgeConfigurationNoContent handles this case with default header values. 45 46 No Content 47 */ 48 type PurgeConfigurationNoContent struct { 49 } 50 51 func (o *PurgeConfigurationNoContent) Error() string { 52 return fmt.Sprintf("[POST /configuration-entries/purge][%d] purgeConfigurationNoContent ", 204) 53 } 54 55 func (o *PurgeConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { 56 57 return nil 58 }