subscriptions

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddSubscriptionBadRequestCode int = 400

AddSubscriptionBadRequestCode is the HTTP code returned for type AddSubscriptionBadRequest

View Source
const AddSubscriptionConflictCode int = 409

AddSubscriptionConflictCode is the HTTP code returned for type AddSubscriptionConflict

View Source
const AddSubscriptionCreatedCode int = 201

AddSubscriptionCreatedCode is the HTTP code returned for type AddSubscriptionCreated

View Source
const AddSubscriptionForbiddenCode int = 403

AddSubscriptionForbiddenCode is the HTTP code returned for type AddSubscriptionForbidden

View Source
const AddSubscriptionUnauthorizedCode int = 401

AddSubscriptionUnauthorizedCode is the HTTP code returned for type AddSubscriptionUnauthorized

View Source
const DeleteSubscriptionBadRequestCode int = 400

DeleteSubscriptionBadRequestCode is the HTTP code returned for type DeleteSubscriptionBadRequest

View Source
const DeleteSubscriptionForbiddenCode int = 403

DeleteSubscriptionForbiddenCode is the HTTP code returned for type DeleteSubscriptionForbidden

View Source
const DeleteSubscriptionNotFoundCode int = 404

DeleteSubscriptionNotFoundCode is the HTTP code returned for type DeleteSubscriptionNotFound

View Source
const DeleteSubscriptionOKCode int = 200

DeleteSubscriptionOKCode is the HTTP code returned for type DeleteSubscriptionOK

View Source
const DeleteSubscriptionUnauthorizedCode int = 401

DeleteSubscriptionUnauthorizedCode is the HTTP code returned for type DeleteSubscriptionUnauthorized

View Source
const GetSubscriptionBadRequestCode int = 400

GetSubscriptionBadRequestCode is the HTTP code returned for type GetSubscriptionBadRequest

View Source
const GetSubscriptionForbiddenCode int = 403

GetSubscriptionForbiddenCode is the HTTP code returned for type GetSubscriptionForbidden

View Source
const GetSubscriptionNotFoundCode int = 404

GetSubscriptionNotFoundCode is the HTTP code returned for type GetSubscriptionNotFound

View Source
const GetSubscriptionOKCode int = 200

GetSubscriptionOKCode is the HTTP code returned for type GetSubscriptionOK

View Source
const GetSubscriptionUnauthorizedCode int = 401

GetSubscriptionUnauthorizedCode is the HTTP code returned for type GetSubscriptionUnauthorized

View Source
const GetSubscriptionsBadRequestCode int = 400

GetSubscriptionsBadRequestCode is the HTTP code returned for type GetSubscriptionsBadRequest

View Source
const GetSubscriptionsForbiddenCode int = 403

GetSubscriptionsForbiddenCode is the HTTP code returned for type GetSubscriptionsForbidden

View Source
const GetSubscriptionsOKCode int = 200

GetSubscriptionsOKCode is the HTTP code returned for type GetSubscriptionsOK

View Source
const GetSubscriptionsUnauthorizedCode int = 401

GetSubscriptionsUnauthorizedCode is the HTTP code returned for type GetSubscriptionsUnauthorized

View Source
const UpdateSubscriptionBadRequestCode int = 400

UpdateSubscriptionBadRequestCode is the HTTP code returned for type UpdateSubscriptionBadRequest

View Source
const UpdateSubscriptionForbiddenCode int = 403

UpdateSubscriptionForbiddenCode is the HTTP code returned for type UpdateSubscriptionForbidden

View Source
const UpdateSubscriptionNotFoundCode int = 404

UpdateSubscriptionNotFoundCode is the HTTP code returned for type UpdateSubscriptionNotFound

View Source
const UpdateSubscriptionOKCode int = 200

UpdateSubscriptionOKCode is the HTTP code returned for type UpdateSubscriptionOK

View Source
const UpdateSubscriptionUnauthorizedCode int = 401

UpdateSubscriptionUnauthorizedCode is the HTTP code returned for type UpdateSubscriptionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSubscription

type AddSubscription struct {
	Context *middleware.Context
	Handler AddSubscriptionHandler
}

AddSubscription swagger:route POST /subscriptions subscriptions addSubscription

Add a new subscription

func NewAddSubscription

func NewAddSubscription(ctx *middleware.Context, handler AddSubscriptionHandler) *AddSubscription

NewAddSubscription creates a new http.Handler for the add subscription operation

func (*AddSubscription) ServeHTTP

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

type AddSubscriptionBadRequest

type AddSubscriptionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddSubscriptionBadRequest Invalid input

swagger:response addSubscriptionBadRequest

func NewAddSubscriptionBadRequest

func NewAddSubscriptionBadRequest() *AddSubscriptionBadRequest

NewAddSubscriptionBadRequest creates AddSubscriptionBadRequest with default headers values

func (*AddSubscriptionBadRequest) SetPayload

