Documentation ¶
Index ¶
- Constants
- type CreateRole
- type CreateRoleCreated
- type CreateRoleDefault
- func (o *CreateRoleDefault) SetPayload(payload *models.Error)
- func (o *CreateRoleDefault) SetStatusCode(code int)
- func (o *CreateRoleDefault) WithPayload(payload *models.Error) *CreateRoleDefault
- func (o *CreateRoleDefault) WithStatusCode(code int) *CreateRoleDefault
- func (o *CreateRoleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRoleHandler
- type CreateRoleHandlerFunc
- type CreateRoleParams
- type CreateRoleURL
- func (o *CreateRoleURL) Build() (*url.URL, error)
- func (o *CreateRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateRoleURL) SetBasePath(bp string)
- func (o *CreateRoleURL) String() string
- func (o *CreateRoleURL) StringFull(scheme, host string) string
- func (o *CreateRoleURL) WithBasePath(bp string) *CreateRoleURL
- type DeleteRole
- type DeleteRoleDefault
- func (o *DeleteRoleDefault) SetPayload(payload *models.Error)
- func (o *DeleteRoleDefault) SetStatusCode(code int)
- func (o *DeleteRoleDefault) WithPayload(payload *models.Error) *DeleteRoleDefault
- func (o *DeleteRoleDefault) WithStatusCode(code int) *DeleteRoleDefault
- func (o *DeleteRoleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRoleHandler
- type DeleteRoleHandlerFunc
- type DeleteRoleOK
- type DeleteRoleParams
- type DeleteRoleURL
- func (o *DeleteRoleURL) Build() (*url.URL, error)
- func (o *DeleteRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRoleURL) SetBasePath(bp string)
- func (o *DeleteRoleURL) String() string
- func (o *DeleteRoleURL) StringFull(scheme, host string) string
- func (o *DeleteRoleURL) WithBasePath(bp string) *DeleteRoleURL
- type GetRole
- type GetRoleDefault
- func (o *GetRoleDefault) SetPayload(payload *models.Error)
- func (o *GetRoleDefault) SetStatusCode(code int)
- func (o *GetRoleDefault) WithPayload(payload *models.Error) *GetRoleDefault
- func (o *GetRoleDefault) WithStatusCode(code int) *GetRoleDefault
- func (o *GetRoleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRoleHandler
- type GetRoleHandlerFunc
- type GetRoleOK
- type GetRoleParams
- type GetRoleURL
- func (o *GetRoleURL) Build() (*url.URL, error)
- func (o *GetRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRoleURL) SetBasePath(bp string)
- func (o *GetRoleURL) String() string
- func (o *GetRoleURL) StringFull(scheme, host string) string
- func (o *GetRoleURL) WithBasePath(bp string) *GetRoleURL
- type GetRoles
- type GetRolesDefault
- func (o *GetRolesDefault) SetPayload(payload *models.Error)
- func (o *GetRolesDefault) SetStatusCode(code int)
- func (o *GetRolesDefault) WithPayload(payload *models.Error) *GetRolesDefault
- func (o *GetRolesDefault) WithStatusCode(code int) *GetRolesDefault
- func (o *GetRolesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRolesHandler
- type GetRolesHandlerFunc
- type GetRolesOK
- type GetRolesParams
- type GetRolesURL
- func (o *GetRolesURL) Build() (*url.URL, error)
- func (o *GetRolesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRolesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRolesURL) SetBasePath(bp string)
- func (o *GetRolesURL) String() string
- func (o *GetRolesURL) StringFull(scheme, host string) string
- func (o *GetRolesURL) WithBasePath(bp string) *GetRolesURL
- type UpdateRole
- type UpdateRoleDefault
- func (o *UpdateRoleDefault) SetPayload(payload *models.Error)
- func (o *UpdateRoleDefault) SetStatusCode(code int)
- func (o *UpdateRoleDefault) WithPayload(payload *models.Error) *UpdateRoleDefault
- func (o *UpdateRoleDefault) WithStatusCode(code int) *UpdateRoleDefault
- func (o *UpdateRoleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRoleHandler
- type UpdateRoleHandlerFunc
- type UpdateRoleOK
- type UpdateRoleParams
- type UpdateRoleURL
- func (o *UpdateRoleURL) Build() (*url.URL, error)
- func (o *UpdateRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRoleURL) SetBasePath(bp string)
- func (o *UpdateRoleURL) String() string
- func (o *UpdateRoleURL) StringFull(scheme, host string) string
- func (o *UpdateRoleURL) WithBasePath(bp string) *UpdateRoleURL
Constants ¶
const CreateRoleCreatedCode int = 201
CreateRoleCreatedCode is the HTTP code returned for type CreateRoleCreated
const DeleteRoleOKCode int = 200
DeleteRoleOKCode is the HTTP code returned for type DeleteRoleOK
const GetRoleOKCode int = 200
GetRoleOKCode is the HTTP code returned for type GetRoleOK
const GetRolesOKCode int = 200
GetRolesOKCode is the HTTP code returned for type GetRolesOK
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 ¶
func (fn CreateRoleHandlerFunc) Handle(params CreateRoleParams) middleware.Responder
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 ¶
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 ¶
func (fn DeleteRoleHandlerFunc) Handle(params DeleteRoleParams) middleware.Responder
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 ¶
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 ¶
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
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 ¶
func (fn GetRoleHandlerFunc) Handle(params GetRoleParams) middleware.Responder
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 ¶
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) 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
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 ¶
func (fn GetRolesHandlerFunc) Handle(params GetRolesParams) middleware.Responder
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) 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 ¶
func (fn UpdateRoleHandlerFunc) Handle(params UpdateRoleParams) middleware.Responder
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 ¶
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 ¶
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
Source Files ¶
- create_role.go
- create_role_parameters.go
- create_role_responses.go
- create_role_urlbuilder.go
- delete_role.go
- delete_role_parameters.go
- delete_role_responses.go
- delete_role_urlbuilder.go
- get_role.go
- get_role_parameters.go
- get_role_responses.go
- get_role_urlbuilder.go
- get_roles.go
- get_roles_parameters.go
- get_roles_responses.go
- get_roles_urlbuilder.go
- update_role.go
- update_role_parameters.go
- update_role_responses.go
- update_role_urlbuilder.go