preheat

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateInstanceBadRequestCode int = 400

CreateInstanceBadRequestCode is the HTTP code returned for type CreateInstanceBadRequest

View Source
const CreateInstanceConflictCode int = 409

CreateInstanceConflictCode is the HTTP code returned for type CreateInstanceConflict

View Source
const CreateInstanceCreatedCode int = 201

CreateInstanceCreatedCode is the HTTP code returned for type CreateInstanceCreated

View Source
const CreateInstanceForbiddenCode int = 403

CreateInstanceForbiddenCode is the HTTP code returned for type CreateInstanceForbidden

View Source
const CreateInstanceInternalServerErrorCode int = 500

CreateInstanceInternalServerErrorCode is the HTTP code returned for type CreateInstanceInternalServerError

View Source
const CreateInstanceNotFoundCode int = 404

CreateInstanceNotFoundCode is the HTTP code returned for type CreateInstanceNotFound

View Source
const CreateInstanceUnauthorizedCode int = 401

CreateInstanceUnauthorizedCode is the HTTP code returned for type CreateInstanceUnauthorized

View Source
const CreatePolicyBadRequestCode int = 400

CreatePolicyBadRequestCode is the HTTP code returned for type CreatePolicyBadRequest

View Source
const CreatePolicyConflictCode int = 409

CreatePolicyConflictCode is the HTTP code returned for type CreatePolicyConflict

View Source
const CreatePolicyCreatedCode int = 201

CreatePolicyCreatedCode is the HTTP code returned for type CreatePolicyCreated

View Source
const CreatePolicyForbiddenCode int = 403

CreatePolicyForbiddenCode is the HTTP code returned for type CreatePolicyForbidden

View Source
const CreatePolicyInternalServerErrorCode int = 500

CreatePolicyInternalServerErrorCode is the HTTP code returned for type CreatePolicyInternalServerError

View Source
const CreatePolicyUnauthorizedCode int = 401

CreatePolicyUnauthorizedCode is the HTTP code returned for type CreatePolicyUnauthorized

View Source
const DeleteInstanceForbiddenCode int = 403

DeleteInstanceForbiddenCode is the HTTP code returned for type DeleteInstanceForbidden

View Source
const DeleteInstanceInternalServerErrorCode int = 500

DeleteInstanceInternalServerErrorCode is the HTTP code returned for type DeleteInstanceInternalServerError

View Source
const DeleteInstanceNotFoundCode int = 404

DeleteInstanceNotFoundCode is the HTTP code returned for type DeleteInstanceNotFound

View Source
const DeleteInstanceOKCode int = 200

DeleteInstanceOKCode is the HTTP code returned for type DeleteInstanceOK

View Source
const DeleteInstanceUnauthorizedCode int = 401

DeleteInstanceUnauthorizedCode is the HTTP code returned for type DeleteInstanceUnauthorized

View Source
const DeletePolicyBadRequestCode int = 400

DeletePolicyBadRequestCode is the HTTP code returned for type DeletePolicyBadRequest

View Source
const DeletePolicyForbiddenCode int = 403

DeletePolicyForbiddenCode is the HTTP code returned for type DeletePolicyForbidden

View Source
const DeletePolicyInternalServerErrorCode int = 500

DeletePolicyInternalServerErrorCode is the HTTP code returned for type DeletePolicyInternalServerError

View Source
const DeletePolicyNotFoundCode int = 404

DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound

View Source
const DeletePolicyOKCode int = 200

DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK

View Source
const DeletePolicyUnauthorizedCode int = 401

DeletePolicyUnauthorizedCode is the HTTP code returned for type DeletePolicyUnauthorized

View Source
const GetExecutionBadRequestCode int = 400

GetExecutionBadRequestCode is the HTTP code returned for type GetExecutionBadRequest

View Source
const GetExecutionForbiddenCode int = 403

GetExecutionForbiddenCode is the HTTP code returned for type GetExecutionForbidden

View Source
const GetExecutionInternalServerErrorCode int = 500

GetExecutionInternalServerErrorCode is the HTTP code returned for type GetExecutionInternalServerError

View Source
const GetExecutionNotFoundCode int = 404

GetExecutionNotFoundCode is the HTTP code returned for type GetExecutionNotFound

View Source
const GetExecutionOKCode int = 200

GetExecutionOKCode is the HTTP code returned for type GetExecutionOK

View Source
const GetExecutionUnauthorizedCode int = 401

GetExecutionUnauthorizedCode is the HTTP code returned for type GetExecutionUnauthorized

View Source
const GetInstanceBadRequestCode int = 400

GetInstanceBadRequestCode is the HTTP code returned for type GetInstanceBadRequest

View Source
const GetInstanceForbiddenCode int = 403

GetInstanceForbiddenCode is the HTTP code returned for type GetInstanceForbidden

View Source
const GetInstanceInternalServerErrorCode int = 500

GetInstanceInternalServerErrorCode is the HTTP code returned for type GetInstanceInternalServerError

View Source
const GetInstanceNotFoundCode int = 404

GetInstanceNotFoundCode is the HTTP code returned for type GetInstanceNotFound

View Source
const GetInstanceOKCode int = 200

GetInstanceOKCode is the HTTP code returned for type GetInstanceOK

View Source
const GetInstanceUnauthorizedCode int = 401

GetInstanceUnauthorizedCode is the HTTP code returned for type GetInstanceUnauthorized

View Source
const GetPolicyBadRequestCode int = 400

GetPolicyBadRequestCode is the HTTP code returned for type GetPolicyBadRequest

View Source
const GetPolicyForbiddenCode int = 403

GetPolicyForbiddenCode is the HTTP code returned for type GetPolicyForbidden

View Source
const GetPolicyInternalServerErrorCode int = 500

GetPolicyInternalServerErrorCode is the HTTP code returned for type GetPolicyInternalServerError

View Source
const GetPolicyNotFoundCode int = 404

GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound

View Source
const GetPolicyOKCode int = 200

GetPolicyOKCode is the HTTP code returned for type GetPolicyOK

View Source
const GetPolicyUnauthorizedCode int = 401

GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized

View Source
const GetPreheatLogBadRequestCode int = 400

GetPreheatLogBadRequestCode is the HTTP code returned for type GetPreheatLogBadRequest

View Source
const GetPreheatLogForbiddenCode int = 403

GetPreheatLogForbiddenCode is the HTTP code returned for type GetPreheatLogForbidden

View Source
const GetPreheatLogInternalServerErrorCode int = 500

GetPreheatLogInternalServerErrorCode is the HTTP code returned for type GetPreheatLogInternalServerError

View Source
const GetPreheatLogNotFoundCode int = 404

GetPreheatLogNotFoundCode is the HTTP code returned for type GetPreheatLogNotFound

View Source
const GetPreheatLogOKCode int = 200

GetPreheatLogOKCode is the HTTP code returned for type GetPreheatLogOK

View Source
const GetPreheatLogUnauthorizedCode int = 401

GetPreheatLogUnauthorizedCode is the HTTP code returned for type GetPreheatLogUnauthorized

View Source
const ListExecutionsBadRequestCode int = 400

ListExecutionsBadRequestCode is the HTTP code returned for type ListExecutionsBadRequest

View Source
const ListExecutionsForbiddenCode int = 403

ListExecutionsForbiddenCode is the HTTP code returned for type ListExecutionsForbidden

View Source
const ListExecutionsInternalServerErrorCode int = 500

ListExecutionsInternalServerErrorCode is the HTTP code returned for type ListExecutionsInternalServerError

View Source
const ListExecutionsNotFoundCode int = 404

ListExecutionsNotFoundCode is the HTTP code returned for type ListExecutionsNotFound

View Source
const ListExecutionsOKCode int = 200

ListExecutionsOKCode is the HTTP code returned for type ListExecutionsOK

View Source
const ListExecutionsUnauthorizedCode int = 401

ListExecutionsUnauthorizedCode is the HTTP code returned for type ListExecutionsUnauthorized

View Source
const ListInstancesBadRequestCode int = 400

ListInstancesBadRequestCode is the HTTP code returned for type ListInstancesBadRequest

View Source
const ListInstancesForbiddenCode int = 403

ListInstancesForbiddenCode is the HTTP code returned for type ListInstancesForbidden

View Source
const ListInstancesInternalServerErrorCode int = 500

ListInstancesInternalServerErrorCode is the HTTP code returned for type ListInstancesInternalServerError

View Source
const ListInstancesNotFoundCode int = 404

ListInstancesNotFoundCode is the HTTP code returned for type ListInstancesNotFound

View Source
const ListInstancesOKCode int = 200

ListInstancesOKCode is the HTTP code returned for type ListInstancesOK

View Source
const ListInstancesUnauthorizedCode int = 401

ListInstancesUnauthorizedCode is the HTTP code returned for type ListInstancesUnauthorized

View Source
const ListPoliciesBadRequestCode int = 400

ListPoliciesBadRequestCode is the HTTP code returned for type ListPoliciesBadRequest

View Source
const ListPoliciesForbiddenCode int = 403

ListPoliciesForbiddenCode is the HTTP code returned for type ListPoliciesForbidden

View Source
const ListPoliciesInternalServerErrorCode int = 500

ListPoliciesInternalServerErrorCode is the HTTP code returned for type ListPoliciesInternalServerError

View Source
const ListPoliciesOKCode int = 200

ListPoliciesOKCode is the HTTP code returned for type ListPoliciesOK

View Source
const ListPoliciesUnauthorizedCode int = 401

ListPoliciesUnauthorizedCode is the HTTP code returned for type ListPoliciesUnauthorized

View Source
const ListProvidersBadRequestCode int = 400

ListProvidersBadRequestCode is the HTTP code returned for type ListProvidersBadRequest

View Source
const ListProvidersForbiddenCode int = 403

ListProvidersForbiddenCode is the HTTP code returned for type ListProvidersForbidden

View Source
const ListProvidersInternalServerErrorCode int = 500

ListProvidersInternalServerErrorCode is the HTTP code returned for type ListProvidersInternalServerError

View Source
const ListProvidersNotFoundCode int = 404

ListProvidersNotFoundCode is the HTTP code returned for type ListProvidersNotFound

View Source
const ListProvidersOKCode int = 200

ListProvidersOKCode is the HTTP code returned for type ListProvidersOK

View Source
const ListProvidersUnauthorizedCode int = 401

ListProvidersUnauthorizedCode is the HTTP code returned for type ListProvidersUnauthorized

View Source
const ListProvidersUnderProjectBadRequestCode int = 400

ListProvidersUnderProjectBadRequestCode is the HTTP code returned for type ListProvidersUnderProjectBadRequest

View Source
const ListProvidersUnderProjectForbiddenCode int = 403

ListProvidersUnderProjectForbiddenCode is the HTTP code returned for type ListProvidersUnderProjectForbidden

View Source
const ListProvidersUnderProjectInternalServerErrorCode int = 500

ListProvidersUnderProjectInternalServerErrorCode is the HTTP code returned for type ListProvidersUnderProjectInternalServerError

View Source
const ListProvidersUnderProjectNotFoundCode int = 404

ListProvidersUnderProjectNotFoundCode is the HTTP code returned for type ListProvidersUnderProjectNotFound

View Source
const ListProvidersUnderProjectOKCode int = 200

ListProvidersUnderProjectOKCode is the HTTP code returned for type ListProvidersUnderProjectOK

View Source
const ListProvidersUnderProjectUnauthorizedCode int = 401

ListProvidersUnderProjectUnauthorizedCode is the HTTP code returned for type ListProvidersUnderProjectUnauthorized

View Source
const ListTasksBadRequestCode int = 400

ListTasksBadRequestCode is the HTTP code returned for type ListTasksBadRequest

View Source
const ListTasksForbiddenCode int = 403

ListTasksForbiddenCode is the HTTP code returned for type ListTasksForbidden

View Source
const ListTasksInternalServerErrorCode int = 500

ListTasksInternalServerErrorCode is the HTTP code returned for type ListTasksInternalServerError

View Source
const ListTasksNotFoundCode int = 404

ListTasksNotFoundCode is the HTTP code returned for type ListTasksNotFound

View Source
const ListTasksOKCode int = 200

ListTasksOKCode is the HTTP code returned for type ListTasksOK

View Source
const ListTasksUnauthorizedCode int = 401

ListTasksUnauthorizedCode is the HTTP code returned for type ListTasksUnauthorized

View Source
const ManualPreheatBadRequestCode int = 400

ManualPreheatBadRequestCode is the HTTP code returned for type ManualPreheatBadRequest

View Source
const ManualPreheatCreatedCode int = 201

ManualPreheatCreatedCode is the HTTP code returned for type ManualPreheatCreated

View Source
const ManualPreheatForbiddenCode int = 403

ManualPreheatForbiddenCode is the HTTP code returned for type ManualPreheatForbidden

View Source
const ManualPreheatInternalServerErrorCode int = 500

ManualPreheatInternalServerErrorCode is the HTTP code returned for type ManualPreheatInternalServerError

View Source
const ManualPreheatNotFoundCode int = 404

ManualPreheatNotFoundCode is the HTTP code returned for type ManualPreheatNotFound

View Source
const ManualPreheatUnauthorizedCode int = 401

ManualPreheatUnauthorizedCode is the HTTP code returned for type ManualPreheatUnauthorized

View Source
const PingInstancesBadRequestCode int = 400

PingInstancesBadRequestCode is the HTTP code returned for type PingInstancesBadRequest

View Source
const PingInstancesInternalServerErrorCode int = 500

PingInstancesInternalServerErrorCode is the HTTP code returned for type PingInstancesInternalServerError

View Source
const PingInstancesNotFoundCode int = 404

PingInstancesNotFoundCode is the HTTP code returned for type PingInstancesNotFound

View Source
const PingInstancesOKCode int = 200

PingInstancesOKCode is the HTTP code returned for type PingInstancesOK

View Source
const PingInstancesUnauthorizedCode int = 401

PingInstancesUnauthorizedCode is the HTTP code returned for type PingInstancesUnauthorized

View Source
const StopExecutionBadRequestCode int = 400

StopExecutionBadRequestCode is the HTTP code returned for type StopExecutionBadRequest

View Source
const StopExecutionForbiddenCode int = 403

StopExecutionForbiddenCode is the HTTP code returned for type StopExecutionForbidden

View Source
const StopExecutionInternalServerErrorCode int = 500

StopExecutionInternalServerErrorCode is the HTTP code returned for type StopExecutionInternalServerError

View Source
const StopExecutionNotFoundCode int = 404

StopExecutionNotFoundCode is the HTTP code returned for type StopExecutionNotFound

View Source
const StopExecutionOKCode int = 200

StopExecutionOKCode is the HTTP code returned for type StopExecutionOK

View Source
const StopExecutionUnauthorizedCode int = 401

StopExecutionUnauthorizedCode is the HTTP code returned for type StopExecutionUnauthorized

View Source
const UpdateInstanceBadRequestCode int = 400

UpdateInstanceBadRequestCode is the HTTP code returned for type UpdateInstanceBadRequest

View Source
const UpdateInstanceForbiddenCode int = 403

UpdateInstanceForbiddenCode is the HTTP code returned for type UpdateInstanceForbidden

View Source
const UpdateInstanceInternalServerErrorCode int = 500

UpdateInstanceInternalServerErrorCode is the HTTP code returned for type UpdateInstanceInternalServerError

View Source
const UpdateInstanceNotFoundCode int = 404

UpdateInstanceNotFoundCode is the HTTP code returned for type UpdateInstanceNotFound

View Source
const UpdateInstanceOKCode int = 200

UpdateInstanceOKCode is the HTTP code returned for type UpdateInstanceOK

View Source
const UpdateInstanceUnauthorizedCode int = 401

UpdateInstanceUnauthorizedCode is the HTTP code returned for type UpdateInstanceUnauthorized

View Source
const UpdatePolicyBadRequestCode int = 400

UpdatePolicyBadRequestCode is the HTTP code returned for type UpdatePolicyBadRequest

View Source
const UpdatePolicyConflictCode int = 409

UpdatePolicyConflictCode is the HTTP code returned for type UpdatePolicyConflict

View Source
const UpdatePolicyForbiddenCode int = 403

UpdatePolicyForbiddenCode is the HTTP code returned for type UpdatePolicyForbidden

View Source
const UpdatePolicyInternalServerErrorCode int = 500

UpdatePolicyInternalServerErrorCode is the HTTP code returned for type UpdatePolicyInternalServerError

View Source
const UpdatePolicyNotFoundCode int = 404

UpdatePolicyNotFoundCode is the HTTP code returned for type UpdatePolicyNotFound

View Source
const UpdatePolicyOKCode int = 200

UpdatePolicyOKCode is the HTTP code returned for type UpdatePolicyOK

View Source
const UpdatePolicyUnauthorizedCode int = 401

UpdatePolicyUnauthorizedCode is the HTTP code returned for type UpdatePolicyUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInstance

type CreateInstance struct {
	Context *middleware.Context
	Handler CreateInstanceHandler
}

CreateInstance swagger:route POST /p2p/preheat/instances preheat createInstance

Create p2p provider instances

Create p2p provider instances

func NewCreateInstance

func NewCreateInstance(ctx *middleware.Context, handler CreateInstanceHandler) *CreateInstance

NewCreateInstance creates a new http.Handler for the create instance operation

func (*CreateInstance) ServeHTTP

func (o *CreateInstance) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateInstanceBadRequest

type CreateInstanceBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceBadRequest Bad request

swagger:response createInstanceBadRequest

func NewCreateInstanceBadRequest

func NewCreateInstanceBadRequest() *CreateInstanceBadRequest

NewCreateInstanceBadRequest creates CreateInstanceBadRequest with default headers values

func (*CreateInstanceBadRequest) SetPayload

