mw

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

type MwAddInternalServerError struct {
	Payload *models.Payload
}

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) Code

func (o *MwAddOK) Code() int

Code gets the status code for the mw add o k response

func (*MwAddOK) Error

func (o *MwAddOK) Error() string

func (*MwAddOK) GetPayload

func (o *MwAddOK) GetPayload() *MwAddOKBody

func (*MwAddOK) IsClientError

func (o *MwAddOK) IsClientError() bool

IsClientError returns true when this mw add o k response has a 4xx status code

func (*MwAddOK) IsCode

func (o *MwAddOK) IsCode(code int) bool

IsCode returns true when this mw add o k response a status code equal to that given

func (*MwAddOK) IsRedirect

func (o *MwAddOK) IsRedirect() bool

IsRedirect returns true when this mw add o k response has a 3xx status code

func (*MwAddOK) IsServerError

func (o *MwAddOK) IsServerError() bool

IsServerError returns true when this mw add o k response has a 5xx status code

func (*MwAddOK) IsSuccess

func (o *MwAddOK) IsSuccess() bool

IsSuccess returns true when this mw add o k response has a 2xx status code

func (*MwAddOK) String

func (o *MwAddOK) String() string

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

func (o *MwAddOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwAddOKBody) Validate

func (o *MwAddOKBody) Validate(formats strfmt.Registry) error

Validate validates this mw add o k body

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

func (o *MwAddOKBodyPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwAddOKBodyPayload) Validate

func (o *MwAddOKBodyPayload) Validate(formats strfmt.Registry) error

Validate validates this mw add o k body payload

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

type MwDeleteInternalServerError struct {
	Payload *models.Payload
}

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 (*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

func (o *MwDeleteOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwDeleteOKBody) Validate

func (o *MwDeleteOKBody) Validate(formats strfmt.Registry) error

Validate validates this mw delete o k body

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

func (o *MwDeleteOKBodyPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwDeleteOKBodyPayload) Validate

func (o *MwDeleteOKBodyPayload) Validate(formats strfmt.Registry) error

Validate validates this mw delete o k body payload

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

type MwFetchBundleInternalServerError struct {
	Payload *models.Payload
}

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

Code gets the status code for the mw fetch bundle internal server error response

func (*MwFetchBundleInternalServerError) Error

func (*MwFetchBundleInternalServerError) GetPayload

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

type MwFetchBundleOK

type MwFetchBundleOK struct {
	Payload *models.File
}

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

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

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

type MwFetchInternalServerError struct {
	Payload *models.Payload
}

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 (*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) Code

func (o *MwFetchOK) Code() int

Code gets the status code for the mw fetch o k response

func (*MwFetchOK) Error

func (o *MwFetchOK) Error() string

func (*MwFetchOK) GetPayload

func (o *MwFetchOK) GetPayload() *MwFetchOKBody

func (*MwFetchOK) IsClientError

func (o *MwFetchOK) IsClientError() bool

IsClientError returns true when this mw fetch o k response has a 4xx status code

func (*MwFetchOK) IsCode

func (o *MwFetchOK) IsCode(code int) bool

IsCode returns true when this mw fetch o k response a status code equal to that given

func (*MwFetchOK) IsRedirect

func (o *MwFetchOK) IsRedirect() bool

IsRedirect returns true when this mw fetch o k response has a 3xx status code

func (*MwFetchOK) IsServerError

func (o *MwFetchOK) IsServerError() bool

IsServerError returns true when this mw fetch o k response has a 5xx status code

func (*MwFetchOK) IsSuccess

func (o *MwFetchOK) IsSuccess() bool

IsSuccess returns true when this mw fetch o k response has a 2xx status code

func (*MwFetchOK) String

func (o *MwFetchOK) String() string

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

func (o *MwFetchOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwFetchOKBody) Validate

func (o *MwFetchOKBody) Validate(formats strfmt.Registry) error

Validate validates this mw fetch o k body

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

type MwListAllInternalServerError struct {
	Payload *models.Payload
}

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

Code gets the status code for the mw list all internal server error response

func (*MwListAllInternalServerError) Error

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

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

func (o *MwListAllOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwListAllOKBody) Validate

func (o *MwListAllOKBody) Validate(formats strfmt.Registry) error

Validate validates this mw list all o k body

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

type MwUpdateInternalServerError struct {
	Payload *models.Payload
}

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 (*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

func (o *MwUpdateOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwUpdateOKBody) Validate

func (o *MwUpdateOKBody) Validate(formats strfmt.Registry) error

Validate validates this mw update o k body

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

func (o *MwUpdateOKBodyPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MwUpdateOKBodyPayload) Validate

func (o *MwUpdateOKBodyPayload) Validate(formats strfmt.Registry) error

Validate validates this mw update o k body payload

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL