Documentation ¶
Index ¶
- type Client
- func (a *Client) MwAdd(params *MwAddParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwAddOK, error)
- func (a *Client) MwDelete(params *MwDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwDeleteOK, error)
- func (a *Client) MwFetch(params *MwFetchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwFetchOK, error)
- func (a *Client) MwFetchBundle(params *MwFetchBundleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwFetchBundleOK, error)
- func (a *Client) MwListAll(params *MwListAllParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwListAllOK, error)
- func (a *Client) MwUpdate(params *MwUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MwUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type MwAddInternalServerError
- func (o *MwAddInternalServerError) Code() int
- func (o *MwAddInternalServerError) Error() string
- func (o *MwAddInternalServerError) GetPayload() *models.Payload
- func (o *MwAddInternalServerError) IsClientError() bool
- func (o *MwAddInternalServerError) IsCode(code int) bool
- func (o *MwAddInternalServerError) IsRedirect() bool
- func (o *MwAddInternalServerError) IsServerError() bool
- func (o *MwAddInternalServerError) IsSuccess() bool
- func (o *MwAddInternalServerError) String() string
- type MwAddOK
- func (o *MwAddOK) Code() int
- func (o *MwAddOK) Error() string
- func (o *MwAddOK) GetPayload() *MwAddOKBody
- func (o *MwAddOK) IsClientError() bool
- func (o *MwAddOK) IsCode(code int) bool
- func (o *MwAddOK) IsRedirect() bool
- func (o *MwAddOK) IsServerError() bool
- func (o *MwAddOK) IsSuccess() bool
- func (o *MwAddOK) String() string
- type MwAddOKBody
- type MwAddOKBodyPayload
- type MwAddParams
- func (o *MwAddParams) SetAPIID(aPIID *string)
- func (o *MwAddParams) SetContext(ctx context.Context)
- func (o *MwAddParams) SetDefaults()
- func (o *MwAddParams) SetHTTPClient(client *http.Client)
- func (o *MwAddParams) SetStoreOnly(storeOnly *bool)
- func (o *MwAddParams) SetTimeout(timeout time.Duration)
- func (o *MwAddParams) SetUploadFile(uploadfile runtime.NamedReadCloser)
- func (o *MwAddParams) WithAPIID(aPIID *string) *MwAddParams
- func (o *MwAddParams) WithContext(ctx context.Context) *MwAddParams
- func (o *MwAddParams) WithDefaults() *MwAddParams
- func (o *MwAddParams) WithHTTPClient(client *http.Client) *MwAddParams
- func (o *MwAddParams) WithStoreOnly(storeOnly *bool) *MwAddParams
- func (o *MwAddParams) WithTimeout(timeout time.Duration) *MwAddParams
- func (o *MwAddParams) WithUploadFile(uploadfile runtime.NamedReadCloser) *MwAddParams
- func (o *MwAddParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwAddReader
- type MwDeleteInternalServerError
- func (o *MwDeleteInternalServerError) Code() int
- func (o *MwDeleteInternalServerError) Error() string
- func (o *MwDeleteInternalServerError) GetPayload() *models.Payload
- func (o *MwDeleteInternalServerError) IsClientError() bool
- func (o *MwDeleteInternalServerError) IsCode(code int) bool
- func (o *MwDeleteInternalServerError) IsRedirect() bool
- func (o *MwDeleteInternalServerError) IsServerError() bool
- func (o *MwDeleteInternalServerError) IsSuccess() bool
- func (o *MwDeleteInternalServerError) String() string
- type MwDeleteOK
- func (o *MwDeleteOK) Code() int
- func (o *MwDeleteOK) Error() string
- func (o *MwDeleteOK) GetPayload() *MwDeleteOKBody
- func (o *MwDeleteOK) IsClientError() bool
- func (o *MwDeleteOK) IsCode(code int) bool
- func (o *MwDeleteOK) IsRedirect() bool
- func (o *MwDeleteOK) IsServerError() bool
- func (o *MwDeleteOK) IsSuccess() bool
- func (o *MwDeleteOK) String() string
- type MwDeleteOKBody
- type MwDeleteOKBodyPayload
- type MwDeleteParams
- func (o *MwDeleteParams) SetContext(ctx context.Context)
- func (o *MwDeleteParams) SetDefaults()
- func (o *MwDeleteParams) SetHTTPClient(client *http.Client)
- func (o *MwDeleteParams) SetID(id string)
- func (o *MwDeleteParams) SetTimeout(timeout time.Duration)
- func (o *MwDeleteParams) WithContext(ctx context.Context) *MwDeleteParams
- func (o *MwDeleteParams) WithDefaults() *MwDeleteParams
- func (o *MwDeleteParams) WithHTTPClient(client *http.Client) *MwDeleteParams
- func (o *MwDeleteParams) WithID(id string) *MwDeleteParams
- func (o *MwDeleteParams) WithTimeout(timeout time.Duration) *MwDeleteParams
- func (o *MwDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwDeleteReader
- type MwFetchBundleInternalServerError
- func (o *MwFetchBundleInternalServerError) Code() int
- func (o *MwFetchBundleInternalServerError) Error() string
- func (o *MwFetchBundleInternalServerError) GetPayload() *models.Payload
- func (o *MwFetchBundleInternalServerError) IsClientError() bool
- func (o *MwFetchBundleInternalServerError) IsCode(code int) bool
- func (o *MwFetchBundleInternalServerError) IsRedirect() bool
- func (o *MwFetchBundleInternalServerError) IsServerError() bool
- func (o *MwFetchBundleInternalServerError) IsSuccess() bool
- func (o *MwFetchBundleInternalServerError) String() string
- type MwFetchBundleOK
- func (o *MwFetchBundleOK) Code() int
- func (o *MwFetchBundleOK) Error() string
- func (o *MwFetchBundleOK) GetPayload() *models.File
- func (o *MwFetchBundleOK) IsClientError() bool
- func (o *MwFetchBundleOK) IsCode(code int) bool
- func (o *MwFetchBundleOK) IsRedirect() bool
- func (o *MwFetchBundleOK) IsServerError() bool
- func (o *MwFetchBundleOK) IsSuccess() bool
- func (o *MwFetchBundleOK) String() string
- type MwFetchBundleParams
- func (o *MwFetchBundleParams) SetContext(ctx context.Context)
- func (o *MwFetchBundleParams) SetDefaults()
- func (o *MwFetchBundleParams) SetHTTPClient(client *http.Client)
- func (o *MwFetchBundleParams) SetID(id string)
- func (o *MwFetchBundleParams) SetTimeout(timeout time.Duration)
- func (o *MwFetchBundleParams) WithContext(ctx context.Context) *MwFetchBundleParams
- func (o *MwFetchBundleParams) WithDefaults() *MwFetchBundleParams
- func (o *MwFetchBundleParams) WithHTTPClient(client *http.Client) *MwFetchBundleParams
- func (o *MwFetchBundleParams) WithID(id string) *MwFetchBundleParams
- func (o *MwFetchBundleParams) WithTimeout(timeout time.Duration) *MwFetchBundleParams
- func (o *MwFetchBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwFetchBundleReader
- type MwFetchInternalServerError
- func (o *MwFetchInternalServerError) Code() int
- func (o *MwFetchInternalServerError) Error() string
- func (o *MwFetchInternalServerError) GetPayload() *models.Payload
- func (o *MwFetchInternalServerError) IsClientError() bool
- func (o *MwFetchInternalServerError) IsCode(code int) bool
- func (o *MwFetchInternalServerError) IsRedirect() bool
- func (o *MwFetchInternalServerError) IsServerError() bool
- func (o *MwFetchInternalServerError) IsSuccess() bool
- func (o *MwFetchInternalServerError) String() string
- type MwFetchOK
- func (o *MwFetchOK) Code() int
- func (o *MwFetchOK) Error() string
- func (o *MwFetchOK) GetPayload() *MwFetchOKBody
- func (o *MwFetchOK) IsClientError() bool
- func (o *MwFetchOK) IsCode(code int) bool
- func (o *MwFetchOK) IsRedirect() bool
- func (o *MwFetchOK) IsServerError() bool
- func (o *MwFetchOK) IsSuccess() bool
- func (o *MwFetchOK) String() string
- type MwFetchOKBody
- type MwFetchParams
- func (o *MwFetchParams) SetContext(ctx context.Context)
- func (o *MwFetchParams) SetDefaults()
- func (o *MwFetchParams) SetHTTPClient(client *http.Client)
- func (o *MwFetchParams) SetID(id string)
- func (o *MwFetchParams) SetTimeout(timeout time.Duration)
- func (o *MwFetchParams) WithContext(ctx context.Context) *MwFetchParams
- func (o *MwFetchParams) WithDefaults() *MwFetchParams
- func (o *MwFetchParams) WithHTTPClient(client *http.Client) *MwFetchParams
- func (o *MwFetchParams) WithID(id string) *MwFetchParams
- func (o *MwFetchParams) WithTimeout(timeout time.Duration) *MwFetchParams
- func (o *MwFetchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwFetchReader
- type MwListAllInternalServerError
- func (o *MwListAllInternalServerError) Code() int
- func (o *MwListAllInternalServerError) Error() string
- func (o *MwListAllInternalServerError) GetPayload() *models.Payload
- func (o *MwListAllInternalServerError) IsClientError() bool
- func (o *MwListAllInternalServerError) IsCode(code int) bool
- func (o *MwListAllInternalServerError) IsRedirect() bool
- func (o *MwListAllInternalServerError) IsServerError() bool
- func (o *MwListAllInternalServerError) IsSuccess() bool
- func (o *MwListAllInternalServerError) String() string
- type MwListAllOK
- func (o *MwListAllOK) Code() int
- func (o *MwListAllOK) Error() string
- func (o *MwListAllOK) GetPayload() *MwListAllOKBody
- func (o *MwListAllOK) IsClientError() bool
- func (o *MwListAllOK) IsCode(code int) bool
- func (o *MwListAllOK) IsRedirect() bool
- func (o *MwListAllOK) IsServerError() bool
- func (o *MwListAllOK) IsSuccess() bool
- func (o *MwListAllOK) String() string
- type MwListAllOKBody
- type MwListAllParams
- func (o *MwListAllParams) SetContext(ctx context.Context)
- func (o *MwListAllParams) SetDefaults()
- func (o *MwListAllParams) SetHTTPClient(client *http.Client)
- func (o *MwListAllParams) SetTimeout(timeout time.Duration)
- func (o *MwListAllParams) WithContext(ctx context.Context) *MwListAllParams
- func (o *MwListAllParams) WithDefaults() *MwListAllParams
- func (o *MwListAllParams) WithHTTPClient(client *http.Client) *MwListAllParams
- func (o *MwListAllParams) WithTimeout(timeout time.Duration) *MwListAllParams
- func (o *MwListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwListAllReader
- type MwUpdateInternalServerError
- func (o *MwUpdateInternalServerError) Code() int
- func (o *MwUpdateInternalServerError) Error() string
- func (o *MwUpdateInternalServerError) GetPayload() *models.Payload
- func (o *MwUpdateInternalServerError) IsClientError() bool
- func (o *MwUpdateInternalServerError) IsCode(code int) bool
- func (o *MwUpdateInternalServerError) IsRedirect() bool
- func (o *MwUpdateInternalServerError) IsServerError() bool
- func (o *MwUpdateInternalServerError) IsSuccess() bool
- func (o *MwUpdateInternalServerError) String() string
- type MwUpdateOK
- func (o *MwUpdateOK) Code() int
- func (o *MwUpdateOK) Error() string
- func (o *MwUpdateOK) GetPayload() *MwUpdateOKBody
- func (o *MwUpdateOK) IsClientError() bool
- func (o *MwUpdateOK) IsCode(code int) bool
- func (o *MwUpdateOK) IsRedirect() bool
- func (o *MwUpdateOK) IsServerError() bool
- func (o *MwUpdateOK) IsSuccess() bool
- func (o *MwUpdateOK) String() string
- type MwUpdateOKBody
- type MwUpdateOKBodyPayload
- type MwUpdateParams
- func (o *MwUpdateParams) SetContext(ctx context.Context)
- func (o *MwUpdateParams) SetDefaults()
- func (o *MwUpdateParams) SetHTTPClient(client *http.Client)
- func (o *MwUpdateParams) SetID(id string)
- func (o *MwUpdateParams) SetTimeout(timeout time.Duration)
- func (o *MwUpdateParams) SetUploadFile(uploadfile runtime.NamedReadCloser)
- func (o *MwUpdateParams) WithContext(ctx context.Context) *MwUpdateParams
- func (o *MwUpdateParams) WithDefaults() *MwUpdateParams
- func (o *MwUpdateParams) WithHTTPClient(client *http.Client) *MwUpdateParams
- func (o *MwUpdateParams) WithID(id string) *MwUpdateParams
- func (o *MwUpdateParams) WithTimeout(timeout time.Duration) *MwUpdateParams
- func (o *MwUpdateParams) WithUploadFile(uploadfile runtime.NamedReadCloser) *MwUpdateParams
- func (o *MwUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MwUpdateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for mw API
func (*Client) MwAdd ¶
func (a *Client) MwAdd(params *MwAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwAddOK, error)
MwAdd adds a new middleware if store only field is true then it will only be available for download
Expects a zipped file bundle in the `uploadfile` form field.
func (*Client) MwDelete ¶
func (a *Client) MwDelete(params *MwDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwDeleteOK, error)
MwDelete deletes a middleware specified by id
func (*Client) MwFetch ¶
func (a *Client) MwFetch(params *MwFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwFetchOK, error)
MwFetch fetches a middleware specified by id
func (*Client) MwFetchBundle ¶
func (a *Client) MwFetchBundle(params *MwFetchBundleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwFetchBundleOK, error)
MwFetchBundle fetches a middleware bundle file specified by id
func (*Client) MwListAll ¶
func (a *Client) MwListAll(params *MwListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwListAllOK, error)
MwListAll lists all middleware
func (*Client) MwUpdate ¶
func (a *Client) MwUpdate(params *MwUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwUpdateOK, error)
MwUpdate updates a middleware specified by id
Expects a file bundle in `uploadfile` form field.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { MwAdd(params *MwAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwAddOK, error) MwDelete(params *MwDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwDeleteOK, error) MwFetch(params *MwFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwFetchOK, error) MwFetchBundle(params *MwFetchBundleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwFetchBundleOK, error) MwListAll(params *MwListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwListAllOK, error) MwUpdate(params *MwUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MwUpdateOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new mw API client.
type MwAddInternalServerError ¶
MwAddInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwAddInternalServerError ¶
func NewMwAddInternalServerError() *MwAddInternalServerError
NewMwAddInternalServerError creates a MwAddInternalServerError with default headers values
func (*MwAddInternalServerError) Code ¶
func (o *MwAddInternalServerError) Code() int
Code gets the status code for the mw add internal server error response
func (*MwAddInternalServerError) Error ¶
func (o *MwAddInternalServerError) Error() string
func (*MwAddInternalServerError) GetPayload ¶
func (o *MwAddInternalServerError) GetPayload() *models.Payload
func (*MwAddInternalServerError) IsClientError ¶
func (o *MwAddInternalServerError) IsClientError() bool
IsClientError returns true when this mw add internal server error response has a 4xx status code
func (*MwAddInternalServerError) IsCode ¶
func (o *MwAddInternalServerError) IsCode(code int) bool
IsCode returns true when this mw add internal server error response a status code equal to that given
func (*MwAddInternalServerError) IsRedirect ¶
func (o *MwAddInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw add internal server error response has a 3xx status code
func (*MwAddInternalServerError) IsServerError ¶
func (o *MwAddInternalServerError) IsServerError() bool
IsServerError returns true when this mw add internal server error response has a 5xx status code
func (*MwAddInternalServerError) IsSuccess ¶
func (o *MwAddInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw add internal server error response has a 2xx status code
func (*MwAddInternalServerError) String ¶
func (o *MwAddInternalServerError) String() string
type MwAddOK ¶
type MwAddOK struct {
Payload *MwAddOKBody
}
MwAddOK describes a response with status code 200, with default header values.
Response that only includes the ID of the middleware as `BundleID` in the `Payload`
func NewMwAddOK ¶
func NewMwAddOK() *MwAddOK
NewMwAddOK creates a MwAddOK with default headers values
func (*MwAddOK) GetPayload ¶
func (o *MwAddOK) GetPayload() *MwAddOKBody
func (*MwAddOK) IsClientError ¶
IsClientError returns true when this mw add o k response has a 4xx status code
func (*MwAddOK) IsCode ¶
IsCode returns true when this mw add o k response a status code equal to that given
func (*MwAddOK) IsRedirect ¶
IsRedirect returns true when this mw add o k response has a 3xx status code
func (*MwAddOK) IsServerError ¶
IsServerError returns true when this mw add o k response has a 5xx status code
type MwAddOKBody ¶
type MwAddOKBody struct { // error Error string `json:"Error,omitempty"` // payload Payload *MwAddOKBodyPayload `json:"Payload,omitempty"` // status Status string `json:"Status,omitempty"` }
MwAddOKBody mw add o k body swagger:model MwAddOKBody
func (*MwAddOKBody) ContextValidate ¶
ContextValidate validate this mw add o k body based on the context it is used
func (*MwAddOKBody) MarshalBinary ¶
func (o *MwAddOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwAddOKBody) UnmarshalBinary ¶
func (o *MwAddOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwAddOKBodyPayload ¶
type MwAddOKBodyPayload struct { // bundle ID BundleID string `json:"BundleID,omitempty"` }
MwAddOKBodyPayload mw add o k body payload swagger:model MwAddOKBodyPayload
func (*MwAddOKBodyPayload) ContextValidate ¶
ContextValidate validates this mw add o k body payload based on context it is used
func (*MwAddOKBodyPayload) MarshalBinary ¶
func (o *MwAddOKBodyPayload) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwAddOKBodyPayload) UnmarshalBinary ¶
func (o *MwAddOKBodyPayload) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwAddParams ¶
type MwAddParams struct { // APIID. APIID *string // StoreOnly. StoreOnly *bool // Uploadfile. UploadFile runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwAddParams contains all the parameters to send to the API endpoint
for the mw add operation. Typically these are written to a http.Request.
func NewMwAddParams ¶
func NewMwAddParams() *MwAddParams
NewMwAddParams creates a new MwAddParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwAddParamsWithContext ¶
func NewMwAddParamsWithContext(ctx context.Context) *MwAddParams
NewMwAddParamsWithContext creates a new MwAddParams object with the ability to set a context for a request.
func NewMwAddParamsWithHTTPClient ¶
func NewMwAddParamsWithHTTPClient(client *http.Client) *MwAddParams
NewMwAddParamsWithHTTPClient creates a new MwAddParams object with the ability to set a custom HTTPClient for a request.
func NewMwAddParamsWithTimeout ¶
func NewMwAddParamsWithTimeout(timeout time.Duration) *MwAddParams
NewMwAddParamsWithTimeout creates a new MwAddParams object with the ability to set a timeout on a request.
func (*MwAddParams) SetAPIID ¶
func (o *MwAddParams) SetAPIID(aPIID *string)
SetAPIID adds the apiId to the mw add params
func (*MwAddParams) SetContext ¶
func (o *MwAddParams) SetContext(ctx context.Context)
SetContext adds the context to the mw add params
func (*MwAddParams) SetDefaults ¶
func (o *MwAddParams) SetDefaults()
SetDefaults hydrates default values in the mw add params (not the query body).
All values with no default are reset to their zero value.
func (*MwAddParams) SetHTTPClient ¶
func (o *MwAddParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw add params
func (*MwAddParams) SetStoreOnly ¶
func (o *MwAddParams) SetStoreOnly(storeOnly *bool)
SetStoreOnly adds the storeOnly to the mw add params
func (*MwAddParams) SetTimeout ¶
func (o *MwAddParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw add params
func (*MwAddParams) SetUploadFile ¶
func (o *MwAddParams) SetUploadFile(uploadfile runtime.NamedReadCloser)
SetUploadFile adds the uploadfile to the mw add params
func (*MwAddParams) WithAPIID ¶
func (o *MwAddParams) WithAPIID(aPIID *string) *MwAddParams
WithAPIID adds the aPIID to the mw add params
func (*MwAddParams) WithContext ¶
func (o *MwAddParams) WithContext(ctx context.Context) *MwAddParams
WithContext adds the context to the mw add params
func (*MwAddParams) WithDefaults ¶
func (o *MwAddParams) WithDefaults() *MwAddParams
WithDefaults hydrates default values in the mw add params (not the query body).
All values with no default are reset to their zero value.
func (*MwAddParams) WithHTTPClient ¶
func (o *MwAddParams) WithHTTPClient(client *http.Client) *MwAddParams
WithHTTPClient adds the HTTPClient to the mw add params
func (*MwAddParams) WithStoreOnly ¶
func (o *MwAddParams) WithStoreOnly(storeOnly *bool) *MwAddParams
WithStoreOnly adds the storeOnly to the mw add params
func (*MwAddParams) WithTimeout ¶
func (o *MwAddParams) WithTimeout(timeout time.Duration) *MwAddParams
WithTimeout adds the timeout to the mw add params
func (*MwAddParams) WithUploadFile ¶
func (o *MwAddParams) WithUploadFile(uploadfile runtime.NamedReadCloser) *MwAddParams
WithUploadFile adds the uploadfile to the mw add params
func (*MwAddParams) WriteToRequest ¶
func (o *MwAddParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwAddReader ¶
type MwAddReader struct {
// contains filtered or unexported fields
}
MwAddReader is a Reader for the MwAdd structure.
func (*MwAddReader) ReadResponse ¶
func (o *MwAddReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MwDeleteInternalServerError ¶
MwDeleteInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwDeleteInternalServerError ¶
func NewMwDeleteInternalServerError() *MwDeleteInternalServerError
NewMwDeleteInternalServerError creates a MwDeleteInternalServerError with default headers values
func (*MwDeleteInternalServerError) Code ¶
func (o *MwDeleteInternalServerError) Code() int
Code gets the status code for the mw delete internal server error response
func (*MwDeleteInternalServerError) Error ¶
func (o *MwDeleteInternalServerError) Error() string
func (*MwDeleteInternalServerError) GetPayload ¶
func (o *MwDeleteInternalServerError) GetPayload() *models.Payload
func (*MwDeleteInternalServerError) IsClientError ¶
func (o *MwDeleteInternalServerError) IsClientError() bool
IsClientError returns true when this mw delete internal server error response has a 4xx status code
func (*MwDeleteInternalServerError) IsCode ¶
func (o *MwDeleteInternalServerError) IsCode(code int) bool
IsCode returns true when this mw delete internal server error response a status code equal to that given
func (*MwDeleteInternalServerError) IsRedirect ¶
func (o *MwDeleteInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw delete internal server error response has a 3xx status code
func (*MwDeleteInternalServerError) IsServerError ¶
func (o *MwDeleteInternalServerError) IsServerError() bool
IsServerError returns true when this mw delete internal server error response has a 5xx status code
func (*MwDeleteInternalServerError) IsSuccess ¶
func (o *MwDeleteInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw delete internal server error response has a 2xx status code
func (*MwDeleteInternalServerError) String ¶
func (o *MwDeleteInternalServerError) String() string
type MwDeleteOK ¶
type MwDeleteOK struct {
Payload *MwDeleteOKBody
}
MwDeleteOK describes a response with status code 200, with default header values.
Response that only includes the ID of the middleware as `BundleID` in the `Payload`
func NewMwDeleteOK ¶
func NewMwDeleteOK() *MwDeleteOK
NewMwDeleteOK creates a MwDeleteOK with default headers values
func (*MwDeleteOK) Code ¶
func (o *MwDeleteOK) Code() int
Code gets the status code for the mw delete o k response
func (*MwDeleteOK) Error ¶
func (o *MwDeleteOK) Error() string
func (*MwDeleteOK) GetPayload ¶
func (o *MwDeleteOK) GetPayload() *MwDeleteOKBody
func (*MwDeleteOK) IsClientError ¶
func (o *MwDeleteOK) IsClientError() bool
IsClientError returns true when this mw delete o k response has a 4xx status code
func (*MwDeleteOK) IsCode ¶
func (o *MwDeleteOK) IsCode(code int) bool
IsCode returns true when this mw delete o k response a status code equal to that given
func (*MwDeleteOK) IsRedirect ¶
func (o *MwDeleteOK) IsRedirect() bool
IsRedirect returns true when this mw delete o k response has a 3xx status code
func (*MwDeleteOK) IsServerError ¶
func (o *MwDeleteOK) IsServerError() bool
IsServerError returns true when this mw delete o k response has a 5xx status code
func (*MwDeleteOK) IsSuccess ¶
func (o *MwDeleteOK) IsSuccess() bool
IsSuccess returns true when this mw delete o k response has a 2xx status code
func (*MwDeleteOK) String ¶
func (o *MwDeleteOK) String() string
type MwDeleteOKBody ¶
type MwDeleteOKBody struct { // error Error string `json:"Error,omitempty"` // payload Payload *MwDeleteOKBodyPayload `json:"Payload,omitempty"` // status Status string `json:"Status,omitempty"` }
MwDeleteOKBody mw delete o k body swagger:model MwDeleteOKBody
func (*MwDeleteOKBody) ContextValidate ¶
ContextValidate validate this mw delete o k body based on the context it is used
func (*MwDeleteOKBody) MarshalBinary ¶
func (o *MwDeleteOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwDeleteOKBody) UnmarshalBinary ¶
func (o *MwDeleteOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwDeleteOKBodyPayload ¶
type MwDeleteOKBodyPayload struct { // bundle ID BundleID string `json:"BundleID,omitempty"` }
MwDeleteOKBodyPayload mw delete o k body payload swagger:model MwDeleteOKBodyPayload
func (*MwDeleteOKBodyPayload) ContextValidate ¶
ContextValidate validates this mw delete o k body payload based on context it is used
func (*MwDeleteOKBodyPayload) MarshalBinary ¶
func (o *MwDeleteOKBodyPayload) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwDeleteOKBodyPayload) UnmarshalBinary ¶
func (o *MwDeleteOKBodyPayload) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwDeleteParams ¶
type MwDeleteParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwDeleteParams contains all the parameters to send to the API endpoint
for the mw delete operation. Typically these are written to a http.Request.
func NewMwDeleteParams ¶
func NewMwDeleteParams() *MwDeleteParams
NewMwDeleteParams creates a new MwDeleteParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwDeleteParamsWithContext ¶
func NewMwDeleteParamsWithContext(ctx context.Context) *MwDeleteParams
NewMwDeleteParamsWithContext creates a new MwDeleteParams object with the ability to set a context for a request.
func NewMwDeleteParamsWithHTTPClient ¶
func NewMwDeleteParamsWithHTTPClient(client *http.Client) *MwDeleteParams
NewMwDeleteParamsWithHTTPClient creates a new MwDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewMwDeleteParamsWithTimeout ¶
func NewMwDeleteParamsWithTimeout(timeout time.Duration) *MwDeleteParams
NewMwDeleteParamsWithTimeout creates a new MwDeleteParams object with the ability to set a timeout on a request.
func (*MwDeleteParams) SetContext ¶
func (o *MwDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the mw delete params
func (*MwDeleteParams) SetDefaults ¶
func (o *MwDeleteParams) SetDefaults()
SetDefaults hydrates default values in the mw delete params (not the query body).
All values with no default are reset to their zero value.
func (*MwDeleteParams) SetHTTPClient ¶
func (o *MwDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw delete params
func (*MwDeleteParams) SetID ¶
func (o *MwDeleteParams) SetID(id string)
SetID adds the id to the mw delete params
func (*MwDeleteParams) SetTimeout ¶
func (o *MwDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw delete params
func (*MwDeleteParams) WithContext ¶
func (o *MwDeleteParams) WithContext(ctx context.Context) *MwDeleteParams
WithContext adds the context to the mw delete params
func (*MwDeleteParams) WithDefaults ¶
func (o *MwDeleteParams) WithDefaults() *MwDeleteParams
WithDefaults hydrates default values in the mw delete params (not the query body).
All values with no default are reset to their zero value.
func (*MwDeleteParams) WithHTTPClient ¶
func (o *MwDeleteParams) WithHTTPClient(client *http.Client) *MwDeleteParams
WithHTTPClient adds the HTTPClient to the mw delete params
func (*MwDeleteParams) WithID ¶
func (o *MwDeleteParams) WithID(id string) *MwDeleteParams
WithID adds the id to the mw delete params
func (*MwDeleteParams) WithTimeout ¶
func (o *MwDeleteParams) WithTimeout(timeout time.Duration) *MwDeleteParams
WithTimeout adds the timeout to the mw delete params
func (*MwDeleteParams) WriteToRequest ¶
func (o *MwDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwDeleteReader ¶
type MwDeleteReader struct {
// contains filtered or unexported fields
}
MwDeleteReader is a Reader for the MwDelete structure.
func (*MwDeleteReader) ReadResponse ¶
func (o *MwDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MwFetchBundleInternalServerError ¶
MwFetchBundleInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwFetchBundleInternalServerError ¶
func NewMwFetchBundleInternalServerError() *MwFetchBundleInternalServerError
NewMwFetchBundleInternalServerError creates a MwFetchBundleInternalServerError with default headers values
func (*MwFetchBundleInternalServerError) Code ¶
func (o *MwFetchBundleInternalServerError) Code() int
Code gets the status code for the mw fetch bundle internal server error response
func (*MwFetchBundleInternalServerError) Error ¶
func (o *MwFetchBundleInternalServerError) Error() string
func (*MwFetchBundleInternalServerError) GetPayload ¶
func (o *MwFetchBundleInternalServerError) GetPayload() *models.Payload
func (*MwFetchBundleInternalServerError) IsClientError ¶
func (o *MwFetchBundleInternalServerError) IsClientError() bool
IsClientError returns true when this mw fetch bundle internal server error response has a 4xx status code
func (*MwFetchBundleInternalServerError) IsCode ¶
func (o *MwFetchBundleInternalServerError) IsCode(code int) bool
IsCode returns true when this mw fetch bundle internal server error response a status code equal to that given
func (*MwFetchBundleInternalServerError) IsRedirect ¶
func (o *MwFetchBundleInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw fetch bundle internal server error response has a 3xx status code
func (*MwFetchBundleInternalServerError) IsServerError ¶
func (o *MwFetchBundleInternalServerError) IsServerError() bool
IsServerError returns true when this mw fetch bundle internal server error response has a 5xx status code
func (*MwFetchBundleInternalServerError) IsSuccess ¶
func (o *MwFetchBundleInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw fetch bundle internal server error response has a 2xx status code
func (*MwFetchBundleInternalServerError) String ¶
func (o *MwFetchBundleInternalServerError) String() string
type MwFetchBundleOK ¶
MwFetchBundleOK describes a response with status code 200, with default header values.
Middleware bundle as a file
func NewMwFetchBundleOK ¶
func NewMwFetchBundleOK() *MwFetchBundleOK
NewMwFetchBundleOK creates a MwFetchBundleOK with default headers values
func (*MwFetchBundleOK) Code ¶
func (o *MwFetchBundleOK) Code() int
Code gets the status code for the mw fetch bundle o k response
func (*MwFetchBundleOK) Error ¶
func (o *MwFetchBundleOK) Error() string
func (*MwFetchBundleOK) GetPayload ¶
func (o *MwFetchBundleOK) GetPayload() *models.File
func (*MwFetchBundleOK) IsClientError ¶
func (o *MwFetchBundleOK) IsClientError() bool
IsClientError returns true when this mw fetch bundle o k response has a 4xx status code
func (*MwFetchBundleOK) IsCode ¶
func (o *MwFetchBundleOK) IsCode(code int) bool
IsCode returns true when this mw fetch bundle o k response a status code equal to that given
func (*MwFetchBundleOK) IsRedirect ¶
func (o *MwFetchBundleOK) IsRedirect() bool
IsRedirect returns true when this mw fetch bundle o k response has a 3xx status code
func (*MwFetchBundleOK) IsServerError ¶
func (o *MwFetchBundleOK) IsServerError() bool
IsServerError returns true when this mw fetch bundle o k response has a 5xx status code
func (*MwFetchBundleOK) IsSuccess ¶
func (o *MwFetchBundleOK) IsSuccess() bool
IsSuccess returns true when this mw fetch bundle o k response has a 2xx status code
func (*MwFetchBundleOK) String ¶
func (o *MwFetchBundleOK) String() string
type MwFetchBundleParams ¶
type MwFetchBundleParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwFetchBundleParams contains all the parameters to send to the API endpoint
for the mw fetch bundle operation. Typically these are written to a http.Request.
func NewMwFetchBundleParams ¶
func NewMwFetchBundleParams() *MwFetchBundleParams
NewMwFetchBundleParams creates a new MwFetchBundleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwFetchBundleParamsWithContext ¶
func NewMwFetchBundleParamsWithContext(ctx context.Context) *MwFetchBundleParams
NewMwFetchBundleParamsWithContext creates a new MwFetchBundleParams object with the ability to set a context for a request.
func NewMwFetchBundleParamsWithHTTPClient ¶
func NewMwFetchBundleParamsWithHTTPClient(client *http.Client) *MwFetchBundleParams
NewMwFetchBundleParamsWithHTTPClient creates a new MwFetchBundleParams object with the ability to set a custom HTTPClient for a request.
func NewMwFetchBundleParamsWithTimeout ¶
func NewMwFetchBundleParamsWithTimeout(timeout time.Duration) *MwFetchBundleParams
NewMwFetchBundleParamsWithTimeout creates a new MwFetchBundleParams object with the ability to set a timeout on a request.
func (*MwFetchBundleParams) SetContext ¶
func (o *MwFetchBundleParams) SetContext(ctx context.Context)
SetContext adds the context to the mw fetch bundle params
func (*MwFetchBundleParams) SetDefaults ¶
func (o *MwFetchBundleParams) SetDefaults()
SetDefaults hydrates default values in the mw fetch bundle params (not the query body).
All values with no default are reset to their zero value.
func (*MwFetchBundleParams) SetHTTPClient ¶
func (o *MwFetchBundleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw fetch bundle params
func (*MwFetchBundleParams) SetID ¶
func (o *MwFetchBundleParams) SetID(id string)
SetID adds the id to the mw fetch bundle params
func (*MwFetchBundleParams) SetTimeout ¶
func (o *MwFetchBundleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw fetch bundle params
func (*MwFetchBundleParams) WithContext ¶
func (o *MwFetchBundleParams) WithContext(ctx context.Context) *MwFetchBundleParams
WithContext adds the context to the mw fetch bundle params
func (*MwFetchBundleParams) WithDefaults ¶
func (o *MwFetchBundleParams) WithDefaults() *MwFetchBundleParams
WithDefaults hydrates default values in the mw fetch bundle params (not the query body).
All values with no default are reset to their zero value.
func (*MwFetchBundleParams) WithHTTPClient ¶
func (o *MwFetchBundleParams) WithHTTPClient(client *http.Client) *MwFetchBundleParams
WithHTTPClient adds the HTTPClient to the mw fetch bundle params
func (*MwFetchBundleParams) WithID ¶
func (o *MwFetchBundleParams) WithID(id string) *MwFetchBundleParams
WithID adds the id to the mw fetch bundle params
func (*MwFetchBundleParams) WithTimeout ¶
func (o *MwFetchBundleParams) WithTimeout(timeout time.Duration) *MwFetchBundleParams
WithTimeout adds the timeout to the mw fetch bundle params
func (*MwFetchBundleParams) WriteToRequest ¶
func (o *MwFetchBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwFetchBundleReader ¶
type MwFetchBundleReader struct {
// contains filtered or unexported fields
}
MwFetchBundleReader is a Reader for the MwFetchBundle structure.
func (*MwFetchBundleReader) ReadResponse ¶
func (o *MwFetchBundleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MwFetchInternalServerError ¶
MwFetchInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwFetchInternalServerError ¶
func NewMwFetchInternalServerError() *MwFetchInternalServerError
NewMwFetchInternalServerError creates a MwFetchInternalServerError with default headers values
func (*MwFetchInternalServerError) Code ¶
func (o *MwFetchInternalServerError) Code() int
Code gets the status code for the mw fetch internal server error response
func (*MwFetchInternalServerError) Error ¶
func (o *MwFetchInternalServerError) Error() string
func (*MwFetchInternalServerError) GetPayload ¶
func (o *MwFetchInternalServerError) GetPayload() *models.Payload
func (*MwFetchInternalServerError) IsClientError ¶
func (o *MwFetchInternalServerError) IsClientError() bool
IsClientError returns true when this mw fetch internal server error response has a 4xx status code
func (*MwFetchInternalServerError) IsCode ¶
func (o *MwFetchInternalServerError) IsCode(code int) bool
IsCode returns true when this mw fetch internal server error response a status code equal to that given
func (*MwFetchInternalServerError) IsRedirect ¶
func (o *MwFetchInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw fetch internal server error response has a 3xx status code
func (*MwFetchInternalServerError) IsServerError ¶
func (o *MwFetchInternalServerError) IsServerError() bool
IsServerError returns true when this mw fetch internal server error response has a 5xx status code
func (*MwFetchInternalServerError) IsSuccess ¶
func (o *MwFetchInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw fetch internal server error response has a 2xx status code
func (*MwFetchInternalServerError) String ¶
func (o *MwFetchInternalServerError) String() string
type MwFetchOK ¶
type MwFetchOK struct {
Payload *MwFetchOKBody
}
MwFetchOK describes a response with status code 200, with default header values.
Full middleware response in the `Payload`
func NewMwFetchOK ¶
func NewMwFetchOK() *MwFetchOK
NewMwFetchOK creates a MwFetchOK with default headers values
func (*MwFetchOK) GetPayload ¶
func (o *MwFetchOK) GetPayload() *MwFetchOKBody
func (*MwFetchOK) IsClientError ¶
IsClientError returns true when this mw fetch o k response has a 4xx status code
func (*MwFetchOK) IsCode ¶
IsCode returns true when this mw fetch o k response a status code equal to that given
func (*MwFetchOK) IsRedirect ¶
IsRedirect returns true when this mw fetch o k response has a 3xx status code
func (*MwFetchOK) IsServerError ¶
IsServerError returns true when this mw fetch o k response has a 5xx status code
type MwFetchOKBody ¶
type MwFetchOKBody struct { // error Error string `json:"Error,omitempty"` // payload Payload *models.MW `json:"Payload,omitempty"` // status Status string `json:"Status,omitempty"` }
MwFetchOKBody mw fetch o k body swagger:model MwFetchOKBody
func (*MwFetchOKBody) ContextValidate ¶
ContextValidate validate this mw fetch o k body based on the context it is used
func (*MwFetchOKBody) MarshalBinary ¶
func (o *MwFetchOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwFetchOKBody) UnmarshalBinary ¶
func (o *MwFetchOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwFetchParams ¶
type MwFetchParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwFetchParams contains all the parameters to send to the API endpoint
for the mw fetch operation. Typically these are written to a http.Request.
func NewMwFetchParams ¶
func NewMwFetchParams() *MwFetchParams
NewMwFetchParams creates a new MwFetchParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwFetchParamsWithContext ¶
func NewMwFetchParamsWithContext(ctx context.Context) *MwFetchParams
NewMwFetchParamsWithContext creates a new MwFetchParams object with the ability to set a context for a request.
func NewMwFetchParamsWithHTTPClient ¶
func NewMwFetchParamsWithHTTPClient(client *http.Client) *MwFetchParams
NewMwFetchParamsWithHTTPClient creates a new MwFetchParams object with the ability to set a custom HTTPClient for a request.
func NewMwFetchParamsWithTimeout ¶
func NewMwFetchParamsWithTimeout(timeout time.Duration) *MwFetchParams
NewMwFetchParamsWithTimeout creates a new MwFetchParams object with the ability to set a timeout on a request.
func (*MwFetchParams) SetContext ¶
func (o *MwFetchParams) SetContext(ctx context.Context)
SetContext adds the context to the mw fetch params
func (*MwFetchParams) SetDefaults ¶
func (o *MwFetchParams) SetDefaults()
SetDefaults hydrates default values in the mw fetch params (not the query body).
All values with no default are reset to their zero value.
func (*MwFetchParams) SetHTTPClient ¶
func (o *MwFetchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw fetch params
func (*MwFetchParams) SetID ¶
func (o *MwFetchParams) SetID(id string)
SetID adds the id to the mw fetch params
func (*MwFetchParams) SetTimeout ¶
func (o *MwFetchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw fetch params
func (*MwFetchParams) WithContext ¶
func (o *MwFetchParams) WithContext(ctx context.Context) *MwFetchParams
WithContext adds the context to the mw fetch params
func (*MwFetchParams) WithDefaults ¶
func (o *MwFetchParams) WithDefaults() *MwFetchParams
WithDefaults hydrates default values in the mw fetch params (not the query body).
All values with no default are reset to their zero value.
func (*MwFetchParams) WithHTTPClient ¶
func (o *MwFetchParams) WithHTTPClient(client *http.Client) *MwFetchParams
WithHTTPClient adds the HTTPClient to the mw fetch params
func (*MwFetchParams) WithID ¶
func (o *MwFetchParams) WithID(id string) *MwFetchParams
WithID adds the id to the mw fetch params
func (*MwFetchParams) WithTimeout ¶
func (o *MwFetchParams) WithTimeout(timeout time.Duration) *MwFetchParams
WithTimeout adds the timeout to the mw fetch params
func (*MwFetchParams) WriteToRequest ¶
func (o *MwFetchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwFetchReader ¶
type MwFetchReader struct {
// contains filtered or unexported fields
}
MwFetchReader is a Reader for the MwFetch structure.
func (*MwFetchReader) ReadResponse ¶
func (o *MwFetchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MwListAllInternalServerError ¶
MwListAllInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwListAllInternalServerError ¶
func NewMwListAllInternalServerError() *MwListAllInternalServerError
NewMwListAllInternalServerError creates a MwListAllInternalServerError with default headers values
func (*MwListAllInternalServerError) Code ¶
func (o *MwListAllInternalServerError) Code() int
Code gets the status code for the mw list all internal server error response
func (*MwListAllInternalServerError) Error ¶
func (o *MwListAllInternalServerError) Error() string
func (*MwListAllInternalServerError) GetPayload ¶
func (o *MwListAllInternalServerError) GetPayload() *models.Payload
func (*MwListAllInternalServerError) IsClientError ¶
func (o *MwListAllInternalServerError) IsClientError() bool
IsClientError returns true when this mw list all internal server error response has a 4xx status code
func (*MwListAllInternalServerError) IsCode ¶
func (o *MwListAllInternalServerError) IsCode(code int) bool
IsCode returns true when this mw list all internal server error response a status code equal to that given
func (*MwListAllInternalServerError) IsRedirect ¶
func (o *MwListAllInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw list all internal server error response has a 3xx status code
func (*MwListAllInternalServerError) IsServerError ¶
func (o *MwListAllInternalServerError) IsServerError() bool
IsServerError returns true when this mw list all internal server error response has a 5xx status code
func (*MwListAllInternalServerError) IsSuccess ¶
func (o *MwListAllInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw list all internal server error response has a 2xx status code
func (*MwListAllInternalServerError) String ¶
func (o *MwListAllInternalServerError) String() string
type MwListAllOK ¶
type MwListAllOK struct {
Payload *MwListAllOKBody
}
MwListAllOK describes a response with status code 200, with default header values.
List of full middleware representations in the `Payload`
func NewMwListAllOK ¶
func NewMwListAllOK() *MwListAllOK
NewMwListAllOK creates a MwListAllOK with default headers values
func (*MwListAllOK) Code ¶
func (o *MwListAllOK) Code() int
Code gets the status code for the mw list all o k response
func (*MwListAllOK) Error ¶
func (o *MwListAllOK) Error() string
func (*MwListAllOK) GetPayload ¶
func (o *MwListAllOK) GetPayload() *MwListAllOKBody
func (*MwListAllOK) IsClientError ¶
func (o *MwListAllOK) IsClientError() bool
IsClientError returns true when this mw list all o k response has a 4xx status code
func (*MwListAllOK) IsCode ¶
func (o *MwListAllOK) IsCode(code int) bool
IsCode returns true when this mw list all o k response a status code equal to that given
func (*MwListAllOK) IsRedirect ¶
func (o *MwListAllOK) IsRedirect() bool
IsRedirect returns true when this mw list all o k response has a 3xx status code
func (*MwListAllOK) IsServerError ¶
func (o *MwListAllOK) IsServerError() bool
IsServerError returns true when this mw list all o k response has a 5xx status code
func (*MwListAllOK) IsSuccess ¶
func (o *MwListAllOK) IsSuccess() bool
IsSuccess returns true when this mw list all o k response has a 2xx status code
func (*MwListAllOK) String ¶
func (o *MwListAllOK) String() string
type MwListAllOKBody ¶
type MwListAllOKBody struct { // error Error string `json:"Error,omitempty"` // payload Payload []*models.MW `json:"Payload"` // status Status string `json:"Status,omitempty"` }
MwListAllOKBody mw list all o k body swagger:model MwListAllOKBody
func (*MwListAllOKBody) ContextValidate ¶
ContextValidate validate this mw list all o k body based on the context it is used
func (*MwListAllOKBody) MarshalBinary ¶
func (o *MwListAllOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwListAllOKBody) UnmarshalBinary ¶
func (o *MwListAllOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwListAllParams ¶
type MwListAllParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwListAllParams contains all the parameters to send to the API endpoint
for the mw list all operation. Typically these are written to a http.Request.
func NewMwListAllParams ¶
func NewMwListAllParams() *MwListAllParams
NewMwListAllParams creates a new MwListAllParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwListAllParamsWithContext ¶
func NewMwListAllParamsWithContext(ctx context.Context) *MwListAllParams
NewMwListAllParamsWithContext creates a new MwListAllParams object with the ability to set a context for a request.
func NewMwListAllParamsWithHTTPClient ¶
func NewMwListAllParamsWithHTTPClient(client *http.Client) *MwListAllParams
NewMwListAllParamsWithHTTPClient creates a new MwListAllParams object with the ability to set a custom HTTPClient for a request.
func NewMwListAllParamsWithTimeout ¶
func NewMwListAllParamsWithTimeout(timeout time.Duration) *MwListAllParams
NewMwListAllParamsWithTimeout creates a new MwListAllParams object with the ability to set a timeout on a request.
func (*MwListAllParams) SetContext ¶
func (o *MwListAllParams) SetContext(ctx context.Context)
SetContext adds the context to the mw list all params
func (*MwListAllParams) SetDefaults ¶
func (o *MwListAllParams) SetDefaults()
SetDefaults hydrates default values in the mw list all params (not the query body).
All values with no default are reset to their zero value.
func (*MwListAllParams) SetHTTPClient ¶
func (o *MwListAllParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw list all params
func (*MwListAllParams) SetTimeout ¶
func (o *MwListAllParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw list all params
func (*MwListAllParams) WithContext ¶
func (o *MwListAllParams) WithContext(ctx context.Context) *MwListAllParams
WithContext adds the context to the mw list all params
func (*MwListAllParams) WithDefaults ¶
func (o *MwListAllParams) WithDefaults() *MwListAllParams
WithDefaults hydrates default values in the mw list all params (not the query body).
All values with no default are reset to their zero value.
func (*MwListAllParams) WithHTTPClient ¶
func (o *MwListAllParams) WithHTTPClient(client *http.Client) *MwListAllParams
WithHTTPClient adds the HTTPClient to the mw list all params
func (*MwListAllParams) WithTimeout ¶
func (o *MwListAllParams) WithTimeout(timeout time.Duration) *MwListAllParams
WithTimeout adds the timeout to the mw list all params
func (*MwListAllParams) WriteToRequest ¶
func (o *MwListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwListAllReader ¶
type MwListAllReader struct {
// contains filtered or unexported fields
}
MwListAllReader is a Reader for the MwListAll structure.
func (*MwListAllReader) ReadResponse ¶
func (o *MwListAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MwUpdateInternalServerError ¶
MwUpdateInternalServerError describes a response with status code 500, with default header values.
Generic error specified by `Status` and `Error` fields
func NewMwUpdateInternalServerError ¶
func NewMwUpdateInternalServerError() *MwUpdateInternalServerError
NewMwUpdateInternalServerError creates a MwUpdateInternalServerError with default headers values
func (*MwUpdateInternalServerError) Code ¶
func (o *MwUpdateInternalServerError) Code() int
Code gets the status code for the mw update internal server error response
func (*MwUpdateInternalServerError) Error ¶
func (o *MwUpdateInternalServerError) Error() string
func (*MwUpdateInternalServerError) GetPayload ¶
func (o *MwUpdateInternalServerError) GetPayload() *models.Payload
func (*MwUpdateInternalServerError) IsClientError ¶
func (o *MwUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this mw update internal server error response has a 4xx status code
func (*MwUpdateInternalServerError) IsCode ¶
func (o *MwUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this mw update internal server error response a status code equal to that given
func (*MwUpdateInternalServerError) IsRedirect ¶
func (o *MwUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this mw update internal server error response has a 3xx status code
func (*MwUpdateInternalServerError) IsServerError ¶
func (o *MwUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this mw update internal server error response has a 5xx status code
func (*MwUpdateInternalServerError) IsSuccess ¶
func (o *MwUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this mw update internal server error response has a 2xx status code
func (*MwUpdateInternalServerError) String ¶
func (o *MwUpdateInternalServerError) String() string
type MwUpdateOK ¶
type MwUpdateOK struct {
Payload *MwUpdateOKBody
}
MwUpdateOK describes a response with status code 200, with default header values.
Response that only includes the ID of the middleware as `BundleID` in the `Payload`
func NewMwUpdateOK ¶
func NewMwUpdateOK() *MwUpdateOK
NewMwUpdateOK creates a MwUpdateOK with default headers values
func (*MwUpdateOK) Code ¶
func (o *MwUpdateOK) Code() int
Code gets the status code for the mw update o k response
func (*MwUpdateOK) Error ¶
func (o *MwUpdateOK) Error() string
func (*MwUpdateOK) GetPayload ¶
func (o *MwUpdateOK) GetPayload() *MwUpdateOKBody
func (*MwUpdateOK) IsClientError ¶
func (o *MwUpdateOK) IsClientError() bool
IsClientError returns true when this mw update o k response has a 4xx status code
func (*MwUpdateOK) IsCode ¶
func (o *MwUpdateOK) IsCode(code int) bool
IsCode returns true when this mw update o k response a status code equal to that given
func (*MwUpdateOK) IsRedirect ¶
func (o *MwUpdateOK) IsRedirect() bool
IsRedirect returns true when this mw update o k response has a 3xx status code
func (*MwUpdateOK) IsServerError ¶
func (o *MwUpdateOK) IsServerError() bool
IsServerError returns true when this mw update o k response has a 5xx status code
func (*MwUpdateOK) IsSuccess ¶
func (o *MwUpdateOK) IsSuccess() bool
IsSuccess returns true when this mw update o k response has a 2xx status code
func (*MwUpdateOK) String ¶
func (o *MwUpdateOK) String() string
type MwUpdateOKBody ¶
type MwUpdateOKBody struct { // error Error string `json:"Error,omitempty"` // payload Payload *MwUpdateOKBodyPayload `json:"Payload,omitempty"` // status Status string `json:"Status,omitempty"` }
MwUpdateOKBody mw update o k body swagger:model MwUpdateOKBody
func (*MwUpdateOKBody) ContextValidate ¶
ContextValidate validate this mw update o k body based on the context it is used
func (*MwUpdateOKBody) MarshalBinary ¶
func (o *MwUpdateOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwUpdateOKBody) UnmarshalBinary ¶
func (o *MwUpdateOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwUpdateOKBodyPayload ¶
type MwUpdateOKBodyPayload struct { // bundle ID BundleID string `json:"BundleID,omitempty"` }
MwUpdateOKBodyPayload mw update o k body payload swagger:model MwUpdateOKBodyPayload
func (*MwUpdateOKBodyPayload) ContextValidate ¶
ContextValidate validates this mw update o k body payload based on context it is used
func (*MwUpdateOKBodyPayload) MarshalBinary ¶
func (o *MwUpdateOKBodyPayload) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MwUpdateOKBodyPayload) UnmarshalBinary ¶
func (o *MwUpdateOKBodyPayload) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MwUpdateParams ¶
type MwUpdateParams struct { // ID. ID string // Uploadfile. UploadFile runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MwUpdateParams contains all the parameters to send to the API endpoint
for the mw update operation. Typically these are written to a http.Request.
func NewMwUpdateParams ¶
func NewMwUpdateParams() *MwUpdateParams
NewMwUpdateParams creates a new MwUpdateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMwUpdateParamsWithContext ¶
func NewMwUpdateParamsWithContext(ctx context.Context) *MwUpdateParams
NewMwUpdateParamsWithContext creates a new MwUpdateParams object with the ability to set a context for a request.
func NewMwUpdateParamsWithHTTPClient ¶
func NewMwUpdateParamsWithHTTPClient(client *http.Client) *MwUpdateParams
NewMwUpdateParamsWithHTTPClient creates a new MwUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewMwUpdateParamsWithTimeout ¶
func NewMwUpdateParamsWithTimeout(timeout time.Duration) *MwUpdateParams
NewMwUpdateParamsWithTimeout creates a new MwUpdateParams object with the ability to set a timeout on a request.
func (*MwUpdateParams) SetContext ¶
func (o *MwUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the mw update params
func (*MwUpdateParams) SetDefaults ¶
func (o *MwUpdateParams) SetDefaults()
SetDefaults hydrates default values in the mw update params (not the query body).
All values with no default are reset to their zero value.
func (*MwUpdateParams) SetHTTPClient ¶
func (o *MwUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mw update params
func (*MwUpdateParams) SetID ¶
func (o *MwUpdateParams) SetID(id string)
SetID adds the id to the mw update params
func (*MwUpdateParams) SetTimeout ¶
func (o *MwUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mw update params
func (*MwUpdateParams) SetUploadFile ¶
func (o *MwUpdateParams) SetUploadFile(uploadfile runtime.NamedReadCloser)
SetUploadFile adds the uploadfile to the mw update params
func (*MwUpdateParams) WithContext ¶
func (o *MwUpdateParams) WithContext(ctx context.Context) *MwUpdateParams
WithContext adds the context to the mw update params
func (*MwUpdateParams) WithDefaults ¶
func (o *MwUpdateParams) WithDefaults() *MwUpdateParams
WithDefaults hydrates default values in the mw update params (not the query body).
All values with no default are reset to their zero value.
func (*MwUpdateParams) WithHTTPClient ¶
func (o *MwUpdateParams) WithHTTPClient(client *http.Client) *MwUpdateParams
WithHTTPClient adds the HTTPClient to the mw update params
func (*MwUpdateParams) WithID ¶
func (o *MwUpdateParams) WithID(id string) *MwUpdateParams
WithID adds the id to the mw update params
func (*MwUpdateParams) WithTimeout ¶
func (o *MwUpdateParams) WithTimeout(timeout time.Duration) *MwUpdateParams
WithTimeout adds the timeout to the mw update params
func (*MwUpdateParams) WithUploadFile ¶
func (o *MwUpdateParams) WithUploadFile(uploadfile runtime.NamedReadCloser) *MwUpdateParams
WithUploadFile adds the uploadfile to the mw update params
func (*MwUpdateParams) WriteToRequest ¶
func (o *MwUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MwUpdateReader ¶
type MwUpdateReader struct {
// contains filtered or unexported fields
}
MwUpdateReader is a Reader for the MwUpdate structure.
func (*MwUpdateReader) ReadResponse ¶
func (o *MwUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- mw_add_parameters.go
- mw_add_responses.go
- mw_client.go
- mw_delete_parameters.go
- mw_delete_responses.go
- mw_fetch_bundle_parameters.go
- mw_fetch_bundle_responses.go
- mw_fetch_parameters.go
- mw_fetch_responses.go
- mw_list_all_parameters.go
- mw_list_all_responses.go
- mw_update_parameters.go
- mw_update_responses.go