role

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const CreateRoleCreatedCode int = 201

CreateRoleCreatedCode is the HTTP code returned for type CreateRoleCreated

View Source
const DeleteRoleOKCode int = 200

DeleteRoleOKCode is the HTTP code returned for type DeleteRoleOK

View Source
const GetRoleOKCode int = 200

GetRoleOKCode is the HTTP code returned for type GetRoleOK

View Source
const GetRolesOKCode int = 200

GetRolesOKCode is the HTTP code returned for type GetRolesOK

View Source
const UpdateRoleOKCode int = 200

UpdateRoleOKCode is the HTTP code returned for type UpdateRoleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRole

type CreateRole struct {
	Context *middleware.Context
	Handler CreateRoleHandler
}

CreateRole swagger:route POST /projects/{projectId}/roles role createRole

Create a new role

func NewCreateRole

func NewCreateRole(ctx *middleware.Context, handler CreateRoleHandler) *CreateRole

NewCreateRole creates a new http.Handler for the create role operation

func (*CreateRole) ServeHTTP

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

type CreateRoleCreated

type CreateRoleCreated struct {

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

CreateRoleCreated Created

swagger:response createRoleCreated

func NewCreateRoleCreated

func NewCreateRoleCreated() *CreateRoleCreated

NewCreateRoleCreated creates CreateRoleCreated with default headers values

func (*CreateRoleCreated) SetPayload

func (o *CreateRoleCreated) SetPayload(payload *models.RoleResponse)

SetPayload sets the payload to the create role created response

func (*CreateRoleCreated) WithPayload

func (o *CreateRoleCreated) WithPayload(payload *models.RoleResponse) *CreateRoleCreated

WithPayload adds the payload to the create role created response

func (*CreateRoleCreated) WriteResponse

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

WriteResponse to the client

type CreateRoleDefault

type CreateRoleDefault struct {

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

CreateRoleDefault unexpected error

swagger:response createRoleDefault

func NewCreateRoleDefault

func NewCreateRoleDefault(code int) *CreateRoleDefault

NewCreateRoleDefault creates CreateRoleDefault with default headers values

func (*CreateRoleDefault) SetPayload

func (o *CreateRoleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create role default response

func (*CreateRoleDefault) SetStatusCode

func (o *CreateRoleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create role default response

func (*CreateRoleDefault) WithPayload

func (o *CreateRoleDefault) WithPayload(payload *models.Error) *CreateRoleDefault

WithPayload adds the payload to the create role default response

func (*CreateRoleDefault) WithStatusCode

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

WithStatusCode adds the status to the create role default response

func (*CreateRoleDefault) WriteResponse

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

WriteResponse to the client

type CreateRoleHandler

type CreateRoleHandler interface {
	Handle(CreateRoleParams) middleware.Responder
}

CreateRoleHandler interface for that can handle valid create role params

type CreateRoleHandlerFunc

type CreateRoleHandlerFunc func(CreateRoleParams) middleware.Responder

CreateRoleHandlerFunc turns a function with the right signature into a create role handler

func (CreateRoleHandlerFunc) Handle

Handle executing the request and returning a response

type CreateRoleParams

type CreateRoleParams struct {

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

	/*The role details
	  Required: true
	  In: body
	*/
	Body *models.RoleRequest
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters createRole

func NewCreateRoleParams

func NewCreateRoleParams() CreateRoleParams

NewCreateRoleParams creates a new CreateRoleParams object no default values defined in spec.

func (*CreateRoleParams) BindRequest

func (o *CreateRoleParams) 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 NewCreateRoleParams() beforehand.

type CreateRoleURL

type CreateRoleURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

CreateRoleURL generates an URL for the create role operation

func (*CreateRoleURL) Build

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

Build a url path and query string

func (*CreateRoleURL) BuildFull

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

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

func (*CreateRoleURL) Must

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

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

func (*CreateRoleURL) SetBasePath

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

func (o *CreateRoleURL) String() string

String returns the string representation of the path with query string

func (*CreateRoleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateRoleURL) WithBasePath

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

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 DeleteRole

type DeleteRole struct {
	Context *middleware.Context
	Handler DeleteRoleHandler
}

DeleteRole swagger:route DELETE /projects/{projectId}/roles/{id} role deleteRole

Delete a role

func NewDeleteRole

func NewDeleteRole(ctx *middleware.Context, handler DeleteRoleHandler) *DeleteRole

NewDeleteRole creates a new http.Handler for the delete role operation

func (*DeleteRole) ServeHTTP

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

type DeleteRoleDefault

type DeleteRoleDefault struct {

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

DeleteRoleDefault unexpected error

swagger:response deleteRoleDefault

func NewDeleteRoleDefault

func NewDeleteRoleDefault(code int) *DeleteRoleDefault

NewDeleteRoleDefault creates DeleteRoleDefault with default headers values

func (*DeleteRoleDefault) SetPayload

func (o *DeleteRoleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete role default response

func (*DeleteRoleDefault) SetStatusCode

func (o *DeleteRoleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete role default response

func (*DeleteRoleDefault) WithPayload

func (o *DeleteRoleDefault) WithPayload(payload *models.Error) *DeleteRoleDefault

WithPayload adds the payload to the delete role default response

func (*DeleteRoleDefault) WithStatusCode

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

WithStatusCode adds the status to the delete role default response

func (*DeleteRoleDefault) WriteResponse

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

WriteResponse to the client

type DeleteRoleHandler

type DeleteRoleHandler interface {
	Handle(DeleteRoleParams) middleware.Responder
}

DeleteRoleHandler interface for that can handle valid delete role params

type DeleteRoleHandlerFunc

type DeleteRoleHandlerFunc func(DeleteRoleParams) middleware.Responder

DeleteRoleHandlerFunc turns a function with the right signature into a delete role handler

func (DeleteRoleHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRoleOK

type DeleteRoleOK struct {

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

DeleteRoleOK The role details

swagger:response deleteRoleOK

func NewDeleteRoleOK

func NewDeleteRoleOK() *DeleteRoleOK

NewDeleteRoleOK creates DeleteRoleOK with default headers values

func (*DeleteRoleOK) SetPayload

func (o *DeleteRoleOK) SetPayload(payload *models.RoleResponse)

SetPayload sets the payload to the delete role o k response

func (*DeleteRoleOK) WithPayload

func (o *DeleteRoleOK) WithPayload(payload *models.RoleResponse) *DeleteRoleOK

WithPayload adds the payload to the delete role o k response

func (*DeleteRoleOK) WriteResponse

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

WriteResponse to the client

type DeleteRoleParams

type DeleteRoleParams struct {

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

	/*The role id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters deleteRole

func NewDeleteRoleParams

func NewDeleteRoleParams() DeleteRoleParams

NewDeleteRoleParams creates a new DeleteRoleParams object no default values defined in spec.

func (*DeleteRoleParams) BindRequest

func (o *DeleteRoleParams) 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 NewDeleteRoleParams() beforehand.

type DeleteRoleURL

type DeleteRoleURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

DeleteRoleURL generates an URL for the delete role operation

func (*DeleteRoleURL) Build

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

Build a url path and query string

func (*DeleteRoleURL) BuildFull

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

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

func (*DeleteRoleURL) Must

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

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

func (*DeleteRoleURL) SetBasePath

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

func (o *DeleteRoleURL) String() string

String returns the string representation of the path with query string

func (*DeleteRoleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteRoleURL) WithBasePath

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

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 GetRole

type GetRole struct {
	Context *middleware.Context
	Handler GetRoleHandler
}

GetRole swagger:route GET /projects/{projectId}/roles/{id} role getRole

Get a role

func NewGetRole

func NewGetRole(ctx *middleware.Context, handler GetRoleHandler) *GetRole

NewGetRole creates a new http.Handler for the get role operation

func (*GetRole) ServeHTTP

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

type GetRoleDefault

type GetRoleDefault struct {

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

GetRoleDefault unexpected error

swagger:response getRoleDefault

func NewGetRoleDefault

func NewGetRoleDefault(code int) *GetRoleDefault

NewGetRoleDefault creates GetRoleDefault with default headers values

func (*GetRoleDefault) SetPayload

func (o *GetRoleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get role default response

func (*GetRoleDefault) SetStatusCode

func (o *GetRoleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get role default response

func (*GetRoleDefault) WithPayload

func (o *GetRoleDefault) WithPayload(payload *models.Error) *GetRoleDefault

WithPayload adds the payload to the get role default response

func (*GetRoleDefault) WithStatusCode

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

WithStatusCode adds the status to the get role default response

func (*GetRoleDefault) WriteResponse

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

WriteResponse to the client

type GetRoleHandler

type GetRoleHandler interface {
	Handle(GetRoleParams) middleware.Responder
}

GetRoleHandler interface for that can handle valid get role params

type GetRoleHandlerFunc

type GetRoleHandlerFunc func(GetRoleParams) middleware.Responder

GetRoleHandlerFunc turns a function with the right signature into a get role handler

func (GetRoleHandlerFunc) Handle

Handle executing the request and returning a response

type GetRoleOK

type GetRoleOK struct {

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

GetRoleOK The role details

swagger:response getRoleOK

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates GetRoleOK with default headers values

func (*GetRoleOK) SetPayload

func (o *GetRoleOK) SetPayload(payload *models.RoleResponse)

SetPayload sets the payload to the get role o k response

func (*GetRoleOK) WithPayload

func (o *GetRoleOK) WithPayload(payload *models.RoleResponse) *GetRoleOK

WithPayload adds the payload to the get role o k response

func (*GetRoleOK) WriteResponse

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

WriteResponse to the client

type GetRoleParams

type GetRoleParams struct {

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

	/*The role id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters getRole

func NewGetRoleParams

func NewGetRoleParams() GetRoleParams

NewGetRoleParams creates a new GetRoleParams object no default values defined in spec.

func (*GetRoleParams) BindRequest

func (o *GetRoleParams) 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 NewGetRoleParams() beforehand.

type GetRoleURL

type GetRoleURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

GetRoleURL generates an URL for the get role operation

func (*GetRoleURL) Build

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

Build a url path and query string

func (*GetRoleURL) BuildFull

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

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

func (*GetRoleURL) Must

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

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

func (*GetRoleURL) SetBasePath

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

func (o *GetRoleURL) String() string

String returns the string representation of the path with query string

func (*GetRoleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRoleURL) WithBasePath

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

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 GetRoles

type GetRoles struct {
	Context *middleware.Context
	Handler GetRolesHandler
}

GetRoles swagger:route GET /projects/{projectId}/roles role getRoles

Get the roles of the model

func NewGetRoles

func NewGetRoles(ctx *middleware.Context, handler GetRolesHandler) *GetRoles

NewGetRoles creates a new http.Handler for the get roles operation

func (*GetRoles) ServeHTTP

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

type GetRolesDefault

type GetRolesDefault struct {

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

GetRolesDefault unexpected error

swagger:response getRolesDefault

func NewGetRolesDefault

func NewGetRolesDefault(code int) *GetRolesDefault

NewGetRolesDefault creates GetRolesDefault with default headers values

func (*GetRolesDefault) SetPayload

func (o *GetRolesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get roles default response

func (*GetRolesDefault) SetStatusCode

func (o *GetRolesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get roles default response

func (*GetRolesDefault) WithPayload

func (o *GetRolesDefault) WithPayload(payload *models.Error) *GetRolesDefault

WithPayload adds the payload to the get roles default response

func (*GetRolesDefault) WithStatusCode

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

WithStatusCode adds the status to the get roles default response

func (*GetRolesDefault) WriteResponse

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

WriteResponse to the client

type GetRolesHandler

type GetRolesHandler interface {
	Handle(GetRolesParams) middleware.Responder
}

GetRolesHandler interface for that can handle valid get roles params

type GetRolesHandlerFunc

type GetRolesHandlerFunc func(GetRolesParams) middleware.Responder

GetRolesHandlerFunc turns a function with the right signature into a get roles handler

func (GetRolesHandlerFunc) Handle

Handle executing the request and returning a response

type GetRolesOK

type GetRolesOK struct {

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

GetRolesOK Created

swagger:response getRolesOK

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates GetRolesOK with default headers values

func (*GetRolesOK) SetPayload

func (o *GetRolesOK) SetPayload(payload *models.RolesResponse)

SetPayload sets the payload to the get roles o k response

func (*GetRolesOK) WithPayload

func (o *GetRolesOK) WithPayload(payload *models.RolesResponse) *GetRolesOK

WithPayload adds the payload to the get roles o k response

func (*GetRolesOK) WriteResponse

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

WriteResponse to the client

type GetRolesParams

type GetRolesParams struct {

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

	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters getRoles

func NewGetRolesParams

func NewGetRolesParams() GetRolesParams

NewGetRolesParams creates a new GetRolesParams object no default values defined in spec.

func (*GetRolesParams) BindRequest

func (o *GetRolesParams) 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 NewGetRolesParams() beforehand.

type GetRolesURL

type GetRolesURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

GetRolesURL generates an URL for the get roles operation

func (*GetRolesURL) Build

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

Build a url path and query string

func (*GetRolesURL) BuildFull

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

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

func (*GetRolesURL) Must

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

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

func (*GetRolesURL) SetBasePath

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

func (o *GetRolesURL) String() string

String returns the string representation of the path with query string

func (*GetRolesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRolesURL) WithBasePath

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

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 UpdateRole

type UpdateRole struct {
	Context *middleware.Context
	Handler UpdateRoleHandler
}

UpdateRole swagger:route PUT /projects/{projectId}/roles/{id} role updateRole

Update a role

func NewUpdateRole

func NewUpdateRole(ctx *middleware.Context, handler UpdateRoleHandler) *UpdateRole

NewUpdateRole creates a new http.Handler for the update role operation

func (*UpdateRole) ServeHTTP

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

type UpdateRoleDefault

type UpdateRoleDefault struct {

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

UpdateRoleDefault unexpected error

swagger:response updateRoleDefault

func NewUpdateRoleDefault

func NewUpdateRoleDefault(code int) *UpdateRoleDefault

NewUpdateRoleDefault creates UpdateRoleDefault with default headers values

func (*UpdateRoleDefault) SetPayload

func (o *UpdateRoleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update role default response

func (*UpdateRoleDefault) SetStatusCode

func (o *UpdateRoleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update role default response

func (*UpdateRoleDefault) WithPayload

func (o *UpdateRoleDefault) WithPayload(payload *models.Error) *UpdateRoleDefault

WithPayload adds the payload to the update role default response

func (*UpdateRoleDefault) WithStatusCode

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

WithStatusCode adds the status to the update role default response

func (*UpdateRoleDefault) WriteResponse

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

WriteResponse to the client

type UpdateRoleHandler

type UpdateRoleHandler interface {
	Handle(UpdateRoleParams) middleware.Responder
}

UpdateRoleHandler interface for that can handle valid update role params

type UpdateRoleHandlerFunc

type UpdateRoleHandlerFunc func(UpdateRoleParams) middleware.Responder

UpdateRoleHandlerFunc turns a function with the right signature into a update role handler

func (UpdateRoleHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateRoleOK

type UpdateRoleOK struct {

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

UpdateRoleOK The role details

swagger:response updateRoleOK

func NewUpdateRoleOK

func NewUpdateRoleOK() *UpdateRoleOK

NewUpdateRoleOK creates UpdateRoleOK with default headers values

func (*UpdateRoleOK) SetPayload

func (o *UpdateRoleOK) SetPayload(payload *models.RoleResponse)

SetPayload sets the payload to the update role o k response

func (*UpdateRoleOK) WithPayload

func (o *UpdateRoleOK) WithPayload(payload *models.RoleResponse) *UpdateRoleOK

WithPayload adds the payload to the update role o k response

func (*UpdateRoleOK) WriteResponse

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

WriteResponse to the client

type UpdateRoleParams

type UpdateRoleParams struct {

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

	/*The role details
	  In: body
	*/
	Body *models.RoleRequest
	/*The role id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters updateRole

func NewUpdateRoleParams

func NewUpdateRoleParams() UpdateRoleParams

NewUpdateRoleParams creates a new UpdateRoleParams object no default values defined in spec.

func (*UpdateRoleParams) BindRequest

func (o *UpdateRoleParams) 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 NewUpdateRoleParams() beforehand.

type UpdateRoleURL

type UpdateRoleURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

UpdateRoleURL generates an URL for the update role operation

func (*UpdateRoleURL) Build

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

Build a url path and query string

func (*UpdateRoleURL) BuildFull

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

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

func (*UpdateRoleURL) Must

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

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

func (*UpdateRoleURL) SetBasePath

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

func (o *UpdateRoleURL) String() string

String returns the string representation of the path with query string

func (*UpdateRoleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateRoleURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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