Documentation ¶
Index ¶
- type AddRoleDefault
- func (o *AddRoleDefault) Code() int
- func (o *AddRoleDefault) Error() string
- func (o *AddRoleDefault) GetPayload() *models.Error
- func (o *AddRoleDefault) IsClientError() bool
- func (o *AddRoleDefault) IsCode(code int) bool
- func (o *AddRoleDefault) IsRedirect() bool
- func (o *AddRoleDefault) IsServerError() bool
- func (o *AddRoleDefault) IsSuccess() bool
- func (o *AddRoleDefault) String() string
- type AddRoleNoContent
- func (o *AddRoleNoContent) Code() int
- func (o *AddRoleNoContent) Error() string
- func (o *AddRoleNoContent) IsClientError() bool
- func (o *AddRoleNoContent) IsCode(code int) bool
- func (o *AddRoleNoContent) IsRedirect() bool
- func (o *AddRoleNoContent) IsServerError() bool
- func (o *AddRoleNoContent) IsSuccess() bool
- func (o *AddRoleNoContent) String() string
- type AddRoleParams
- func (o *AddRoleParams) SetContext(ctx context.Context)
- func (o *AddRoleParams) SetDefaults()
- func (o *AddRoleParams) SetHTTPClient(client *http.Client)
- func (o *AddRoleParams) SetRole(role *models.Rolename)
- func (o *AddRoleParams) SetTimeout(timeout time.Duration)
- func (o *AddRoleParams) SetUser(user string)
- func (o *AddRoleParams) WithContext(ctx context.Context) *AddRoleParams
- func (o *AddRoleParams) WithDefaults() *AddRoleParams
- func (o *AddRoleParams) WithHTTPClient(client *http.Client) *AddRoleParams
- func (o *AddRoleParams) WithRole(role *models.Rolename) *AddRoleParams
- func (o *AddRoleParams) WithTimeout(timeout time.Duration) *AddRoleParams
- func (o *AddRoleParams) WithUser(user string) *AddRoleParams
- func (o *AddRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddRoleReader
- type Client
- func (a *Client) AddRole(params *AddRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddRoleNoContent, error)
- func (a *Client) ListRoleUsers(params *ListRoleUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListRoleUsersOK, error)
- func (a *Client) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUserRolesOK, error)
- func (a *Client) PutRoles(params *PutRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutRolesOK, error)
- func (a *Client) RemoveRoleOfUser(params *RemoveRoleOfUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveRoleOfUserNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListRoleUsersDefault
- func (o *ListRoleUsersDefault) Code() int
- func (o *ListRoleUsersDefault) Error() string
- func (o *ListRoleUsersDefault) GetPayload() *models.Error
- func (o *ListRoleUsersDefault) IsClientError() bool
- func (o *ListRoleUsersDefault) IsCode(code int) bool
- func (o *ListRoleUsersDefault) IsRedirect() bool
- func (o *ListRoleUsersDefault) IsServerError() bool
- func (o *ListRoleUsersDefault) IsSuccess() bool
- func (o *ListRoleUsersDefault) String() string
- type ListRoleUsersOK
- func (o *ListRoleUsersOK) Code() int
- func (o *ListRoleUsersOK) Error() string
- func (o *ListRoleUsersOK) GetPayload() *models.Users
- func (o *ListRoleUsersOK) IsClientError() bool
- func (o *ListRoleUsersOK) IsCode(code int) bool
- func (o *ListRoleUsersOK) IsRedirect() bool
- func (o *ListRoleUsersOK) IsServerError() bool
- func (o *ListRoleUsersOK) IsSuccess() bool
- func (o *ListRoleUsersOK) String() string
- type ListRoleUsersParams
- func (o *ListRoleUsersParams) SetContext(ctx context.Context)
- func (o *ListRoleUsersParams) SetDefaults()
- func (o *ListRoleUsersParams) SetHTTPClient(client *http.Client)
- func (o *ListRoleUsersParams) SetRole(role string)
- func (o *ListRoleUsersParams) SetTimeout(timeout time.Duration)
- func (o *ListRoleUsersParams) WithContext(ctx context.Context) *ListRoleUsersParams
- func (o *ListRoleUsersParams) WithDefaults() *ListRoleUsersParams
- func (o *ListRoleUsersParams) WithHTTPClient(client *http.Client) *ListRoleUsersParams
- func (o *ListRoleUsersParams) WithRole(role string) *ListRoleUsersParams
- func (o *ListRoleUsersParams) WithTimeout(timeout time.Duration) *ListRoleUsersParams
- func (o *ListRoleUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRoleUsersReader
- type ListUserRolesDefault
- func (o *ListUserRolesDefault) Code() int
- func (o *ListUserRolesDefault) Error() string
- func (o *ListUserRolesDefault) GetPayload() *models.Error
- func (o *ListUserRolesDefault) IsClientError() bool
- func (o *ListUserRolesDefault) IsCode(code int) bool
- func (o *ListUserRolesDefault) IsRedirect() bool
- func (o *ListUserRolesDefault) IsServerError() bool
- func (o *ListUserRolesDefault) IsSuccess() bool
- func (o *ListUserRolesDefault) String() string
- type ListUserRolesOK
- func (o *ListUserRolesOK) Code() int
- func (o *ListUserRolesOK) Error() string
- func (o *ListUserRolesOK) GetPayload() *models.Roles
- func (o *ListUserRolesOK) IsClientError() bool
- func (o *ListUserRolesOK) IsCode(code int) bool
- func (o *ListUserRolesOK) IsRedirect() bool
- func (o *ListUserRolesOK) IsServerError() bool
- func (o *ListUserRolesOK) IsSuccess() bool
- func (o *ListUserRolesOK) String() string
- type ListUserRolesParams
- func (o *ListUserRolesParams) SetContext(ctx context.Context)
- func (o *ListUserRolesParams) SetDefaults()
- func (o *ListUserRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListUserRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListUserRolesParams) SetUser(user string)
- func (o *ListUserRolesParams) WithContext(ctx context.Context) *ListUserRolesParams
- func (o *ListUserRolesParams) WithDefaults() *ListUserRolesParams
- func (o *ListUserRolesParams) WithHTTPClient(client *http.Client) *ListUserRolesParams
- func (o *ListUserRolesParams) WithTimeout(timeout time.Duration) *ListUserRolesParams
- func (o *ListUserRolesParams) WithUser(user string) *ListUserRolesParams
- func (o *ListUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUserRolesReader
- type PutRolesDefault
- func (o *PutRolesDefault) Code() int
- func (o *PutRolesDefault) Error() string
- func (o *PutRolesDefault) GetPayload() *models.Error
- func (o *PutRolesDefault) IsClientError() bool
- func (o *PutRolesDefault) IsCode(code int) bool
- func (o *PutRolesDefault) IsRedirect() bool
- func (o *PutRolesDefault) IsServerError() bool
- func (o *PutRolesDefault) IsSuccess() bool
- func (o *PutRolesDefault) String() string
- type PutRolesOK
- func (o *PutRolesOK) Code() int
- func (o *PutRolesOK) Error() string
- func (o *PutRolesOK) IsClientError() bool
- func (o *PutRolesOK) IsCode(code int) bool
- func (o *PutRolesOK) IsRedirect() bool
- func (o *PutRolesOK) IsServerError() bool
- func (o *PutRolesOK) IsSuccess() bool
- func (o *PutRolesOK) String() string
- type PutRolesParams
- func (o *PutRolesParams) SetContext(ctx context.Context)
- func (o *PutRolesParams) SetDefaults()
- func (o *PutRolesParams) SetHTTPClient(client *http.Client)
- func (o *PutRolesParams) SetRoles(roles *models.Roles)
- func (o *PutRolesParams) SetTimeout(timeout time.Duration)
- func (o *PutRolesParams) SetUser(user string)
- func (o *PutRolesParams) WithContext(ctx context.Context) *PutRolesParams
- func (o *PutRolesParams) WithDefaults() *PutRolesParams
- func (o *PutRolesParams) WithHTTPClient(client *http.Client) *PutRolesParams
- func (o *PutRolesParams) WithRoles(roles *models.Roles) *PutRolesParams
- func (o *PutRolesParams) WithTimeout(timeout time.Duration) *PutRolesParams
- func (o *PutRolesParams) WithUser(user string) *PutRolesParams
- func (o *PutRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutRolesReader
- type RemoveRoleOfUserDefault
- func (o *RemoveRoleOfUserDefault) Code() int
- func (o *RemoveRoleOfUserDefault) Error() string
- func (o *RemoveRoleOfUserDefault) GetPayload() *models.Error
- func (o *RemoveRoleOfUserDefault) IsClientError() bool
- func (o *RemoveRoleOfUserDefault) IsCode(code int) bool
- func (o *RemoveRoleOfUserDefault) IsRedirect() bool
- func (o *RemoveRoleOfUserDefault) IsServerError() bool
- func (o *RemoveRoleOfUserDefault) IsSuccess() bool
- func (o *RemoveRoleOfUserDefault) String() string
- type RemoveRoleOfUserNoContent
- func (o *RemoveRoleOfUserNoContent) Code() int
- func (o *RemoveRoleOfUserNoContent) Error() string
- func (o *RemoveRoleOfUserNoContent) IsClientError() bool
- func (o *RemoveRoleOfUserNoContent) IsCode(code int) bool
- func (o *RemoveRoleOfUserNoContent) IsRedirect() bool
- func (o *RemoveRoleOfUserNoContent) IsServerError() bool
- func (o *RemoveRoleOfUserNoContent) IsSuccess() bool
- func (o *RemoveRoleOfUserNoContent) String() string
- type RemoveRoleOfUserNotFound
- func (o *RemoveRoleOfUserNotFound) Code() int
- func (o *RemoveRoleOfUserNotFound) Error() string
- func (o *RemoveRoleOfUserNotFound) GetPayload() *models.NotExists
- func (o *RemoveRoleOfUserNotFound) IsClientError() bool
- func (o *RemoveRoleOfUserNotFound) IsCode(code int) bool
- func (o *RemoveRoleOfUserNotFound) IsRedirect() bool
- func (o *RemoveRoleOfUserNotFound) IsServerError() bool
- func (o *RemoveRoleOfUserNotFound) IsSuccess() bool
- func (o *RemoveRoleOfUserNotFound) String() string
- type RemoveRoleOfUserParams
- func NewRemoveRoleOfUserParams() *RemoveRoleOfUserParams
- func NewRemoveRoleOfUserParamsWithContext(ctx context.Context) *RemoveRoleOfUserParams
- func NewRemoveRoleOfUserParamsWithHTTPClient(client *http.Client) *RemoveRoleOfUserParams
- func NewRemoveRoleOfUserParamsWithTimeout(timeout time.Duration) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) SetContext(ctx context.Context)
- func (o *RemoveRoleOfUserParams) SetDefaults()
- func (o *RemoveRoleOfUserParams) SetHTTPClient(client *http.Client)
- func (o *RemoveRoleOfUserParams) SetRole(role string)
- func (o *RemoveRoleOfUserParams) SetTimeout(timeout time.Duration)
- func (o *RemoveRoleOfUserParams) SetUser(user string)
- func (o *RemoveRoleOfUserParams) WithContext(ctx context.Context) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WithDefaults() *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WithHTTPClient(client *http.Client) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WithRole(role string) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WithTimeout(timeout time.Duration) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WithUser(user string) *RemoveRoleOfUserParams
- func (o *RemoveRoleOfUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveRoleOfUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRoleDefault ¶
AddRoleDefault describes a response with status code -1, with default header values.
unexpected error
func NewAddRoleDefault ¶
func NewAddRoleDefault(code int) *AddRoleDefault
NewAddRoleDefault creates a AddRoleDefault with default headers values
func (*AddRoleDefault) Code ¶
func (o *AddRoleDefault) Code() int
Code gets the status code for the add role default response
func (*AddRoleDefault) Error ¶
func (o *AddRoleDefault) Error() string
func (*AddRoleDefault) GetPayload ¶
func (o *AddRoleDefault) GetPayload() *models.Error
func (*AddRoleDefault) IsClientError ¶
func (o *AddRoleDefault) IsClientError() bool
IsClientError returns true when this add role default response has a 4xx status code
func (*AddRoleDefault) IsCode ¶
func (o *AddRoleDefault) IsCode(code int) bool
IsCode returns true when this add role default response a status code equal to that given
func (*AddRoleDefault) IsRedirect ¶
func (o *AddRoleDefault) IsRedirect() bool
IsRedirect returns true when this add role default response has a 3xx status code
func (*AddRoleDefault) IsServerError ¶
func (o *AddRoleDefault) IsServerError() bool
IsServerError returns true when this add role default response has a 5xx status code
func (*AddRoleDefault) IsSuccess ¶
func (o *AddRoleDefault) IsSuccess() bool
IsSuccess returns true when this add role default response has a 2xx status code
func (*AddRoleDefault) String ¶
func (o *AddRoleDefault) String() string
type AddRoleNoContent ¶
type AddRoleNoContent struct { }
AddRoleNoContent describes a response with status code 204, with default header values.
Null response
func NewAddRoleNoContent ¶
func NewAddRoleNoContent() *AddRoleNoContent
NewAddRoleNoContent creates a AddRoleNoContent with default headers values
func (*AddRoleNoContent) Code ¶
func (o *AddRoleNoContent) Code() int
Code gets the status code for the add role no content response
func (*AddRoleNoContent) Error ¶
func (o *AddRoleNoContent) Error() string
func (*AddRoleNoContent) IsClientError ¶
func (o *AddRoleNoContent) IsClientError() bool
IsClientError returns true when this add role no content response has a 4xx status code
func (*AddRoleNoContent) IsCode ¶
func (o *AddRoleNoContent) IsCode(code int) bool
IsCode returns true when this add role no content response a status code equal to that given
func (*AddRoleNoContent) IsRedirect ¶
func (o *AddRoleNoContent) IsRedirect() bool
IsRedirect returns true when this add role no content response has a 3xx status code
func (*AddRoleNoContent) IsServerError ¶
func (o *AddRoleNoContent) IsServerError() bool
IsServerError returns true when this add role no content response has a 5xx status code
func (*AddRoleNoContent) IsSuccess ¶
func (o *AddRoleNoContent) IsSuccess() bool
IsSuccess returns true when this add role no content response has a 2xx status code
func (*AddRoleNoContent) String ¶
func (o *AddRoleNoContent) String() string
type AddRoleParams ¶
type AddRoleParams struct { /* Role. The name of the role to add */ Role *models.Rolename /* User. The username of the user who gets the new role */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddRoleParams contains all the parameters to send to the API endpoint
for the add role operation. Typically these are written to a http.Request.
func NewAddRoleParams ¶
func NewAddRoleParams() *AddRoleParams
NewAddRoleParams creates a new AddRoleParams 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 NewAddRoleParamsWithContext ¶
func NewAddRoleParamsWithContext(ctx context.Context) *AddRoleParams
NewAddRoleParamsWithContext creates a new AddRoleParams object with the ability to set a context for a request.
func NewAddRoleParamsWithHTTPClient ¶
func NewAddRoleParamsWithHTTPClient(client *http.Client) *AddRoleParams
NewAddRoleParamsWithHTTPClient creates a new AddRoleParams object with the ability to set a custom HTTPClient for a request.
func NewAddRoleParamsWithTimeout ¶
func NewAddRoleParamsWithTimeout(timeout time.Duration) *AddRoleParams
NewAddRoleParamsWithTimeout creates a new AddRoleParams object with the ability to set a timeout on a request.
func (*AddRoleParams) SetContext ¶
func (o *AddRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the add role params
func (*AddRoleParams) SetDefaults ¶
func (o *AddRoleParams) SetDefaults()
SetDefaults hydrates default values in the add role params (not the query body).
All values with no default are reset to their zero value.
func (*AddRoleParams) SetHTTPClient ¶
func (o *AddRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add role params
func (*AddRoleParams) SetRole ¶
func (o *AddRoleParams) SetRole(role *models.Rolename)
SetRole adds the role to the add role params
func (*AddRoleParams) SetTimeout ¶
func (o *AddRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add role params
func (*AddRoleParams) SetUser ¶
func (o *AddRoleParams) SetUser(user string)
SetUser adds the user to the add role params
func (*AddRoleParams) WithContext ¶
func (o *AddRoleParams) WithContext(ctx context.Context) *AddRoleParams
WithContext adds the context to the add role params
func (*AddRoleParams) WithDefaults ¶
func (o *AddRoleParams) WithDefaults() *AddRoleParams
WithDefaults hydrates default values in the add role params (not the query body).
All values with no default are reset to their zero value.
func (*AddRoleParams) WithHTTPClient ¶
func (o *AddRoleParams) WithHTTPClient(client *http.Client) *AddRoleParams
WithHTTPClient adds the HTTPClient to the add role params
func (*AddRoleParams) WithRole ¶
func (o *AddRoleParams) WithRole(role *models.Rolename) *AddRoleParams
WithRole adds the role to the add role params
func (*AddRoleParams) WithTimeout ¶
func (o *AddRoleParams) WithTimeout(timeout time.Duration) *AddRoleParams
WithTimeout adds the timeout to the add role params
func (*AddRoleParams) WithUser ¶
func (o *AddRoleParams) WithUser(user string) *AddRoleParams
WithUser adds the user to the add role params
func (*AddRoleParams) WriteToRequest ¶
func (o *AddRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddRoleReader ¶
type AddRoleReader struct {
// contains filtered or unexported fields
}
AddRoleReader is a Reader for the AddRole structure.
func (*AddRoleReader) ReadResponse ¶
func (o *AddRoleReader) 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 users roles API
func (*Client) AddRole ¶
func (a *Client) AddRole(params *AddRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleNoContent, error)
AddRole adds a role to a user
func (*Client) ListRoleUsers ¶
func (a *Client) ListRoleUsers(params *ListRoleUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRoleUsersOK, error)
ListRoleUsers lists the users with the given role
func (*Client) ListUserRoles ¶
func (a *Client) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error)
ListUserRoles lists the users roles
func (*Client) PutRoles ¶
func (a *Client) PutRoles(params *PutRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutRolesOK, error)
PutRoles sets the roles of a user
func (*Client) RemoveRoleOfUser ¶
func (a *Client) RemoveRoleOfUser(params *RemoveRoleOfUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleOfUserNoContent, error)
RemoveRoleOfUser removes a role from a user
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 { AddRole(params *AddRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleNoContent, error) ListRoleUsers(params *ListRoleUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRoleUsersOK, error) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error) PutRoles(params *PutRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutRolesOK, error) RemoveRoleOfUser(params *RemoveRoleOfUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleOfUserNoContent, 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 users roles API client.
type ListRoleUsersDefault ¶
type ListRoleUsersDefault struct { Payload *models.Error // contains filtered or unexported fields }
ListRoleUsersDefault describes a response with status code -1, with default header values.
unexpected error
func NewListRoleUsersDefault ¶
func NewListRoleUsersDefault(code int) *ListRoleUsersDefault
NewListRoleUsersDefault creates a ListRoleUsersDefault with default headers values
func (*ListRoleUsersDefault) Code ¶
func (o *ListRoleUsersDefault) Code() int
Code gets the status code for the list role users default response
func (*ListRoleUsersDefault) Error ¶
func (o *ListRoleUsersDefault) Error() string
func (*ListRoleUsersDefault) GetPayload ¶
func (o *ListRoleUsersDefault) GetPayload() *models.Error
func (*ListRoleUsersDefault) IsClientError ¶
func (o *ListRoleUsersDefault) IsClientError() bool
IsClientError returns true when this list role users default response has a 4xx status code
func (*ListRoleUsersDefault) IsCode ¶
func (o *ListRoleUsersDefault) IsCode(code int) bool
IsCode returns true when this list role users default response a status code equal to that given
func (*ListRoleUsersDefault) IsRedirect ¶
func (o *ListRoleUsersDefault) IsRedirect() bool
IsRedirect returns true when this list role users default response has a 3xx status code
func (*ListRoleUsersDefault) IsServerError ¶
func (o *ListRoleUsersDefault) IsServerError() bool
IsServerError returns true when this list role users default response has a 5xx status code
func (*ListRoleUsersDefault) IsSuccess ¶
func (o *ListRoleUsersDefault) IsSuccess() bool
IsSuccess returns true when this list role users default response has a 2xx status code
func (*ListRoleUsersDefault) String ¶
func (o *ListRoleUsersDefault) String() string
type ListRoleUsersOK ¶
ListRoleUsersOK describes a response with status code 200, with default header values.
The users assigned to the role
func NewListRoleUsersOK ¶
func NewListRoleUsersOK() *ListRoleUsersOK
NewListRoleUsersOK creates a ListRoleUsersOK with default headers values
func (*ListRoleUsersOK) Code ¶
func (o *ListRoleUsersOK) Code() int
Code gets the status code for the list role users o k response
func (*ListRoleUsersOK) Error ¶
func (o *ListRoleUsersOK) Error() string
func (*ListRoleUsersOK) GetPayload ¶
func (o *ListRoleUsersOK) GetPayload() *models.Users
func (*ListRoleUsersOK) IsClientError ¶
func (o *ListRoleUsersOK) IsClientError() bool
IsClientError returns true when this list role users o k response has a 4xx status code
func (*ListRoleUsersOK) IsCode ¶
func (o *ListRoleUsersOK) IsCode(code int) bool
IsCode returns true when this list role users o k response a status code equal to that given
func (*ListRoleUsersOK) IsRedirect ¶
func (o *ListRoleUsersOK) IsRedirect() bool
IsRedirect returns true when this list role users o k response has a 3xx status code
func (*ListRoleUsersOK) IsServerError ¶
func (o *ListRoleUsersOK) IsServerError() bool
IsServerError returns true when this list role users o k response has a 5xx status code
func (*ListRoleUsersOK) IsSuccess ¶
func (o *ListRoleUsersOK) IsSuccess() bool
IsSuccess returns true when this list role users o k response has a 2xx status code
func (*ListRoleUsersOK) String ¶
func (o *ListRoleUsersOK) String() string
type ListRoleUsersParams ¶
type ListRoleUsersParams struct { /* Role. The role name of the role whose users should be listed */ Role string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRoleUsersParams contains all the parameters to send to the API endpoint
for the list role users operation. Typically these are written to a http.Request.
func NewListRoleUsersParams ¶
func NewListRoleUsersParams() *ListRoleUsersParams
NewListRoleUsersParams creates a new ListRoleUsersParams 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 NewListRoleUsersParamsWithContext ¶
func NewListRoleUsersParamsWithContext(ctx context.Context) *ListRoleUsersParams
NewListRoleUsersParamsWithContext creates a new ListRoleUsersParams object with the ability to set a context for a request.
func NewListRoleUsersParamsWithHTTPClient ¶
func NewListRoleUsersParamsWithHTTPClient(client *http.Client) *ListRoleUsersParams
NewListRoleUsersParamsWithHTTPClient creates a new ListRoleUsersParams object with the ability to set a custom HTTPClient for a request.
func NewListRoleUsersParamsWithTimeout ¶
func NewListRoleUsersParamsWithTimeout(timeout time.Duration) *ListRoleUsersParams
NewListRoleUsersParamsWithTimeout creates a new ListRoleUsersParams object with the ability to set a timeout on a request.
func (*ListRoleUsersParams) SetContext ¶
func (o *ListRoleUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the list role users params
func (*ListRoleUsersParams) SetDefaults ¶
func (o *ListRoleUsersParams) SetDefaults()
SetDefaults hydrates default values in the list role users params (not the query body).
All values with no default are reset to their zero value.
func (*ListRoleUsersParams) SetHTTPClient ¶
func (o *ListRoleUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list role users params
func (*ListRoleUsersParams) SetRole ¶
func (o *ListRoleUsersParams) SetRole(role string)
SetRole adds the role to the list role users params
func (*ListRoleUsersParams) SetTimeout ¶
func (o *ListRoleUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list role users params
func (*ListRoleUsersParams) WithContext ¶
func (o *ListRoleUsersParams) WithContext(ctx context.Context) *ListRoleUsersParams
WithContext adds the context to the list role users params
func (*ListRoleUsersParams) WithDefaults ¶
func (o *ListRoleUsersParams) WithDefaults() *ListRoleUsersParams
WithDefaults hydrates default values in the list role users params (not the query body).
All values with no default are reset to their zero value.
func (*ListRoleUsersParams) WithHTTPClient ¶
func (o *ListRoleUsersParams) WithHTTPClient(client *http.Client) *ListRoleUsersParams
WithHTTPClient adds the HTTPClient to the list role users params
func (*ListRoleUsersParams) WithRole ¶
func (o *ListRoleUsersParams) WithRole(role string) *ListRoleUsersParams
WithRole adds the role to the list role users params
func (*ListRoleUsersParams) WithTimeout ¶
func (o *ListRoleUsersParams) WithTimeout(timeout time.Duration) *ListRoleUsersParams
WithTimeout adds the timeout to the list role users params
func (*ListRoleUsersParams) WriteToRequest ¶
func (o *ListRoleUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRoleUsersReader ¶
type ListRoleUsersReader struct {
// contains filtered or unexported fields
}
ListRoleUsersReader is a Reader for the ListRoleUsers structure.
func (*ListRoleUsersReader) ReadResponse ¶
func (o *ListRoleUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUserRolesDefault ¶
type ListUserRolesDefault struct { Payload *models.Error // contains filtered or unexported fields }
ListUserRolesDefault describes a response with status code -1, with default header values.
unexpected error
func NewListUserRolesDefault ¶
func NewListUserRolesDefault(code int) *ListUserRolesDefault
NewListUserRolesDefault creates a ListUserRolesDefault with default headers values
func (*ListUserRolesDefault) Code ¶
func (o *ListUserRolesDefault) Code() int
Code gets the status code for the list user roles default response
func (*ListUserRolesDefault) Error ¶
func (o *ListUserRolesDefault) Error() string
func (*ListUserRolesDefault) GetPayload ¶
func (o *ListUserRolesDefault) GetPayload() *models.Error
func (*ListUserRolesDefault) IsClientError ¶
func (o *ListUserRolesDefault) IsClientError() bool
IsClientError returns true when this list user roles default response has a 4xx status code
func (*ListUserRolesDefault) IsCode ¶
func (o *ListUserRolesDefault) IsCode(code int) bool
IsCode returns true when this list user roles default response a status code equal to that given
func (*ListUserRolesDefault) IsRedirect ¶
func (o *ListUserRolesDefault) IsRedirect() bool
IsRedirect returns true when this list user roles default response has a 3xx status code
func (*ListUserRolesDefault) IsServerError ¶
func (o *ListUserRolesDefault) IsServerError() bool
IsServerError returns true when this list user roles default response has a 5xx status code
func (*ListUserRolesDefault) IsSuccess ¶
func (o *ListUserRolesDefault) IsSuccess() bool
IsSuccess returns true when this list user roles default response has a 2xx status code
func (*ListUserRolesDefault) String ¶
func (o *ListUserRolesDefault) String() string
type ListUserRolesOK ¶
ListUserRolesOK describes a response with status code 200, with default header values.
The user's roles
func NewListUserRolesOK ¶
func NewListUserRolesOK() *ListUserRolesOK
NewListUserRolesOK creates a ListUserRolesOK with default headers values
func (*ListUserRolesOK) Code ¶
func (o *ListUserRolesOK) Code() int
Code gets the status code for the list user roles o k response
func (*ListUserRolesOK) Error ¶
func (o *ListUserRolesOK) Error() string
func (*ListUserRolesOK) GetPayload ¶
func (o *ListUserRolesOK) GetPayload() *models.Roles
func (*ListUserRolesOK) IsClientError ¶
func (o *ListUserRolesOK) IsClientError() bool
IsClientError returns true when this list user roles o k response has a 4xx status code
func (*ListUserRolesOK) IsCode ¶
func (o *ListUserRolesOK) IsCode(code int) bool
IsCode returns true when this list user roles o k response a status code equal to that given
func (*ListUserRolesOK) IsRedirect ¶
func (o *ListUserRolesOK) IsRedirect() bool
IsRedirect returns true when this list user roles o k response has a 3xx status code
func (*ListUserRolesOK) IsServerError ¶
func (o *ListUserRolesOK) IsServerError() bool
IsServerError returns true when this list user roles o k response has a 5xx status code
func (*ListUserRolesOK) IsSuccess ¶
func (o *ListUserRolesOK) IsSuccess() bool
IsSuccess returns true when this list user roles o k response has a 2xx status code
func (*ListUserRolesOK) String ¶
func (o *ListUserRolesOK) String() string
type ListUserRolesParams ¶
type ListUserRolesParams struct { /* User. The username of the user whose roles should be listed */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUserRolesParams contains all the parameters to send to the API endpoint
for the list user roles operation. Typically these are written to a http.Request.
func NewListUserRolesParams ¶
func NewListUserRolesParams() *ListUserRolesParams
NewListUserRolesParams creates a new ListUserRolesParams 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 NewListUserRolesParamsWithContext ¶
func NewListUserRolesParamsWithContext(ctx context.Context) *ListUserRolesParams
NewListUserRolesParamsWithContext creates a new ListUserRolesParams object with the ability to set a context for a request.
func NewListUserRolesParamsWithHTTPClient ¶
func NewListUserRolesParamsWithHTTPClient(client *http.Client) *ListUserRolesParams
NewListUserRolesParamsWithHTTPClient creates a new ListUserRolesParams object with the ability to set a custom HTTPClient for a request.
func NewListUserRolesParamsWithTimeout ¶
func NewListUserRolesParamsWithTimeout(timeout time.Duration) *ListUserRolesParams
NewListUserRolesParamsWithTimeout creates a new ListUserRolesParams object with the ability to set a timeout on a request.
func (*ListUserRolesParams) SetContext ¶
func (o *ListUserRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the list user roles params
func (*ListUserRolesParams) SetDefaults ¶
func (o *ListUserRolesParams) SetDefaults()
SetDefaults hydrates default values in the list user roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserRolesParams) SetHTTPClient ¶
func (o *ListUserRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list user roles params
func (*ListUserRolesParams) SetTimeout ¶
func (o *ListUserRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list user roles params
func (*ListUserRolesParams) SetUser ¶
func (o *ListUserRolesParams) SetUser(user string)
SetUser adds the user to the list user roles params
func (*ListUserRolesParams) WithContext ¶
func (o *ListUserRolesParams) WithContext(ctx context.Context) *ListUserRolesParams
WithContext adds the context to the list user roles params
func (*ListUserRolesParams) WithDefaults ¶
func (o *ListUserRolesParams) WithDefaults() *ListUserRolesParams
WithDefaults hydrates default values in the list user roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserRolesParams) WithHTTPClient ¶
func (o *ListUserRolesParams) WithHTTPClient(client *http.Client) *ListUserRolesParams
WithHTTPClient adds the HTTPClient to the list user roles params
func (*ListUserRolesParams) WithTimeout ¶
func (o *ListUserRolesParams) WithTimeout(timeout time.Duration) *ListUserRolesParams
WithTimeout adds the timeout to the list user roles params
func (*ListUserRolesParams) WithUser ¶
func (o *ListUserRolesParams) WithUser(user string) *ListUserRolesParams
WithUser adds the user to the list user roles params
func (*ListUserRolesParams) WriteToRequest ¶
func (o *ListUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUserRolesReader ¶
type ListUserRolesReader struct {
// contains filtered or unexported fields
}
ListUserRolesReader is a Reader for the ListUserRoles structure.
func (*ListUserRolesReader) ReadResponse ¶
func (o *ListUserRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutRolesDefault ¶
PutRolesDefault describes a response with status code -1, with default header values.
unexpected error
func NewPutRolesDefault ¶
func NewPutRolesDefault(code int) *PutRolesDefault
NewPutRolesDefault creates a PutRolesDefault with default headers values
func (*PutRolesDefault) Code ¶
func (o *PutRolesDefault) Code() int
Code gets the status code for the put roles default response
func (*PutRolesDefault) Error ¶
func (o *PutRolesDefault) Error() string
func (*PutRolesDefault) GetPayload ¶
func (o *PutRolesDefault) GetPayload() *models.Error
func (*PutRolesDefault) IsClientError ¶
func (o *PutRolesDefault) IsClientError() bool
IsClientError returns true when this put roles default response has a 4xx status code
func (*PutRolesDefault) IsCode ¶
func (o *PutRolesDefault) IsCode(code int) bool
IsCode returns true when this put roles default response a status code equal to that given
func (*PutRolesDefault) IsRedirect ¶
func (o *PutRolesDefault) IsRedirect() bool
IsRedirect returns true when this put roles default response has a 3xx status code
func (*PutRolesDefault) IsServerError ¶
func (o *PutRolesDefault) IsServerError() bool
IsServerError returns true when this put roles default response has a 5xx status code
func (*PutRolesDefault) IsSuccess ¶
func (o *PutRolesDefault) IsSuccess() bool
IsSuccess returns true when this put roles default response has a 2xx status code
func (*PutRolesDefault) String ¶
func (o *PutRolesDefault) String() string
type PutRolesOK ¶
type PutRolesOK struct { }
PutRolesOK describes a response with status code 200, with default header values.
Null response
func NewPutRolesOK ¶
func NewPutRolesOK() *PutRolesOK
NewPutRolesOK creates a PutRolesOK with default headers values
func (*PutRolesOK) Code ¶
func (o *PutRolesOK) Code() int
Code gets the status code for the put roles o k response
func (*PutRolesOK) Error ¶
func (o *PutRolesOK) Error() string
func (*PutRolesOK) IsClientError ¶
func (o *PutRolesOK) IsClientError() bool
IsClientError returns true when this put roles o k response has a 4xx status code
func (*PutRolesOK) IsCode ¶
func (o *PutRolesOK) IsCode(code int) bool
IsCode returns true when this put roles o k response a status code equal to that given
func (*PutRolesOK) IsRedirect ¶
func (o *PutRolesOK) IsRedirect() bool
IsRedirect returns true when this put roles o k response has a 3xx status code
func (*PutRolesOK) IsServerError ¶
func (o *PutRolesOK) IsServerError() bool
IsServerError returns true when this put roles o k response has a 5xx status code
func (*PutRolesOK) IsSuccess ¶
func (o *PutRolesOK) IsSuccess() bool
IsSuccess returns true when this put roles o k response has a 2xx status code
func (*PutRolesOK) String ¶
func (o *PutRolesOK) String() string
type PutRolesParams ¶
type PutRolesParams struct { /* Roles. The new set of roles */ Roles *models.Roles /* User. The username of the user whose roles should be changed */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutRolesParams contains all the parameters to send to the API endpoint
for the put roles operation. Typically these are written to a http.Request.
func NewPutRolesParams ¶
func NewPutRolesParams() *PutRolesParams
NewPutRolesParams creates a new PutRolesParams 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 NewPutRolesParamsWithContext ¶
func NewPutRolesParamsWithContext(ctx context.Context) *PutRolesParams
NewPutRolesParamsWithContext creates a new PutRolesParams object with the ability to set a context for a request.
func NewPutRolesParamsWithHTTPClient ¶
func NewPutRolesParamsWithHTTPClient(client *http.Client) *PutRolesParams
NewPutRolesParamsWithHTTPClient creates a new PutRolesParams object with the ability to set a custom HTTPClient for a request.
func NewPutRolesParamsWithTimeout ¶
func NewPutRolesParamsWithTimeout(timeout time.Duration) *PutRolesParams
NewPutRolesParamsWithTimeout creates a new PutRolesParams object with the ability to set a timeout on a request.
func (*PutRolesParams) SetContext ¶
func (o *PutRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the put roles params
func (*PutRolesParams) SetDefaults ¶
func (o *PutRolesParams) SetDefaults()
SetDefaults hydrates default values in the put roles params (not the query body).
All values with no default are reset to their zero value.
func (*PutRolesParams) SetHTTPClient ¶
func (o *PutRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put roles params
func (*PutRolesParams) SetRoles ¶
func (o *PutRolesParams) SetRoles(roles *models.Roles)
SetRoles adds the roles to the put roles params
func (*PutRolesParams) SetTimeout ¶
func (o *PutRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put roles params
func (*PutRolesParams) SetUser ¶
func (o *PutRolesParams) SetUser(user string)
SetUser adds the user to the put roles params
func (*PutRolesParams) WithContext ¶
func (o *PutRolesParams) WithContext(ctx context.Context) *PutRolesParams
WithContext adds the context to the put roles params
func (*PutRolesParams) WithDefaults ¶
func (o *PutRolesParams) WithDefaults() *PutRolesParams
WithDefaults hydrates default values in the put roles params (not the query body).
All values with no default are reset to their zero value.
func (*PutRolesParams) WithHTTPClient ¶
func (o *PutRolesParams) WithHTTPClient(client *http.Client) *PutRolesParams
WithHTTPClient adds the HTTPClient to the put roles params
func (*PutRolesParams) WithRoles ¶
func (o *PutRolesParams) WithRoles(roles *models.Roles) *PutRolesParams
WithRoles adds the roles to the put roles params
func (*PutRolesParams) WithTimeout ¶
func (o *PutRolesParams) WithTimeout(timeout time.Duration) *PutRolesParams
WithTimeout adds the timeout to the put roles params
func (*PutRolesParams) WithUser ¶
func (o *PutRolesParams) WithUser(user string) *PutRolesParams
WithUser adds the user to the put roles params
func (*PutRolesParams) WriteToRequest ¶
func (o *PutRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutRolesReader ¶
type PutRolesReader struct {
// contains filtered or unexported fields
}
PutRolesReader is a Reader for the PutRoles structure.
func (*PutRolesReader) ReadResponse ¶
func (o *PutRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveRoleOfUserDefault ¶
type RemoveRoleOfUserDefault struct { Payload *models.Error // contains filtered or unexported fields }
RemoveRoleOfUserDefault describes a response with status code -1, with default header values.
unexpected error
func NewRemoveRoleOfUserDefault ¶
func NewRemoveRoleOfUserDefault(code int) *RemoveRoleOfUserDefault
NewRemoveRoleOfUserDefault creates a RemoveRoleOfUserDefault with default headers values
func (*RemoveRoleOfUserDefault) Code ¶
func (o *RemoveRoleOfUserDefault) Code() int
Code gets the status code for the remove role of user default response
func (*RemoveRoleOfUserDefault) Error ¶
func (o *RemoveRoleOfUserDefault) Error() string
func (*RemoveRoleOfUserDefault) GetPayload ¶
func (o *RemoveRoleOfUserDefault) GetPayload() *models.Error
func (*RemoveRoleOfUserDefault) IsClientError ¶
func (o *RemoveRoleOfUserDefault) IsClientError() bool
IsClientError returns true when this remove role of user default response has a 4xx status code
func (*RemoveRoleOfUserDefault) IsCode ¶
func (o *RemoveRoleOfUserDefault) IsCode(code int) bool
IsCode returns true when this remove role of user default response a status code equal to that given
func (*RemoveRoleOfUserDefault) IsRedirect ¶
func (o *RemoveRoleOfUserDefault) IsRedirect() bool
IsRedirect returns true when this remove role of user default response has a 3xx status code
func (*RemoveRoleOfUserDefault) IsServerError ¶
func (o *RemoveRoleOfUserDefault) IsServerError() bool
IsServerError returns true when this remove role of user default response has a 5xx status code
func (*RemoveRoleOfUserDefault) IsSuccess ¶
func (o *RemoveRoleOfUserDefault) IsSuccess() bool
IsSuccess returns true when this remove role of user default response has a 2xx status code
func (*RemoveRoleOfUserDefault) String ¶
func (o *RemoveRoleOfUserDefault) String() string
type RemoveRoleOfUserNoContent ¶
type RemoveRoleOfUserNoContent struct { }
RemoveRoleOfUserNoContent describes a response with status code 204, with default header values.
Null response
func NewRemoveRoleOfUserNoContent ¶
func NewRemoveRoleOfUserNoContent() *RemoveRoleOfUserNoContent
NewRemoveRoleOfUserNoContent creates a RemoveRoleOfUserNoContent with default headers values
func (*RemoveRoleOfUserNoContent) Code ¶
func (o *RemoveRoleOfUserNoContent) Code() int
Code gets the status code for the remove role of user no content response
func (*RemoveRoleOfUserNoContent) Error ¶
func (o *RemoveRoleOfUserNoContent) Error() string
func (*RemoveRoleOfUserNoContent) IsClientError ¶
func (o *RemoveRoleOfUserNoContent) IsClientError() bool
IsClientError returns true when this remove role of user no content response has a 4xx status code
func (*RemoveRoleOfUserNoContent) IsCode ¶
func (o *RemoveRoleOfUserNoContent) IsCode(code int) bool
IsCode returns true when this remove role of user no content response a status code equal to that given
func (*RemoveRoleOfUserNoContent) IsRedirect ¶
func (o *RemoveRoleOfUserNoContent) IsRedirect() bool
IsRedirect returns true when this remove role of user no content response has a 3xx status code
func (*RemoveRoleOfUserNoContent) IsServerError ¶
func (o *RemoveRoleOfUserNoContent) IsServerError() bool
IsServerError returns true when this remove role of user no content response has a 5xx status code
func (*RemoveRoleOfUserNoContent) IsSuccess ¶
func (o *RemoveRoleOfUserNoContent) IsSuccess() bool
IsSuccess returns true when this remove role of user no content response has a 2xx status code
func (*RemoveRoleOfUserNoContent) String ¶
func (o *RemoveRoleOfUserNoContent) String() string
type RemoveRoleOfUserNotFound ¶
RemoveRoleOfUserNotFound describes a response with status code 404, with default header values.
Role user does not exist
func NewRemoveRoleOfUserNotFound ¶
func NewRemoveRoleOfUserNotFound() *RemoveRoleOfUserNotFound
NewRemoveRoleOfUserNotFound creates a RemoveRoleOfUserNotFound with default headers values
func (*RemoveRoleOfUserNotFound) Code ¶
func (o *RemoveRoleOfUserNotFound) Code() int
Code gets the status code for the remove role of user not found response
func (*RemoveRoleOfUserNotFound) Error ¶
func (o *RemoveRoleOfUserNotFound) Error() string
func (*RemoveRoleOfUserNotFound) GetPayload ¶
func (o *RemoveRoleOfUserNotFound) GetPayload() *models.NotExists
func (*RemoveRoleOfUserNotFound) IsClientError ¶
func (o *RemoveRoleOfUserNotFound) IsClientError() bool
IsClientError returns true when this remove role of user not found response has a 4xx status code
func (*RemoveRoleOfUserNotFound) IsCode ¶
func (o *RemoveRoleOfUserNotFound) IsCode(code int) bool
IsCode returns true when this remove role of user not found response a status code equal to that given
func (*RemoveRoleOfUserNotFound) IsRedirect ¶
func (o *RemoveRoleOfUserNotFound) IsRedirect() bool
IsRedirect returns true when this remove role of user not found response has a 3xx status code
func (*RemoveRoleOfUserNotFound) IsServerError ¶
func (o *RemoveRoleOfUserNotFound) IsServerError() bool
IsServerError returns true when this remove role of user not found response has a 5xx status code
func (*RemoveRoleOfUserNotFound) IsSuccess ¶
func (o *RemoveRoleOfUserNotFound) IsSuccess() bool
IsSuccess returns true when this remove role of user not found response has a 2xx status code
func (*RemoveRoleOfUserNotFound) String ¶
func (o *RemoveRoleOfUserNotFound) String() string
type RemoveRoleOfUserParams ¶
type RemoveRoleOfUserParams struct { /* Role. The name of the role to remove */ Role string /* User. The username of the user whose role should be removed */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveRoleOfUserParams contains all the parameters to send to the API endpoint
for the remove role of user operation. Typically these are written to a http.Request.
func NewRemoveRoleOfUserParams ¶
func NewRemoveRoleOfUserParams() *RemoveRoleOfUserParams
NewRemoveRoleOfUserParams creates a new RemoveRoleOfUserParams 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 NewRemoveRoleOfUserParamsWithContext ¶
func NewRemoveRoleOfUserParamsWithContext(ctx context.Context) *RemoveRoleOfUserParams
NewRemoveRoleOfUserParamsWithContext creates a new RemoveRoleOfUserParams object with the ability to set a context for a request.
func NewRemoveRoleOfUserParamsWithHTTPClient ¶
func NewRemoveRoleOfUserParamsWithHTTPClient(client *http.Client) *RemoveRoleOfUserParams
NewRemoveRoleOfUserParamsWithHTTPClient creates a new RemoveRoleOfUserParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveRoleOfUserParamsWithTimeout ¶
func NewRemoveRoleOfUserParamsWithTimeout(timeout time.Duration) *RemoveRoleOfUserParams
NewRemoveRoleOfUserParamsWithTimeout creates a new RemoveRoleOfUserParams object with the ability to set a timeout on a request.
func (*RemoveRoleOfUserParams) SetContext ¶
func (o *RemoveRoleOfUserParams) SetContext(ctx context.Context)
SetContext adds the context to the remove role of user params
func (*RemoveRoleOfUserParams) SetDefaults ¶
func (o *RemoveRoleOfUserParams) SetDefaults()
SetDefaults hydrates default values in the remove role of user params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRoleOfUserParams) SetHTTPClient ¶
func (o *RemoveRoleOfUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove role of user params
func (*RemoveRoleOfUserParams) SetRole ¶
func (o *RemoveRoleOfUserParams) SetRole(role string)
SetRole adds the role to the remove role of user params
func (*RemoveRoleOfUserParams) SetTimeout ¶
func (o *RemoveRoleOfUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove role of user params
func (*RemoveRoleOfUserParams) SetUser ¶
func (o *RemoveRoleOfUserParams) SetUser(user string)
SetUser adds the user to the remove role of user params
func (*RemoveRoleOfUserParams) WithContext ¶
func (o *RemoveRoleOfUserParams) WithContext(ctx context.Context) *RemoveRoleOfUserParams
WithContext adds the context to the remove role of user params
func (*RemoveRoleOfUserParams) WithDefaults ¶
func (o *RemoveRoleOfUserParams) WithDefaults() *RemoveRoleOfUserParams
WithDefaults hydrates default values in the remove role of user params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRoleOfUserParams) WithHTTPClient ¶
func (o *RemoveRoleOfUserParams) WithHTTPClient(client *http.Client) *RemoveRoleOfUserParams
WithHTTPClient adds the HTTPClient to the remove role of user params
func (*RemoveRoleOfUserParams) WithRole ¶
func (o *RemoveRoleOfUserParams) WithRole(role string) *RemoveRoleOfUserParams
WithRole adds the role to the remove role of user params
func (*RemoveRoleOfUserParams) WithTimeout ¶
func (o *RemoveRoleOfUserParams) WithTimeout(timeout time.Duration) *RemoveRoleOfUserParams
WithTimeout adds the timeout to the remove role of user params
func (*RemoveRoleOfUserParams) WithUser ¶
func (o *RemoveRoleOfUserParams) WithUser(user string) *RemoveRoleOfUserParams
WithUser adds the user to the remove role of user params
func (*RemoveRoleOfUserParams) WriteToRequest ¶
func (o *RemoveRoleOfUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveRoleOfUserReader ¶
type RemoveRoleOfUserReader struct {
// contains filtered or unexported fields
}
RemoveRoleOfUserReader is a Reader for the RemoveRoleOfUser structure.
func (*RemoveRoleOfUserReader) ReadResponse ¶
func (o *RemoveRoleOfUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.