Documentation ¶
Index ¶
- type AddRolePermissionCreated
- func (o *AddRolePermissionCreated) Code() int
- func (o *AddRolePermissionCreated) Error() string
- func (o *AddRolePermissionCreated) IsClientError() bool
- func (o *AddRolePermissionCreated) IsCode(code int) bool
- func (o *AddRolePermissionCreated) IsRedirect() bool
- func (o *AddRolePermissionCreated) IsServerError() bool
- func (o *AddRolePermissionCreated) IsSuccess() bool
- func (o *AddRolePermissionCreated) String() string
- type AddRolePermissionDefault
- func (o *AddRolePermissionDefault) Code() int
- func (o *AddRolePermissionDefault) Error() string
- func (o *AddRolePermissionDefault) GetPayload() *models.Error
- func (o *AddRolePermissionDefault) IsClientError() bool
- func (o *AddRolePermissionDefault) IsCode(code int) bool
- func (o *AddRolePermissionDefault) IsRedirect() bool
- func (o *AddRolePermissionDefault) IsServerError() bool
- func (o *AddRolePermissionDefault) IsSuccess() bool
- func (o *AddRolePermissionDefault) String() string
- type AddRolePermissionParams
- func NewAddRolePermissionParams() *AddRolePermissionParams
- func NewAddRolePermissionParamsWithContext(ctx context.Context) *AddRolePermissionParams
- func NewAddRolePermissionParamsWithHTTPClient(client *http.Client) *AddRolePermissionParams
- func NewAddRolePermissionParamsWithTimeout(timeout time.Duration) *AddRolePermissionParams
- func (o *AddRolePermissionParams) SetContext(ctx context.Context)
- func (o *AddRolePermissionParams) SetDefaults()
- func (o *AddRolePermissionParams) SetHTTPClient(client *http.Client)
- func (o *AddRolePermissionParams) SetPermission(permission *models.Permission)
- func (o *AddRolePermissionParams) SetRole(role string)
- func (o *AddRolePermissionParams) SetTimeout(timeout time.Duration)
- func (o *AddRolePermissionParams) WithContext(ctx context.Context) *AddRolePermissionParams
- func (o *AddRolePermissionParams) WithDefaults() *AddRolePermissionParams
- func (o *AddRolePermissionParams) WithHTTPClient(client *http.Client) *AddRolePermissionParams
- func (o *AddRolePermissionParams) WithPermission(permission *models.Permission) *AddRolePermissionParams
- func (o *AddRolePermissionParams) WithRole(role string) *AddRolePermissionParams
- func (o *AddRolePermissionParams) WithTimeout(timeout time.Duration) *AddRolePermissionParams
- func (o *AddRolePermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddRolePermissionReader
- type Client
- func (a *Client) AddRolePermission(params *AddRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddRolePermissionCreated, error)
- func (a *Client) ListRolePermissions(params *ListRolePermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListRolePermissionsOK, error)
- func (a *Client) RemoveRolePermission(params *RemoveRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveRolePermissionCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListRolePermissionsDefault
- func (o *ListRolePermissionsDefault) Code() int
- func (o *ListRolePermissionsDefault) Error() string
- func (o *ListRolePermissionsDefault) GetPayload() *models.Error
- func (o *ListRolePermissionsDefault) IsClientError() bool
- func (o *ListRolePermissionsDefault) IsCode(code int) bool
- func (o *ListRolePermissionsDefault) IsRedirect() bool
- func (o *ListRolePermissionsDefault) IsServerError() bool
- func (o *ListRolePermissionsDefault) IsSuccess() bool
- func (o *ListRolePermissionsDefault) String() string
- type ListRolePermissionsOK
- func (o *ListRolePermissionsOK) Code() int
- func (o *ListRolePermissionsOK) Error() string
- func (o *ListRolePermissionsOK) GetPayload() *models.Permissions
- func (o *ListRolePermissionsOK) IsClientError() bool
- func (o *ListRolePermissionsOK) IsCode(code int) bool
- func (o *ListRolePermissionsOK) IsRedirect() bool
- func (o *ListRolePermissionsOK) IsServerError() bool
- func (o *ListRolePermissionsOK) IsSuccess() bool
- func (o *ListRolePermissionsOK) String() string
- type ListRolePermissionsParams
- func NewListRolePermissionsParams() *ListRolePermissionsParams
- func NewListRolePermissionsParamsWithContext(ctx context.Context) *ListRolePermissionsParams
- func NewListRolePermissionsParamsWithHTTPClient(client *http.Client) *ListRolePermissionsParams
- func NewListRolePermissionsParamsWithTimeout(timeout time.Duration) *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) SetContext(ctx context.Context)
- func (o *ListRolePermissionsParams) SetDefaults()
- func (o *ListRolePermissionsParams) SetHTTPClient(client *http.Client)
- func (o *ListRolePermissionsParams) SetRole(role string)
- func (o *ListRolePermissionsParams) SetTimeout(timeout time.Duration)
- func (o *ListRolePermissionsParams) WithContext(ctx context.Context) *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) WithDefaults() *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) WithHTTPClient(client *http.Client) *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) WithRole(role string) *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) WithTimeout(timeout time.Duration) *ListRolePermissionsParams
- func (o *ListRolePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRolePermissionsReader
- type RemoveRolePermissionCreated
- func (o *RemoveRolePermissionCreated) Code() int
- func (o *RemoveRolePermissionCreated) Error() string
- func (o *RemoveRolePermissionCreated) IsClientError() bool
- func (o *RemoveRolePermissionCreated) IsCode(code int) bool
- func (o *RemoveRolePermissionCreated) IsRedirect() bool
- func (o *RemoveRolePermissionCreated) IsServerError() bool
- func (o *RemoveRolePermissionCreated) IsSuccess() bool
- func (o *RemoveRolePermissionCreated) String() string
- type RemoveRolePermissionDefault
- func (o *RemoveRolePermissionDefault) Code() int
- func (o *RemoveRolePermissionDefault) Error() string
- func (o *RemoveRolePermissionDefault) GetPayload() *models.Error
- func (o *RemoveRolePermissionDefault) IsClientError() bool
- func (o *RemoveRolePermissionDefault) IsCode(code int) bool
- func (o *RemoveRolePermissionDefault) IsRedirect() bool
- func (o *RemoveRolePermissionDefault) IsServerError() bool
- func (o *RemoveRolePermissionDefault) IsSuccess() bool
- func (o *RemoveRolePermissionDefault) String() string
- type RemoveRolePermissionNotFound
- func (o *RemoveRolePermissionNotFound) Code() int
- func (o *RemoveRolePermissionNotFound) Error() string
- func (o *RemoveRolePermissionNotFound) GetPayload() *models.NotExists
- func (o *RemoveRolePermissionNotFound) IsClientError() bool
- func (o *RemoveRolePermissionNotFound) IsCode(code int) bool
- func (o *RemoveRolePermissionNotFound) IsRedirect() bool
- func (o *RemoveRolePermissionNotFound) IsServerError() bool
- func (o *RemoveRolePermissionNotFound) IsSuccess() bool
- func (o *RemoveRolePermissionNotFound) String() string
- type RemoveRolePermissionParams
- func NewRemoveRolePermissionParams() *RemoveRolePermissionParams
- func NewRemoveRolePermissionParamsWithContext(ctx context.Context) *RemoveRolePermissionParams
- func NewRemoveRolePermissionParamsWithHTTPClient(client *http.Client) *RemoveRolePermissionParams
- func NewRemoveRolePermissionParamsWithTimeout(timeout time.Duration) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) SetContext(ctx context.Context)
- func (o *RemoveRolePermissionParams) SetDefaults()
- func (o *RemoveRolePermissionParams) SetHTTPClient(client *http.Client)
- func (o *RemoveRolePermissionParams) SetPermission(permission *models.Permission)
- func (o *RemoveRolePermissionParams) SetRole(role string)
- func (o *RemoveRolePermissionParams) SetTimeout(timeout time.Duration)
- func (o *RemoveRolePermissionParams) WithContext(ctx context.Context) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WithDefaults() *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WithHTTPClient(client *http.Client) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WithPermission(permission *models.Permission) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WithRole(role string) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WithTimeout(timeout time.Duration) *RemoveRolePermissionParams
- func (o *RemoveRolePermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveRolePermissionReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRolePermissionCreated ¶
type AddRolePermissionCreated struct { }
AddRolePermissionCreated describes a response with status code 201, with default header values.
Null response
func NewAddRolePermissionCreated ¶
func NewAddRolePermissionCreated() *AddRolePermissionCreated
NewAddRolePermissionCreated creates a AddRolePermissionCreated with default headers values
func (*AddRolePermissionCreated) Code ¶
func (o *AddRolePermissionCreated) Code() int
Code gets the status code for the add role permission created response
func (*AddRolePermissionCreated) Error ¶
func (o *AddRolePermissionCreated) Error() string
func (*AddRolePermissionCreated) IsClientError ¶
func (o *AddRolePermissionCreated) IsClientError() bool
IsClientError returns true when this add role permission created response has a 4xx status code
func (*AddRolePermissionCreated) IsCode ¶
func (o *AddRolePermissionCreated) IsCode(code int) bool
IsCode returns true when this add role permission created response a status code equal to that given
func (*AddRolePermissionCreated) IsRedirect ¶
func (o *AddRolePermissionCreated) IsRedirect() bool
IsRedirect returns true when this add role permission created response has a 3xx status code
func (*AddRolePermissionCreated) IsServerError ¶
func (o *AddRolePermissionCreated) IsServerError() bool
IsServerError returns true when this add role permission created response has a 5xx status code
func (*AddRolePermissionCreated) IsSuccess ¶
func (o *AddRolePermissionCreated) IsSuccess() bool
IsSuccess returns true when this add role permission created response has a 2xx status code
func (*AddRolePermissionCreated) String ¶
func (o *AddRolePermissionCreated) String() string
type AddRolePermissionDefault ¶
type AddRolePermissionDefault struct { Payload *models.Error // contains filtered or unexported fields }
AddRolePermissionDefault describes a response with status code -1, with default header values.
unexpected error
func NewAddRolePermissionDefault ¶
func NewAddRolePermissionDefault(code int) *AddRolePermissionDefault
NewAddRolePermissionDefault creates a AddRolePermissionDefault with default headers values
func (*AddRolePermissionDefault) Code ¶
func (o *AddRolePermissionDefault) Code() int
Code gets the status code for the add role permission default response
func (*AddRolePermissionDefault) Error ¶
func (o *AddRolePermissionDefault) Error() string
func (*AddRolePermissionDefault) GetPayload ¶
func (o *AddRolePermissionDefault) GetPayload() *models.Error
func (*AddRolePermissionDefault) IsClientError ¶
func (o *AddRolePermissionDefault) IsClientError() bool
IsClientError returns true when this add role permission default response has a 4xx status code
func (*AddRolePermissionDefault) IsCode ¶
func (o *AddRolePermissionDefault) IsCode(code int) bool
IsCode returns true when this add role permission default response a status code equal to that given
func (*AddRolePermissionDefault) IsRedirect ¶
func (o *AddRolePermissionDefault) IsRedirect() bool
IsRedirect returns true when this add role permission default response has a 3xx status code
func (*AddRolePermissionDefault) IsServerError ¶
func (o *AddRolePermissionDefault) IsServerError() bool
IsServerError returns true when this add role permission default response has a 5xx status code
func (*AddRolePermissionDefault) IsSuccess ¶
func (o *AddRolePermissionDefault) IsSuccess() bool
IsSuccess returns true when this add role permission default response has a 2xx status code
func (*AddRolePermissionDefault) String ¶
func (o *AddRolePermissionDefault) String() string
type AddRolePermissionParams ¶
type AddRolePermissionParams struct { /* Permission. The permission to add */ Permission *models.Permission /* Role. The role to add the permission to */ Role string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddRolePermissionParams contains all the parameters to send to the API endpoint
for the add role permission operation. Typically these are written to a http.Request.
func NewAddRolePermissionParams ¶
func NewAddRolePermissionParams() *AddRolePermissionParams
NewAddRolePermissionParams creates a new AddRolePermissionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAddRolePermissionParamsWithContext ¶
func NewAddRolePermissionParamsWithContext(ctx context.Context) *AddRolePermissionParams
NewAddRolePermissionParamsWithContext creates a new AddRolePermissionParams object with the ability to set a context for a request.
func NewAddRolePermissionParamsWithHTTPClient ¶
func NewAddRolePermissionParamsWithHTTPClient(client *http.Client) *AddRolePermissionParams
NewAddRolePermissionParamsWithHTTPClient creates a new AddRolePermissionParams object with the ability to set a custom HTTPClient for a request.
func NewAddRolePermissionParamsWithTimeout ¶
func NewAddRolePermissionParamsWithTimeout(timeout time.Duration) *AddRolePermissionParams
NewAddRolePermissionParamsWithTimeout creates a new AddRolePermissionParams object with the ability to set a timeout on a request.
func (*AddRolePermissionParams) SetContext ¶
func (o *AddRolePermissionParams) SetContext(ctx context.Context)
SetContext adds the context to the add role permission params
func (*AddRolePermissionParams) SetDefaults ¶
func (o *AddRolePermissionParams) SetDefaults()
SetDefaults hydrates default values in the add role permission params (not the query body).
All values with no default are reset to their zero value.
func (*AddRolePermissionParams) SetHTTPClient ¶
func (o *AddRolePermissionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add role permission params
func (*AddRolePermissionParams) SetPermission ¶
func (o *AddRolePermissionParams) SetPermission(permission *models.Permission)
SetPermission adds the permission to the add role permission params
func (*AddRolePermissionParams) SetRole ¶
func (o *AddRolePermissionParams) SetRole(role string)
SetRole adds the role to the add role permission params
func (*AddRolePermissionParams) SetTimeout ¶
func (o *AddRolePermissionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add role permission params
func (*AddRolePermissionParams) WithContext ¶
func (o *AddRolePermissionParams) WithContext(ctx context.Context) *AddRolePermissionParams
WithContext adds the context to the add role permission params
func (*AddRolePermissionParams) WithDefaults ¶
func (o *AddRolePermissionParams) WithDefaults() *AddRolePermissionParams
WithDefaults hydrates default values in the add role permission params (not the query body).
All values with no default are reset to their zero value.
func (*AddRolePermissionParams) WithHTTPClient ¶
func (o *AddRolePermissionParams) WithHTTPClient(client *http.Client) *AddRolePermissionParams
WithHTTPClient adds the HTTPClient to the add role permission params
func (*AddRolePermissionParams) WithPermission ¶
func (o *AddRolePermissionParams) WithPermission(permission *models.Permission) *AddRolePermissionParams
WithPermission adds the permission to the add role permission params
func (*AddRolePermissionParams) WithRole ¶
func (o *AddRolePermissionParams) WithRole(role string) *AddRolePermissionParams
WithRole adds the role to the add role permission params
func (*AddRolePermissionParams) WithTimeout ¶
func (o *AddRolePermissionParams) WithTimeout(timeout time.Duration) *AddRolePermissionParams
WithTimeout adds the timeout to the add role permission params
func (*AddRolePermissionParams) WriteToRequest ¶
func (o *AddRolePermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddRolePermissionReader ¶
type AddRolePermissionReader struct {
// contains filtered or unexported fields
}
AddRolePermissionReader is a Reader for the AddRolePermission structure.
func (*AddRolePermissionReader) ReadResponse ¶
func (o *AddRolePermissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for roles permissions API
func (*Client) AddRolePermission ¶
func (a *Client) AddRolePermission(params *AddRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRolePermissionCreated, error)
AddRolePermission adds a permission to a role
func (*Client) ListRolePermissions ¶
func (a *Client) ListRolePermissions(params *ListRolePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolePermissionsOK, error)
ListRolePermissions lists the role s permissions
func (*Client) RemoveRolePermission ¶
func (a *Client) RemoveRolePermission(params *RemoveRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRolePermissionCreated, error)
RemoveRolePermission removes a permission from a role
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddRolePermission(params *AddRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRolePermissionCreated, error) ListRolePermissions(params *ListRolePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolePermissionsOK, error) RemoveRolePermission(params *RemoveRolePermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRolePermissionCreated, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new roles permissions API client.
type ListRolePermissionsDefault ¶
type ListRolePermissionsDefault struct { Payload *models.Error // contains filtered or unexported fields }
ListRolePermissionsDefault describes a response with status code -1, with default header values.
unexpected error
func NewListRolePermissionsDefault ¶
func NewListRolePermissionsDefault(code int) *ListRolePermissionsDefault
NewListRolePermissionsDefault creates a ListRolePermissionsDefault with default headers values
func (*ListRolePermissionsDefault) Code ¶
func (o *ListRolePermissionsDefault) Code() int
Code gets the status code for the list role permissions default response
func (*ListRolePermissionsDefault) Error ¶
func (o *ListRolePermissionsDefault) Error() string
func (*ListRolePermissionsDefault) GetPayload ¶
func (o *ListRolePermissionsDefault) GetPayload() *models.Error
func (*ListRolePermissionsDefault) IsClientError ¶
func (o *ListRolePermissionsDefault) IsClientError() bool
IsClientError returns true when this list role permissions default response has a 4xx status code
func (*ListRolePermissionsDefault) IsCode ¶
func (o *ListRolePermissionsDefault) IsCode(code int) bool
IsCode returns true when this list role permissions default response a status code equal to that given
func (*ListRolePermissionsDefault) IsRedirect ¶
func (o *ListRolePermissionsDefault) IsRedirect() bool
IsRedirect returns true when this list role permissions default response has a 3xx status code
func (*ListRolePermissionsDefault) IsServerError ¶
func (o *ListRolePermissionsDefault) IsServerError() bool
IsServerError returns true when this list role permissions default response has a 5xx status code
func (*ListRolePermissionsDefault) IsSuccess ¶
func (o *ListRolePermissionsDefault) IsSuccess() bool
IsSuccess returns true when this list role permissions default response has a 2xx status code
func (*ListRolePermissionsDefault) String ¶
func (o *ListRolePermissionsDefault) String() string
type ListRolePermissionsOK ¶
type ListRolePermissionsOK struct {
Payload *models.Permissions
}
ListRolePermissionsOK describes a response with status code 200, with default header values.
The roles's permissions
func NewListRolePermissionsOK ¶
func NewListRolePermissionsOK() *ListRolePermissionsOK
NewListRolePermissionsOK creates a ListRolePermissionsOK with default headers values
func (*ListRolePermissionsOK) Code ¶
func (o *ListRolePermissionsOK) Code() int
Code gets the status code for the list role permissions o k response
func (*ListRolePermissionsOK) Error ¶
func (o *ListRolePermissionsOK) Error() string
func (*ListRolePermissionsOK) GetPayload ¶
func (o *ListRolePermissionsOK) GetPayload() *models.Permissions
func (*ListRolePermissionsOK) IsClientError ¶
func (o *ListRolePermissionsOK) IsClientError() bool
IsClientError returns true when this list role permissions o k response has a 4xx status code
func (*ListRolePermissionsOK) IsCode ¶
func (o *ListRolePermissionsOK) IsCode(code int) bool
IsCode returns true when this list role permissions o k response a status code equal to that given
func (*ListRolePermissionsOK) IsRedirect ¶
func (o *ListRolePermissionsOK) IsRedirect() bool
IsRedirect returns true when this list role permissions o k response has a 3xx status code
func (*ListRolePermissionsOK) IsServerError ¶
func (o *ListRolePermissionsOK) IsServerError() bool
IsServerError returns true when this list role permissions o k response has a 5xx status code
func (*ListRolePermissionsOK) IsSuccess ¶
func (o *ListRolePermissionsOK) IsSuccess() bool
IsSuccess returns true when this list role permissions o k response has a 2xx status code
func (*ListRolePermissionsOK) String ¶
func (o *ListRolePermissionsOK) String() string
type ListRolePermissionsParams ¶
type ListRolePermissionsParams struct { /* Role. The name of the role whose permissions should be listed */ Role string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRolePermissionsParams contains all the parameters to send to the API endpoint
for the list role permissions operation. Typically these are written to a http.Request.
func NewListRolePermissionsParams ¶
func NewListRolePermissionsParams() *ListRolePermissionsParams
NewListRolePermissionsParams creates a new ListRolePermissionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListRolePermissionsParamsWithContext ¶
func NewListRolePermissionsParamsWithContext(ctx context.Context) *ListRolePermissionsParams
NewListRolePermissionsParamsWithContext creates a new ListRolePermissionsParams object with the ability to set a context for a request.
func NewListRolePermissionsParamsWithHTTPClient ¶
func NewListRolePermissionsParamsWithHTTPClient(client *http.Client) *ListRolePermissionsParams
NewListRolePermissionsParamsWithHTTPClient creates a new ListRolePermissionsParams object with the ability to set a custom HTTPClient for a request.
func NewListRolePermissionsParamsWithTimeout ¶
func NewListRolePermissionsParamsWithTimeout(timeout time.Duration) *ListRolePermissionsParams
NewListRolePermissionsParamsWithTimeout creates a new ListRolePermissionsParams object with the ability to set a timeout on a request.
func (*ListRolePermissionsParams) SetContext ¶
func (o *ListRolePermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list role permissions params
func (*ListRolePermissionsParams) SetDefaults ¶
func (o *ListRolePermissionsParams) SetDefaults()
SetDefaults hydrates default values in the list role permissions params (not the query body).
All values with no default are reset to their zero value.
func (*ListRolePermissionsParams) SetHTTPClient ¶
func (o *ListRolePermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list role permissions params
func (*ListRolePermissionsParams) SetRole ¶
func (o *ListRolePermissionsParams) SetRole(role string)
SetRole adds the role to the list role permissions params
func (*ListRolePermissionsParams) SetTimeout ¶
func (o *ListRolePermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list role permissions params
func (*ListRolePermissionsParams) WithContext ¶
func (o *ListRolePermissionsParams) WithContext(ctx context.Context) *ListRolePermissionsParams
WithContext adds the context to the list role permissions params
func (*ListRolePermissionsParams) WithDefaults ¶
func (o *ListRolePermissionsParams) WithDefaults() *ListRolePermissionsParams
WithDefaults hydrates default values in the list role permissions params (not the query body).
All values with no default are reset to their zero value.
func (*ListRolePermissionsParams) WithHTTPClient ¶
func (o *ListRolePermissionsParams) WithHTTPClient(client *http.Client) *ListRolePermissionsParams
WithHTTPClient adds the HTTPClient to the list role permissions params
func (*ListRolePermissionsParams) WithRole ¶
func (o *ListRolePermissionsParams) WithRole(role string) *ListRolePermissionsParams
WithRole adds the role to the list role permissions params
func (*ListRolePermissionsParams) WithTimeout ¶
func (o *ListRolePermissionsParams) WithTimeout(timeout time.Duration) *ListRolePermissionsParams
WithTimeout adds the timeout to the list role permissions params
func (*ListRolePermissionsParams) WriteToRequest ¶
func (o *ListRolePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRolePermissionsReader ¶
type ListRolePermissionsReader struct {
// contains filtered or unexported fields
}
ListRolePermissionsReader is a Reader for the ListRolePermissions structure.
func (*ListRolePermissionsReader) ReadResponse ¶
func (o *ListRolePermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveRolePermissionCreated ¶
type RemoveRolePermissionCreated struct { }
RemoveRolePermissionCreated describes a response with status code 201, with default header values.
Null response
func NewRemoveRolePermissionCreated ¶
func NewRemoveRolePermissionCreated() *RemoveRolePermissionCreated
NewRemoveRolePermissionCreated creates a RemoveRolePermissionCreated with default headers values
func (*RemoveRolePermissionCreated) Code ¶
func (o *RemoveRolePermissionCreated) Code() int
Code gets the status code for the remove role permission created response
func (*RemoveRolePermissionCreated) Error ¶
func (o *RemoveRolePermissionCreated) Error() string
func (*RemoveRolePermissionCreated) IsClientError ¶
func (o *RemoveRolePermissionCreated) IsClientError() bool
IsClientError returns true when this remove role permission created response has a 4xx status code
func (*RemoveRolePermissionCreated) IsCode ¶
func (o *RemoveRolePermissionCreated) IsCode(code int) bool
IsCode returns true when this remove role permission created response a status code equal to that given
func (*RemoveRolePermissionCreated) IsRedirect ¶
func (o *RemoveRolePermissionCreated) IsRedirect() bool
IsRedirect returns true when this remove role permission created response has a 3xx status code
func (*RemoveRolePermissionCreated) IsServerError ¶
func (o *RemoveRolePermissionCreated) IsServerError() bool
IsServerError returns true when this remove role permission created response has a 5xx status code
func (*RemoveRolePermissionCreated) IsSuccess ¶
func (o *RemoveRolePermissionCreated) IsSuccess() bool
IsSuccess returns true when this remove role permission created response has a 2xx status code
func (*RemoveRolePermissionCreated) String ¶
func (o *RemoveRolePermissionCreated) String() string
type RemoveRolePermissionDefault ¶
type RemoveRolePermissionDefault struct { Payload *models.Error // contains filtered or unexported fields }
RemoveRolePermissionDefault describes a response with status code -1, with default header values.
unexpected error
func NewRemoveRolePermissionDefault ¶
func NewRemoveRolePermissionDefault(code int) *RemoveRolePermissionDefault
NewRemoveRolePermissionDefault creates a RemoveRolePermissionDefault with default headers values
func (*RemoveRolePermissionDefault) Code ¶
func (o *RemoveRolePermissionDefault) Code() int
Code gets the status code for the remove role permission default response
func (*RemoveRolePermissionDefault) Error ¶
func (o *RemoveRolePermissionDefault) Error() string
func (*RemoveRolePermissionDefault) GetPayload ¶
func (o *RemoveRolePermissionDefault) GetPayload() *models.Error
func (*RemoveRolePermissionDefault) IsClientError ¶
func (o *RemoveRolePermissionDefault) IsClientError() bool
IsClientError returns true when this remove role permission default response has a 4xx status code
func (*RemoveRolePermissionDefault) IsCode ¶
func (o *RemoveRolePermissionDefault) IsCode(code int) bool
IsCode returns true when this remove role permission default response a status code equal to that given
func (*RemoveRolePermissionDefault) IsRedirect ¶
func (o *RemoveRolePermissionDefault) IsRedirect() bool
IsRedirect returns true when this remove role permission default response has a 3xx status code
func (*RemoveRolePermissionDefault) IsServerError ¶
func (o *RemoveRolePermissionDefault) IsServerError() bool
IsServerError returns true when this remove role permission default response has a 5xx status code
func (*RemoveRolePermissionDefault) IsSuccess ¶
func (o *RemoveRolePermissionDefault) IsSuccess() bool
IsSuccess returns true when this remove role permission default response has a 2xx status code
func (*RemoveRolePermissionDefault) String ¶
func (o *RemoveRolePermissionDefault) String() string
type RemoveRolePermissionNotFound ¶
RemoveRolePermissionNotFound describes a response with status code 404, with default header values.
Role permission does not exist
func NewRemoveRolePermissionNotFound ¶
func NewRemoveRolePermissionNotFound() *RemoveRolePermissionNotFound
NewRemoveRolePermissionNotFound creates a RemoveRolePermissionNotFound with default headers values
func (*RemoveRolePermissionNotFound) Code ¶
func (o *RemoveRolePermissionNotFound) Code() int
Code gets the status code for the remove role permission not found response
func (*RemoveRolePermissionNotFound) Error ¶
func (o *RemoveRolePermissionNotFound) Error() string
func (*RemoveRolePermissionNotFound) GetPayload ¶
func (o *RemoveRolePermissionNotFound) GetPayload() *models.NotExists
func (*RemoveRolePermissionNotFound) IsClientError ¶
func (o *RemoveRolePermissionNotFound) IsClientError() bool
IsClientError returns true when this remove role permission not found response has a 4xx status code
func (*RemoveRolePermissionNotFound) IsCode ¶
func (o *RemoveRolePermissionNotFound) IsCode(code int) bool
IsCode returns true when this remove role permission not found response a status code equal to that given
func (*RemoveRolePermissionNotFound) IsRedirect ¶
func (o *RemoveRolePermissionNotFound) IsRedirect() bool
IsRedirect returns true when this remove role permission not found response has a 3xx status code
func (*RemoveRolePermissionNotFound) IsServerError ¶
func (o *RemoveRolePermissionNotFound) IsServerError() bool
IsServerError returns true when this remove role permission not found response has a 5xx status code
func (*RemoveRolePermissionNotFound) IsSuccess ¶
func (o *RemoveRolePermissionNotFound) IsSuccess() bool
IsSuccess returns true when this remove role permission not found response has a 2xx status code
func (*RemoveRolePermissionNotFound) String ¶
func (o *RemoveRolePermissionNotFound) String() string
type RemoveRolePermissionParams ¶
type RemoveRolePermissionParams struct { /* Permission. The permission to remove */ Permission *models.Permission /* Role. The role to remove the permission from */ Role string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveRolePermissionParams contains all the parameters to send to the API endpoint
for the remove role permission operation. Typically these are written to a http.Request.
func NewRemoveRolePermissionParams ¶
func NewRemoveRolePermissionParams() *RemoveRolePermissionParams
NewRemoveRolePermissionParams creates a new RemoveRolePermissionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRemoveRolePermissionParamsWithContext ¶
func NewRemoveRolePermissionParamsWithContext(ctx context.Context) *RemoveRolePermissionParams
NewRemoveRolePermissionParamsWithContext creates a new RemoveRolePermissionParams object with the ability to set a context for a request.
func NewRemoveRolePermissionParamsWithHTTPClient ¶
func NewRemoveRolePermissionParamsWithHTTPClient(client *http.Client) *RemoveRolePermissionParams
NewRemoveRolePermissionParamsWithHTTPClient creates a new RemoveRolePermissionParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveRolePermissionParamsWithTimeout ¶
func NewRemoveRolePermissionParamsWithTimeout(timeout time.Duration) *RemoveRolePermissionParams
NewRemoveRolePermissionParamsWithTimeout creates a new RemoveRolePermissionParams object with the ability to set a timeout on a request.
func (*RemoveRolePermissionParams) SetContext ¶
func (o *RemoveRolePermissionParams) SetContext(ctx context.Context)
SetContext adds the context to the remove role permission params
func (*RemoveRolePermissionParams) SetDefaults ¶
func (o *RemoveRolePermissionParams) SetDefaults()
SetDefaults hydrates default values in the remove role permission params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRolePermissionParams) SetHTTPClient ¶
func (o *RemoveRolePermissionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove role permission params
func (*RemoveRolePermissionParams) SetPermission ¶
func (o *RemoveRolePermissionParams) SetPermission(permission *models.Permission)
SetPermission adds the permission to the remove role permission params
func (*RemoveRolePermissionParams) SetRole ¶
func (o *RemoveRolePermissionParams) SetRole(role string)
SetRole adds the role to the remove role permission params
func (*RemoveRolePermissionParams) SetTimeout ¶
func (o *RemoveRolePermissionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove role permission params
func (*RemoveRolePermissionParams) WithContext ¶
func (o *RemoveRolePermissionParams) WithContext(ctx context.Context) *RemoveRolePermissionParams
WithContext adds the context to the remove role permission params
func (*RemoveRolePermissionParams) WithDefaults ¶
func (o *RemoveRolePermissionParams) WithDefaults() *RemoveRolePermissionParams
WithDefaults hydrates default values in the remove role permission params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRolePermissionParams) WithHTTPClient ¶
func (o *RemoveRolePermissionParams) WithHTTPClient(client *http.Client) *RemoveRolePermissionParams
WithHTTPClient adds the HTTPClient to the remove role permission params
func (*RemoveRolePermissionParams) WithPermission ¶
func (o *RemoveRolePermissionParams) WithPermission(permission *models.Permission) *RemoveRolePermissionParams
WithPermission adds the permission to the remove role permission params
func (*RemoveRolePermissionParams) WithRole ¶
func (o *RemoveRolePermissionParams) WithRole(role string) *RemoveRolePermissionParams
WithRole adds the role to the remove role permission params
func (*RemoveRolePermissionParams) WithTimeout ¶
func (o *RemoveRolePermissionParams) WithTimeout(timeout time.Duration) *RemoveRolePermissionParams
WithTimeout adds the timeout to the remove role permission params
func (*RemoveRolePermissionParams) WriteToRequest ¶
func (o *RemoveRolePermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveRolePermissionReader ¶
type RemoveRolePermissionReader struct {
// contains filtered or unexported fields
}
RemoveRolePermissionReader is a Reader for the RemoveRolePermission structure.
func (*RemoveRolePermissionReader) ReadResponse ¶
func (o *RemoveRolePermissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.