func (o *AddSubscriptionBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add subscription bad request response

func (*AddSubscriptionBadRequest) WithPayload

func (o *AddSubscriptionBadRequest) WithPayload(payload *v1.Error) *AddSubscriptionBadRequest

WithPayload adds the payload to the add subscription bad request response

func (*AddSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type AddSubscriptionConflict added in v0.1.13

type AddSubscriptionConflict struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddSubscriptionConflict Already Exists

swagger:response addSubscriptionConflict

func NewAddSubscriptionConflict added in v0.1.13

func NewAddSubscriptionConflict() *AddSubscriptionConflict

NewAddSubscriptionConflict creates AddSubscriptionConflict with default headers values

func (*AddSubscriptionConflict) SetPayload added in v0.1.13

func (o *AddSubscriptionConflict) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add subscription conflict response

func (*AddSubscriptionConflict) WithPayload added in v0.1.13

func (o *AddSubscriptionConflict) WithPayload(payload *v1.Error) *AddSubscriptionConflict

WithPayload adds the payload to the add subscription conflict response

func (*AddSubscriptionConflict) WriteResponse added in v0.1.13

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

WriteResponse to the client

type AddSubscriptionCreated

type AddSubscriptionCreated struct {

	/*
	  In: Body
	*/
	Payload *v1.Subscription `json:"body,omitempty"`
}

AddSubscriptionCreated Subscription created

swagger:response addSubscriptionCreated

func NewAddSubscriptionCreated

func NewAddSubscriptionCreated() *AddSubscriptionCreated

NewAddSubscriptionCreated creates AddSubscriptionCreated with default headers values

func (*AddSubscriptionCreated) SetPayload

func (o *AddSubscriptionCreated) SetPayload(payload *v1.Subscription)

SetPayload sets the payload to the add subscription created response

func (*AddSubscriptionCreated) WithPayload

WithPayload adds the payload to the add subscription created response

func (*AddSubscriptionCreated) WriteResponse

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

WriteResponse to the client

type AddSubscriptionDefault

type AddSubscriptionDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddSubscriptionDefault Unknown error

swagger:response addSubscriptionDefault

func NewAddSubscriptionDefault

func NewAddSubscriptionDefault(code int) *AddSubscriptionDefault

NewAddSubscriptionDefault creates AddSubscriptionDefault with default headers values

func (*AddSubscriptionDefault) SetPayload

func (o *AddSubscriptionDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add subscription default response

func (*AddSubscriptionDefault) SetStatusCode

func (o *AddSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add subscription default response

func (*AddSubscriptionDefault) WithPayload

func (o *AddSubscriptionDefault) WithPayload(payload *v1.Error) *AddSubscriptionDefault

WithPayload adds the payload to the add subscription default response

func (*AddSubscriptionDefault) WithStatusCode

func (o *AddSubscriptionDefault) WithStatusCode(code int) *AddSubscriptionDefault

WithStatusCode adds the status to the add subscription default response

func (*AddSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type AddSubscriptionForbidden added in v0.1.18

type AddSubscriptionForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddSubscriptionForbidden access to this resource is forbidden

swagger:response addSubscriptionForbidden

func NewAddSubscriptionForbidden added in v0.1.18

func NewAddSubscriptionForbidden() *AddSubscriptionForbidden

NewAddSubscriptionForbidden creates AddSubscriptionForbidden with default headers values

func (*AddSubscriptionForbidden) SetPayload added in v0.1.18

func (o *AddSubscriptionForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add subscription forbidden response

func (*AddSubscriptionForbidden) WithPayload added in v0.1.18

func (o *AddSubscriptionForbidden) WithPayload(payload *v1.Error) *AddSubscriptionForbidden

WithPayload adds the payload to the add subscription forbidden response

func (*AddSubscriptionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type AddSubscriptionHandler

type AddSubscriptionHandler interface {
	Handle(AddSubscriptionParams, interface{}) middleware.Responder
}

AddSubscriptionHandler interface for that can handle valid add subscription params

type AddSubscriptionHandlerFunc

type AddSubscriptionHandlerFunc func(AddSubscriptionParams, interface{}) middleware.Responder

AddSubscriptionHandlerFunc turns a function with the right signature into a add subscription handler

func (AddSubscriptionHandlerFunc) Handle

func (fn AddSubscriptionHandlerFunc) Handle(params AddSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddSubscriptionParams

type AddSubscriptionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*subscription object
	  Required: true
	  In: body
	*/
	Body *v1.Subscription
}

AddSubscriptionParams contains all the bound params for the add subscription operation typically these are obtained from a http.Request

swagger:parameters addSubscription

func NewAddSubscriptionParams

func NewAddSubscriptionParams() AddSubscriptionParams

NewAddSubscriptionParams creates a new AddSubscriptionParams object no default values defined in spec.

func (*AddSubscriptionParams) BindRequest

func (o *AddSubscriptionParams) 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 NewAddSubscriptionParams() beforehand.

type AddSubscriptionURL

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

AddSubscriptionURL generates an URL for the add subscription operation

func (*AddSubscriptionURL) Build

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

Build a url path and query string

func (*AddSubscriptionURL) BuildFull

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

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

func (*AddSubscriptionURL) Must

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

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

func (*AddSubscriptionURL) SetBasePath

func (o *AddSubscriptionURL) 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 (*AddSubscriptionURL) String

func (o *AddSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*AddSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddSubscriptionURL) WithBasePath

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

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 AddSubscriptionUnauthorized

type AddSubscriptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddSubscriptionUnauthorized Unauthorized Request

swagger:response addSubscriptionUnauthorized

func NewAddSubscriptionUnauthorized

func NewAddSubscriptionUnauthorized() *AddSubscriptionUnauthorized

NewAddSubscriptionUnauthorized creates AddSubscriptionUnauthorized with default headers values

func (*AddSubscriptionUnauthorized) SetPayload

func (o *AddSubscriptionUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add subscription unauthorized response

func (*AddSubscriptionUnauthorized) WithPayload

WithPayload adds the payload to the add subscription unauthorized response

func (*AddSubscriptionUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteSubscription

type DeleteSubscription struct {
	Context *middleware.Context
	Handler DeleteSubscriptionHandler
}

DeleteSubscription swagger:route DELETE /subscriptions/{subscriptionName} subscriptions deleteSubscription

Deletes a subscription

func NewDeleteSubscription

func NewDeleteSubscription(ctx *middleware.Context, handler DeleteSubscriptionHandler) *DeleteSubscription

NewDeleteSubscription creates a new http.Handler for the delete subscription operation

func (*DeleteSubscription) ServeHTTP

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

type DeleteSubscriptionBadRequest

type DeleteSubscriptionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteSubscriptionBadRequest Invalid ID supplied

swagger:response deleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest() *DeleteSubscriptionBadRequest

NewDeleteSubscriptionBadRequest creates DeleteSubscriptionBadRequest with default headers values

func (*DeleteSubscriptionBadRequest) SetPayload

func (o *DeleteSubscriptionBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete subscription bad request response

func (*DeleteSubscriptionBadRequest) WithPayload

WithPayload adds the payload to the delete subscription bad request response

func (*DeleteSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionDefault

type DeleteSubscriptionDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteSubscriptionDefault Generic error response

swagger:response deleteSubscriptionDefault

func NewDeleteSubscriptionDefault

func NewDeleteSubscriptionDefault(code int) *DeleteSubscriptionDefault

NewDeleteSubscriptionDefault creates DeleteSubscriptionDefault with default headers values

func (*DeleteSubscriptionDefault) SetPayload

func (o *DeleteSubscriptionDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete subscription default response

func (*DeleteSubscriptionDefault) SetStatusCode

func (o *DeleteSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete subscription default response

func (*DeleteSubscriptionDefault) WithPayload

func (o *DeleteSubscriptionDefault) WithPayload(payload *v1.Error) *DeleteSubscriptionDefault

WithPayload adds the payload to the delete subscription default response

func (*DeleteSubscriptionDefault) WithStatusCode

func (o *DeleteSubscriptionDefault) WithStatusCode(code int) *DeleteSubscriptionDefault

WithStatusCode adds the status to the delete subscription default response

func (*DeleteSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionForbidden added in v0.1.18

type DeleteSubscriptionForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteSubscriptionForbidden access to this resource is forbidden

swagger:response deleteSubscriptionForbidden

func NewDeleteSubscriptionForbidden added in v0.1.18

func NewDeleteSubscriptionForbidden() *DeleteSubscriptionForbidden

NewDeleteSubscriptionForbidden creates DeleteSubscriptionForbidden with default headers values

func (*DeleteSubscriptionForbidden) SetPayload added in v0.1.18

func (o *DeleteSubscriptionForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete subscription forbidden response

func (*DeleteSubscriptionForbidden) WithPayload added in v0.1.18

WithPayload adds the payload to the delete subscription forbidden response

func (*DeleteSubscriptionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeleteSubscriptionHandler

type DeleteSubscriptionHandler interface {
	Handle(DeleteSubscriptionParams, interface{}) middleware.Responder
}

DeleteSubscriptionHandler interface for that can handle valid delete subscription params

type DeleteSubscriptionHandlerFunc

type DeleteSubscriptionHandlerFunc func(DeleteSubscriptionParams, interface{}) middleware.Responder

DeleteSubscriptionHandlerFunc turns a function with the right signature into a delete subscription handler

func (DeleteSubscriptionHandlerFunc) Handle

func (fn DeleteSubscriptionHandlerFunc) Handle(params DeleteSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteSubscriptionNotFound

type DeleteSubscriptionNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteSubscriptionNotFound Subscription not found

swagger:response deleteSubscriptionNotFound

func NewDeleteSubscriptionNotFound

func NewDeleteSubscriptionNotFound() *DeleteSubscriptionNotFound

NewDeleteSubscriptionNotFound creates DeleteSubscriptionNotFound with default headers values

func (*DeleteSubscriptionNotFound) SetPayload

func (o *DeleteSubscriptionNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete subscription not found response

func (*DeleteSubscriptionNotFound) WithPayload

WithPayload adds the payload to the delete subscription not found response

func (*DeleteSubscriptionNotFound) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionOK

type DeleteSubscriptionOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Subscription `json:"body,omitempty"`
}

DeleteSubscriptionOK successful operation

swagger:response deleteSubscriptionOK

func NewDeleteSubscriptionOK

func NewDeleteSubscriptionOK() *DeleteSubscriptionOK

NewDeleteSubscriptionOK creates DeleteSubscriptionOK with default headers values

func (*DeleteSubscriptionOK) SetPayload

func (o *DeleteSubscriptionOK) SetPayload(payload *v1.Subscription)

SetPayload sets the payload to the delete subscription o k response

func (*DeleteSubscriptionOK) WithPayload

func (o *DeleteSubscriptionOK) WithPayload(payload *v1.Subscription) *DeleteSubscriptionOK

WithPayload adds the payload to the delete subscription o k response

func (*DeleteSubscriptionOK) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionParams

type DeleteSubscriptionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SubscriptionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters deleteSubscription

func NewDeleteSubscriptionParams

func NewDeleteSubscriptionParams() DeleteSubscriptionParams

NewDeleteSubscriptionParams creates a new DeleteSubscriptionParams object no default values defined in spec.

func (*DeleteSubscriptionParams) 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 NewDeleteSubscriptionParams() beforehand.

type DeleteSubscriptionURL

type DeleteSubscriptionURL struct {
	SubscriptionName string

	Tags []string
	// contains filtered or unexported fields
}

DeleteSubscriptionURL generates an URL for the delete subscription operation

func (*DeleteSubscriptionURL) Build

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

Build a url path and query string

func (*DeleteSubscriptionURL) BuildFull

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

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

func (*DeleteSubscriptionURL) Must

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

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

func (*DeleteSubscriptionURL) SetBasePath

func (o *DeleteSubscriptionURL) 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 (*DeleteSubscriptionURL) String

func (o *DeleteSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*DeleteSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteSubscriptionURL) WithBasePath

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

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 DeleteSubscriptionUnauthorized added in v0.1.18

type DeleteSubscriptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteSubscriptionUnauthorized Unauthorized Request

swagger:response deleteSubscriptionUnauthorized

func NewDeleteSubscriptionUnauthorized added in v0.1.18

func NewDeleteSubscriptionUnauthorized() *DeleteSubscriptionUnauthorized

NewDeleteSubscriptionUnauthorized creates DeleteSubscriptionUnauthorized with default headers values

func (*DeleteSubscriptionUnauthorized) SetPayload added in v0.1.18

func (o *DeleteSubscriptionUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete subscription unauthorized response

func (*DeleteSubscriptionUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the delete subscription unauthorized response

func (*DeleteSubscriptionUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetSubscription

type GetSubscription struct {
	Context *middleware.Context
	Handler GetSubscriptionHandler
}

GetSubscription swagger:route GET /subscriptions/{subscriptionName} subscriptions getSubscription

Find subscription by Name

Returns a single subscription

func NewGetSubscription

func NewGetSubscription(ctx *middleware.Context, handler GetSubscriptionHandler) *GetSubscription

NewGetSubscription creates a new http.Handler for the get subscription operation

func (*GetSubscription) ServeHTTP

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

type GetSubscriptionBadRequest

type GetSubscriptionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionBadRequest Invalid Name supplied

swagger:response getSubscriptionBadRequest

func NewGetSubscriptionBadRequest

func NewGetSubscriptionBadRequest() *GetSubscriptionBadRequest

NewGetSubscriptionBadRequest creates GetSubscriptionBadRequest with default headers values

func (*GetSubscriptionBadRequest) SetPayload

func (o *GetSubscriptionBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscription bad request response

func (*GetSubscriptionBadRequest) WithPayload

func (o *GetSubscriptionBadRequest) WithPayload(payload *v1.Error) *GetSubscriptionBadRequest

WithPayload adds the payload to the get subscription bad request response

func (*GetSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type GetSubscriptionDefault

type GetSubscriptionDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSubscriptionDefault Unknown error

swagger:response getSubscriptionDefault

func NewGetSubscriptionDefault

func NewGetSubscriptionDefault(code int) *GetSubscriptionDefault

NewGetSubscriptionDefault creates GetSubscriptionDefault with default headers values

func (*GetSubscriptionDefault) SetPayload

func (o *GetSubscriptionDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscription default response

func (*GetSubscriptionDefault) SetStatusCode

func (o *GetSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get subscription default response

func (*GetSubscriptionDefault) WithPayload

func (o *GetSubscriptionDefault) WithPayload(payload *v1.Error) *GetSubscriptionDefault

WithPayload adds the payload to the get subscription default response

func (*GetSubscriptionDefault) WithStatusCode

func (o *GetSubscriptionDefault) WithStatusCode(code int) *GetSubscriptionDefault

WithStatusCode adds the status to the get subscription default response

func (*GetSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type GetSubscriptionForbidden added in v0.1.18

type GetSubscriptionForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionForbidden access to this resource is forbidden

swagger:response getSubscriptionForbidden

func NewGetSubscriptionForbidden added in v0.1.18

func NewGetSubscriptionForbidden() *GetSubscriptionForbidden

NewGetSubscriptionForbidden creates GetSubscriptionForbidden with default headers values

func (*GetSubscriptionForbidden) SetPayload added in v0.1.18

func (o *GetSubscriptionForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscription forbidden response

func (*GetSubscriptionForbidden) WithPayload added in v0.1.18

func (o *GetSubscriptionForbidden) WithPayload(payload *v1.Error) *GetSubscriptionForbidden

WithPayload adds the payload to the get subscription forbidden response

func (*GetSubscriptionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetSubscriptionHandler

type GetSubscriptionHandler interface {
	Handle(GetSubscriptionParams, interface{}) middleware.Responder
}

GetSubscriptionHandler interface for that can handle valid get subscription params

type GetSubscriptionHandlerFunc

type GetSubscriptionHandlerFunc func(GetSubscriptionParams, interface{}) middleware.Responder

GetSubscriptionHandlerFunc turns a function with the right signature into a get subscription handler

func (GetSubscriptionHandlerFunc) Handle

func (fn GetSubscriptionHandlerFunc) Handle(params GetSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSubscriptionNotFound

type GetSubscriptionNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionNotFound Subscription not found

swagger:response getSubscriptionNotFound

func NewGetSubscriptionNotFound

func NewGetSubscriptionNotFound() *GetSubscriptionNotFound

NewGetSubscriptionNotFound creates GetSubscriptionNotFound with default headers values

func (*GetSubscriptionNotFound) SetPayload

func (o *GetSubscriptionNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscription not found response

func (*GetSubscriptionNotFound) WithPayload

func (o *GetSubscriptionNotFound) WithPayload(payload *v1.Error) *GetSubscriptionNotFound

WithPayload adds the payload to the get subscription not found response

func (*GetSubscriptionNotFound) WriteResponse

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

WriteResponse to the client

type GetSubscriptionOK

type GetSubscriptionOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Subscription `json:"body,omitempty"`
}

GetSubscriptionOK Successful operation

swagger:response getSubscriptionOK

func NewGetSubscriptionOK

func NewGetSubscriptionOK() *GetSubscriptionOK

NewGetSubscriptionOK creates GetSubscriptionOK with default headers values

func (*GetSubscriptionOK) SetPayload

func (o *GetSubscriptionOK) SetPayload(payload *v1.Subscription)

SetPayload sets the payload to the get subscription o k response

func (*GetSubscriptionOK) WithPayload

func (o *GetSubscriptionOK) WithPayload(payload *v1.Subscription) *GetSubscriptionOK

WithPayload adds the payload to the get subscription o k response

func (*GetSubscriptionOK) WriteResponse

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

WriteResponse to the client

type GetSubscriptionParams

type GetSubscriptionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SubscriptionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters getSubscription

func NewGetSubscriptionParams

func NewGetSubscriptionParams() GetSubscriptionParams

NewGetSubscriptionParams creates a new GetSubscriptionParams object no default values defined in spec.

func (*GetSubscriptionParams) BindRequest

func (o *GetSubscriptionParams) 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 NewGetSubscriptionParams() beforehand.

type GetSubscriptionURL

type GetSubscriptionURL struct {
	SubscriptionName string

	Tags []string
	// contains filtered or unexported fields
}

GetSubscriptionURL generates an URL for the get subscription operation

func (*GetSubscriptionURL) Build

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

Build a url path and query string

func (*GetSubscriptionURL) BuildFull

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

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

func (*GetSubscriptionURL) Must

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

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

func (*GetSubscriptionURL) SetBasePath

func (o *GetSubscriptionURL) 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 (*GetSubscriptionURL) String

func (o *GetSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*GetSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSubscriptionURL) WithBasePath

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

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 GetSubscriptionUnauthorized added in v0.1.18

type GetSubscriptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionUnauthorized Unauthorized Request

swagger:response getSubscriptionUnauthorized

func NewGetSubscriptionUnauthorized added in v0.1.18

func NewGetSubscriptionUnauthorized() *GetSubscriptionUnauthorized

NewGetSubscriptionUnauthorized creates GetSubscriptionUnauthorized with default headers values

func (*GetSubscriptionUnauthorized) SetPayload added in v0.1.18

func (o *GetSubscriptionUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscription unauthorized response

func (*GetSubscriptionUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the get subscription unauthorized response

func (*GetSubscriptionUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetSubscriptions

type GetSubscriptions struct {
	Context *middleware.Context
	Handler GetSubscriptionsHandler
}

GetSubscriptions swagger:route GET /subscriptions subscriptions getSubscriptions

List all existing subscriptions

func NewGetSubscriptions

func NewGetSubscriptions(ctx *middleware.Context, handler GetSubscriptionsHandler) *GetSubscriptions

NewGetSubscriptions creates a new http.Handler for the get subscriptions operation

func (*GetSubscriptions) ServeHTTP

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

type GetSubscriptionsBadRequest added in v0.1.13

type GetSubscriptionsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionsBadRequest Bad Request

swagger:response getSubscriptionsBadRequest

func NewGetSubscriptionsBadRequest added in v0.1.13

func NewGetSubscriptionsBadRequest() *GetSubscriptionsBadRequest

NewGetSubscriptionsBadRequest creates GetSubscriptionsBadRequest with default headers values

func (*GetSubscriptionsBadRequest) SetPayload added in v0.1.13

func (o *GetSubscriptionsBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscriptions bad request response

func (*GetSubscriptionsBadRequest) WithPayload added in v0.1.13

WithPayload adds the payload to the get subscriptions bad request response

func (*GetSubscriptionsBadRequest) WriteResponse added in v0.1.13

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

WriteResponse to the client

type GetSubscriptionsDefault

type GetSubscriptionsDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSubscriptionsDefault Unknown error

swagger:response getSubscriptionsDefault

func NewGetSubscriptionsDefault

func NewGetSubscriptionsDefault(code int) *GetSubscriptionsDefault

NewGetSubscriptionsDefault creates GetSubscriptionsDefault with default headers values

func (*GetSubscriptionsDefault) SetPayload

func (o *GetSubscriptionsDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscriptions default response

func (*GetSubscriptionsDefault) SetStatusCode

func (o *GetSubscriptionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get subscriptions default response

func (*GetSubscriptionsDefault) WithPayload

func (o *GetSubscriptionsDefault) WithPayload(payload *v1.Error) *GetSubscriptionsDefault

WithPayload adds the payload to the get subscriptions default response

func (*GetSubscriptionsDefault) WithStatusCode

func (o *GetSubscriptionsDefault) WithStatusCode(code int) *GetSubscriptionsDefault

WithStatusCode adds the status to the get subscriptions default response

func (*GetSubscriptionsDefault) WriteResponse

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

WriteResponse to the client

type GetSubscriptionsForbidden added in v0.1.18

type GetSubscriptionsForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionsForbidden access to this resource is forbidden

swagger:response getSubscriptionsForbidden

func NewGetSubscriptionsForbidden added in v0.1.18

func NewGetSubscriptionsForbidden() *GetSubscriptionsForbidden

NewGetSubscriptionsForbidden creates GetSubscriptionsForbidden with default headers values

func (*GetSubscriptionsForbidden) SetPayload added in v0.1.18

func (o *GetSubscriptionsForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscriptions forbidden response

func (*GetSubscriptionsForbidden) WithPayload added in v0.1.18

func (o *GetSubscriptionsForbidden) WithPayload(payload *v1.Error) *GetSubscriptionsForbidden

WithPayload adds the payload to the get subscriptions forbidden response

func (*GetSubscriptionsForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetSubscriptionsHandler

type GetSubscriptionsHandler interface {
	Handle(GetSubscriptionsParams, interface{}) middleware.Responder
}

GetSubscriptionsHandler interface for that can handle valid get subscriptions params

type GetSubscriptionsHandlerFunc

type GetSubscriptionsHandlerFunc func(GetSubscriptionsParams, interface{}) middleware.Responder

GetSubscriptionsHandlerFunc turns a function with the right signature into a get subscriptions handler

func (GetSubscriptionsHandlerFunc) Handle

func (fn GetSubscriptionsHandlerFunc) Handle(params GetSubscriptionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSubscriptionsOK

type GetSubscriptionsOK struct {

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

GetSubscriptionsOK Successful operation

swagger:response getSubscriptionsOK

func NewGetSubscriptionsOK

func NewGetSubscriptionsOK() *GetSubscriptionsOK

NewGetSubscriptionsOK creates GetSubscriptionsOK with default headers values

func (*GetSubscriptionsOK) SetPayload

func (o *GetSubscriptionsOK) SetPayload(payload []*v1.Subscription)

SetPayload sets the payload to the get subscriptions o k response

func (*GetSubscriptionsOK) WithPayload

func (o *GetSubscriptionsOK) WithPayload(payload []*v1.Subscription) *GetSubscriptionsOK

WithPayload adds the payload to the get subscriptions o k response

func (*GetSubscriptionsOK) WriteResponse

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

WriteResponse to the client

type GetSubscriptionsParams

type GetSubscriptionsParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters getSubscriptions

func NewGetSubscriptionsParams

func NewGetSubscriptionsParams() GetSubscriptionsParams

NewGetSubscriptionsParams creates a new GetSubscriptionsParams object no default values defined in spec.

func (*GetSubscriptionsParams) BindRequest

func (o *GetSubscriptionsParams) 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 NewGetSubscriptionsParams() beforehand.

type GetSubscriptionsURL

type GetSubscriptionsURL struct {
	Tags []string
	// contains filtered or unexported fields
}

GetSubscriptionsURL generates an URL for the get subscriptions operation

func (*GetSubscriptionsURL) Build

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

Build a url path and query string

func (*GetSubscriptionsURL) BuildFull

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

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

func (*GetSubscriptionsURL) Must

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

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

func (*GetSubscriptionsURL) SetBasePath

func (o *GetSubscriptionsURL) 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 (*GetSubscriptionsURL) String

func (o *GetSubscriptionsURL) String() string

String returns the string representation of the path with query string

func (*GetSubscriptionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSubscriptionsURL) WithBasePath

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

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 GetSubscriptionsUnauthorized added in v0.1.18

type GetSubscriptionsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetSubscriptionsUnauthorized Unauthorized Request

swagger:response getSubscriptionsUnauthorized

func NewGetSubscriptionsUnauthorized added in v0.1.18

func NewGetSubscriptionsUnauthorized() *GetSubscriptionsUnauthorized

NewGetSubscriptionsUnauthorized creates GetSubscriptionsUnauthorized with default headers values

func (*GetSubscriptionsUnauthorized) SetPayload added in v0.1.18

func (o *GetSubscriptionsUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get subscriptions unauthorized response

func (*GetSubscriptionsUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the get subscriptions unauthorized response

func (*GetSubscriptionsUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdateSubscription added in v0.1.13

type UpdateSubscription struct {
	Context *middleware.Context
	Handler UpdateSubscriptionHandler
}

UpdateSubscription swagger:route PUT /subscriptions/{subscriptionName} subscriptions updateSubscription

Update subscription by Name

Updates a single subscription

func NewUpdateSubscription added in v0.1.13

func NewUpdateSubscription(ctx *middleware.Context, handler UpdateSubscriptionHandler) *UpdateSubscription

NewUpdateSubscription creates a new http.Handler for the update subscription operation

func (*UpdateSubscription) ServeHTTP added in v0.1.13

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

type UpdateSubscriptionBadRequest added in v0.1.13

type UpdateSubscriptionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateSubscriptionBadRequest Invalid Name supplied

swagger:response updateSubscriptionBadRequest

func NewUpdateSubscriptionBadRequest added in v0.1.13

func NewUpdateSubscriptionBadRequest() *UpdateSubscriptionBadRequest

NewUpdateSubscriptionBadRequest creates UpdateSubscriptionBadRequest with default headers values

func (*UpdateSubscriptionBadRequest) SetPayload added in v0.1.13

func (o *UpdateSubscriptionBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update subscription bad request response

func (*UpdateSubscriptionBadRequest) WithPayload added in v0.1.13

WithPayload adds the payload to the update subscription bad request response

func (*UpdateSubscriptionBadRequest) WriteResponse added in v0.1.13

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

WriteResponse to the client

type UpdateSubscriptionDefault added in v0.1.13

type UpdateSubscriptionDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateSubscriptionDefault Unknown error

swagger:response updateSubscriptionDefault

func NewUpdateSubscriptionDefault added in v0.1.13

func NewUpdateSubscriptionDefault(code int) *UpdateSubscriptionDefault

NewUpdateSubscriptionDefault creates UpdateSubscriptionDefault with default headers values

func (*UpdateSubscriptionDefault) SetPayload added in v0.1.13

func (o *UpdateSubscriptionDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update subscription default response

func (*UpdateSubscriptionDefault) SetStatusCode added in v0.1.13

func (o *UpdateSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update subscription default response

func (*UpdateSubscriptionDefault) WithPayload added in v0.1.13

func (o *UpdateSubscriptionDefault) WithPayload(payload *v1.Error) *UpdateSubscriptionDefault

WithPayload adds the payload to the update subscription default response

func (*UpdateSubscriptionDefault) WithStatusCode added in v0.1.13

func (o *UpdateSubscriptionDefault) WithStatusCode(code int) *UpdateSubscriptionDefault

WithStatusCode adds the status to the update subscription default response

func (*UpdateSubscriptionDefault) WriteResponse added in v0.1.13

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

WriteResponse to the client

type UpdateSubscriptionForbidden added in v0.1.18

type UpdateSubscriptionForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateSubscriptionForbidden access to this resource is forbidden

swagger:response updateSubscriptionForbidden

func NewUpdateSubscriptionForbidden added in v0.1.18

func NewUpdateSubscriptionForbidden() *UpdateSubscriptionForbidden

NewUpdateSubscriptionForbidden creates UpdateSubscriptionForbidden with default headers values

func (*UpdateSubscriptionForbidden) SetPayload added in v0.1.18

func (o *UpdateSubscriptionForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update subscription forbidden response

func (*UpdateSubscriptionForbidden) WithPayload added in v0.1.18

WithPayload adds the payload to the update subscription forbidden response

func (*UpdateSubscriptionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdateSubscriptionHandler added in v0.1.13

type UpdateSubscriptionHandler interface {
	Handle(UpdateSubscriptionParams, interface{}) middleware.Responder
}

UpdateSubscriptionHandler interface for that can handle valid update subscription params

type UpdateSubscriptionHandlerFunc added in v0.1.13

type UpdateSubscriptionHandlerFunc func(UpdateSubscriptionParams, interface{}) middleware.Responder

UpdateSubscriptionHandlerFunc turns a function with the right signature into a update subscription handler

func (UpdateSubscriptionHandlerFunc) Handle added in v0.1.13

func (fn UpdateSubscriptionHandlerFunc) Handle(params UpdateSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateSubscriptionNotFound added in v0.1.13

type UpdateSubscriptionNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateSubscriptionNotFound Subscription not found

swagger:response updateSubscriptionNotFound

func NewUpdateSubscriptionNotFound added in v0.1.13

func NewUpdateSubscriptionNotFound() *UpdateSubscriptionNotFound

NewUpdateSubscriptionNotFound creates UpdateSubscriptionNotFound with default headers values

func (*UpdateSubscriptionNotFound) SetPayload added in v0.1.13

func (o *UpdateSubscriptionNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update subscription not found response

func (*UpdateSubscriptionNotFound) WithPayload added in v0.1.13

WithPayload adds the payload to the update subscription not found response

func (*UpdateSubscriptionNotFound) WriteResponse added in v0.1.13

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

WriteResponse to the client

type UpdateSubscriptionOK added in v0.1.13

type UpdateSubscriptionOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Subscription `json:"body,omitempty"`
}

UpdateSubscriptionOK Successful operation

swagger:response updateSubscriptionOK

func NewUpdateSubscriptionOK added in v0.1.13

func NewUpdateSubscriptionOK() *UpdateSubscriptionOK

NewUpdateSubscriptionOK creates UpdateSubscriptionOK with default headers values

func (*UpdateSubscriptionOK) SetPayload added in v0.1.13

func (o *UpdateSubscriptionOK) SetPayload(payload *v1.Subscription)

SetPayload sets the payload to the update subscription o k response

func (*UpdateSubscriptionOK) WithPayload added in v0.1.13

func (o *UpdateSubscriptionOK) WithPayload(payload *v1.Subscription) *UpdateSubscriptionOK

WithPayload adds the payload to the update subscription o k response

func (*UpdateSubscriptionOK) WriteResponse added in v0.1.13

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

WriteResponse to the client

type UpdateSubscriptionParams added in v0.1.13

type UpdateSubscriptionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*subscription object
	  Required: true
	  In: body
	*/
	Body *v1.Subscription
	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SubscriptionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

UpdateSubscriptionParams contains all the bound params for the update subscription operation typically these are obtained from a http.Request

swagger:parameters updateSubscription

func NewUpdateSubscriptionParams added in v0.1.13

func NewUpdateSubscriptionParams() UpdateSubscriptionParams

NewUpdateSubscriptionParams creates a new UpdateSubscriptionParams object no default values defined in spec.

func (*UpdateSubscriptionParams) BindRequest added in v0.1.13

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 NewUpdateSubscriptionParams() beforehand.

type UpdateSubscriptionURL added in v0.1.13

type UpdateSubscriptionURL struct {
	SubscriptionName string

	Tags []string
	// contains filtered or unexported fields
}

UpdateSubscriptionURL generates an URL for the update subscription operation

func (*UpdateSubscriptionURL) Build added in v0.1.13

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

Build a url path and query string

func (*UpdateSubscriptionURL) BuildFull added in v0.1.13

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

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

func (*UpdateSubscriptionURL) Must added in v0.1.13

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

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

func (*UpdateSubscriptionURL) SetBasePath added in v0.1.13

func (o *UpdateSubscriptionURL) 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 (*UpdateSubscriptionURL) String added in v0.1.13

func (o *UpdateSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*UpdateSubscriptionURL) StringFull added in v0.1.13

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

StringFull returns the string representation of a complete url

func (*UpdateSubscriptionURL) WithBasePath added in v0.1.13

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

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 UpdateSubscriptionUnauthorized added in v0.1.18

type UpdateSubscriptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateSubscriptionUnauthorized Unauthorized Request

swagger:response updateSubscriptionUnauthorized

func NewUpdateSubscriptionUnauthorized added in v0.1.18

func NewUpdateSubscriptionUnauthorized() *UpdateSubscriptionUnauthorized

NewUpdateSubscriptionUnauthorized creates UpdateSubscriptionUnauthorized with default headers values

func (*UpdateSubscriptionUnauthorized) SetPayload added in v0.1.18

func (o *UpdateSubscriptionUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update subscription unauthorized response

func (*UpdateSubscriptionUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the update subscription unauthorized response

func (*UpdateSubscriptionUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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