func (o *CreateInstanceBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance bad request response

func (*CreateInstanceBadRequest) SetXRequestID

func (o *CreateInstanceBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance bad request response

func (*CreateInstanceBadRequest) WithPayload

WithPayload adds the payload to the create instance bad request response

func (*CreateInstanceBadRequest) WithXRequestID

func (o *CreateInstanceBadRequest) WithXRequestID(xRequestID string) *CreateInstanceBadRequest

WithXRequestID adds the xRequestId to the create instance bad request response

func (*CreateInstanceBadRequest) WriteResponse

func (o *CreateInstanceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceConflict

type CreateInstanceConflict struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceConflict Conflict

swagger:response createInstanceConflict

func NewCreateInstanceConflict

func NewCreateInstanceConflict() *CreateInstanceConflict

NewCreateInstanceConflict creates CreateInstanceConflict with default headers values

func (*CreateInstanceConflict) SetPayload

func (o *CreateInstanceConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance conflict response

func (*CreateInstanceConflict) SetXRequestID

func (o *CreateInstanceConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance conflict response

func (*CreateInstanceConflict) WithPayload

func (o *CreateInstanceConflict) WithPayload(payload *models.Errors) *CreateInstanceConflict

WithPayload adds the payload to the create instance conflict response

func (*CreateInstanceConflict) WithXRequestID

func (o *CreateInstanceConflict) WithXRequestID(xRequestID string) *CreateInstanceConflict

WithXRequestID adds the xRequestId to the create instance conflict response

func (*CreateInstanceConflict) WriteResponse

func (o *CreateInstanceConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceCreated

type CreateInstanceCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

CreateInstanceCreated Created

swagger:response createInstanceCreated

func NewCreateInstanceCreated

func NewCreateInstanceCreated() *CreateInstanceCreated

NewCreateInstanceCreated creates CreateInstanceCreated with default headers values

func (*CreateInstanceCreated) SetLocation

func (o *CreateInstanceCreated) SetLocation(location string)

SetLocation sets the location to the create instance created response

func (*CreateInstanceCreated) SetXRequestID

func (o *CreateInstanceCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance created response

func (*CreateInstanceCreated) WithLocation

func (o *CreateInstanceCreated) WithLocation(location string) *CreateInstanceCreated

WithLocation adds the location to the create instance created response

func (*CreateInstanceCreated) WithXRequestID

func (o *CreateInstanceCreated) WithXRequestID(xRequestID string) *CreateInstanceCreated

WithXRequestID adds the xRequestId to the create instance created response

func (*CreateInstanceCreated) WriteResponse

func (o *CreateInstanceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceForbidden

type CreateInstanceForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceForbidden Forbidden

swagger:response createInstanceForbidden

func NewCreateInstanceForbidden

func NewCreateInstanceForbidden() *CreateInstanceForbidden

NewCreateInstanceForbidden creates CreateInstanceForbidden with default headers values

func (*CreateInstanceForbidden) SetPayload

func (o *CreateInstanceForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance forbidden response

func (*CreateInstanceForbidden) SetXRequestID

func (o *CreateInstanceForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance forbidden response

func (*CreateInstanceForbidden) WithPayload

WithPayload adds the payload to the create instance forbidden response

func (*CreateInstanceForbidden) WithXRequestID

func (o *CreateInstanceForbidden) WithXRequestID(xRequestID string) *CreateInstanceForbidden

WithXRequestID adds the xRequestId to the create instance forbidden response

func (*CreateInstanceForbidden) WriteResponse

func (o *CreateInstanceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceHandler

type CreateInstanceHandler interface {
	Handle(CreateInstanceParams, interface{}) middleware.Responder
}

CreateInstanceHandler interface for that can handle valid create instance params

type CreateInstanceHandlerFunc

type CreateInstanceHandlerFunc func(CreateInstanceParams, interface{}) middleware.Responder

CreateInstanceHandlerFunc turns a function with the right signature into a create instance handler

func (CreateInstanceHandlerFunc) Handle

func (fn CreateInstanceHandlerFunc) Handle(params CreateInstanceParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateInstanceInternalServerError

type CreateInstanceInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceInternalServerError Internal server error

swagger:response createInstanceInternalServerError

func NewCreateInstanceInternalServerError

func NewCreateInstanceInternalServerError() *CreateInstanceInternalServerError

NewCreateInstanceInternalServerError creates CreateInstanceInternalServerError with default headers values

func (*CreateInstanceInternalServerError) SetPayload

func (o *CreateInstanceInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance internal server error response

func (*CreateInstanceInternalServerError) SetXRequestID

func (o *CreateInstanceInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance internal server error response

func (*CreateInstanceInternalServerError) WithPayload

WithPayload adds the payload to the create instance internal server error response

func (*CreateInstanceInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the create instance internal server error response

func (*CreateInstanceInternalServerError) WriteResponse

func (o *CreateInstanceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceNotFound

type CreateInstanceNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceNotFound Not found

swagger:response createInstanceNotFound

func NewCreateInstanceNotFound

func NewCreateInstanceNotFound() *CreateInstanceNotFound

NewCreateInstanceNotFound creates CreateInstanceNotFound with default headers values

func (*CreateInstanceNotFound) SetPayload

func (o *CreateInstanceNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance not found response

func (*CreateInstanceNotFound) SetXRequestID

func (o *CreateInstanceNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance not found response

func (*CreateInstanceNotFound) WithPayload

func (o *CreateInstanceNotFound) WithPayload(payload *models.Errors) *CreateInstanceNotFound

WithPayload adds the payload to the create instance not found response

func (*CreateInstanceNotFound) WithXRequestID

func (o *CreateInstanceNotFound) WithXRequestID(xRequestID string) *CreateInstanceNotFound

WithXRequestID adds the xRequestId to the create instance not found response

func (*CreateInstanceNotFound) WriteResponse

func (o *CreateInstanceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateInstanceParams

type CreateInstanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The JSON object of instance.
	  Required: true
	  In: body
	*/
	Instance *models.Instance
}

CreateInstanceParams contains all the bound params for the create instance operation typically these are obtained from a http.Request

swagger:parameters CreateInstance

func NewCreateInstanceParams

func NewCreateInstanceParams() CreateInstanceParams

NewCreateInstanceParams creates a new CreateInstanceParams object no default values defined in spec.

func (*CreateInstanceParams) BindRequest

func (o *CreateInstanceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateInstanceParams() beforehand.

type CreateInstanceURL

type CreateInstanceURL struct {
	// contains filtered or unexported fields
}

CreateInstanceURL generates an URL for the create instance operation

func (*CreateInstanceURL) Build

func (o *CreateInstanceURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateInstanceURL) BuildFull

func (o *CreateInstanceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateInstanceURL) Must

func (o *CreateInstanceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateInstanceURL) SetBasePath

func (o *CreateInstanceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateInstanceURL) String

func (o *CreateInstanceURL) String() string

String returns the string representation of the path with query string

func (*CreateInstanceURL) StringFull

func (o *CreateInstanceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateInstanceURL) WithBasePath

func (o *CreateInstanceURL) WithBasePath(bp string) *CreateInstanceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateInstanceUnauthorized

type CreateInstanceUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateInstanceUnauthorized Unauthorized

swagger:response createInstanceUnauthorized

func NewCreateInstanceUnauthorized

func NewCreateInstanceUnauthorized() *CreateInstanceUnauthorized

NewCreateInstanceUnauthorized creates CreateInstanceUnauthorized with default headers values

func (*CreateInstanceUnauthorized) SetPayload

func (o *CreateInstanceUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create instance unauthorized response

func (*CreateInstanceUnauthorized) SetXRequestID

func (o *CreateInstanceUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create instance unauthorized response

func (*CreateInstanceUnauthorized) WithPayload

WithPayload adds the payload to the create instance unauthorized response

func (*CreateInstanceUnauthorized) WithXRequestID

func (o *CreateInstanceUnauthorized) WithXRequestID(xRequestID string) *CreateInstanceUnauthorized

WithXRequestID adds the xRequestId to the create instance unauthorized response

func (*CreateInstanceUnauthorized) WriteResponse

func (o *CreateInstanceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicy

type CreatePolicy struct {
	Context *middleware.Context
	Handler CreatePolicyHandler
}

CreatePolicy swagger:route POST /projects/{project_name}/preheat/policies preheat createPolicy

Create a preheat policy under a project

Create a preheat policy under a project

func NewCreatePolicy

func NewCreatePolicy(ctx *middleware.Context, handler CreatePolicyHandler) *CreatePolicy

NewCreatePolicy creates a new http.Handler for the create policy operation

func (*CreatePolicy) ServeHTTP

func (o *CreatePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreatePolicyBadRequest

type CreatePolicyBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreatePolicyBadRequest Bad request

swagger:response createPolicyBadRequest

func NewCreatePolicyBadRequest

func NewCreatePolicyBadRequest() *CreatePolicyBadRequest

NewCreatePolicyBadRequest creates CreatePolicyBadRequest with default headers values

func (*CreatePolicyBadRequest) SetPayload

func (o *CreatePolicyBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create policy bad request response

func (*CreatePolicyBadRequest) SetXRequestID

func (o *CreatePolicyBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy bad request response

func (*CreatePolicyBadRequest) WithPayload

func (o *CreatePolicyBadRequest) WithPayload(payload *models.Errors) *CreatePolicyBadRequest

WithPayload adds the payload to the create policy bad request response

func (*CreatePolicyBadRequest) WithXRequestID

func (o *CreatePolicyBadRequest) WithXRequestID(xRequestID string) *CreatePolicyBadRequest

WithXRequestID adds the xRequestId to the create policy bad request response

func (*CreatePolicyBadRequest) WriteResponse

func (o *CreatePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicyConflict

type CreatePolicyConflict struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreatePolicyConflict Conflict

swagger:response createPolicyConflict

func NewCreatePolicyConflict

func NewCreatePolicyConflict() *CreatePolicyConflict

NewCreatePolicyConflict creates CreatePolicyConflict with default headers values

func (*CreatePolicyConflict) SetPayload

func (o *CreatePolicyConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create policy conflict response

func (*CreatePolicyConflict) SetXRequestID

func (o *CreatePolicyConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy conflict response

func (*CreatePolicyConflict) WithPayload

func (o *CreatePolicyConflict) WithPayload(payload *models.Errors) *CreatePolicyConflict

WithPayload adds the payload to the create policy conflict response

func (*CreatePolicyConflict) WithXRequestID

func (o *CreatePolicyConflict) WithXRequestID(xRequestID string) *CreatePolicyConflict

WithXRequestID adds the xRequestId to the create policy conflict response

func (*CreatePolicyConflict) WriteResponse

func (o *CreatePolicyConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicyCreated

type CreatePolicyCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

CreatePolicyCreated Created

swagger:response createPolicyCreated

func NewCreatePolicyCreated

func NewCreatePolicyCreated() *CreatePolicyCreated

NewCreatePolicyCreated creates CreatePolicyCreated with default headers values

func (*CreatePolicyCreated) SetLocation

func (o *CreatePolicyCreated) SetLocation(location string)

SetLocation sets the location to the create policy created response

func (*CreatePolicyCreated) SetXRequestID

func (o *CreatePolicyCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy created response

func (*CreatePolicyCreated) WithLocation

func (o *CreatePolicyCreated) WithLocation(location string) *CreatePolicyCreated

WithLocation adds the location to the create policy created response

func (*CreatePolicyCreated) WithXRequestID

func (o *CreatePolicyCreated) WithXRequestID(xRequestID string) *CreatePolicyCreated

WithXRequestID adds the xRequestId to the create policy created response

func (*CreatePolicyCreated) WriteResponse

func (o *CreatePolicyCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicyForbidden

type CreatePolicyForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreatePolicyForbidden Forbidden

swagger:response createPolicyForbidden

func NewCreatePolicyForbidden

func NewCreatePolicyForbidden() *CreatePolicyForbidden

NewCreatePolicyForbidden creates CreatePolicyForbidden with default headers values

func (*CreatePolicyForbidden) SetPayload

func (o *CreatePolicyForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create policy forbidden response

func (*CreatePolicyForbidden) SetXRequestID

func (o *CreatePolicyForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy forbidden response

func (*CreatePolicyForbidden) WithPayload

func (o *CreatePolicyForbidden) WithPayload(payload *models.Errors) *CreatePolicyForbidden

WithPayload adds the payload to the create policy forbidden response

func (*CreatePolicyForbidden) WithXRequestID

func (o *CreatePolicyForbidden) WithXRequestID(xRequestID string) *CreatePolicyForbidden

WithXRequestID adds the xRequestId to the create policy forbidden response

func (*CreatePolicyForbidden) WriteResponse

func (o *CreatePolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicyHandler

type CreatePolicyHandler interface {
	Handle(CreatePolicyParams, interface{}) middleware.Responder
}

CreatePolicyHandler interface for that can handle valid create policy params

type CreatePolicyHandlerFunc

type CreatePolicyHandlerFunc func(CreatePolicyParams, interface{}) middleware.Responder

CreatePolicyHandlerFunc turns a function with the right signature into a create policy handler

func (CreatePolicyHandlerFunc) Handle

func (fn CreatePolicyHandlerFunc) Handle(params CreatePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreatePolicyInternalServerError

type CreatePolicyInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreatePolicyInternalServerError Internal server error

swagger:response createPolicyInternalServerError

func NewCreatePolicyInternalServerError

func NewCreatePolicyInternalServerError() *CreatePolicyInternalServerError

NewCreatePolicyInternalServerError creates CreatePolicyInternalServerError with default headers values

func (*CreatePolicyInternalServerError) SetPayload

func (o *CreatePolicyInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create policy internal server error response

func (*CreatePolicyInternalServerError) SetXRequestID

func (o *CreatePolicyInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy internal server error response

func (*CreatePolicyInternalServerError) WithPayload

WithPayload adds the payload to the create policy internal server error response

func (*CreatePolicyInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the create policy internal server error response

func (*CreatePolicyInternalServerError) WriteResponse

func (o *CreatePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePolicyParams

type CreatePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The policy schema info
	  Required: true
	  In: body
	*/
	Policy *models.PreheatPolicy
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

CreatePolicyParams contains all the bound params for the create policy operation typically these are obtained from a http.Request

swagger:parameters CreatePolicy

func NewCreatePolicyParams

func NewCreatePolicyParams() CreatePolicyParams

NewCreatePolicyParams creates a new CreatePolicyParams object no default values defined in spec.

func (*CreatePolicyParams) BindRequest

func (o *CreatePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreatePolicyParams() beforehand.

type CreatePolicyURL

type CreatePolicyURL struct {
	ProjectName string
	// contains filtered or unexported fields
}

CreatePolicyURL generates an URL for the create policy operation

func (*CreatePolicyURL) Build

func (o *CreatePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreatePolicyURL) BuildFull

func (o *CreatePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreatePolicyURL) Must

func (o *CreatePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreatePolicyURL) SetBasePath

func (o *CreatePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreatePolicyURL) String

func (o *CreatePolicyURL) String() string

String returns the string representation of the path with query string

func (*CreatePolicyURL) StringFull

func (o *CreatePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreatePolicyURL) WithBasePath

func (o *CreatePolicyURL) WithBasePath(bp string) *CreatePolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreatePolicyUnauthorized

type CreatePolicyUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreatePolicyUnauthorized Unauthorized

swagger:response createPolicyUnauthorized

func NewCreatePolicyUnauthorized

func NewCreatePolicyUnauthorized() *CreatePolicyUnauthorized

NewCreatePolicyUnauthorized creates CreatePolicyUnauthorized with default headers values

func (*CreatePolicyUnauthorized) SetPayload

func (o *CreatePolicyUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create policy unauthorized response

func (*CreatePolicyUnauthorized) SetXRequestID

func (o *CreatePolicyUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create policy unauthorized response

func (*CreatePolicyUnauthorized) WithPayload

WithPayload adds the payload to the create policy unauthorized response

func (*CreatePolicyUnauthorized) WithXRequestID

func (o *CreatePolicyUnauthorized) WithXRequestID(xRequestID string) *CreatePolicyUnauthorized

WithXRequestID adds the xRequestId to the create policy unauthorized response

func (*CreatePolicyUnauthorized) WriteResponse

func (o *CreatePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteInstance

type DeleteInstance struct {
	Context *middleware.Context
	Handler DeleteInstanceHandler
}

DeleteInstance swagger:route DELETE /p2p/preheat/instances/{preheat_instance_name} preheat deleteInstance

Delete the specified P2P provider instance

Delete the specified P2P provider instance

func NewDeleteInstance

func NewDeleteInstance(ctx *middleware.Context, handler DeleteInstanceHandler) *DeleteInstance

NewDeleteInstance creates a new http.Handler for the delete instance operation

func (*DeleteInstance) ServeHTTP

func (o *DeleteInstance) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteInstanceForbidden

type DeleteInstanceForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeleteInstanceForbidden Forbidden

swagger:response deleteInstanceForbidden

func NewDeleteInstanceForbidden

func NewDeleteInstanceForbidden() *DeleteInstanceForbidden

NewDeleteInstanceForbidden creates DeleteInstanceForbidden with default headers values

func (*DeleteInstanceForbidden) SetPayload

func (o *DeleteInstanceForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete instance forbidden response

func (*DeleteInstanceForbidden) SetXRequestID

func (o *DeleteInstanceForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete instance forbidden response

func (*DeleteInstanceForbidden) WithPayload

WithPayload adds the payload to the delete instance forbidden response

func (*DeleteInstanceForbidden) WithXRequestID

func (o *DeleteInstanceForbidden) WithXRequestID(xRequestID string) *DeleteInstanceForbidden

WithXRequestID adds the xRequestId to the delete instance forbidden response

func (*DeleteInstanceForbidden) WriteResponse

func (o *DeleteInstanceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteInstanceHandler

type DeleteInstanceHandler interface {
	Handle(DeleteInstanceParams, interface{}) middleware.Responder
}

DeleteInstanceHandler interface for that can handle valid delete instance params

type DeleteInstanceHandlerFunc

type DeleteInstanceHandlerFunc func(DeleteInstanceParams, interface{}) middleware.Responder

DeleteInstanceHandlerFunc turns a function with the right signature into a delete instance handler

func (DeleteInstanceHandlerFunc) Handle

func (fn DeleteInstanceHandlerFunc) Handle(params DeleteInstanceParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteInstanceInternalServerError

type DeleteInstanceInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeleteInstanceInternalServerError Internal server error

swagger:response deleteInstanceInternalServerError

func NewDeleteInstanceInternalServerError

func NewDeleteInstanceInternalServerError() *DeleteInstanceInternalServerError

NewDeleteInstanceInternalServerError creates DeleteInstanceInternalServerError with default headers values

func (*DeleteInstanceInternalServerError) SetPayload

func (o *DeleteInstanceInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete instance internal server error response

func (*DeleteInstanceInternalServerError) SetXRequestID

func (o *DeleteInstanceInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete instance internal server error response

func (*DeleteInstanceInternalServerError) WithPayload

WithPayload adds the payload to the delete instance internal server error response

func (*DeleteInstanceInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the delete instance internal server error response

func (*DeleteInstanceInternalServerError) WriteResponse

func (o *DeleteInstanceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteInstanceNotFound

type DeleteInstanceNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeleteInstanceNotFound Not found

swagger:response deleteInstanceNotFound

func NewDeleteInstanceNotFound

func NewDeleteInstanceNotFound() *DeleteInstanceNotFound

NewDeleteInstanceNotFound creates DeleteInstanceNotFound with default headers values

func (*DeleteInstanceNotFound) SetPayload

func (o *DeleteInstanceNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete instance not found response

func (*DeleteInstanceNotFound) SetXRequestID

func (o *DeleteInstanceNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete instance not found response

func (*DeleteInstanceNotFound) WithPayload

func (o *DeleteInstanceNotFound) WithPayload(payload *models.Errors) *DeleteInstanceNotFound

WithPayload adds the payload to the delete instance not found response

func (*DeleteInstanceNotFound) WithXRequestID

func (o *DeleteInstanceNotFound) WithXRequestID(xRequestID string) *DeleteInstanceNotFound

WithXRequestID adds the xRequestId to the delete instance not found response

func (*DeleteInstanceNotFound) WriteResponse

func (o *DeleteInstanceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteInstanceOK

type DeleteInstanceOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

DeleteInstanceOK Success

swagger:response deleteInstanceOK

func NewDeleteInstanceOK

func NewDeleteInstanceOK() *DeleteInstanceOK

NewDeleteInstanceOK creates DeleteInstanceOK with default headers values

func (*DeleteInstanceOK) SetXRequestID

func (o *DeleteInstanceOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete instance o k response

func (*DeleteInstanceOK) WithXRequestID

func (o *DeleteInstanceOK) WithXRequestID(xRequestID string) *DeleteInstanceOK

WithXRequestID adds the xRequestId to the delete instance o k response

func (*DeleteInstanceOK) WriteResponse

func (o *DeleteInstanceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteInstanceParams

type DeleteInstanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Instance Name
	  Required: true
	  In: path
	*/
	PreheatInstanceName string
}

DeleteInstanceParams contains all the bound params for the delete instance operation typically these are obtained from a http.Request

swagger:parameters DeleteInstance

func NewDeleteInstanceParams

func NewDeleteInstanceParams() DeleteInstanceParams

NewDeleteInstanceParams creates a new DeleteInstanceParams object no default values defined in spec.

func (*DeleteInstanceParams) BindRequest

func (o *DeleteInstanceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteInstanceParams() beforehand.

type DeleteInstanceURL

type DeleteInstanceURL struct {
	PreheatInstanceName string
	// contains filtered or unexported fields
}

DeleteInstanceURL generates an URL for the delete instance operation

func (*DeleteInstanceURL) Build

func (o *DeleteInstanceURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteInstanceURL) BuildFull

func (o *DeleteInstanceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteInstanceURL) Must

func (o *DeleteInstanceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteInstanceURL) SetBasePath

func (o *DeleteInstanceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteInstanceURL) String

func (o *DeleteInstanceURL) String() string

String returns the string representation of the path with query string

func (*DeleteInstanceURL) StringFull

func (o *DeleteInstanceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteInstanceURL) WithBasePath

func (o *DeleteInstanceURL) WithBasePath(bp string) *DeleteInstanceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteInstanceUnauthorized

type DeleteInstanceUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeleteInstanceUnauthorized Unauthorized

swagger:response deleteInstanceUnauthorized

func NewDeleteInstanceUnauthorized

func NewDeleteInstanceUnauthorized() *DeleteInstanceUnauthorized

NewDeleteInstanceUnauthorized creates DeleteInstanceUnauthorized with default headers values

func (*DeleteInstanceUnauthorized) SetPayload

func (o *DeleteInstanceUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete instance unauthorized response

func (*DeleteInstanceUnauthorized) SetXRequestID

func (o *DeleteInstanceUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete instance unauthorized response

func (*DeleteInstanceUnauthorized) WithPayload

WithPayload adds the payload to the delete instance unauthorized response

func (*DeleteInstanceUnauthorized) WithXRequestID

func (o *DeleteInstanceUnauthorized) WithXRequestID(xRequestID string) *DeleteInstanceUnauthorized

WithXRequestID adds the xRequestId to the delete instance unauthorized response

func (*DeleteInstanceUnauthorized) WriteResponse

func (o *DeleteInstanceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicy

type DeletePolicy struct {
	Context *middleware.Context
	Handler DeletePolicyHandler
}

DeletePolicy swagger:route DELETE /projects/{project_name}/preheat/policies/{preheat_policy_name} preheat deletePolicy

Delete a preheat policy

Delete a preheat policy

func NewDeletePolicy

func NewDeletePolicy(ctx *middleware.Context, handler DeletePolicyHandler) *DeletePolicy

NewDeletePolicy creates a new http.Handler for the delete policy operation

func (*DeletePolicy) ServeHTTP

func (o *DeletePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeletePolicyBadRequest

type DeletePolicyBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeletePolicyBadRequest Bad request

swagger:response deletePolicyBadRequest

func NewDeletePolicyBadRequest

func NewDeletePolicyBadRequest() *DeletePolicyBadRequest

NewDeletePolicyBadRequest creates DeletePolicyBadRequest with default headers values

func (*DeletePolicyBadRequest) SetPayload

func (o *DeletePolicyBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) SetXRequestID

func (o *DeletePolicyBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy bad request response

func (*DeletePolicyBadRequest) WithPayload

func (o *DeletePolicyBadRequest) WithPayload(payload *models.Errors) *DeletePolicyBadRequest

WithPayload adds the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) WithXRequestID

func (o *DeletePolicyBadRequest) WithXRequestID(xRequestID string) *DeletePolicyBadRequest

WithXRequestID adds the xRequestId to the delete policy bad request response

func (*DeletePolicyBadRequest) WriteResponse

func (o *DeletePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyForbidden

type DeletePolicyForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeletePolicyForbidden Forbidden

swagger:response deletePolicyForbidden

func NewDeletePolicyForbidden

func NewDeletePolicyForbidden() *DeletePolicyForbidden

NewDeletePolicyForbidden creates DeletePolicyForbidden with default headers values

func (*DeletePolicyForbidden) SetPayload

func (o *DeletePolicyForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete policy forbidden response

func (*DeletePolicyForbidden) SetXRequestID

func (o *DeletePolicyForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy forbidden response

func (*DeletePolicyForbidden) WithPayload

func (o *DeletePolicyForbidden) WithPayload(payload *models.Errors) *DeletePolicyForbidden

WithPayload adds the payload to the delete policy forbidden response

func (*DeletePolicyForbidden) WithXRequestID

func (o *DeletePolicyForbidden) WithXRequestID(xRequestID string) *DeletePolicyForbidden

WithXRequestID adds the xRequestId to the delete policy forbidden response

func (*DeletePolicyForbidden) WriteResponse

func (o *DeletePolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyHandler

type DeletePolicyHandler interface {
	Handle(DeletePolicyParams, interface{}) middleware.Responder
}

DeletePolicyHandler interface for that can handle valid delete policy params

type DeletePolicyHandlerFunc

type DeletePolicyHandlerFunc func(DeletePolicyParams, interface{}) middleware.Responder

DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler

func (DeletePolicyHandlerFunc) Handle

func (fn DeletePolicyHandlerFunc) Handle(params DeletePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeletePolicyInternalServerError

type DeletePolicyInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeletePolicyInternalServerError Internal server error

swagger:response deletePolicyInternalServerError

func NewDeletePolicyInternalServerError

func NewDeletePolicyInternalServerError() *DeletePolicyInternalServerError

NewDeletePolicyInternalServerError creates DeletePolicyInternalServerError with default headers values

func (*DeletePolicyInternalServerError) SetPayload

func (o *DeletePolicyInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete policy internal server error response

func (*DeletePolicyInternalServerError) SetXRequestID

func (o *DeletePolicyInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy internal server error response

func (*DeletePolicyInternalServerError) WithPayload

WithPayload adds the payload to the delete policy internal server error response

func (*DeletePolicyInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the delete policy internal server error response

func (*DeletePolicyInternalServerError) WriteResponse

func (o *DeletePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyNotFound

type DeletePolicyNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeletePolicyNotFound Not found

swagger:response deletePolicyNotFound

func NewDeletePolicyNotFound

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) SetPayload

func (o *DeletePolicyNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete policy not found response

func (*DeletePolicyNotFound) SetXRequestID

func (o *DeletePolicyNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy not found response

func (*DeletePolicyNotFound) WithPayload

func (o *DeletePolicyNotFound) WithPayload(payload *models.Errors) *DeletePolicyNotFound

WithPayload adds the payload to the delete policy not found response

func (*DeletePolicyNotFound) WithXRequestID

func (o *DeletePolicyNotFound) WithXRequestID(xRequestID string) *DeletePolicyNotFound

WithXRequestID adds the xRequestId to the delete policy not found response

func (*DeletePolicyNotFound) WriteResponse

func (o *DeletePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyOK

type DeletePolicyOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

DeletePolicyOK Success

swagger:response deletePolicyOK

func NewDeletePolicyOK

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates DeletePolicyOK with default headers values

func (*DeletePolicyOK) SetXRequestID

func (o *DeletePolicyOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy o k response

func (*DeletePolicyOK) WithXRequestID

func (o *DeletePolicyOK) WithXRequestID(xRequestID string) *DeletePolicyOK

WithXRequestID adds the xRequestId to the delete policy o k response

func (*DeletePolicyOK) WriteResponse

func (o *DeletePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyParams

type DeletePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

DeletePolicyParams contains all the bound params for the delete policy operation typically these are obtained from a http.Request

swagger:parameters DeletePolicy

func NewDeletePolicyParams

func NewDeletePolicyParams() DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams object no default values defined in spec.

func (*DeletePolicyParams) BindRequest

func (o *DeletePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeletePolicyParams() beforehand.

type DeletePolicyURL

type DeletePolicyURL struct {
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

DeletePolicyURL generates an URL for the delete policy operation

func (*DeletePolicyURL) Build

func (o *DeletePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeletePolicyURL) BuildFull

func (o *DeletePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeletePolicyURL) Must

func (o *DeletePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeletePolicyURL) SetBasePath

func (o *DeletePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeletePolicyURL) String

func (o *DeletePolicyURL) String() string

String returns the string representation of the path with query string

func (*DeletePolicyURL) StringFull

func (o *DeletePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeletePolicyURL) WithBasePath

func (o *DeletePolicyURL) WithBasePath(bp string) *DeletePolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeletePolicyUnauthorized

type DeletePolicyUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

DeletePolicyUnauthorized Unauthorized

swagger:response deletePolicyUnauthorized

func NewDeletePolicyUnauthorized

func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized

NewDeletePolicyUnauthorized creates DeletePolicyUnauthorized with default headers values

func (*DeletePolicyUnauthorized) SetPayload

func (o *DeletePolicyUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) SetXRequestID

func (o *DeletePolicyUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) WithPayload

WithPayload adds the payload to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) WithXRequestID

func (o *DeletePolicyUnauthorized) WithXRequestID(xRequestID string) *DeletePolicyUnauthorized

WithXRequestID adds the xRequestId to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) WriteResponse

func (o *DeletePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecution

type GetExecution struct {
	Context *middleware.Context
	Handler GetExecutionHandler
}

GetExecution swagger:route GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id} preheat getExecution

Get a execution detail by id

Get a execution detail by id

func NewGetExecution

func NewGetExecution(ctx *middleware.Context, handler GetExecutionHandler) *GetExecution

NewGetExecution creates a new http.Handler for the get execution operation

func (*GetExecution) ServeHTTP

func (o *GetExecution) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetExecutionBadRequest

type GetExecutionBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetExecutionBadRequest Bad request

swagger:response getExecutionBadRequest

func NewGetExecutionBadRequest

func NewGetExecutionBadRequest() *GetExecutionBadRequest

NewGetExecutionBadRequest creates GetExecutionBadRequest with default headers values

func (*GetExecutionBadRequest) SetPayload

func (o *GetExecutionBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get execution bad request response

func (*GetExecutionBadRequest) SetXRequestID

func (o *GetExecutionBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get execution bad request response

func (*GetExecutionBadRequest) WithPayload

func (o *GetExecutionBadRequest) WithPayload(payload *models.Errors) *GetExecutionBadRequest

WithPayload adds the payload to the get execution bad request response

func (*GetExecutionBadRequest) WithXRequestID

func (o *GetExecutionBadRequest) WithXRequestID(xRequestID string) *GetExecutionBadRequest

WithXRequestID adds the xRequestId to the get execution bad request response

func (*GetExecutionBadRequest) WriteResponse

func (o *GetExecutionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecutionForbidden

type GetExecutionForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetExecutionForbidden Forbidden

swagger:response getExecutionForbidden

func NewGetExecutionForbidden

func NewGetExecutionForbidden() *GetExecutionForbidden

NewGetExecutionForbidden creates GetExecutionForbidden with default headers values

func (*GetExecutionForbidden) SetPayload

func (o *GetExecutionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get execution forbidden response

func (*GetExecutionForbidden) SetXRequestID

func (o *GetExecutionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get execution forbidden response

func (*GetExecutionForbidden) WithPayload

func (o *GetExecutionForbidden) WithPayload(payload *models.Errors) *GetExecutionForbidden

WithPayload adds the payload to the get execution forbidden response

func (*GetExecutionForbidden) WithXRequestID

func (o *GetExecutionForbidden) WithXRequestID(xRequestID string) *GetExecutionForbidden

WithXRequestID adds the xRequestId to the get execution forbidden response

func (*GetExecutionForbidden) WriteResponse

func (o *GetExecutionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecutionHandler

type GetExecutionHandler interface {
	Handle(GetExecutionParams, interface{}) middleware.Responder
}

GetExecutionHandler interface for that can handle valid get execution params

type GetExecutionHandlerFunc

type GetExecutionHandlerFunc func(GetExecutionParams, interface{}) middleware.Responder

GetExecutionHandlerFunc turns a function with the right signature into a get execution handler

func (GetExecutionHandlerFunc) Handle

func (fn GetExecutionHandlerFunc) Handle(params GetExecutionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetExecutionInternalServerError

type GetExecutionInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetExecutionInternalServerError Internal server error

swagger:response getExecutionInternalServerError

func NewGetExecutionInternalServerError

func NewGetExecutionInternalServerError() *GetExecutionInternalServerError

NewGetExecutionInternalServerError creates GetExecutionInternalServerError with default headers values

func (*GetExecutionInternalServerError) SetPayload

func (o *GetExecutionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get execution internal server error response

func (*GetExecutionInternalServerError) SetXRequestID

func (o *GetExecutionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get execution internal server error response

func (*GetExecutionInternalServerError) WithPayload

WithPayload adds the payload to the get execution internal server error response

func (*GetExecutionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get execution internal server error response

func (*GetExecutionInternalServerError) WriteResponse

func (o *GetExecutionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecutionNotFound

type GetExecutionNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetExecutionNotFound Not found

swagger:response getExecutionNotFound

func NewGetExecutionNotFound

func NewGetExecutionNotFound() *GetExecutionNotFound

NewGetExecutionNotFound creates GetExecutionNotFound with default headers values

func (*GetExecutionNotFound) SetPayload

func (o *GetExecutionNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get execution not found response

func (*GetExecutionNotFound) SetXRequestID

func (o *GetExecutionNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get execution not found response

func (*GetExecutionNotFound) WithPayload

func (o *GetExecutionNotFound) WithPayload(payload *models.Errors) *GetExecutionNotFound

WithPayload adds the payload to the get execution not found response

func (*GetExecutionNotFound) WithXRequestID

func (o *GetExecutionNotFound) WithXRequestID(xRequestID string) *GetExecutionNotFound

WithXRequestID adds the xRequestId to the get execution not found response

func (*GetExecutionNotFound) WriteResponse

func (o *GetExecutionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecutionOK

type GetExecutionOK struct {

	/*
	  In: Body
	*/
	Payload *models.Execution `json:"body,omitempty"`
}

GetExecutionOK Get execution success

swagger:response getExecutionOK

func NewGetExecutionOK

func NewGetExecutionOK() *GetExecutionOK

NewGetExecutionOK creates GetExecutionOK with default headers values

func (*GetExecutionOK) SetPayload

func (o *GetExecutionOK) SetPayload(payload *models.Execution)

SetPayload sets the payload to the get execution o k response

func (*GetExecutionOK) WithPayload

func (o *GetExecutionOK) WithPayload(payload *models.Execution) *GetExecutionOK

WithPayload adds the payload to the get execution o k response

func (*GetExecutionOK) WriteResponse

func (o *GetExecutionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetExecutionParams

type GetExecutionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Execution ID
	  Required: true
	  In: path
	*/
	ExecutionID int64
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

GetExecutionParams contains all the bound params for the get execution operation typically these are obtained from a http.Request

swagger:parameters GetExecution

func NewGetExecutionParams

func NewGetExecutionParams() GetExecutionParams

NewGetExecutionParams creates a new GetExecutionParams object no default values defined in spec.

func (*GetExecutionParams) BindRequest

func (o *GetExecutionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetExecutionParams() beforehand.

type GetExecutionURL

type GetExecutionURL struct {
	ExecutionID       int64
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

GetExecutionURL generates an URL for the get execution operation

func (*GetExecutionURL) Build

func (o *GetExecutionURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetExecutionURL) BuildFull

func (o *GetExecutionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetExecutionURL) Must

func (o *GetExecutionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetExecutionURL) SetBasePath

func (o *GetExecutionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetExecutionURL) String

func (o *GetExecutionURL) String() string

String returns the string representation of the path with query string

func (*GetExecutionURL) StringFull

func (o *GetExecutionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetExecutionURL) WithBasePath

func (o *GetExecutionURL) WithBasePath(bp string) *GetExecutionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetExecutionUnauthorized

type GetExecutionUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetExecutionUnauthorized Unauthorized

swagger:response getExecutionUnauthorized

func NewGetExecutionUnauthorized

func NewGetExecutionUnauthorized() *GetExecutionUnauthorized

NewGetExecutionUnauthorized creates GetExecutionUnauthorized with default headers values

func (*GetExecutionUnauthorized) SetPayload

func (o *GetExecutionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get execution unauthorized response

func (*GetExecutionUnauthorized) SetXRequestID

func (o *GetExecutionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get execution unauthorized response

func (*GetExecutionUnauthorized) WithPayload

WithPayload adds the payload to the get execution unauthorized response

func (*GetExecutionUnauthorized) WithXRequestID

func (o *GetExecutionUnauthorized) WithXRequestID(xRequestID string) *GetExecutionUnauthorized

WithXRequestID adds the xRequestId to the get execution unauthorized response

func (*GetExecutionUnauthorized) WriteResponse

func (o *GetExecutionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstance

type GetInstance struct {
	Context *middleware.Context
	Handler GetInstanceHandler
}

GetInstance swagger:route GET /p2p/preheat/instances/{preheat_instance_name} preheat getInstance

Get a P2P provider instance

Get a P2P provider instance

func NewGetInstance

func NewGetInstance(ctx *middleware.Context, handler GetInstanceHandler) *GetInstance

NewGetInstance creates a new http.Handler for the get instance operation

func (*GetInstance) ServeHTTP

func (o *GetInstance) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetInstanceBadRequest

type GetInstanceBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetInstanceBadRequest Bad request

swagger:response getInstanceBadRequest

func NewGetInstanceBadRequest

func NewGetInstanceBadRequest() *GetInstanceBadRequest

NewGetInstanceBadRequest creates GetInstanceBadRequest with default headers values

func (*GetInstanceBadRequest) SetPayload

func (o *GetInstanceBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get instance bad request response

func (*GetInstanceBadRequest) SetXRequestID

func (o *GetInstanceBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get instance bad request response

func (*GetInstanceBadRequest) WithPayload

func (o *GetInstanceBadRequest) WithPayload(payload *models.Errors) *GetInstanceBadRequest

WithPayload adds the payload to the get instance bad request response

func (*GetInstanceBadRequest) WithXRequestID

func (o *GetInstanceBadRequest) WithXRequestID(xRequestID string) *GetInstanceBadRequest

WithXRequestID adds the xRequestId to the get instance bad request response

func (*GetInstanceBadRequest) WriteResponse

func (o *GetInstanceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstanceForbidden

type GetInstanceForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetInstanceForbidden Forbidden

swagger:response getInstanceForbidden

func NewGetInstanceForbidden

func NewGetInstanceForbidden() *GetInstanceForbidden

NewGetInstanceForbidden creates GetInstanceForbidden with default headers values

func (*GetInstanceForbidden) SetPayload

func (o *GetInstanceForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get instance forbidden response

func (*GetInstanceForbidden) SetXRequestID

func (o *GetInstanceForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get instance forbidden response

func (*GetInstanceForbidden) WithPayload

func (o *GetInstanceForbidden) WithPayload(payload *models.Errors) *GetInstanceForbidden

WithPayload adds the payload to the get instance forbidden response

func (*GetInstanceForbidden) WithXRequestID

func (o *GetInstanceForbidden) WithXRequestID(xRequestID string) *GetInstanceForbidden

WithXRequestID adds the xRequestId to the get instance forbidden response

func (*GetInstanceForbidden) WriteResponse

func (o *GetInstanceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstanceHandler

type GetInstanceHandler interface {
	Handle(GetInstanceParams, interface{}) middleware.Responder
}

GetInstanceHandler interface for that can handle valid get instance params

type GetInstanceHandlerFunc

type GetInstanceHandlerFunc func(GetInstanceParams, interface{}) middleware.Responder

GetInstanceHandlerFunc turns a function with the right signature into a get instance handler

func (GetInstanceHandlerFunc) Handle

func (fn GetInstanceHandlerFunc) Handle(params GetInstanceParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetInstanceInternalServerError

type GetInstanceInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetInstanceInternalServerError Internal server error

swagger:response getInstanceInternalServerError

func NewGetInstanceInternalServerError

func NewGetInstanceInternalServerError() *GetInstanceInternalServerError

NewGetInstanceInternalServerError creates GetInstanceInternalServerError with default headers values

func (*GetInstanceInternalServerError) SetPayload

func (o *GetInstanceInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get instance internal server error response

func (*GetInstanceInternalServerError) SetXRequestID

func (o *GetInstanceInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get instance internal server error response

func (*GetInstanceInternalServerError) WithPayload

WithPayload adds the payload to the get instance internal server error response

func (*GetInstanceInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get instance internal server error response

func (*GetInstanceInternalServerError) WriteResponse

func (o *GetInstanceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstanceNotFound

type GetInstanceNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetInstanceNotFound Not found

swagger:response getInstanceNotFound

func NewGetInstanceNotFound

func NewGetInstanceNotFound() *GetInstanceNotFound

NewGetInstanceNotFound creates GetInstanceNotFound with default headers values

func (*GetInstanceNotFound) SetPayload

func (o *GetInstanceNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get instance not found response

func (*GetInstanceNotFound) SetXRequestID

func (o *GetInstanceNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get instance not found response

func (*GetInstanceNotFound) WithPayload

func (o *GetInstanceNotFound) WithPayload(payload *models.Errors) *GetInstanceNotFound

WithPayload adds the payload to the get instance not found response

func (*GetInstanceNotFound) WithXRequestID

func (o *GetInstanceNotFound) WithXRequestID(xRequestID string) *GetInstanceNotFound

WithXRequestID adds the xRequestId to the get instance not found response

func (*GetInstanceNotFound) WriteResponse

func (o *GetInstanceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstanceOK

type GetInstanceOK struct {

	/*
	  In: Body
	*/
	Payload *models.Instance `json:"body,omitempty"`
}

GetInstanceOK Success

swagger:response getInstanceOK

func NewGetInstanceOK

func NewGetInstanceOK() *GetInstanceOK

NewGetInstanceOK creates GetInstanceOK with default headers values

func (*GetInstanceOK) SetPayload

func (o *GetInstanceOK) SetPayload(payload *models.Instance)

SetPayload sets the payload to the get instance o k response

func (*GetInstanceOK) WithPayload

func (o *GetInstanceOK) WithPayload(payload *models.Instance) *GetInstanceOK

WithPayload adds the payload to the get instance o k response

func (*GetInstanceOK) WriteResponse

func (o *GetInstanceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetInstanceParams

type GetInstanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Instance Name
	  Required: true
	  In: path
	*/
	PreheatInstanceName string
}

GetInstanceParams contains all the bound params for the get instance operation typically these are obtained from a http.Request

swagger:parameters GetInstance

func NewGetInstanceParams

func NewGetInstanceParams() GetInstanceParams

NewGetInstanceParams creates a new GetInstanceParams object no default values defined in spec.

func (*GetInstanceParams) BindRequest

func (o *GetInstanceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetInstanceParams() beforehand.

type GetInstanceURL

type GetInstanceURL struct {
	PreheatInstanceName string
	// contains filtered or unexported fields
}

GetInstanceURL generates an URL for the get instance operation

func (*GetInstanceURL) Build

func (o *GetInstanceURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetInstanceURL) BuildFull

func (o *GetInstanceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetInstanceURL) Must

func (o *GetInstanceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetInstanceURL) SetBasePath

func (o *GetInstanceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetInstanceURL) String

func (o *GetInstanceURL) String() string

String returns the string representation of the path with query string

func (*GetInstanceURL) StringFull

func (o *GetInstanceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetInstanceURL) WithBasePath

func (o *GetInstanceURL) WithBasePath(bp string) *GetInstanceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetInstanceUnauthorized

type GetInstanceUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetInstanceUnauthorized Unauthorized

swagger:response getInstanceUnauthorized

func NewGetInstanceUnauthorized

func NewGetInstanceUnauthorized() *GetInstanceUnauthorized

NewGetInstanceUnauthorized creates GetInstanceUnauthorized with default headers values

func (*GetInstanceUnauthorized) SetPayload

func (o *GetInstanceUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get instance unauthorized response

func (*GetInstanceUnauthorized) SetXRequestID

func (o *GetInstanceUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get instance unauthorized response

func (*GetInstanceUnauthorized) WithPayload

WithPayload adds the payload to the get instance unauthorized response

func (*GetInstanceUnauthorized) WithXRequestID

func (o *GetInstanceUnauthorized) WithXRequestID(xRequestID string) *GetInstanceUnauthorized

WithXRequestID adds the xRequestId to the get instance unauthorized response

func (*GetInstanceUnauthorized) WriteResponse

func (o *GetInstanceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicy

type GetPolicy struct {
	Context *middleware.Context
	Handler GetPolicyHandler
}

GetPolicy swagger:route GET /projects/{project_name}/preheat/policies/{preheat_policy_name} preheat getPolicy

Get a preheat policy

Get a preheat policy

func NewGetPolicy

func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy

NewGetPolicy creates a new http.Handler for the get policy operation

func (*GetPolicy) ServeHTTP

func (o *GetPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPolicyBadRequest

type GetPolicyBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPolicyBadRequest Bad request

swagger:response getPolicyBadRequest

func NewGetPolicyBadRequest

func NewGetPolicyBadRequest() *GetPolicyBadRequest

NewGetPolicyBadRequest creates GetPolicyBadRequest with default headers values

func (*GetPolicyBadRequest) SetPayload

func (o *GetPolicyBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get policy bad request response

func (*GetPolicyBadRequest) SetXRequestID

func (o *GetPolicyBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get policy bad request response

func (*GetPolicyBadRequest) WithPayload

func (o *GetPolicyBadRequest) WithPayload(payload *models.Errors) *GetPolicyBadRequest

WithPayload adds the payload to the get policy bad request response

func (*GetPolicyBadRequest) WithXRequestID

func (o *GetPolicyBadRequest) WithXRequestID(xRequestID string) *GetPolicyBadRequest

WithXRequestID adds the xRequestId to the get policy bad request response

func (*GetPolicyBadRequest) WriteResponse

func (o *GetPolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyForbidden

type GetPolicyForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPolicyForbidden Forbidden

swagger:response getPolicyForbidden

func NewGetPolicyForbidden

func NewGetPolicyForbidden() *GetPolicyForbidden

NewGetPolicyForbidden creates GetPolicyForbidden with default headers values

func (*GetPolicyForbidden) SetPayload

func (o *GetPolicyForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get policy forbidden response

func (*GetPolicyForbidden) SetXRequestID

func (o *GetPolicyForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get policy forbidden response

func (*GetPolicyForbidden) WithPayload

func (o *GetPolicyForbidden) WithPayload(payload *models.Errors) *GetPolicyForbidden

WithPayload adds the payload to the get policy forbidden response

func (*GetPolicyForbidden) WithXRequestID

func (o *GetPolicyForbidden) WithXRequestID(xRequestID string) *GetPolicyForbidden

WithXRequestID adds the xRequestId to the get policy forbidden response

func (*GetPolicyForbidden) WriteResponse

func (o *GetPolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyHandler

type GetPolicyHandler interface {
	Handle(GetPolicyParams, interface{}) middleware.Responder
}

GetPolicyHandler interface for that can handle valid get policy params

type GetPolicyHandlerFunc

type GetPolicyHandlerFunc func(GetPolicyParams, interface{}) middleware.Responder

GetPolicyHandlerFunc turns a function with the right signature into a get policy handler

func (GetPolicyHandlerFunc) Handle

func (fn GetPolicyHandlerFunc) Handle(params GetPolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPolicyInternalServerError

type GetPolicyInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPolicyInternalServerError Internal server error

swagger:response getPolicyInternalServerError

func NewGetPolicyInternalServerError

func NewGetPolicyInternalServerError() *GetPolicyInternalServerError

NewGetPolicyInternalServerError creates GetPolicyInternalServerError with default headers values

func (*GetPolicyInternalServerError) SetPayload

func (o *GetPolicyInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get policy internal server error response

func (*GetPolicyInternalServerError) SetXRequestID

func (o *GetPolicyInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get policy internal server error response

func (*GetPolicyInternalServerError) WithPayload

WithPayload adds the payload to the get policy internal server error response

func (*GetPolicyInternalServerError) WithXRequestID

func (o *GetPolicyInternalServerError) WithXRequestID(xRequestID string) *GetPolicyInternalServerError

WithXRequestID adds the xRequestId to the get policy internal server error response

func (*GetPolicyInternalServerError) WriteResponse

func (o *GetPolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyNotFound

type GetPolicyNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPolicyNotFound Not found

swagger:response getPolicyNotFound

func NewGetPolicyNotFound

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) SetPayload

func (o *GetPolicyNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get policy not found response

func (*GetPolicyNotFound) SetXRequestID

func (o *GetPolicyNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get policy not found response

func (*GetPolicyNotFound) WithPayload

func (o *GetPolicyNotFound) WithPayload(payload *models.Errors) *GetPolicyNotFound

WithPayload adds the payload to the get policy not found response

func (*GetPolicyNotFound) WithXRequestID

func (o *GetPolicyNotFound) WithXRequestID(xRequestID string) *GetPolicyNotFound

WithXRequestID adds the xRequestId to the get policy not found response

func (*GetPolicyNotFound) WriteResponse

func (o *GetPolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyOK

type GetPolicyOK struct {

	/*
	  In: Body
	*/
	Payload *models.PreheatPolicy `json:"body,omitempty"`
}

GetPolicyOK Get a preheat policy success

swagger:response getPolicyOK

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates GetPolicyOK with default headers values

func (*GetPolicyOK) SetPayload

func (o *GetPolicyOK) SetPayload(payload *models.PreheatPolicy)

SetPayload sets the payload to the get policy o k response

func (*GetPolicyOK) WithPayload

func (o *GetPolicyOK) WithPayload(payload *models.PreheatPolicy) *GetPolicyOK

WithPayload adds the payload to the get policy o k response

func (*GetPolicyOK) WriteResponse

func (o *GetPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyParams

type GetPolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request

swagger:parameters GetPolicy

func NewGetPolicyParams

func NewGetPolicyParams() GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams object no default values defined in spec.

func (*GetPolicyParams) BindRequest

func (o *GetPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetPolicyParams() beforehand.

type GetPolicyURL

type GetPolicyURL struct {
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

GetPolicyURL generates an URL for the get policy operation

func (*GetPolicyURL) Build

func (o *GetPolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPolicyURL) BuildFull

func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPolicyURL) Must

func (o *GetPolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPolicyURL) SetBasePath

func (o *GetPolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPolicyURL) String

func (o *GetPolicyURL) String() string

String returns the string representation of the path with query string

func (*GetPolicyURL) StringFull

func (o *GetPolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPolicyURL) WithBasePath

func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetPolicyUnauthorized

type GetPolicyUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPolicyUnauthorized Unauthorized

swagger:response getPolicyUnauthorized

func NewGetPolicyUnauthorized

func NewGetPolicyUnauthorized() *GetPolicyUnauthorized

NewGetPolicyUnauthorized creates GetPolicyUnauthorized with default headers values

func (*GetPolicyUnauthorized) SetPayload

func (o *GetPolicyUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get policy unauthorized response

func (*GetPolicyUnauthorized) SetXRequestID

func (o *GetPolicyUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get policy unauthorized response

func (*GetPolicyUnauthorized) WithPayload

func (o *GetPolicyUnauthorized) WithPayload(payload *models.Errors) *GetPolicyUnauthorized

WithPayload adds the payload to the get policy unauthorized response

func (*GetPolicyUnauthorized) WithXRequestID

func (o *GetPolicyUnauthorized) WithXRequestID(xRequestID string) *GetPolicyUnauthorized

WithXRequestID adds the xRequestId to the get policy unauthorized response

func (*GetPolicyUnauthorized) WriteResponse

func (o *GetPolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLog

type GetPreheatLog struct {
	Context *middleware.Context
	Handler GetPreheatLogHandler
}

GetPreheatLog swagger:route GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks/{task_id}/logs preheat getPreheatLog

Get the log text stream of the specified task for the given execution

Get the log text stream of the specified task for the given execution

func NewGetPreheatLog

func NewGetPreheatLog(ctx *middleware.Context, handler GetPreheatLogHandler) *GetPreheatLog

NewGetPreheatLog creates a new http.Handler for the get preheat log operation

func (*GetPreheatLog) ServeHTTP

func (o *GetPreheatLog) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPreheatLogBadRequest

type GetPreheatLogBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPreheatLogBadRequest Bad request

swagger:response getPreheatLogBadRequest

func NewGetPreheatLogBadRequest

func NewGetPreheatLogBadRequest() *GetPreheatLogBadRequest

NewGetPreheatLogBadRequest creates GetPreheatLogBadRequest with default headers values

func (*GetPreheatLogBadRequest) SetPayload

func (o *GetPreheatLogBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get preheat log bad request response

func (*GetPreheatLogBadRequest) SetXRequestID

func (o *GetPreheatLogBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get preheat log bad request response

func (*GetPreheatLogBadRequest) WithPayload

WithPayload adds the payload to the get preheat log bad request response

func (*GetPreheatLogBadRequest) WithXRequestID

func (o *GetPreheatLogBadRequest) WithXRequestID(xRequestID string) *GetPreheatLogBadRequest

WithXRequestID adds the xRequestId to the get preheat log bad request response

func (*GetPreheatLogBadRequest) WriteResponse

func (o *GetPreheatLogBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLogForbidden

type GetPreheatLogForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPreheatLogForbidden Forbidden

swagger:response getPreheatLogForbidden

func NewGetPreheatLogForbidden

func NewGetPreheatLogForbidden() *GetPreheatLogForbidden

NewGetPreheatLogForbidden creates GetPreheatLogForbidden with default headers values

func (*GetPreheatLogForbidden) SetPayload

func (o *GetPreheatLogForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get preheat log forbidden response

func (*GetPreheatLogForbidden) SetXRequestID

func (o *GetPreheatLogForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get preheat log forbidden response

func (*GetPreheatLogForbidden) WithPayload

func (o *GetPreheatLogForbidden) WithPayload(payload *models.Errors) *GetPreheatLogForbidden

WithPayload adds the payload to the get preheat log forbidden response

func (*GetPreheatLogForbidden) WithXRequestID

func (o *GetPreheatLogForbidden) WithXRequestID(xRequestID string) *GetPreheatLogForbidden

WithXRequestID adds the xRequestId to the get preheat log forbidden response

func (*GetPreheatLogForbidden) WriteResponse

func (o *GetPreheatLogForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLogHandler

type GetPreheatLogHandler interface {
	Handle(GetPreheatLogParams, interface{}) middleware.Responder
}

GetPreheatLogHandler interface for that can handle valid get preheat log params

type GetPreheatLogHandlerFunc

type GetPreheatLogHandlerFunc func(GetPreheatLogParams, interface{}) middleware.Responder

GetPreheatLogHandlerFunc turns a function with the right signature into a get preheat log handler

func (GetPreheatLogHandlerFunc) Handle

func (fn GetPreheatLogHandlerFunc) Handle(params GetPreheatLogParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPreheatLogInternalServerError

type GetPreheatLogInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPreheatLogInternalServerError Internal server error

swagger:response getPreheatLogInternalServerError

func NewGetPreheatLogInternalServerError

func NewGetPreheatLogInternalServerError() *GetPreheatLogInternalServerError

NewGetPreheatLogInternalServerError creates GetPreheatLogInternalServerError with default headers values

func (*GetPreheatLogInternalServerError) SetPayload

func (o *GetPreheatLogInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get preheat log internal server error response

func (*GetPreheatLogInternalServerError) SetXRequestID

func (o *GetPreheatLogInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get preheat log internal server error response

func (*GetPreheatLogInternalServerError) WithPayload

WithPayload adds the payload to the get preheat log internal server error response

func (*GetPreheatLogInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get preheat log internal server error response

func (*GetPreheatLogInternalServerError) WriteResponse

func (o *GetPreheatLogInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLogNotFound

type GetPreheatLogNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPreheatLogNotFound Not found

swagger:response getPreheatLogNotFound

func NewGetPreheatLogNotFound

func NewGetPreheatLogNotFound() *GetPreheatLogNotFound

NewGetPreheatLogNotFound creates GetPreheatLogNotFound with default headers values

func (*GetPreheatLogNotFound) SetPayload

func (o *GetPreheatLogNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get preheat log not found response

func (*GetPreheatLogNotFound) SetXRequestID

func (o *GetPreheatLogNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get preheat log not found response

func (*GetPreheatLogNotFound) WithPayload

func (o *GetPreheatLogNotFound) WithPayload(payload *models.Errors) *GetPreheatLogNotFound

WithPayload adds the payload to the get preheat log not found response

func (*GetPreheatLogNotFound) WithXRequestID

func (o *GetPreheatLogNotFound) WithXRequestID(xRequestID string) *GetPreheatLogNotFound

WithXRequestID adds the xRequestId to the get preheat log not found response

func (*GetPreheatLogNotFound) WriteResponse

func (o *GetPreheatLogNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLogOK

type GetPreheatLogOK struct {
	/*Content type of response

	 */
	ContentType string `json:"Content-Type"`

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetPreheatLogOK Get log success

swagger:response getPreheatLogOK

func NewGetPreheatLogOK

func NewGetPreheatLogOK() *GetPreheatLogOK

NewGetPreheatLogOK creates GetPreheatLogOK with default headers values

func (*GetPreheatLogOK) SetContentType

func (o *GetPreheatLogOK) SetContentType(contentType string)

SetContentType sets the contentType to the get preheat log o k response

func (*GetPreheatLogOK) SetPayload

func (o *GetPreheatLogOK) SetPayload(payload string)

SetPayload sets the payload to the get preheat log o k response

func (*GetPreheatLogOK) WithContentType

func (o *GetPreheatLogOK) WithContentType(contentType string) *GetPreheatLogOK

WithContentType adds the contentType to the get preheat log o k response

func (*GetPreheatLogOK) WithPayload

func (o *GetPreheatLogOK) WithPayload(payload string) *GetPreheatLogOK

WithPayload adds the payload to the get preheat log o k response

func (*GetPreheatLogOK) WriteResponse

func (o *GetPreheatLogOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPreheatLogParams

type GetPreheatLogParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Execution ID
	  Required: true
	  In: path
	*/
	ExecutionID int64
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*Task ID
	  Required: true
	  In: path
	*/
	TaskID int64
}

GetPreheatLogParams contains all the bound params for the get preheat log operation typically these are obtained from a http.Request

swagger:parameters GetPreheatLog

func NewGetPreheatLogParams

func NewGetPreheatLogParams() GetPreheatLogParams

NewGetPreheatLogParams creates a new GetPreheatLogParams object no default values defined in spec.

func (*GetPreheatLogParams) BindRequest

func (o *GetPreheatLogParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetPreheatLogParams() beforehand.

type GetPreheatLogURL

type GetPreheatLogURL struct {
	ExecutionID       int64
	PreheatPolicyName string
	ProjectName       string
	TaskID            int64
	// contains filtered or unexported fields
}

GetPreheatLogURL generates an URL for the get preheat log operation

func (*GetPreheatLogURL) Build

func (o *GetPreheatLogURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPreheatLogURL) BuildFull

func (o *GetPreheatLogURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPreheatLogURL) Must

func (o *GetPreheatLogURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPreheatLogURL) SetBasePath

func (o *GetPreheatLogURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPreheatLogURL) String

func (o *GetPreheatLogURL) String() string

String returns the string representation of the path with query string

func (*GetPreheatLogURL) StringFull

func (o *GetPreheatLogURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPreheatLogURL) WithBasePath

func (o *GetPreheatLogURL) WithBasePath(bp string) *GetPreheatLogURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetPreheatLogUnauthorized

type GetPreheatLogUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetPreheatLogUnauthorized Unauthorized

swagger:response getPreheatLogUnauthorized

func NewGetPreheatLogUnauthorized

func NewGetPreheatLogUnauthorized() *GetPreheatLogUnauthorized

NewGetPreheatLogUnauthorized creates GetPreheatLogUnauthorized with default headers values

func (*GetPreheatLogUnauthorized) SetPayload

func (o *GetPreheatLogUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get preheat log unauthorized response

func (*GetPreheatLogUnauthorized) SetXRequestID

func (o *GetPreheatLogUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get preheat log unauthorized response

func (*GetPreheatLogUnauthorized) WithPayload

WithPayload adds the payload to the get preheat log unauthorized response

func (*GetPreheatLogUnauthorized) WithXRequestID

func (o *GetPreheatLogUnauthorized) WithXRequestID(xRequestID string) *GetPreheatLogUnauthorized

WithXRequestID adds the xRequestId to the get preheat log unauthorized response

func (*GetPreheatLogUnauthorized) WriteResponse

func (o *GetPreheatLogUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutions

type ListExecutions struct {
	Context *middleware.Context
	Handler ListExecutionsHandler
}

ListExecutions swagger:route GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions preheat listExecutions

List executions for the given policy

List executions for the given policy

func NewListExecutions

func NewListExecutions(ctx *middleware.Context, handler ListExecutionsHandler) *ListExecutions

NewListExecutions creates a new http.Handler for the list executions operation

func (*ListExecutions) ServeHTTP

func (o *ListExecutions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListExecutionsBadRequest

type ListExecutionsBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListExecutionsBadRequest Bad request

swagger:response listExecutionsBadRequest

func NewListExecutionsBadRequest

func NewListExecutionsBadRequest() *ListExecutionsBadRequest

NewListExecutionsBadRequest creates ListExecutionsBadRequest with default headers values

func (*ListExecutionsBadRequest) SetPayload

func (o *ListExecutionsBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list executions bad request response

func (*ListExecutionsBadRequest) SetXRequestID

func (o *ListExecutionsBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list executions bad request response

func (*ListExecutionsBadRequest) WithPayload

WithPayload adds the payload to the list executions bad request response

func (*ListExecutionsBadRequest) WithXRequestID

func (o *ListExecutionsBadRequest) WithXRequestID(xRequestID string) *ListExecutionsBadRequest

WithXRequestID adds the xRequestId to the list executions bad request response

func (*ListExecutionsBadRequest) WriteResponse

func (o *ListExecutionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutionsForbidden

type ListExecutionsForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListExecutionsForbidden Forbidden

swagger:response listExecutionsForbidden

func NewListExecutionsForbidden

func NewListExecutionsForbidden() *ListExecutionsForbidden

NewListExecutionsForbidden creates ListExecutionsForbidden with default headers values

func (*ListExecutionsForbidden) SetPayload

func (o *ListExecutionsForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list executions forbidden response

func (*ListExecutionsForbidden) SetXRequestID

func (o *ListExecutionsForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list executions forbidden response

func (*ListExecutionsForbidden) WithPayload

WithPayload adds the payload to the list executions forbidden response

func (*ListExecutionsForbidden) WithXRequestID

func (o *ListExecutionsForbidden) WithXRequestID(xRequestID string) *ListExecutionsForbidden

WithXRequestID adds the xRequestId to the list executions forbidden response

func (*ListExecutionsForbidden) WriteResponse

func (o *ListExecutionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutionsHandler

type ListExecutionsHandler interface {
	Handle(ListExecutionsParams, interface{}) middleware.Responder
}

ListExecutionsHandler interface for that can handle valid list executions params

type ListExecutionsHandlerFunc

type ListExecutionsHandlerFunc func(ListExecutionsParams, interface{}) middleware.Responder

ListExecutionsHandlerFunc turns a function with the right signature into a list executions handler

func (ListExecutionsHandlerFunc) Handle

func (fn ListExecutionsHandlerFunc) Handle(params ListExecutionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListExecutionsInternalServerError

type ListExecutionsInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListExecutionsInternalServerError Internal server error

swagger:response listExecutionsInternalServerError

func NewListExecutionsInternalServerError

func NewListExecutionsInternalServerError() *ListExecutionsInternalServerError

NewListExecutionsInternalServerError creates ListExecutionsInternalServerError with default headers values

func (*ListExecutionsInternalServerError) SetPayload

func (o *ListExecutionsInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list executions internal server error response

func (*ListExecutionsInternalServerError) SetXRequestID

func (o *ListExecutionsInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list executions internal server error response

func (*ListExecutionsInternalServerError) WithPayload

WithPayload adds the payload to the list executions internal server error response

func (*ListExecutionsInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list executions internal server error response

func (*ListExecutionsInternalServerError) WriteResponse

func (o *ListExecutionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutionsNotFound

type ListExecutionsNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListExecutionsNotFound Not found

swagger:response listExecutionsNotFound

func NewListExecutionsNotFound

func NewListExecutionsNotFound() *ListExecutionsNotFound

NewListExecutionsNotFound creates ListExecutionsNotFound with default headers values

func (*ListExecutionsNotFound) SetPayload

func (o *ListExecutionsNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list executions not found response

func (*ListExecutionsNotFound) SetXRequestID

func (o *ListExecutionsNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list executions not found response

func (*ListExecutionsNotFound) WithPayload

func (o *ListExecutionsNotFound) WithPayload(payload *models.Errors) *ListExecutionsNotFound

WithPayload adds the payload to the list executions not found response

func (*ListExecutionsNotFound) WithXRequestID

func (o *ListExecutionsNotFound) WithXRequestID(xRequestID string) *ListExecutionsNotFound

WithXRequestID adds the xRequestId to the list executions not found response

func (*ListExecutionsNotFound) WriteResponse

func (o *ListExecutionsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutionsOK

type ListExecutionsOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of executions

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.Execution `json:"body,omitempty"`
}

ListExecutionsOK List executions success

swagger:response listExecutionsOK

func NewListExecutionsOK

func NewListExecutionsOK() *ListExecutionsOK

NewListExecutionsOK creates ListExecutionsOK with default headers values

func (o *ListExecutionsOK) SetLink(link string)

SetLink sets the link to the list executions o k response

func (*ListExecutionsOK) SetPayload

func (o *ListExecutionsOK) SetPayload(payload []*models.Execution)

SetPayload sets the payload to the list executions o k response

func (*ListExecutionsOK) SetXTotalCount

func (o *ListExecutionsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list executions o k response

func (o *ListExecutionsOK) WithLink(link string) *ListExecutionsOK

WithLink adds the link to the list executions o k response

func (*ListExecutionsOK) WithPayload

func (o *ListExecutionsOK) WithPayload(payload []*models.Execution) *ListExecutionsOK

WithPayload adds the payload to the list executions o k response

func (*ListExecutionsOK) WithXTotalCount

func (o *ListExecutionsOK) WithXTotalCount(xTotalCount int64) *ListExecutionsOK

WithXTotalCount adds the xTotalCount to the list executions o k response

func (*ListExecutionsOK) WriteResponse

func (o *ListExecutionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListExecutionsParams

type ListExecutionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
	  In: query
	*/
	Q *string
}

ListExecutionsParams contains all the bound params for the list executions operation typically these are obtained from a http.Request

swagger:parameters ListExecutions

func NewListExecutionsParams

func NewListExecutionsParams() ListExecutionsParams

NewListExecutionsParams creates a new ListExecutionsParams object with the default values initialized.

func (*ListExecutionsParams) BindRequest

func (o *ListExecutionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListExecutionsParams() beforehand.

type ListExecutionsURL

type ListExecutionsURL struct {
	PreheatPolicyName string
	ProjectName       string

	Page     *int64
	PageSize *int64
	Q        *string
	// contains filtered or unexported fields
}

ListExecutionsURL generates an URL for the list executions operation

func (*ListExecutionsURL) Build

func (o *ListExecutionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListExecutionsURL) BuildFull

func (o *ListExecutionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListExecutionsURL) Must

func (o *ListExecutionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListExecutionsURL) SetBasePath

func (o *ListExecutionsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListExecutionsURL) String

func (o *ListExecutionsURL) String() string

String returns the string representation of the path with query string

func (*ListExecutionsURL) StringFull

func (o *ListExecutionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListExecutionsURL) WithBasePath

func (o *ListExecutionsURL) WithBasePath(bp string) *ListExecutionsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListExecutionsUnauthorized

type ListExecutionsUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListExecutionsUnauthorized Unauthorized

swagger:response listExecutionsUnauthorized

func NewListExecutionsUnauthorized

func NewListExecutionsUnauthorized() *ListExecutionsUnauthorized

NewListExecutionsUnauthorized creates ListExecutionsUnauthorized with default headers values

func (*ListExecutionsUnauthorized) SetPayload

func (o *ListExecutionsUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list executions unauthorized response

func (*ListExecutionsUnauthorized) SetXRequestID

func (o *ListExecutionsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list executions unauthorized response

func (*ListExecutionsUnauthorized) WithPayload

WithPayload adds the payload to the list executions unauthorized response

func (*ListExecutionsUnauthorized) WithXRequestID

func (o *ListExecutionsUnauthorized) WithXRequestID(xRequestID string) *ListExecutionsUnauthorized

WithXRequestID adds the xRequestId to the list executions unauthorized response

func (*ListExecutionsUnauthorized) WriteResponse

func (o *ListExecutionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstances

type ListInstances struct {
	Context *middleware.Context
	Handler ListInstancesHandler
}

ListInstances swagger:route GET /p2p/preheat/instances preheat listInstances

List P2P provider instances

List P2P provider instances

func NewListInstances

func NewListInstances(ctx *middleware.Context, handler ListInstancesHandler) *ListInstances

NewListInstances creates a new http.Handler for the list instances operation

func (*ListInstances) ServeHTTP

func (o *ListInstances) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListInstancesBadRequest

type ListInstancesBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListInstancesBadRequest Bad request

swagger:response listInstancesBadRequest

func NewListInstancesBadRequest

func NewListInstancesBadRequest() *ListInstancesBadRequest

NewListInstancesBadRequest creates ListInstancesBadRequest with default headers values

func (*ListInstancesBadRequest) SetPayload

func (o *ListInstancesBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list instances bad request response

func (*ListInstancesBadRequest) SetXRequestID

func (o *ListInstancesBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list instances bad request response

func (*ListInstancesBadRequest) WithPayload

WithPayload adds the payload to the list instances bad request response

func (*ListInstancesBadRequest) WithXRequestID

func (o *ListInstancesBadRequest) WithXRequestID(xRequestID string) *ListInstancesBadRequest

WithXRequestID adds the xRequestId to the list instances bad request response

func (*ListInstancesBadRequest) WriteResponse

func (o *ListInstancesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstancesForbidden

type ListInstancesForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListInstancesForbidden Forbidden

swagger:response listInstancesForbidden

func NewListInstancesForbidden

func NewListInstancesForbidden() *ListInstancesForbidden

NewListInstancesForbidden creates ListInstancesForbidden with default headers values

func (*ListInstancesForbidden) SetPayload

func (o *ListInstancesForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list instances forbidden response

func (*ListInstancesForbidden) SetXRequestID

func (o *ListInstancesForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list instances forbidden response

func (*ListInstancesForbidden) WithPayload

func (o *ListInstancesForbidden) WithPayload(payload *models.Errors) *ListInstancesForbidden

WithPayload adds the payload to the list instances forbidden response

func (*ListInstancesForbidden) WithXRequestID

func (o *ListInstancesForbidden) WithXRequestID(xRequestID string) *ListInstancesForbidden

WithXRequestID adds the xRequestId to the list instances forbidden response

func (*ListInstancesForbidden) WriteResponse

func (o *ListInstancesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstancesHandler

type ListInstancesHandler interface {
	Handle(ListInstancesParams, interface{}) middleware.Responder
}

ListInstancesHandler interface for that can handle valid list instances params

type ListInstancesHandlerFunc

type ListInstancesHandlerFunc func(ListInstancesParams, interface{}) middleware.Responder

ListInstancesHandlerFunc turns a function with the right signature into a list instances handler

func (ListInstancesHandlerFunc) Handle

func (fn ListInstancesHandlerFunc) Handle(params ListInstancesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListInstancesInternalServerError

type ListInstancesInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListInstancesInternalServerError Internal server error

swagger:response listInstancesInternalServerError

func NewListInstancesInternalServerError

func NewListInstancesInternalServerError() *ListInstancesInternalServerError

NewListInstancesInternalServerError creates ListInstancesInternalServerError with default headers values

func (*ListInstancesInternalServerError) SetPayload

func (o *ListInstancesInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list instances internal server error response

func (*ListInstancesInternalServerError) SetXRequestID

func (o *ListInstancesInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list instances internal server error response

func (*ListInstancesInternalServerError) WithPayload

WithPayload adds the payload to the list instances internal server error response

func (*ListInstancesInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list instances internal server error response

func (*ListInstancesInternalServerError) WriteResponse

func (o *ListInstancesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstancesNotFound

type ListInstancesNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListInstancesNotFound Not found

swagger:response listInstancesNotFound

func NewListInstancesNotFound

func NewListInstancesNotFound() *ListInstancesNotFound

NewListInstancesNotFound creates ListInstancesNotFound with default headers values

func (*ListInstancesNotFound) SetPayload

func (o *ListInstancesNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list instances not found response

func (*ListInstancesNotFound) SetXRequestID

func (o *ListInstancesNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list instances not found response

func (*ListInstancesNotFound) WithPayload

func (o *ListInstancesNotFound) WithPayload(payload *models.Errors) *ListInstancesNotFound

WithPayload adds the payload to the list instances not found response

func (*ListInstancesNotFound) WithXRequestID

func (o *ListInstancesNotFound) WithXRequestID(xRequestID string) *ListInstancesNotFound

WithXRequestID adds the xRequestId to the list instances not found response

func (*ListInstancesNotFound) WriteResponse

func (o *ListInstancesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstancesOK

type ListInstancesOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of preheating provider instances

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.Instance `json:"body,omitempty"`
}

ListInstancesOK Success

swagger:response listInstancesOK

func NewListInstancesOK

func NewListInstancesOK() *ListInstancesOK

NewListInstancesOK creates ListInstancesOK with default headers values

func (o *ListInstancesOK) SetLink(link string)

SetLink sets the link to the list instances o k response

func (*ListInstancesOK) SetPayload

func (o *ListInstancesOK) SetPayload(payload []*models.Instance)

SetPayload sets the payload to the list instances o k response

func (*ListInstancesOK) SetXTotalCount

func (o *ListInstancesOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list instances o k response

func (o *ListInstancesOK) WithLink(link string) *ListInstancesOK

WithLink adds the link to the list instances o k response

func (*ListInstancesOK) WithPayload

func (o *ListInstancesOK) WithPayload(payload []*models.Instance) *ListInstancesOK

WithPayload adds the payload to the list instances o k response

func (*ListInstancesOK) WithXTotalCount

func (o *ListInstancesOK) WithXTotalCount(xTotalCount int64) *ListInstancesOK

WithXTotalCount adds the xTotalCount to the list instances o k response

func (*ListInstancesOK) WriteResponse

func (o *ListInstancesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListInstancesParams

type ListInstancesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
	  In: query
	*/
	Q *string
}

ListInstancesParams contains all the bound params for the list instances operation typically these are obtained from a http.Request

swagger:parameters ListInstances

func NewListInstancesParams

func NewListInstancesParams() ListInstancesParams

NewListInstancesParams creates a new ListInstancesParams object with the default values initialized.

func (*ListInstancesParams) BindRequest

func (o *ListInstancesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListInstancesParams() beforehand.

type ListInstancesURL

type ListInstancesURL struct {
	Page     *int64
	PageSize *int64
	Q        *string
	// contains filtered or unexported fields
}

ListInstancesURL generates an URL for the list instances operation

func (*ListInstancesURL) Build

func (o *ListInstancesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListInstancesURL) BuildFull

func (o *ListInstancesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListInstancesURL) Must

func (o *ListInstancesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListInstancesURL) SetBasePath

func (o *ListInstancesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListInstancesURL) String

func (o *ListInstancesURL) String() string

String returns the string representation of the path with query string

func (*ListInstancesURL) StringFull

func (o *ListInstancesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListInstancesURL) WithBasePath

func (o *ListInstancesURL) WithBasePath(bp string) *ListInstancesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListInstancesUnauthorized

type ListInstancesUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListInstancesUnauthorized Unauthorized

swagger:response listInstancesUnauthorized

func NewListInstancesUnauthorized

func NewListInstancesUnauthorized() *ListInstancesUnauthorized

NewListInstancesUnauthorized creates ListInstancesUnauthorized with default headers values

func (*ListInstancesUnauthorized) SetPayload

func (o *ListInstancesUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list instances unauthorized response

func (*ListInstancesUnauthorized) SetXRequestID

func (o *ListInstancesUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list instances unauthorized response

func (*ListInstancesUnauthorized) WithPayload

WithPayload adds the payload to the list instances unauthorized response

func (*ListInstancesUnauthorized) WithXRequestID

func (o *ListInstancesUnauthorized) WithXRequestID(xRequestID string) *ListInstancesUnauthorized

WithXRequestID adds the xRequestId to the list instances unauthorized response

func (*ListInstancesUnauthorized) WriteResponse

func (o *ListInstancesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPolicies

type ListPolicies struct {
	Context *middleware.Context
	Handler ListPoliciesHandler
}

ListPolicies swagger:route GET /projects/{project_name}/preheat/policies preheat listPolicies

List preheat policies

List preheat policies

func NewListPolicies

func NewListPolicies(ctx *middleware.Context, handler ListPoliciesHandler) *ListPolicies

NewListPolicies creates a new http.Handler for the list policies operation

func (*ListPolicies) ServeHTTP

func (o *ListPolicies) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListPoliciesBadRequest

type ListPoliciesBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListPoliciesBadRequest Bad request

swagger:response listPoliciesBadRequest

func NewListPoliciesBadRequest

func NewListPoliciesBadRequest() *ListPoliciesBadRequest

NewListPoliciesBadRequest creates ListPoliciesBadRequest with default headers values

func (*ListPoliciesBadRequest) SetPayload

func (o *ListPoliciesBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list policies bad request response

func (*ListPoliciesBadRequest) SetXRequestID

func (o *ListPoliciesBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list policies bad request response

func (*ListPoliciesBadRequest) WithPayload

func (o *ListPoliciesBadRequest) WithPayload(payload *models.Errors) *ListPoliciesBadRequest

WithPayload adds the payload to the list policies bad request response

func (*ListPoliciesBadRequest) WithXRequestID

func (o *ListPoliciesBadRequest) WithXRequestID(xRequestID string) *ListPoliciesBadRequest

WithXRequestID adds the xRequestId to the list policies bad request response

func (*ListPoliciesBadRequest) WriteResponse

func (o *ListPoliciesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPoliciesForbidden

type ListPoliciesForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListPoliciesForbidden Forbidden

swagger:response listPoliciesForbidden

func NewListPoliciesForbidden

func NewListPoliciesForbidden() *ListPoliciesForbidden

NewListPoliciesForbidden creates ListPoliciesForbidden with default headers values

func (*ListPoliciesForbidden) SetPayload

func (o *ListPoliciesForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list policies forbidden response

func (*ListPoliciesForbidden) SetXRequestID

func (o *ListPoliciesForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list policies forbidden response

func (*ListPoliciesForbidden) WithPayload

func (o *ListPoliciesForbidden) WithPayload(payload *models.Errors) *ListPoliciesForbidden

WithPayload adds the payload to the list policies forbidden response

func (*ListPoliciesForbidden) WithXRequestID

func (o *ListPoliciesForbidden) WithXRequestID(xRequestID string) *ListPoliciesForbidden

WithXRequestID adds the xRequestId to the list policies forbidden response

func (*ListPoliciesForbidden) WriteResponse

func (o *ListPoliciesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPoliciesHandler

type ListPoliciesHandler interface {
	Handle(ListPoliciesParams, interface{}) middleware.Responder
}

ListPoliciesHandler interface for that can handle valid list policies params

type ListPoliciesHandlerFunc

type ListPoliciesHandlerFunc func(ListPoliciesParams, interface{}) middleware.Responder

ListPoliciesHandlerFunc turns a function with the right signature into a list policies handler

func (ListPoliciesHandlerFunc) Handle

func (fn ListPoliciesHandlerFunc) Handle(params ListPoliciesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListPoliciesInternalServerError

type ListPoliciesInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListPoliciesInternalServerError Internal server error

swagger:response listPoliciesInternalServerError

func NewListPoliciesInternalServerError

func NewListPoliciesInternalServerError() *ListPoliciesInternalServerError

NewListPoliciesInternalServerError creates ListPoliciesInternalServerError with default headers values

func (*ListPoliciesInternalServerError) SetPayload

func (o *ListPoliciesInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list policies internal server error response

func (*ListPoliciesInternalServerError) SetXRequestID

func (o *ListPoliciesInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list policies internal server error response

func (*ListPoliciesInternalServerError) WithPayload

WithPayload adds the payload to the list policies internal server error response

func (*ListPoliciesInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list policies internal server error response

func (*ListPoliciesInternalServerError) WriteResponse

func (o *ListPoliciesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPoliciesOK

type ListPoliciesOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of policies

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.PreheatPolicy `json:"body,omitempty"`
}

ListPoliciesOK List preheat policies success

swagger:response listPoliciesOK

func NewListPoliciesOK

func NewListPoliciesOK() *ListPoliciesOK

NewListPoliciesOK creates ListPoliciesOK with default headers values

func (o *ListPoliciesOK) SetLink(link string)

SetLink sets the link to the list policies o k response

func (*ListPoliciesOK) SetPayload

func (o *ListPoliciesOK) SetPayload(payload []*models.PreheatPolicy)

SetPayload sets the payload to the list policies o k response

func (*ListPoliciesOK) SetXTotalCount

func (o *ListPoliciesOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list policies o k response

func (o *ListPoliciesOK) WithLink(link string) *ListPoliciesOK

WithLink adds the link to the list policies o k response

func (*ListPoliciesOK) WithPayload

func (o *ListPoliciesOK) WithPayload(payload []*models.PreheatPolicy) *ListPoliciesOK

WithPayload adds the payload to the list policies o k response

func (*ListPoliciesOK) WithXTotalCount

func (o *ListPoliciesOK) WithXTotalCount(xTotalCount int64) *ListPoliciesOK

WithXTotalCount adds the xTotalCount to the list policies o k response

func (*ListPoliciesOK) WriteResponse

func (o *ListPoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPoliciesParams

type ListPoliciesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
	  In: query
	*/
	Q *string
}

ListPoliciesParams contains all the bound params for the list policies operation typically these are obtained from a http.Request

swagger:parameters ListPolicies

func NewListPoliciesParams

func NewListPoliciesParams() ListPoliciesParams

NewListPoliciesParams creates a new ListPoliciesParams object with the default values initialized.

func (*ListPoliciesParams) BindRequest

func (o *ListPoliciesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListPoliciesParams() beforehand.

type ListPoliciesURL

type ListPoliciesURL struct {
	ProjectName string

	Page     *int64
	PageSize *int64
	Q        *string
	// contains filtered or unexported fields
}

ListPoliciesURL generates an URL for the list policies operation

func (*ListPoliciesURL) Build

func (o *ListPoliciesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListPoliciesURL) BuildFull

func (o *ListPoliciesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListPoliciesURL) Must

func (o *ListPoliciesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListPoliciesURL) SetBasePath

func (o *ListPoliciesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListPoliciesURL) String

func (o *ListPoliciesURL) String() string

String returns the string representation of the path with query string

func (*ListPoliciesURL) StringFull

func (o *ListPoliciesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListPoliciesURL) WithBasePath

func (o *ListPoliciesURL) WithBasePath(bp string) *ListPoliciesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListPoliciesUnauthorized

type ListPoliciesUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListPoliciesUnauthorized Unauthorized

swagger:response listPoliciesUnauthorized

func NewListPoliciesUnauthorized

func NewListPoliciesUnauthorized() *ListPoliciesUnauthorized

NewListPoliciesUnauthorized creates ListPoliciesUnauthorized with default headers values

func (*ListPoliciesUnauthorized) SetPayload

func (o *ListPoliciesUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list policies unauthorized response

func (*ListPoliciesUnauthorized) SetXRequestID

func (o *ListPoliciesUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list policies unauthorized response

func (*ListPoliciesUnauthorized) WithPayload

WithPayload adds the payload to the list policies unauthorized response

func (*ListPoliciesUnauthorized) WithXRequestID

func (o *ListPoliciesUnauthorized) WithXRequestID(xRequestID string) *ListPoliciesUnauthorized

WithXRequestID adds the xRequestId to the list policies unauthorized response

func (*ListPoliciesUnauthorized) WriteResponse

func (o *ListPoliciesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProviders

type ListProviders struct {
	Context *middleware.Context
	Handler ListProvidersHandler
}

ListProviders swagger:route GET /p2p/preheat/providers preheat listProviders

List P2P providers

List P2P providers

func NewListProviders

func NewListProviders(ctx *middleware.Context, handler ListProvidersHandler) *ListProviders

NewListProviders creates a new http.Handler for the list providers operation

func (*ListProviders) ServeHTTP

func (o *ListProviders) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListProvidersBadRequest

type ListProvidersBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersBadRequest Bad request

swagger:response listProvidersBadRequest

func NewListProvidersBadRequest

func NewListProvidersBadRequest() *ListProvidersBadRequest

NewListProvidersBadRequest creates ListProvidersBadRequest with default headers values

func (*ListProvidersBadRequest) SetPayload

func (o *ListProvidersBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers bad request response

func (*ListProvidersBadRequest) SetXRequestID

func (o *ListProvidersBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers bad request response

func (*ListProvidersBadRequest) WithPayload

WithPayload adds the payload to the list providers bad request response

func (*ListProvidersBadRequest) WithXRequestID

func (o *ListProvidersBadRequest) WithXRequestID(xRequestID string) *ListProvidersBadRequest

WithXRequestID adds the xRequestId to the list providers bad request response

func (*ListProvidersBadRequest) WriteResponse

func (o *ListProvidersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersForbidden

type ListProvidersForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersForbidden Forbidden

swagger:response listProvidersForbidden

func NewListProvidersForbidden

func NewListProvidersForbidden() *ListProvidersForbidden

NewListProvidersForbidden creates ListProvidersForbidden with default headers values

func (*ListProvidersForbidden) SetPayload

func (o *ListProvidersForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers forbidden response

func (*ListProvidersForbidden) SetXRequestID

func (o *ListProvidersForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers forbidden response

func (*ListProvidersForbidden) WithPayload

func (o *ListProvidersForbidden) WithPayload(payload *models.Errors) *ListProvidersForbidden

WithPayload adds the payload to the list providers forbidden response

func (*ListProvidersForbidden) WithXRequestID

func (o *ListProvidersForbidden) WithXRequestID(xRequestID string) *ListProvidersForbidden

WithXRequestID adds the xRequestId to the list providers forbidden response

func (*ListProvidersForbidden) WriteResponse

func (o *ListProvidersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersHandler

type ListProvidersHandler interface {
	Handle(ListProvidersParams, interface{}) middleware.Responder
}

ListProvidersHandler interface for that can handle valid list providers params

type ListProvidersHandlerFunc

type ListProvidersHandlerFunc func(ListProvidersParams, interface{}) middleware.Responder

ListProvidersHandlerFunc turns a function with the right signature into a list providers handler

func (ListProvidersHandlerFunc) Handle

func (fn ListProvidersHandlerFunc) Handle(params ListProvidersParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListProvidersInternalServerError

type ListProvidersInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersInternalServerError Internal server error

swagger:response listProvidersInternalServerError

func NewListProvidersInternalServerError

func NewListProvidersInternalServerError() *ListProvidersInternalServerError

NewListProvidersInternalServerError creates ListProvidersInternalServerError with default headers values

func (*ListProvidersInternalServerError) SetPayload

func (o *ListProvidersInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers internal server error response

func (*ListProvidersInternalServerError) SetXRequestID

func (o *ListProvidersInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers internal server error response

func (*ListProvidersInternalServerError) WithPayload

WithPayload adds the payload to the list providers internal server error response

func (*ListProvidersInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list providers internal server error response

func (*ListProvidersInternalServerError) WriteResponse

func (o *ListProvidersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersNotFound

type ListProvidersNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersNotFound Not found

swagger:response listProvidersNotFound

func NewListProvidersNotFound

func NewListProvidersNotFound() *ListProvidersNotFound

NewListProvidersNotFound creates ListProvidersNotFound with default headers values

func (*ListProvidersNotFound) SetPayload

func (o *ListProvidersNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers not found response

func (*ListProvidersNotFound) SetXRequestID

func (o *ListProvidersNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers not found response

func (*ListProvidersNotFound) WithPayload

func (o *ListProvidersNotFound) WithPayload(payload *models.Errors) *ListProvidersNotFound

WithPayload adds the payload to the list providers not found response

func (*ListProvidersNotFound) WithXRequestID

func (o *ListProvidersNotFound) WithXRequestID(xRequestID string) *ListProvidersNotFound

WithXRequestID adds the xRequestId to the list providers not found response

func (*ListProvidersNotFound) WriteResponse

func (o *ListProvidersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersOK

type ListProvidersOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Metadata `json:"body,omitempty"`
}

ListProvidersOK Success

swagger:response listProvidersOK

func NewListProvidersOK

func NewListProvidersOK() *ListProvidersOK

NewListProvidersOK creates ListProvidersOK with default headers values

func (*ListProvidersOK) SetPayload

func (o *ListProvidersOK) SetPayload(payload []*models.Metadata)

SetPayload sets the payload to the list providers o k response

func (*ListProvidersOK) WithPayload

func (o *ListProvidersOK) WithPayload(payload []*models.Metadata) *ListProvidersOK

WithPayload adds the payload to the list providers o k response

func (*ListProvidersOK) WriteResponse

func (o *ListProvidersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersParams

type ListProvidersParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
}

ListProvidersParams contains all the bound params for the list providers operation typically these are obtained from a http.Request

swagger:parameters ListProviders

func NewListProvidersParams

func NewListProvidersParams() ListProvidersParams

NewListProvidersParams creates a new ListProvidersParams object no default values defined in spec.

func (*ListProvidersParams) BindRequest

func (o *ListProvidersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListProvidersParams() beforehand.

type ListProvidersURL

type ListProvidersURL struct {
	// contains filtered or unexported fields
}

ListProvidersURL generates an URL for the list providers operation

func (*ListProvidersURL) Build

func (o *ListProvidersURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListProvidersURL) BuildFull

func (o *ListProvidersURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListProvidersURL) Must

func (o *ListProvidersURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListProvidersURL) SetBasePath

func (o *ListProvidersURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListProvidersURL) String

func (o *ListProvidersURL) String() string

String returns the string representation of the path with query string

func (*ListProvidersURL) StringFull

func (o *ListProvidersURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListProvidersURL) WithBasePath

func (o *ListProvidersURL) WithBasePath(bp string) *ListProvidersURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListProvidersUnauthorized

type ListProvidersUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnauthorized Unauthorized

swagger:response listProvidersUnauthorized

func NewListProvidersUnauthorized

func NewListProvidersUnauthorized() *ListProvidersUnauthorized

NewListProvidersUnauthorized creates ListProvidersUnauthorized with default headers values

func (*ListProvidersUnauthorized) SetPayload

func (o *ListProvidersUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers unauthorized response

func (*ListProvidersUnauthorized) SetXRequestID

func (o *ListProvidersUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers unauthorized response

func (*ListProvidersUnauthorized) WithPayload

WithPayload adds the payload to the list providers unauthorized response

func (*ListProvidersUnauthorized) WithXRequestID

func (o *ListProvidersUnauthorized) WithXRequestID(xRequestID string) *ListProvidersUnauthorized

WithXRequestID adds the xRequestId to the list providers unauthorized response

func (*ListProvidersUnauthorized) WriteResponse

func (o *ListProvidersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersUnderProject

type ListProvidersUnderProject struct {
	Context *middleware.Context
	Handler ListProvidersUnderProjectHandler
}

ListProvidersUnderProject swagger:route GET /projects/{project_name}/preheat/providers preheat listProvidersUnderProject

Get all providers at project level

Get all providers at project level

func NewListProvidersUnderProject

func NewListProvidersUnderProject(ctx *middleware.Context, handler ListProvidersUnderProjectHandler) *ListProvidersUnderProject

NewListProvidersUnderProject creates a new http.Handler for the list providers under project operation

func (*ListProvidersUnderProject) ServeHTTP

type ListProvidersUnderProjectBadRequest

type ListProvidersUnderProjectBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnderProjectBadRequest Bad request

swagger:response listProvidersUnderProjectBadRequest

func NewListProvidersUnderProjectBadRequest

func NewListProvidersUnderProjectBadRequest() *ListProvidersUnderProjectBadRequest

NewListProvidersUnderProjectBadRequest creates ListProvidersUnderProjectBadRequest with default headers values

func (*ListProvidersUnderProjectBadRequest) SetPayload

func (o *ListProvidersUnderProjectBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers under project bad request response

func (*ListProvidersUnderProjectBadRequest) SetXRequestID

func (o *ListProvidersUnderProjectBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers under project bad request response

func (*ListProvidersUnderProjectBadRequest) WithPayload

WithPayload adds the payload to the list providers under project bad request response

func (*ListProvidersUnderProjectBadRequest) WithXRequestID

WithXRequestID adds the xRequestId to the list providers under project bad request response

func (*ListProvidersUnderProjectBadRequest) WriteResponse

WriteResponse to the client

type ListProvidersUnderProjectForbidden

type ListProvidersUnderProjectForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnderProjectForbidden Forbidden

swagger:response listProvidersUnderProjectForbidden

func NewListProvidersUnderProjectForbidden

func NewListProvidersUnderProjectForbidden() *ListProvidersUnderProjectForbidden

NewListProvidersUnderProjectForbidden creates ListProvidersUnderProjectForbidden with default headers values

func (*ListProvidersUnderProjectForbidden) SetPayload

func (o *ListProvidersUnderProjectForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers under project forbidden response

func (*ListProvidersUnderProjectForbidden) SetXRequestID

func (o *ListProvidersUnderProjectForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers under project forbidden response

func (*ListProvidersUnderProjectForbidden) WithPayload

WithPayload adds the payload to the list providers under project forbidden response

func (*ListProvidersUnderProjectForbidden) WithXRequestID

WithXRequestID adds the xRequestId to the list providers under project forbidden response

func (*ListProvidersUnderProjectForbidden) WriteResponse

WriteResponse to the client

type ListProvidersUnderProjectHandler

type ListProvidersUnderProjectHandler interface {
	Handle(ListProvidersUnderProjectParams, interface{}) middleware.Responder
}

ListProvidersUnderProjectHandler interface for that can handle valid list providers under project params

type ListProvidersUnderProjectHandlerFunc

type ListProvidersUnderProjectHandlerFunc func(ListProvidersUnderProjectParams, interface{}) middleware.Responder

ListProvidersUnderProjectHandlerFunc turns a function with the right signature into a list providers under project handler

func (ListProvidersUnderProjectHandlerFunc) Handle

Handle executing the request and returning a response

type ListProvidersUnderProjectInternalServerError

type ListProvidersUnderProjectInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnderProjectInternalServerError Internal server error

swagger:response listProvidersUnderProjectInternalServerError

func NewListProvidersUnderProjectInternalServerError

func NewListProvidersUnderProjectInternalServerError() *ListProvidersUnderProjectInternalServerError

NewListProvidersUnderProjectInternalServerError creates ListProvidersUnderProjectInternalServerError with default headers values

func (*ListProvidersUnderProjectInternalServerError) SetPayload

SetPayload sets the payload to the list providers under project internal server error response

func (*ListProvidersUnderProjectInternalServerError) SetXRequestID

func (o *ListProvidersUnderProjectInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers under project internal server error response

func (*ListProvidersUnderProjectInternalServerError) WithPayload

WithPayload adds the payload to the list providers under project internal server error response

func (*ListProvidersUnderProjectInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list providers under project internal server error response

func (*ListProvidersUnderProjectInternalServerError) WriteResponse

WriteResponse to the client

type ListProvidersUnderProjectNotFound

type ListProvidersUnderProjectNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnderProjectNotFound Not found

swagger:response listProvidersUnderProjectNotFound

func NewListProvidersUnderProjectNotFound

func NewListProvidersUnderProjectNotFound() *ListProvidersUnderProjectNotFound

NewListProvidersUnderProjectNotFound creates ListProvidersUnderProjectNotFound with default headers values

func (*ListProvidersUnderProjectNotFound) SetPayload

func (o *ListProvidersUnderProjectNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers under project not found response

func (*ListProvidersUnderProjectNotFound) SetXRequestID

func (o *ListProvidersUnderProjectNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers under project not found response

func (*ListProvidersUnderProjectNotFound) WithPayload

WithPayload adds the payload to the list providers under project not found response

func (*ListProvidersUnderProjectNotFound) WithXRequestID

WithXRequestID adds the xRequestId to the list providers under project not found response

func (*ListProvidersUnderProjectNotFound) WriteResponse

func (o *ListProvidersUnderProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersUnderProjectOK

type ListProvidersUnderProjectOK struct {

	/*
	  In: Body
	*/
	Payload []*models.ProviderUnderProject `json:"body,omitempty"`
}

ListProvidersUnderProjectOK Success

swagger:response listProvidersUnderProjectOK

func NewListProvidersUnderProjectOK

func NewListProvidersUnderProjectOK() *ListProvidersUnderProjectOK

NewListProvidersUnderProjectOK creates ListProvidersUnderProjectOK with default headers values

func (*ListProvidersUnderProjectOK) SetPayload

func (o *ListProvidersUnderProjectOK) SetPayload(payload []*models.ProviderUnderProject)

SetPayload sets the payload to the list providers under project o k response

func (*ListProvidersUnderProjectOK) WithPayload

WithPayload adds the payload to the list providers under project o k response

func (*ListProvidersUnderProjectOK) WriteResponse

func (o *ListProvidersUnderProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListProvidersUnderProjectParams

type ListProvidersUnderProjectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

ListProvidersUnderProjectParams contains all the bound params for the list providers under project operation typically these are obtained from a http.Request

swagger:parameters ListProvidersUnderProject

func NewListProvidersUnderProjectParams

func NewListProvidersUnderProjectParams() ListProvidersUnderProjectParams

NewListProvidersUnderProjectParams creates a new ListProvidersUnderProjectParams object no default values defined in spec.

func (*ListProvidersUnderProjectParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListProvidersUnderProjectParams() beforehand.

type ListProvidersUnderProjectURL

type ListProvidersUnderProjectURL struct {
	ProjectName string
	// contains filtered or unexported fields
}

ListProvidersUnderProjectURL generates an URL for the list providers under project operation

func (*ListProvidersUnderProjectURL) Build

func (o *ListProvidersUnderProjectURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListProvidersUnderProjectURL) BuildFull

func (o *ListProvidersUnderProjectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListProvidersUnderProjectURL) Must

func (o *ListProvidersUnderProjectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListProvidersUnderProjectURL) SetBasePath

func (o *ListProvidersUnderProjectURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListProvidersUnderProjectURL) String

String returns the string representation of the path with query string

func (*ListProvidersUnderProjectURL) StringFull

func (o *ListProvidersUnderProjectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListProvidersUnderProjectURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListProvidersUnderProjectUnauthorized

type ListProvidersUnderProjectUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListProvidersUnderProjectUnauthorized Unauthorized

swagger:response listProvidersUnderProjectUnauthorized

func NewListProvidersUnderProjectUnauthorized

func NewListProvidersUnderProjectUnauthorized() *ListProvidersUnderProjectUnauthorized

NewListProvidersUnderProjectUnauthorized creates ListProvidersUnderProjectUnauthorized with default headers values

func (*ListProvidersUnderProjectUnauthorized) SetPayload

func (o *ListProvidersUnderProjectUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list providers under project unauthorized response

func (*ListProvidersUnderProjectUnauthorized) SetXRequestID

func (o *ListProvidersUnderProjectUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list providers under project unauthorized response

func (*ListProvidersUnderProjectUnauthorized) WithPayload

WithPayload adds the payload to the list providers under project unauthorized response

func (*ListProvidersUnderProjectUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the list providers under project unauthorized response

func (*ListProvidersUnderProjectUnauthorized) WriteResponse

WriteResponse to the client

type ListTasks

type ListTasks struct {
	Context *middleware.Context
	Handler ListTasksHandler
}

ListTasks swagger:route GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks preheat listTasks

List all the related tasks for the given execution

func NewListTasks

func NewListTasks(ctx *middleware.Context, handler ListTasksHandler) *ListTasks

NewListTasks creates a new http.Handler for the list tasks operation

func (*ListTasks) ServeHTTP

func (o *ListTasks) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListTasksBadRequest

type ListTasksBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListTasksBadRequest Bad request

swagger:response listTasksBadRequest

func NewListTasksBadRequest

func NewListTasksBadRequest() *ListTasksBadRequest

NewListTasksBadRequest creates ListTasksBadRequest with default headers values

func (*ListTasksBadRequest) SetPayload

func (o *ListTasksBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tasks bad request response

func (*ListTasksBadRequest) SetXRequestID

func (o *ListTasksBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tasks bad request response

func (*ListTasksBadRequest) WithPayload

func (o *ListTasksBadRequest) WithPayload(payload *models.Errors) *ListTasksBadRequest

WithPayload adds the payload to the list tasks bad request response

func (*ListTasksBadRequest) WithXRequestID

func (o *ListTasksBadRequest) WithXRequestID(xRequestID string) *ListTasksBadRequest

WithXRequestID adds the xRequestId to the list tasks bad request response

func (*ListTasksBadRequest) WriteResponse

func (o *ListTasksBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksForbidden

type ListTasksForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListTasksForbidden Forbidden

swagger:response listTasksForbidden

func NewListTasksForbidden

func NewListTasksForbidden() *ListTasksForbidden

NewListTasksForbidden creates ListTasksForbidden with default headers values

func (*ListTasksForbidden) SetPayload

func (o *ListTasksForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tasks forbidden response

func (*ListTasksForbidden) SetXRequestID

func (o *ListTasksForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tasks forbidden response

func (*ListTasksForbidden) WithPayload

func (o *ListTasksForbidden) WithPayload(payload *models.Errors) *ListTasksForbidden

WithPayload adds the payload to the list tasks forbidden response

func (*ListTasksForbidden) WithXRequestID

func (o *ListTasksForbidden) WithXRequestID(xRequestID string) *ListTasksForbidden

WithXRequestID adds the xRequestId to the list tasks forbidden response

func (*ListTasksForbidden) WriteResponse

func (o *ListTasksForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksHandler

type ListTasksHandler interface {
	Handle(ListTasksParams, interface{}) middleware.Responder
}

ListTasksHandler interface for that can handle valid list tasks params

type ListTasksHandlerFunc

type ListTasksHandlerFunc func(ListTasksParams, interface{}) middleware.Responder

ListTasksHandlerFunc turns a function with the right signature into a list tasks handler

func (ListTasksHandlerFunc) Handle

func (fn ListTasksHandlerFunc) Handle(params ListTasksParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListTasksInternalServerError

type ListTasksInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListTasksInternalServerError Internal server error

swagger:response listTasksInternalServerError

func NewListTasksInternalServerError

func NewListTasksInternalServerError() *ListTasksInternalServerError

NewListTasksInternalServerError creates ListTasksInternalServerError with default headers values

func (*ListTasksInternalServerError) SetPayload

func (o *ListTasksInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tasks internal server error response

func (*ListTasksInternalServerError) SetXRequestID

func (o *ListTasksInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tasks internal server error response

func (*ListTasksInternalServerError) WithPayload

WithPayload adds the payload to the list tasks internal server error response

func (*ListTasksInternalServerError) WithXRequestID

func (o *ListTasksInternalServerError) WithXRequestID(xRequestID string) *ListTasksInternalServerError

WithXRequestID adds the xRequestId to the list tasks internal server error response

func (*ListTasksInternalServerError) WriteResponse

func (o *ListTasksInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksNotFound

type ListTasksNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListTasksNotFound Not found

swagger:response listTasksNotFound

func NewListTasksNotFound

func NewListTasksNotFound() *ListTasksNotFound

NewListTasksNotFound creates ListTasksNotFound with default headers values

func (*ListTasksNotFound) SetPayload

func (o *ListTasksNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tasks not found response

func (*ListTasksNotFound) SetXRequestID

func (o *ListTasksNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tasks not found response

func (*ListTasksNotFound) WithPayload

func (o *ListTasksNotFound) WithPayload(payload *models.Errors) *ListTasksNotFound

WithPayload adds the payload to the list tasks not found response

func (*ListTasksNotFound) WithXRequestID

func (o *ListTasksNotFound) WithXRequestID(xRequestID string) *ListTasksNotFound

WithXRequestID adds the xRequestId to the list tasks not found response

func (*ListTasksNotFound) WriteResponse

func (o *ListTasksNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksOK

type ListTasksOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of tasks

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.Task `json:"body,omitempty"`
}

ListTasksOK List tasks success

swagger:response listTasksOK

func NewListTasksOK

func NewListTasksOK() *ListTasksOK

NewListTasksOK creates ListTasksOK with default headers values

func (o *ListTasksOK) SetLink(link string)

SetLink sets the link to the list tasks o k response

func (*ListTasksOK) SetPayload

func (o *ListTasksOK) SetPayload(payload []*models.Task)

SetPayload sets the payload to the list tasks o k response

func (*ListTasksOK) SetXTotalCount

func (o *ListTasksOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list tasks o k response

func (o *ListTasksOK) WithLink(link string) *ListTasksOK

WithLink adds the link to the list tasks o k response

func (*ListTasksOK) WithPayload

func (o *ListTasksOK) WithPayload(payload []*models.Task) *ListTasksOK

WithPayload adds the payload to the list tasks o k response

func (*ListTasksOK) WithXTotalCount

func (o *ListTasksOK) WithXTotalCount(xTotalCount int64) *ListTasksOK

WithXTotalCount adds the xTotalCount to the list tasks o k response

func (*ListTasksOK) WriteResponse

func (o *ListTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksParams

type ListTasksParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*Execution ID
	  Required: true
	  In: path
	*/
	ExecutionID int64
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
	/*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
	  In: query
	*/
	Q *string
}

ListTasksParams contains all the bound params for the list tasks operation typically these are obtained from a http.Request

swagger:parameters ListTasks

func NewListTasksParams

func NewListTasksParams() ListTasksParams

NewListTasksParams creates a new ListTasksParams object with the default values initialized.

func (*ListTasksParams) BindRequest

func (o *ListTasksParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListTasksParams() beforehand.

type ListTasksURL

type ListTasksURL struct {
	ExecutionID       int64
	PreheatPolicyName string
	ProjectName       string

	Page     *int64
	PageSize *int64
	Q        *string
	// contains filtered or unexported fields
}

ListTasksURL generates an URL for the list tasks operation

func (*ListTasksURL) Build

func (o *ListTasksURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListTasksURL) BuildFull

func (o *ListTasksURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListTasksURL) Must

func (o *ListTasksURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListTasksURL) SetBasePath

func (o *ListTasksURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListTasksURL) String

func (o *ListTasksURL) String() string

String returns the string representation of the path with query string

func (*ListTasksURL) StringFull

func (o *ListTasksURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListTasksURL) WithBasePath

func (o *ListTasksURL) WithBasePath(bp string) *ListTasksURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListTasksUnauthorized

type ListTasksUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListTasksUnauthorized Unauthorized

swagger:response listTasksUnauthorized

func NewListTasksUnauthorized

func NewListTasksUnauthorized() *ListTasksUnauthorized

NewListTasksUnauthorized creates ListTasksUnauthorized with default headers values

func (*ListTasksUnauthorized) SetPayload

func (o *ListTasksUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list tasks unauthorized response

func (*ListTasksUnauthorized) SetXRequestID

func (o *ListTasksUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list tasks unauthorized response

func (*ListTasksUnauthorized) WithPayload

func (o *ListTasksUnauthorized) WithPayload(payload *models.Errors) *ListTasksUnauthorized

WithPayload adds the payload to the list tasks unauthorized response

func (*ListTasksUnauthorized) WithXRequestID

func (o *ListTasksUnauthorized) WithXRequestID(xRequestID string) *ListTasksUnauthorized

WithXRequestID adds the xRequestId to the list tasks unauthorized response

func (*ListTasksUnauthorized) WriteResponse

func (o *ListTasksUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheat

type ManualPreheat struct {
	Context *middleware.Context
	Handler ManualPreheatHandler
}

ManualPreheat swagger:route POST /projects/{project_name}/preheat/policies/{preheat_policy_name} preheat manualPreheat

Manual preheat

Manual preheat

func NewManualPreheat

func NewManualPreheat(ctx *middleware.Context, handler ManualPreheatHandler) *ManualPreheat

NewManualPreheat creates a new http.Handler for the manual preheat operation

func (*ManualPreheat) ServeHTTP

func (o *ManualPreheat) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ManualPreheatBadRequest

type ManualPreheatBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ManualPreheatBadRequest Bad request

swagger:response manualPreheatBadRequest

func NewManualPreheatBadRequest

func NewManualPreheatBadRequest() *ManualPreheatBadRequest

NewManualPreheatBadRequest creates ManualPreheatBadRequest with default headers values

func (*ManualPreheatBadRequest) SetPayload

func (o *ManualPreheatBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the manual preheat bad request response

func (*ManualPreheatBadRequest) SetXRequestID

func (o *ManualPreheatBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat bad request response

func (*ManualPreheatBadRequest) WithPayload

WithPayload adds the payload to the manual preheat bad request response

func (*ManualPreheatBadRequest) WithXRequestID

func (o *ManualPreheatBadRequest) WithXRequestID(xRequestID string) *ManualPreheatBadRequest

WithXRequestID adds the xRequestId to the manual preheat bad request response

func (*ManualPreheatBadRequest) WriteResponse

func (o *ManualPreheatBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheatCreated

type ManualPreheatCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

ManualPreheatCreated Created

swagger:response manualPreheatCreated

func NewManualPreheatCreated

func NewManualPreheatCreated() *ManualPreheatCreated

NewManualPreheatCreated creates ManualPreheatCreated with default headers values

func (*ManualPreheatCreated) SetLocation

func (o *ManualPreheatCreated) SetLocation(location string)

SetLocation sets the location to the manual preheat created response

func (*ManualPreheatCreated) SetXRequestID

func (o *ManualPreheatCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat created response

func (*ManualPreheatCreated) WithLocation

func (o *ManualPreheatCreated) WithLocation(location string) *ManualPreheatCreated

WithLocation adds the location to the manual preheat created response

func (*ManualPreheatCreated) WithXRequestID

func (o *ManualPreheatCreated) WithXRequestID(xRequestID string) *ManualPreheatCreated

WithXRequestID adds the xRequestId to the manual preheat created response

func (*ManualPreheatCreated) WriteResponse

func (o *ManualPreheatCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheatForbidden

type ManualPreheatForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ManualPreheatForbidden Forbidden

swagger:response manualPreheatForbidden

func NewManualPreheatForbidden

func NewManualPreheatForbidden() *ManualPreheatForbidden

NewManualPreheatForbidden creates ManualPreheatForbidden with default headers values

func (*ManualPreheatForbidden) SetPayload

func (o *ManualPreheatForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the manual preheat forbidden response

func (*ManualPreheatForbidden) SetXRequestID

func (o *ManualPreheatForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat forbidden response

func (*ManualPreheatForbidden) WithPayload

func (o *ManualPreheatForbidden) WithPayload(payload *models.Errors) *ManualPreheatForbidden

WithPayload adds the payload to the manual preheat forbidden response

func (*ManualPreheatForbidden) WithXRequestID

func (o *ManualPreheatForbidden) WithXRequestID(xRequestID string) *ManualPreheatForbidden

WithXRequestID adds the xRequestId to the manual preheat forbidden response

func (*ManualPreheatForbidden) WriteResponse

func (o *ManualPreheatForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheatHandler

type ManualPreheatHandler interface {
	Handle(ManualPreheatParams, interface{}) middleware.Responder
}

ManualPreheatHandler interface for that can handle valid manual preheat params

type ManualPreheatHandlerFunc

type ManualPreheatHandlerFunc func(ManualPreheatParams, interface{}) middleware.Responder

ManualPreheatHandlerFunc turns a function with the right signature into a manual preheat handler

func (ManualPreheatHandlerFunc) Handle

func (fn ManualPreheatHandlerFunc) Handle(params ManualPreheatParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ManualPreheatInternalServerError

type ManualPreheatInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ManualPreheatInternalServerError Internal server error

swagger:response manualPreheatInternalServerError

func NewManualPreheatInternalServerError

func NewManualPreheatInternalServerError() *ManualPreheatInternalServerError

NewManualPreheatInternalServerError creates ManualPreheatInternalServerError with default headers values

func (*ManualPreheatInternalServerError) SetPayload

func (o *ManualPreheatInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the manual preheat internal server error response

func (*ManualPreheatInternalServerError) SetXRequestID

func (o *ManualPreheatInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat internal server error response

func (*ManualPreheatInternalServerError) WithPayload

WithPayload adds the payload to the manual preheat internal server error response

func (*ManualPreheatInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the manual preheat internal server error response

func (*ManualPreheatInternalServerError) WriteResponse

func (o *ManualPreheatInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheatNotFound

type ManualPreheatNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ManualPreheatNotFound Not found

swagger:response manualPreheatNotFound

func NewManualPreheatNotFound

func NewManualPreheatNotFound() *ManualPreheatNotFound

NewManualPreheatNotFound creates ManualPreheatNotFound with default headers values

func (*ManualPreheatNotFound) SetPayload

func (o *ManualPreheatNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the manual preheat not found response

func (*ManualPreheatNotFound) SetXRequestID

func (o *ManualPreheatNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat not found response

func (*ManualPreheatNotFound) WithPayload

func (o *ManualPreheatNotFound) WithPayload(payload *models.Errors) *ManualPreheatNotFound

WithPayload adds the payload to the manual preheat not found response

func (*ManualPreheatNotFound) WithXRequestID

func (o *ManualPreheatNotFound) WithXRequestID(xRequestID string) *ManualPreheatNotFound

WithXRequestID adds the xRequestId to the manual preheat not found response

func (*ManualPreheatNotFound) WriteResponse

func (o *ManualPreheatNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ManualPreheatParams

type ManualPreheatParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The policy schema info
	  Required: true
	  In: body
	*/
	Policy *models.PreheatPolicy
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

ManualPreheatParams contains all the bound params for the manual preheat operation typically these are obtained from a http.Request

swagger:parameters ManualPreheat

func NewManualPreheatParams

func NewManualPreheatParams() ManualPreheatParams

NewManualPreheatParams creates a new ManualPreheatParams object no default values defined in spec.

func (*ManualPreheatParams) BindRequest

func (o *ManualPreheatParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewManualPreheatParams() beforehand.

type ManualPreheatURL

type ManualPreheatURL struct {
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

ManualPreheatURL generates an URL for the manual preheat operation

func (*ManualPreheatURL) Build

func (o *ManualPreheatURL) Build() (*url.URL, error)

Build a url path and query string

func (*ManualPreheatURL) BuildFull

func (o *ManualPreheatURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ManualPreheatURL) Must

func (o *ManualPreheatURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ManualPreheatURL) SetBasePath

func (o *ManualPreheatURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ManualPreheatURL) String

func (o *ManualPreheatURL) String() string

String returns the string representation of the path with query string

func (*ManualPreheatURL) StringFull

func (o *ManualPreheatURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ManualPreheatURL) WithBasePath

func (o *ManualPreheatURL) WithBasePath(bp string) *ManualPreheatURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ManualPreheatUnauthorized

type ManualPreheatUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ManualPreheatUnauthorized Unauthorized

swagger:response manualPreheatUnauthorized

func NewManualPreheatUnauthorized

func NewManualPreheatUnauthorized() *ManualPreheatUnauthorized

NewManualPreheatUnauthorized creates ManualPreheatUnauthorized with default headers values

func (*ManualPreheatUnauthorized) SetPayload

func (o *ManualPreheatUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the manual preheat unauthorized response

func (*ManualPreheatUnauthorized) SetXRequestID

func (o *ManualPreheatUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the manual preheat unauthorized response

func (*ManualPreheatUnauthorized) WithPayload

WithPayload adds the payload to the manual preheat unauthorized response

func (*ManualPreheatUnauthorized) WithXRequestID

func (o *ManualPreheatUnauthorized) WithXRequestID(xRequestID string) *ManualPreheatUnauthorized

WithXRequestID adds the xRequestId to the manual preheat unauthorized response

func (*ManualPreheatUnauthorized) WriteResponse

func (o *ManualPreheatUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PingInstances

type PingInstances struct {
	Context *middleware.Context
	Handler PingInstancesHandler
}

PingInstances swagger:route POST /p2p/preheat/instances/ping preheat pingInstances

Ping status of a instance.

This endpoint checks status of a instance, the instance can be given by ID or Endpoint URL (together with credential)

func NewPingInstances

func NewPingInstances(ctx *middleware.Context, handler PingInstancesHandler) *PingInstances

NewPingInstances creates a new http.Handler for the ping instances operation

func (*PingInstances) ServeHTTP

func (o *PingInstances) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PingInstancesBadRequest

type PingInstancesBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

PingInstancesBadRequest Bad request

swagger:response pingInstancesBadRequest

func NewPingInstancesBadRequest

func NewPingInstancesBadRequest() *PingInstancesBadRequest

NewPingInstancesBadRequest creates PingInstancesBadRequest with default headers values

func (*PingInstancesBadRequest) SetPayload

func (o *PingInstancesBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the ping instances bad request response

func (*PingInstancesBadRequest) SetXRequestID

func (o *PingInstancesBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the ping instances bad request response

func (*PingInstancesBadRequest) WithPayload

WithPayload adds the payload to the ping instances bad request response

func (*PingInstancesBadRequest) WithXRequestID

func (o *PingInstancesBadRequest) WithXRequestID(xRequestID string) *PingInstancesBadRequest

WithXRequestID adds the xRequestId to the ping instances bad request response

func (*PingInstancesBadRequest) WriteResponse

func (o *PingInstancesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PingInstancesHandler

type PingInstancesHandler interface {
	Handle(PingInstancesParams, interface{}) middleware.Responder
}

PingInstancesHandler interface for that can handle valid ping instances params

type PingInstancesHandlerFunc

type PingInstancesHandlerFunc func(PingInstancesParams, interface{}) middleware.Responder

PingInstancesHandlerFunc turns a function with the right signature into a ping instances handler

func (PingInstancesHandlerFunc) Handle

func (fn PingInstancesHandlerFunc) Handle(params PingInstancesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type PingInstancesInternalServerError

type PingInstancesInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

PingInstancesInternalServerError Internal server error

swagger:response pingInstancesInternalServerError

func NewPingInstancesInternalServerError

func NewPingInstancesInternalServerError() *PingInstancesInternalServerError

NewPingInstancesInternalServerError creates PingInstancesInternalServerError with default headers values

func (*PingInstancesInternalServerError) SetPayload

func (o *PingInstancesInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the ping instances internal server error response

func (*PingInstancesInternalServerError) SetXRequestID

func (o *PingInstancesInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the ping instances internal server error response

func (*PingInstancesInternalServerError) WithPayload

WithPayload adds the payload to the ping instances internal server error response

func (*PingInstancesInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the ping instances internal server error response

func (*PingInstancesInternalServerError) WriteResponse

func (o *PingInstancesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PingInstancesNotFound

type PingInstancesNotFound struct {
}

PingInstancesNotFound Instance not found (when instance is provided by ID).

swagger:response pingInstancesNotFound

func NewPingInstancesNotFound

func NewPingInstancesNotFound() *PingInstancesNotFound

NewPingInstancesNotFound creates PingInstancesNotFound with default headers values

func (*PingInstancesNotFound) WriteResponse

func (o *PingInstancesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PingInstancesOK

type PingInstancesOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

PingInstancesOK Success

swagger:response pingInstancesOK

func NewPingInstancesOK

func NewPingInstancesOK() *PingInstancesOK

NewPingInstancesOK creates PingInstancesOK with default headers values

func (*PingInstancesOK) SetXRequestID

func (o *PingInstancesOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the ping instances o k response

func (*PingInstancesOK) WithXRequestID

func (o *PingInstancesOK) WithXRequestID(xRequestID string) *PingInstancesOK

WithXRequestID adds the xRequestId to the ping instances o k response

func (*PingInstancesOK) WriteResponse

func (o *PingInstancesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PingInstancesParams

type PingInstancesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The JSON object of instance.
	  Required: true
	  In: body
	*/
	Instance *models.Instance
}

PingInstancesParams contains all the bound params for the ping instances operation typically these are obtained from a http.Request

swagger:parameters PingInstances

func NewPingInstancesParams

func NewPingInstancesParams() PingInstancesParams

NewPingInstancesParams creates a new PingInstancesParams object no default values defined in spec.

func (*PingInstancesParams) BindRequest

func (o *PingInstancesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPingInstancesParams() beforehand.

type PingInstancesURL

type PingInstancesURL struct {
	// contains filtered or unexported fields
}

PingInstancesURL generates an URL for the ping instances operation

func (*PingInstancesURL) Build

func (o *PingInstancesURL) Build() (*url.URL, error)

Build a url path and query string

func (*PingInstancesURL) BuildFull

func (o *PingInstancesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PingInstancesURL) Must

func (o *PingInstancesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PingInstancesURL) SetBasePath

func (o *PingInstancesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PingInstancesURL) String

func (o *PingInstancesURL) String() string

String returns the string representation of the path with query string

func (*PingInstancesURL) StringFull

func (o *PingInstancesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PingInstancesURL) WithBasePath

func (o *PingInstancesURL) WithBasePath(bp string) *PingInstancesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PingInstancesUnauthorized

type PingInstancesUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

PingInstancesUnauthorized Unauthorized

swagger:response pingInstancesUnauthorized

func NewPingInstancesUnauthorized

func NewPingInstancesUnauthorized() *PingInstancesUnauthorized

NewPingInstancesUnauthorized creates PingInstancesUnauthorized with default headers values

func (*PingInstancesUnauthorized) SetPayload

func (o *PingInstancesUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the ping instances unauthorized response

func (*PingInstancesUnauthorized) SetXRequestID

func (o *PingInstancesUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the ping instances unauthorized response

func (*PingInstancesUnauthorized) WithPayload

WithPayload adds the payload to the ping instances unauthorized response

func (*PingInstancesUnauthorized) WithXRequestID

func (o *PingInstancesUnauthorized) WithXRequestID(xRequestID string) *PingInstancesUnauthorized

WithXRequestID adds the xRequestId to the ping instances unauthorized response

func (*PingInstancesUnauthorized) WriteResponse

func (o *PingInstancesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecution

type StopExecution struct {
	Context *middleware.Context
	Handler StopExecutionHandler
}

StopExecution swagger:route PATCH /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id} preheat stopExecution

Stop a execution

Stop a execution

func NewStopExecution

func NewStopExecution(ctx *middleware.Context, handler StopExecutionHandler) *StopExecution

NewStopExecution creates a new http.Handler for the stop execution operation

func (*StopExecution) ServeHTTP

func (o *StopExecution) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type StopExecutionBadRequest

type StopExecutionBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

StopExecutionBadRequest Bad request

swagger:response stopExecutionBadRequest

func NewStopExecutionBadRequest

func NewStopExecutionBadRequest() *StopExecutionBadRequest

NewStopExecutionBadRequest creates StopExecutionBadRequest with default headers values

func (*StopExecutionBadRequest) SetPayload

func (o *StopExecutionBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the stop execution bad request response

func (*StopExecutionBadRequest) SetXRequestID

func (o *StopExecutionBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution bad request response

func (*StopExecutionBadRequest) WithPayload

WithPayload adds the payload to the stop execution bad request response

func (*StopExecutionBadRequest) WithXRequestID

func (o *StopExecutionBadRequest) WithXRequestID(xRequestID string) *StopExecutionBadRequest

WithXRequestID adds the xRequestId to the stop execution bad request response

func (*StopExecutionBadRequest) WriteResponse

func (o *StopExecutionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecutionForbidden

type StopExecutionForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

StopExecutionForbidden Forbidden

swagger:response stopExecutionForbidden

func NewStopExecutionForbidden

func NewStopExecutionForbidden() *StopExecutionForbidden

NewStopExecutionForbidden creates StopExecutionForbidden with default headers values

func (*StopExecutionForbidden) SetPayload

func (o *StopExecutionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the stop execution forbidden response

func (*StopExecutionForbidden) SetXRequestID

func (o *StopExecutionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution forbidden response

func (*StopExecutionForbidden) WithPayload

func (o *StopExecutionForbidden) WithPayload(payload *models.Errors) *StopExecutionForbidden

WithPayload adds the payload to the stop execution forbidden response

func (*StopExecutionForbidden) WithXRequestID

func (o *StopExecutionForbidden) WithXRequestID(xRequestID string) *StopExecutionForbidden

WithXRequestID adds the xRequestId to the stop execution forbidden response

func (*StopExecutionForbidden) WriteResponse

func (o *StopExecutionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecutionHandler

type StopExecutionHandler interface {
	Handle(StopExecutionParams, interface{}) middleware.Responder
}

StopExecutionHandler interface for that can handle valid stop execution params

type StopExecutionHandlerFunc

type StopExecutionHandlerFunc func(StopExecutionParams, interface{}) middleware.Responder

StopExecutionHandlerFunc turns a function with the right signature into a stop execution handler

func (StopExecutionHandlerFunc) Handle

func (fn StopExecutionHandlerFunc) Handle(params StopExecutionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type StopExecutionInternalServerError

type StopExecutionInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

StopExecutionInternalServerError Internal server error

swagger:response stopExecutionInternalServerError

func NewStopExecutionInternalServerError

func NewStopExecutionInternalServerError() *StopExecutionInternalServerError

NewStopExecutionInternalServerError creates StopExecutionInternalServerError with default headers values

func (*StopExecutionInternalServerError) SetPayload

func (o *StopExecutionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the stop execution internal server error response

func (*StopExecutionInternalServerError) SetXRequestID

func (o *StopExecutionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution internal server error response

func (*StopExecutionInternalServerError) WithPayload

WithPayload adds the payload to the stop execution internal server error response

func (*StopExecutionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the stop execution internal server error response

func (*StopExecutionInternalServerError) WriteResponse

func (o *StopExecutionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecutionNotFound

type StopExecutionNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

StopExecutionNotFound Not found

swagger:response stopExecutionNotFound

func NewStopExecutionNotFound

func NewStopExecutionNotFound() *StopExecutionNotFound

NewStopExecutionNotFound creates StopExecutionNotFound with default headers values

func (*StopExecutionNotFound) SetPayload

func (o *StopExecutionNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the stop execution not found response

func (*StopExecutionNotFound) SetXRequestID

func (o *StopExecutionNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution not found response

func (*StopExecutionNotFound) WithPayload

func (o *StopExecutionNotFound) WithPayload(payload *models.Errors) *StopExecutionNotFound

WithPayload adds the payload to the stop execution not found response

func (*StopExecutionNotFound) WithXRequestID

func (o *StopExecutionNotFound) WithXRequestID(xRequestID string) *StopExecutionNotFound

WithXRequestID adds the xRequestId to the stop execution not found response

func (*StopExecutionNotFound) WriteResponse

func (o *StopExecutionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecutionOK

type StopExecutionOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

StopExecutionOK Success

swagger:response stopExecutionOK

func NewStopExecutionOK

func NewStopExecutionOK() *StopExecutionOK

NewStopExecutionOK creates StopExecutionOK with default headers values

func (*StopExecutionOK) SetXRequestID

func (o *StopExecutionOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution o k response

func (*StopExecutionOK) WithXRequestID

func (o *StopExecutionOK) WithXRequestID(xRequestID string) *StopExecutionOK

WithXRequestID adds the xRequestId to the stop execution o k response

func (*StopExecutionOK) WriteResponse

func (o *StopExecutionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StopExecutionParams

type StopExecutionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The data of execution
	  Required: true
	  In: body
	*/
	Execution *models.Execution
	/*Execution ID
	  Required: true
	  In: path
	*/
	ExecutionID int64
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

StopExecutionParams contains all the bound params for the stop execution operation typically these are obtained from a http.Request

swagger:parameters StopExecution

func NewStopExecutionParams

func NewStopExecutionParams() StopExecutionParams

NewStopExecutionParams creates a new StopExecutionParams object no default values defined in spec.

func (*StopExecutionParams) BindRequest

func (o *StopExecutionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewStopExecutionParams() beforehand.

type StopExecutionURL

type StopExecutionURL struct {
	ExecutionID       int64
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

StopExecutionURL generates an URL for the stop execution operation

func (*StopExecutionURL) Build

func (o *StopExecutionURL) Build() (*url.URL, error)

Build a url path and query string

func (*StopExecutionURL) BuildFull

func (o *StopExecutionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*StopExecutionURL) Must

func (o *StopExecutionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*StopExecutionURL) SetBasePath

func (o *StopExecutionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*StopExecutionURL) String

func (o *StopExecutionURL) String() string

String returns the string representation of the path with query string

func (*StopExecutionURL) StringFull

func (o *StopExecutionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*StopExecutionURL) WithBasePath

func (o *StopExecutionURL) WithBasePath(bp string) *StopExecutionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type StopExecutionUnauthorized

type StopExecutionUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

StopExecutionUnauthorized Unauthorized

swagger:response stopExecutionUnauthorized

func NewStopExecutionUnauthorized

func NewStopExecutionUnauthorized() *StopExecutionUnauthorized

NewStopExecutionUnauthorized creates StopExecutionUnauthorized with default headers values

func (*StopExecutionUnauthorized) SetPayload

func (o *StopExecutionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the stop execution unauthorized response

func (*StopExecutionUnauthorized) SetXRequestID

func (o *StopExecutionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the stop execution unauthorized response

func (*StopExecutionUnauthorized) WithPayload

WithPayload adds the payload to the stop execution unauthorized response

func (*StopExecutionUnauthorized) WithXRequestID

func (o *StopExecutionUnauthorized) WithXRequestID(xRequestID string) *StopExecutionUnauthorized

WithXRequestID adds the xRequestId to the stop execution unauthorized response

func (*StopExecutionUnauthorized) WriteResponse

func (o *StopExecutionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstance

type UpdateInstance struct {
	Context *middleware.Context
	Handler UpdateInstanceHandler
}

UpdateInstance swagger:route PUT /p2p/preheat/instances/{preheat_instance_name} preheat updateInstance

Update the specified P2P provider instance

Update the specified P2P provider instance

func NewUpdateInstance

func NewUpdateInstance(ctx *middleware.Context, handler UpdateInstanceHandler) *UpdateInstance

NewUpdateInstance creates a new http.Handler for the update instance operation

func (*UpdateInstance) ServeHTTP

func (o *UpdateInstance) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateInstanceBadRequest

type UpdateInstanceBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateInstanceBadRequest Bad request

swagger:response updateInstanceBadRequest

func NewUpdateInstanceBadRequest

func NewUpdateInstanceBadRequest() *UpdateInstanceBadRequest

NewUpdateInstanceBadRequest creates UpdateInstanceBadRequest with default headers values

func (*UpdateInstanceBadRequest) SetPayload

func (o *UpdateInstanceBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update instance bad request response

func (*UpdateInstanceBadRequest) SetXRequestID

func (o *UpdateInstanceBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance bad request response

func (*UpdateInstanceBadRequest) WithPayload

WithPayload adds the payload to the update instance bad request response

func (*UpdateInstanceBadRequest) WithXRequestID

func (o *UpdateInstanceBadRequest) WithXRequestID(xRequestID string) *UpdateInstanceBadRequest

WithXRequestID adds the xRequestId to the update instance bad request response

func (*UpdateInstanceBadRequest) WriteResponse

func (o *UpdateInstanceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstanceForbidden

type UpdateInstanceForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateInstanceForbidden Forbidden

swagger:response updateInstanceForbidden

func NewUpdateInstanceForbidden

func NewUpdateInstanceForbidden() *UpdateInstanceForbidden

NewUpdateInstanceForbidden creates UpdateInstanceForbidden with default headers values

func (*UpdateInstanceForbidden) SetPayload

func (o *UpdateInstanceForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update instance forbidden response

func (*UpdateInstanceForbidden) SetXRequestID

func (o *UpdateInstanceForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance forbidden response

func (*UpdateInstanceForbidden) WithPayload

WithPayload adds the payload to the update instance forbidden response

func (*UpdateInstanceForbidden) WithXRequestID

func (o *UpdateInstanceForbidden) WithXRequestID(xRequestID string) *UpdateInstanceForbidden

WithXRequestID adds the xRequestId to the update instance forbidden response

func (*UpdateInstanceForbidden) WriteResponse

func (o *UpdateInstanceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstanceHandler

type UpdateInstanceHandler interface {
	Handle(UpdateInstanceParams, interface{}) middleware.Responder
}

UpdateInstanceHandler interface for that can handle valid update instance params

type UpdateInstanceHandlerFunc

type UpdateInstanceHandlerFunc func(UpdateInstanceParams, interface{}) middleware.Responder

UpdateInstanceHandlerFunc turns a function with the right signature into a update instance handler

func (UpdateInstanceHandlerFunc) Handle

func (fn UpdateInstanceHandlerFunc) Handle(params UpdateInstanceParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateInstanceInternalServerError

type UpdateInstanceInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateInstanceInternalServerError Internal server error

swagger:response updateInstanceInternalServerError

func NewUpdateInstanceInternalServerError

func NewUpdateInstanceInternalServerError() *UpdateInstanceInternalServerError

NewUpdateInstanceInternalServerError creates UpdateInstanceInternalServerError with default headers values

func (*UpdateInstanceInternalServerError) SetPayload

func (o *UpdateInstanceInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update instance internal server error response

func (*UpdateInstanceInternalServerError) SetXRequestID

func (o *UpdateInstanceInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance internal server error response

func (*UpdateInstanceInternalServerError) WithPayload

WithPayload adds the payload to the update instance internal server error response

func (*UpdateInstanceInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the update instance internal server error response

func (*UpdateInstanceInternalServerError) WriteResponse

func (o *UpdateInstanceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstanceNotFound

type UpdateInstanceNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateInstanceNotFound Not found

swagger:response updateInstanceNotFound

func NewUpdateInstanceNotFound

func NewUpdateInstanceNotFound() *UpdateInstanceNotFound

NewUpdateInstanceNotFound creates UpdateInstanceNotFound with default headers values

func (*UpdateInstanceNotFound) SetPayload

func (o *UpdateInstanceNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update instance not found response

func (*UpdateInstanceNotFound) SetXRequestID

func (o *UpdateInstanceNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance not found response

func (*UpdateInstanceNotFound) WithPayload

func (o *UpdateInstanceNotFound) WithPayload(payload *models.Errors) *UpdateInstanceNotFound

WithPayload adds the payload to the update instance not found response

func (*UpdateInstanceNotFound) WithXRequestID

func (o *UpdateInstanceNotFound) WithXRequestID(xRequestID string) *UpdateInstanceNotFound

WithXRequestID adds the xRequestId to the update instance not found response

func (*UpdateInstanceNotFound) WriteResponse

func (o *UpdateInstanceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstanceOK

type UpdateInstanceOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

UpdateInstanceOK Success

swagger:response updateInstanceOK

func NewUpdateInstanceOK

func NewUpdateInstanceOK() *UpdateInstanceOK

NewUpdateInstanceOK creates UpdateInstanceOK with default headers values

func (*UpdateInstanceOK) SetXRequestID

func (o *UpdateInstanceOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance o k response

func (*UpdateInstanceOK) WithXRequestID

func (o *UpdateInstanceOK) WithXRequestID(xRequestID string) *UpdateInstanceOK

WithXRequestID adds the xRequestId to the update instance o k response

func (*UpdateInstanceOK) WriteResponse

func (o *UpdateInstanceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateInstanceParams

type UpdateInstanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The instance to update
	  Required: true
	  In: body
	*/
	Instance *models.Instance
	/*Instance Name
	  Required: true
	  In: path
	*/
	PreheatInstanceName string
}

UpdateInstanceParams contains all the bound params for the update instance operation typically these are obtained from a http.Request

swagger:parameters UpdateInstance

func NewUpdateInstanceParams

func NewUpdateInstanceParams() UpdateInstanceParams

NewUpdateInstanceParams creates a new UpdateInstanceParams object no default values defined in spec.

func (*UpdateInstanceParams) BindRequest

func (o *UpdateInstanceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateInstanceParams() beforehand.

type UpdateInstanceURL

type UpdateInstanceURL struct {
	PreheatInstanceName string
	// contains filtered or unexported fields
}

UpdateInstanceURL generates an URL for the update instance operation

func (*UpdateInstanceURL) Build

func (o *UpdateInstanceURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateInstanceURL) BuildFull

func (o *UpdateInstanceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateInstanceURL) Must

func (o *UpdateInstanceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateInstanceURL) SetBasePath

func (o *UpdateInstanceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateInstanceURL) String

func (o *UpdateInstanceURL) String() string

String returns the string representation of the path with query string

func (*UpdateInstanceURL) StringFull

func (o *UpdateInstanceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateInstanceURL) WithBasePath

func (o *UpdateInstanceURL) WithBasePath(bp string) *UpdateInstanceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateInstanceUnauthorized

type UpdateInstanceUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateInstanceUnauthorized Unauthorized

swagger:response updateInstanceUnauthorized

func NewUpdateInstanceUnauthorized

func NewUpdateInstanceUnauthorized() *UpdateInstanceUnauthorized

NewUpdateInstanceUnauthorized creates UpdateInstanceUnauthorized with default headers values

func (*UpdateInstanceUnauthorized) SetPayload

func (o *UpdateInstanceUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update instance unauthorized response

func (*UpdateInstanceUnauthorized) SetXRequestID

func (o *UpdateInstanceUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update instance unauthorized response

func (*UpdateInstanceUnauthorized) WithPayload

WithPayload adds the payload to the update instance unauthorized response

func (*UpdateInstanceUnauthorized) WithXRequestID

func (o *UpdateInstanceUnauthorized) WithXRequestID(xRequestID string) *UpdateInstanceUnauthorized

WithXRequestID adds the xRequestId to the update instance unauthorized response

func (*UpdateInstanceUnauthorized) WriteResponse

func (o *UpdateInstanceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicy

type UpdatePolicy struct {
	Context *middleware.Context
	Handler UpdatePolicyHandler
}

UpdatePolicy swagger:route PUT /projects/{project_name}/preheat/policies/{preheat_policy_name} preheat updatePolicy

Update preheat policy

Update preheat policy

func NewUpdatePolicy

func NewUpdatePolicy(ctx *middleware.Context, handler UpdatePolicyHandler) *UpdatePolicy

NewUpdatePolicy creates a new http.Handler for the update policy operation

func (*UpdatePolicy) ServeHTTP

func (o *UpdatePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyBadRequest Bad request

swagger:response updatePolicyBadRequest

func NewUpdatePolicyBadRequest

func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest

NewUpdatePolicyBadRequest creates UpdatePolicyBadRequest with default headers values

func (*UpdatePolicyBadRequest) SetPayload

func (o *UpdatePolicyBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) SetXRequestID

func (o *UpdatePolicyBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy bad request response

func (*UpdatePolicyBadRequest) WithPayload

func (o *UpdatePolicyBadRequest) WithPayload(payload *models.Errors) *UpdatePolicyBadRequest

WithPayload adds the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) WithXRequestID

func (o *UpdatePolicyBadRequest) WithXRequestID(xRequestID string) *UpdatePolicyBadRequest

WithXRequestID adds the xRequestId to the update policy bad request response

func (*UpdatePolicyBadRequest) WriteResponse

func (o *UpdatePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyConflict

type UpdatePolicyConflict struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyConflict Conflict

swagger:response updatePolicyConflict

func NewUpdatePolicyConflict

func NewUpdatePolicyConflict() *UpdatePolicyConflict

NewUpdatePolicyConflict creates UpdatePolicyConflict with default headers values

func (*UpdatePolicyConflict) SetPayload

func (o *UpdatePolicyConflict) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy conflict response

func (*UpdatePolicyConflict) SetXRequestID

func (o *UpdatePolicyConflict) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy conflict response

func (*UpdatePolicyConflict) WithPayload

func (o *UpdatePolicyConflict) WithPayload(payload *models.Errors) *UpdatePolicyConflict

WithPayload adds the payload to the update policy conflict response

func (*UpdatePolicyConflict) WithXRequestID

func (o *UpdatePolicyConflict) WithXRequestID(xRequestID string) *UpdatePolicyConflict

WithXRequestID adds the xRequestId to the update policy conflict response

func (*UpdatePolicyConflict) WriteResponse

func (o *UpdatePolicyConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyForbidden

type UpdatePolicyForbidden struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyForbidden Forbidden

swagger:response updatePolicyForbidden

func NewUpdatePolicyForbidden

func NewUpdatePolicyForbidden() *UpdatePolicyForbidden

NewUpdatePolicyForbidden creates UpdatePolicyForbidden with default headers values

func (*UpdatePolicyForbidden) SetPayload

func (o *UpdatePolicyForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy forbidden response

func (*UpdatePolicyForbidden) SetXRequestID

func (o *UpdatePolicyForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy forbidden response

func (*UpdatePolicyForbidden) WithPayload

func (o *UpdatePolicyForbidden) WithPayload(payload *models.Errors) *UpdatePolicyForbidden

WithPayload adds the payload to the update policy forbidden response

func (*UpdatePolicyForbidden) WithXRequestID

func (o *UpdatePolicyForbidden) WithXRequestID(xRequestID string) *UpdatePolicyForbidden

WithXRequestID adds the xRequestId to the update policy forbidden response

func (*UpdatePolicyForbidden) WriteResponse

func (o *UpdatePolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyHandler

type UpdatePolicyHandler interface {
	Handle(UpdatePolicyParams, interface{}) middleware.Responder
}

UpdatePolicyHandler interface for that can handle valid update policy params

type UpdatePolicyHandlerFunc

type UpdatePolicyHandlerFunc func(UpdatePolicyParams, interface{}) middleware.Responder

UpdatePolicyHandlerFunc turns a function with the right signature into a update policy handler

func (UpdatePolicyHandlerFunc) Handle

func (fn UpdatePolicyHandlerFunc) Handle(params UpdatePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdatePolicyInternalServerError

type UpdatePolicyInternalServerError struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyInternalServerError Internal server error

swagger:response updatePolicyInternalServerError

func NewUpdatePolicyInternalServerError

func NewUpdatePolicyInternalServerError() *UpdatePolicyInternalServerError

NewUpdatePolicyInternalServerError creates UpdatePolicyInternalServerError with default headers values

func (*UpdatePolicyInternalServerError) SetPayload

func (o *UpdatePolicyInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy internal server error response

func (*UpdatePolicyInternalServerError) SetXRequestID

func (o *UpdatePolicyInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy internal server error response

func (*UpdatePolicyInternalServerError) WithPayload

WithPayload adds the payload to the update policy internal server error response

func (*UpdatePolicyInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the update policy internal server error response

func (*UpdatePolicyInternalServerError) WriteResponse

func (o *UpdatePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyNotFound

type UpdatePolicyNotFound struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyNotFound Not found

swagger:response updatePolicyNotFound

func NewUpdatePolicyNotFound

func NewUpdatePolicyNotFound() *UpdatePolicyNotFound

NewUpdatePolicyNotFound creates UpdatePolicyNotFound with default headers values

func (*UpdatePolicyNotFound) SetPayload

func (o *UpdatePolicyNotFound) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy not found response

func (*UpdatePolicyNotFound) SetXRequestID

func (o *UpdatePolicyNotFound) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy not found response

func (*UpdatePolicyNotFound) WithPayload

func (o *UpdatePolicyNotFound) WithPayload(payload *models.Errors) *UpdatePolicyNotFound

WithPayload adds the payload to the update policy not found response

func (*UpdatePolicyNotFound) WithXRequestID

func (o *UpdatePolicyNotFound) WithXRequestID(xRequestID string) *UpdatePolicyNotFound

WithXRequestID adds the xRequestId to the update policy not found response

func (*UpdatePolicyNotFound) WriteResponse

func (o *UpdatePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyOK

type UpdatePolicyOK struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

UpdatePolicyOK Success

swagger:response updatePolicyOK

func NewUpdatePolicyOK

func NewUpdatePolicyOK() *UpdatePolicyOK

NewUpdatePolicyOK creates UpdatePolicyOK with default headers values

func (*UpdatePolicyOK) SetXRequestID

func (o *UpdatePolicyOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy o k response

func (*UpdatePolicyOK) WithXRequestID

func (o *UpdatePolicyOK) WithXRequestID(xRequestID string) *UpdatePolicyOK

WithXRequestID adds the xRequestId to the update policy o k response

func (*UpdatePolicyOK) WriteResponse

func (o *UpdatePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyParams

type UpdatePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The policy schema info
	  Required: true
	  In: body
	*/
	Policy *models.PreheatPolicy
	/*Preheat Policy Name
	  Required: true
	  In: path
	*/
	PreheatPolicyName string
	/*The name of the project
	  Required: true
	  In: path
	*/
	ProjectName string
}

UpdatePolicyParams contains all the bound params for the update policy operation typically these are obtained from a http.Request

swagger:parameters UpdatePolicy

func NewUpdatePolicyParams

func NewUpdatePolicyParams() UpdatePolicyParams

NewUpdatePolicyParams creates a new UpdatePolicyParams object no default values defined in spec.

func (*UpdatePolicyParams) BindRequest

func (o *UpdatePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdatePolicyParams() beforehand.

type UpdatePolicyURL

type UpdatePolicyURL struct {
	PreheatPolicyName string
	ProjectName       string
	// contains filtered or unexported fields
}

UpdatePolicyURL generates an URL for the update policy operation

func (*UpdatePolicyURL) Build

func (o *UpdatePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdatePolicyURL) BuildFull

func (o *UpdatePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdatePolicyURL) Must

func (o *UpdatePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdatePolicyURL) SetBasePath

func (o *UpdatePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdatePolicyURL) String

func (o *UpdatePolicyURL) String() string

String returns the string representation of the path with query string

func (*UpdatePolicyURL) StringFull

func (o *UpdatePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdatePolicyURL) WithBasePath

func (o *UpdatePolicyURL) WithBasePath(bp string) *UpdatePolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdatePolicyUnauthorized

type UpdatePolicyUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdatePolicyUnauthorized Unauthorized

swagger:response updatePolicyUnauthorized

func NewUpdatePolicyUnauthorized

func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized

NewUpdatePolicyUnauthorized creates UpdatePolicyUnauthorized with default headers values

func (*UpdatePolicyUnauthorized) SetPayload

func (o *UpdatePolicyUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) SetXRequestID

func (o *UpdatePolicyUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) WithPayload

WithPayload adds the payload to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) WithXRequestID

func (o *UpdatePolicyUnauthorized) WithXRequestID(xRequestID string) *UpdatePolicyUnauthorized

WithXRequestID adds the xRequestId to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) WriteResponse

func (o *UpdatePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Source Files

Jump to

Keyboard shortcuts

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