Documentation
¶
Index ¶
- type Client
- func (a *Client) RoleDeleteRole(params *RoleDeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RoleDeleteRoleOK, error)
- func (a *Client) RoleGetRoleDetail(params *RoleGetRoleDetailParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RoleGetRoleDetailOK, error)
- func (a *Client) RoleGetRoleList(params *RoleGetRoleListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RoleGetRoleListOK, error)
- func (a *Client) RoleUpdateRole(params *RoleUpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RoleUpdateRoleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RoleDeleteRoleOK
- type RoleDeleteRoleParams
- func NewRoleDeleteRoleParams() *RoleDeleteRoleParams
- func NewRoleDeleteRoleParamsWithContext(ctx context.Context) *RoleDeleteRoleParams
- func NewRoleDeleteRoleParamsWithHTTPClient(client *http.Client) *RoleDeleteRoleParams
- func NewRoleDeleteRoleParamsWithTimeout(timeout time.Duration) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) SetAuthorization(authorization *string)
- func (o *RoleDeleteRoleParams) SetContext(ctx context.Context)
- func (o *RoleDeleteRoleParams) SetDefaults()
- func (o *RoleDeleteRoleParams) SetHTTPClient(client *http.Client)
- func (o *RoleDeleteRoleParams) SetRoleID(roleID int64)
- func (o *RoleDeleteRoleParams) SetTimeout(timeout time.Duration)
- func (o *RoleDeleteRoleParams) WithAuthorization(authorization *string) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WithContext(ctx context.Context) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WithDefaults() *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WithHTTPClient(client *http.Client) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WithRoleID(roleID int64) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WithTimeout(timeout time.Duration) *RoleDeleteRoleParams
- func (o *RoleDeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoleDeleteRoleReader
- type RoleGetRoleDetailOK
- type RoleGetRoleDetailParams
- func NewRoleGetRoleDetailParams() *RoleGetRoleDetailParams
- func NewRoleGetRoleDetailParamsWithContext(ctx context.Context) *RoleGetRoleDetailParams
- func NewRoleGetRoleDetailParamsWithHTTPClient(client *http.Client) *RoleGetRoleDetailParams
- func NewRoleGetRoleDetailParamsWithTimeout(timeout time.Duration) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) SetAuthorization(authorization *string)
- func (o *RoleGetRoleDetailParams) SetContext(ctx context.Context)
- func (o *RoleGetRoleDetailParams) SetDefaults()
- func (o *RoleGetRoleDetailParams) SetHTTPClient(client *http.Client)
- func (o *RoleGetRoleDetailParams) SetRoleID(roleID int64)
- func (o *RoleGetRoleDetailParams) SetTimeout(timeout time.Duration)
- func (o *RoleGetRoleDetailParams) WithAuthorization(authorization *string) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WithContext(ctx context.Context) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WithDefaults() *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WithHTTPClient(client *http.Client) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WithRoleID(roleID int64) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WithTimeout(timeout time.Duration) *RoleGetRoleDetailParams
- func (o *RoleGetRoleDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoleGetRoleDetailReader
- type RoleGetRoleListOK
- type RoleGetRoleListParams
- func NewRoleGetRoleListParams() *RoleGetRoleListParams
- func NewRoleGetRoleListParamsWithContext(ctx context.Context) *RoleGetRoleListParams
- func NewRoleGetRoleListParamsWithHTTPClient(client *http.Client) *RoleGetRoleListParams
- func NewRoleGetRoleListParamsWithTimeout(timeout time.Duration) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) SetAuthorization(authorization *string)
- func (o *RoleGetRoleListParams) SetContext(ctx context.Context)
- func (o *RoleGetRoleListParams) SetDefaults()
- func (o *RoleGetRoleListParams) SetFilterCveID(filterCveID *string)
- func (o *RoleGetRoleListParams) SetHTTPClient(client *http.Client)
- func (o *RoleGetRoleListParams) SetLimit(limit *int64)
- func (o *RoleGetRoleListParams) SetOffset(offset *int64)
- func (o *RoleGetRoleListParams) SetPage(page *int64)
- func (o *RoleGetRoleListParams) SetTimeout(timeout time.Duration)
- func (o *RoleGetRoleListParams) WithAuthorization(authorization *string) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithContext(ctx context.Context) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithDefaults() *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithFilterCveID(filterCveID *string) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithHTTPClient(client *http.Client) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithLimit(limit *int64) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithOffset(offset *int64) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithPage(page *int64) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WithTimeout(timeout time.Duration) *RoleGetRoleListParams
- func (o *RoleGetRoleListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoleGetRoleListReader
- type RoleUpdateRoleOK
- type RoleUpdateRoleParams
- func NewRoleUpdateRoleParams() *RoleUpdateRoleParams
- func NewRoleUpdateRoleParamsWithContext(ctx context.Context) *RoleUpdateRoleParams
- func NewRoleUpdateRoleParamsWithHTTPClient(client *http.Client) *RoleUpdateRoleParams
- func NewRoleUpdateRoleParamsWithTimeout(timeout time.Duration) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) SetAuthorization(authorization *string)
- func (o *RoleUpdateRoleParams) SetContext(ctx context.Context)
- func (o *RoleUpdateRoleParams) SetDefaults()
- func (o *RoleUpdateRoleParams) SetHTTPClient(client *http.Client)
- func (o *RoleUpdateRoleParams) SetRoleID(roleID int64)
- func (o *RoleUpdateRoleParams) SetTimeout(timeout time.Duration)
- func (o *RoleUpdateRoleParams) SetUpdateRoleRequestBody(updateRoleRequestBody *models.RoleUpdateRoleRequestBody)
- func (o *RoleUpdateRoleParams) WithAuthorization(authorization *string) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithContext(ctx context.Context) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithDefaults() *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithHTTPClient(client *http.Client) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithRoleID(roleID int64) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithTimeout(timeout time.Duration) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WithUpdateRoleRequestBody(updateRoleRequestBody *models.RoleUpdateRoleRequestBody) *RoleUpdateRoleParams
- func (o *RoleUpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoleUpdateRoleReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for role API
func (*Client) RoleDeleteRole ¶
func (a *Client) RoleDeleteRole(params *RoleDeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleDeleteRoleOK, error)
RoleDeleteRole deletes role role
role delete
func (*Client) RoleGetRoleDetail ¶
func (a *Client) RoleGetRoleDetail(params *RoleGetRoleDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleGetRoleDetailOK, error)
RoleGetRoleDetail gets role detail role
role detail
func (*Client) RoleGetRoleList ¶
func (a *Client) RoleGetRoleList(params *RoleGetRoleListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleGetRoleListOK, error)
RoleGetRoleList gets role list role
role list
func (*Client) RoleUpdateRole ¶
func (a *Client) RoleUpdateRole(params *RoleUpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleUpdateRoleOK, error)
RoleUpdateRole updates role role
update 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 { RoleDeleteRole(params *RoleDeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleDeleteRoleOK, error) RoleGetRoleDetail(params *RoleGetRoleDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleGetRoleDetailOK, error) RoleGetRoleList(params *RoleGetRoleListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleGetRoleListOK, error) RoleUpdateRole(params *RoleUpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleUpdateRoleOK, 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 role API client.
type RoleDeleteRoleOK ¶
type RoleDeleteRoleOK struct { }
RoleDeleteRoleOK describes a response with status code 200, with default header values.
OK response.
func NewRoleDeleteRoleOK ¶
func NewRoleDeleteRoleOK() *RoleDeleteRoleOK
NewRoleDeleteRoleOK creates a RoleDeleteRoleOK with default headers values
func (*RoleDeleteRoleOK) Error ¶
func (o *RoleDeleteRoleOK) Error() string
type RoleDeleteRoleParams ¶
type RoleDeleteRoleParams struct { /* Authorization. api key auth */ Authorization *string /* RoleID. Role ID Format: int64 */ RoleID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RoleDeleteRoleParams contains all the parameters to send to the API endpoint
for the role delete role operation. Typically these are written to a http.Request.
func NewRoleDeleteRoleParams ¶
func NewRoleDeleteRoleParams() *RoleDeleteRoleParams
NewRoleDeleteRoleParams creates a new RoleDeleteRoleParams 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 NewRoleDeleteRoleParamsWithContext ¶
func NewRoleDeleteRoleParamsWithContext(ctx context.Context) *RoleDeleteRoleParams
NewRoleDeleteRoleParamsWithContext creates a new RoleDeleteRoleParams object with the ability to set a context for a request.
func NewRoleDeleteRoleParamsWithHTTPClient ¶
func NewRoleDeleteRoleParamsWithHTTPClient(client *http.Client) *RoleDeleteRoleParams
NewRoleDeleteRoleParamsWithHTTPClient creates a new RoleDeleteRoleParams object with the ability to set a custom HTTPClient for a request.
func NewRoleDeleteRoleParamsWithTimeout ¶
func NewRoleDeleteRoleParamsWithTimeout(timeout time.Duration) *RoleDeleteRoleParams
NewRoleDeleteRoleParamsWithTimeout creates a new RoleDeleteRoleParams object with the ability to set a timeout on a request.
func (*RoleDeleteRoleParams) SetAuthorization ¶
func (o *RoleDeleteRoleParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the role delete role params
func (*RoleDeleteRoleParams) SetContext ¶
func (o *RoleDeleteRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the role delete role params
func (*RoleDeleteRoleParams) SetDefaults ¶
func (o *RoleDeleteRoleParams) SetDefaults()
SetDefaults hydrates default values in the role delete role params (not the query body).
All values with no default are reset to their zero value.
func (*RoleDeleteRoleParams) SetHTTPClient ¶
func (o *RoleDeleteRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the role delete role params
func (*RoleDeleteRoleParams) SetRoleID ¶
func (o *RoleDeleteRoleParams) SetRoleID(roleID int64)
SetRoleID adds the roleId to the role delete role params
func (*RoleDeleteRoleParams) SetTimeout ¶
func (o *RoleDeleteRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the role delete role params
func (*RoleDeleteRoleParams) WithAuthorization ¶
func (o *RoleDeleteRoleParams) WithAuthorization(authorization *string) *RoleDeleteRoleParams
WithAuthorization adds the authorization to the role delete role params
func (*RoleDeleteRoleParams) WithContext ¶
func (o *RoleDeleteRoleParams) WithContext(ctx context.Context) *RoleDeleteRoleParams
WithContext adds the context to the role delete role params
func (*RoleDeleteRoleParams) WithDefaults ¶
func (o *RoleDeleteRoleParams) WithDefaults() *RoleDeleteRoleParams
WithDefaults hydrates default values in the role delete role params (not the query body).
All values with no default are reset to their zero value.
func (*RoleDeleteRoleParams) WithHTTPClient ¶
func (o *RoleDeleteRoleParams) WithHTTPClient(client *http.Client) *RoleDeleteRoleParams
WithHTTPClient adds the HTTPClient to the role delete role params
func (*RoleDeleteRoleParams) WithRoleID ¶
func (o *RoleDeleteRoleParams) WithRoleID(roleID int64) *RoleDeleteRoleParams
WithRoleID adds the roleID to the role delete role params
func (*RoleDeleteRoleParams) WithTimeout ¶
func (o *RoleDeleteRoleParams) WithTimeout(timeout time.Duration) *RoleDeleteRoleParams
WithTimeout adds the timeout to the role delete role params
func (*RoleDeleteRoleParams) WriteToRequest ¶
func (o *RoleDeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RoleDeleteRoleReader ¶
type RoleDeleteRoleReader struct {
// contains filtered or unexported fields
}
RoleDeleteRoleReader is a Reader for the RoleDeleteRole structure.
func (*RoleDeleteRoleReader) ReadResponse ¶
func (o *RoleDeleteRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RoleGetRoleDetailOK ¶
type RoleGetRoleDetailOK struct {
Payload *models.RoleGetRoleDetailResponseBody
}
RoleGetRoleDetailOK describes a response with status code 200, with default header values.
OK response.
func NewRoleGetRoleDetailOK ¶
func NewRoleGetRoleDetailOK() *RoleGetRoleDetailOK
NewRoleGetRoleDetailOK creates a RoleGetRoleDetailOK with default headers values
func (*RoleGetRoleDetailOK) Error ¶
func (o *RoleGetRoleDetailOK) Error() string
func (*RoleGetRoleDetailOK) GetPayload ¶
func (o *RoleGetRoleDetailOK) GetPayload() *models.RoleGetRoleDetailResponseBody
type RoleGetRoleDetailParams ¶
type RoleGetRoleDetailParams struct { /* Authorization. api key auth */ Authorization *string /* RoleID. Role ID Format: int64 */ RoleID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RoleGetRoleDetailParams contains all the parameters to send to the API endpoint
for the role get role detail operation. Typically these are written to a http.Request.
func NewRoleGetRoleDetailParams ¶
func NewRoleGetRoleDetailParams() *RoleGetRoleDetailParams
NewRoleGetRoleDetailParams creates a new RoleGetRoleDetailParams 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 NewRoleGetRoleDetailParamsWithContext ¶
func NewRoleGetRoleDetailParamsWithContext(ctx context.Context) *RoleGetRoleDetailParams
NewRoleGetRoleDetailParamsWithContext creates a new RoleGetRoleDetailParams object with the ability to set a context for a request.
func NewRoleGetRoleDetailParamsWithHTTPClient ¶
func NewRoleGetRoleDetailParamsWithHTTPClient(client *http.Client) *RoleGetRoleDetailParams
NewRoleGetRoleDetailParamsWithHTTPClient creates a new RoleGetRoleDetailParams object with the ability to set a custom HTTPClient for a request.
func NewRoleGetRoleDetailParamsWithTimeout ¶
func NewRoleGetRoleDetailParamsWithTimeout(timeout time.Duration) *RoleGetRoleDetailParams
NewRoleGetRoleDetailParamsWithTimeout creates a new RoleGetRoleDetailParams object with the ability to set a timeout on a request.
func (*RoleGetRoleDetailParams) SetAuthorization ¶
func (o *RoleGetRoleDetailParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the role get role detail params
func (*RoleGetRoleDetailParams) SetContext ¶
func (o *RoleGetRoleDetailParams) SetContext(ctx context.Context)
SetContext adds the context to the role get role detail params
func (*RoleGetRoleDetailParams) SetDefaults ¶
func (o *RoleGetRoleDetailParams) SetDefaults()
SetDefaults hydrates default values in the role get role detail params (not the query body).
All values with no default are reset to their zero value.
func (*RoleGetRoleDetailParams) SetHTTPClient ¶
func (o *RoleGetRoleDetailParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the role get role detail params
func (*RoleGetRoleDetailParams) SetRoleID ¶
func (o *RoleGetRoleDetailParams) SetRoleID(roleID int64)
SetRoleID adds the roleId to the role get role detail params
func (*RoleGetRoleDetailParams) SetTimeout ¶
func (o *RoleGetRoleDetailParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the role get role detail params
func (*RoleGetRoleDetailParams) WithAuthorization ¶
func (o *RoleGetRoleDetailParams) WithAuthorization(authorization *string) *RoleGetRoleDetailParams
WithAuthorization adds the authorization to the role get role detail params
func (*RoleGetRoleDetailParams) WithContext ¶
func (o *RoleGetRoleDetailParams) WithContext(ctx context.Context) *RoleGetRoleDetailParams
WithContext adds the context to the role get role detail params
func (*RoleGetRoleDetailParams) WithDefaults ¶
func (o *RoleGetRoleDetailParams) WithDefaults() *RoleGetRoleDetailParams
WithDefaults hydrates default values in the role get role detail params (not the query body).
All values with no default are reset to their zero value.
func (*RoleGetRoleDetailParams) WithHTTPClient ¶
func (o *RoleGetRoleDetailParams) WithHTTPClient(client *http.Client) *RoleGetRoleDetailParams
WithHTTPClient adds the HTTPClient to the role get role detail params
func (*RoleGetRoleDetailParams) WithRoleID ¶
func (o *RoleGetRoleDetailParams) WithRoleID(roleID int64) *RoleGetRoleDetailParams
WithRoleID adds the roleID to the role get role detail params
func (*RoleGetRoleDetailParams) WithTimeout ¶
func (o *RoleGetRoleDetailParams) WithTimeout(timeout time.Duration) *RoleGetRoleDetailParams
WithTimeout adds the timeout to the role get role detail params
func (*RoleGetRoleDetailParams) WriteToRequest ¶
func (o *RoleGetRoleDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RoleGetRoleDetailReader ¶
type RoleGetRoleDetailReader struct {
// contains filtered or unexported fields
}
RoleGetRoleDetailReader is a Reader for the RoleGetRoleDetail structure.
func (*RoleGetRoleDetailReader) ReadResponse ¶
func (o *RoleGetRoleDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RoleGetRoleListOK ¶
type RoleGetRoleListOK struct {
Payload *models.RoleGetRoleListResponseBody
}
RoleGetRoleListOK describes a response with status code 200, with default header values.
OK response.
func NewRoleGetRoleListOK ¶
func NewRoleGetRoleListOK() *RoleGetRoleListOK
NewRoleGetRoleListOK creates a RoleGetRoleListOK with default headers values
func (*RoleGetRoleListOK) Error ¶
func (o *RoleGetRoleListOK) Error() string
func (*RoleGetRoleListOK) GetPayload ¶
func (o *RoleGetRoleListOK) GetPayload() *models.RoleGetRoleListResponseBody
type RoleGetRoleListParams ¶
type RoleGetRoleListParams struct { /* Authorization. api key auth */ Authorization *string /* FilterCveID. CveID filter */ FilterCveID *string /* Limit. Limit (default: 20, max: 100) Default: 20 */ Limit *int64 /* Offset. Offset */ Offset *int64 /* Page. Page Number (default: 1) Default: 1 */ Page *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RoleGetRoleListParams contains all the parameters to send to the API endpoint
for the role get role list operation. Typically these are written to a http.Request.
func NewRoleGetRoleListParams ¶
func NewRoleGetRoleListParams() *RoleGetRoleListParams
NewRoleGetRoleListParams creates a new RoleGetRoleListParams 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 NewRoleGetRoleListParamsWithContext ¶
func NewRoleGetRoleListParamsWithContext(ctx context.Context) *RoleGetRoleListParams
NewRoleGetRoleListParamsWithContext creates a new RoleGetRoleListParams object with the ability to set a context for a request.
func NewRoleGetRoleListParamsWithHTTPClient ¶
func NewRoleGetRoleListParamsWithHTTPClient(client *http.Client) *RoleGetRoleListParams
NewRoleGetRoleListParamsWithHTTPClient creates a new RoleGetRoleListParams object with the ability to set a custom HTTPClient for a request.
func NewRoleGetRoleListParamsWithTimeout ¶
func NewRoleGetRoleListParamsWithTimeout(timeout time.Duration) *RoleGetRoleListParams
NewRoleGetRoleListParamsWithTimeout creates a new RoleGetRoleListParams object with the ability to set a timeout on a request.
func (*RoleGetRoleListParams) SetAuthorization ¶
func (o *RoleGetRoleListParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the role get role list params
func (*RoleGetRoleListParams) SetContext ¶
func (o *RoleGetRoleListParams) SetContext(ctx context.Context)
SetContext adds the context to the role get role list params
func (*RoleGetRoleListParams) SetDefaults ¶
func (o *RoleGetRoleListParams) SetDefaults()
SetDefaults hydrates default values in the role get role list params (not the query body).
All values with no default are reset to their zero value.
func (*RoleGetRoleListParams) SetFilterCveID ¶
func (o *RoleGetRoleListParams) SetFilterCveID(filterCveID *string)
SetFilterCveID adds the filterCveId to the role get role list params
func (*RoleGetRoleListParams) SetHTTPClient ¶
func (o *RoleGetRoleListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the role get role list params
func (*RoleGetRoleListParams) SetLimit ¶
func (o *RoleGetRoleListParams) SetLimit(limit *int64)
SetLimit adds the limit to the role get role list params
func (*RoleGetRoleListParams) SetOffset ¶
func (o *RoleGetRoleListParams) SetOffset(offset *int64)
SetOffset adds the offset to the role get role list params
func (*RoleGetRoleListParams) SetPage ¶
func (o *RoleGetRoleListParams) SetPage(page *int64)
SetPage adds the page to the role get role list params
func (*RoleGetRoleListParams) SetTimeout ¶
func (o *RoleGetRoleListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the role get role list params
func (*RoleGetRoleListParams) WithAuthorization ¶
func (o *RoleGetRoleListParams) WithAuthorization(authorization *string) *RoleGetRoleListParams
WithAuthorization adds the authorization to the role get role list params
func (*RoleGetRoleListParams) WithContext ¶
func (o *RoleGetRoleListParams) WithContext(ctx context.Context) *RoleGetRoleListParams
WithContext adds the context to the role get role list params
func (*RoleGetRoleListParams) WithDefaults ¶
func (o *RoleGetRoleListParams) WithDefaults() *RoleGetRoleListParams
WithDefaults hydrates default values in the role get role list params (not the query body).
All values with no default are reset to their zero value.
func (*RoleGetRoleListParams) WithFilterCveID ¶
func (o *RoleGetRoleListParams) WithFilterCveID(filterCveID *string) *RoleGetRoleListParams
WithFilterCveID adds the filterCveID to the role get role list params
func (*RoleGetRoleListParams) WithHTTPClient ¶
func (o *RoleGetRoleListParams) WithHTTPClient(client *http.Client) *RoleGetRoleListParams
WithHTTPClient adds the HTTPClient to the role get role list params
func (*RoleGetRoleListParams) WithLimit ¶
func (o *RoleGetRoleListParams) WithLimit(limit *int64) *RoleGetRoleListParams
WithLimit adds the limit to the role get role list params
func (*RoleGetRoleListParams) WithOffset ¶
func (o *RoleGetRoleListParams) WithOffset(offset *int64) *RoleGetRoleListParams
WithOffset adds the offset to the role get role list params
func (*RoleGetRoleListParams) WithPage ¶
func (o *RoleGetRoleListParams) WithPage(page *int64) *RoleGetRoleListParams
WithPage adds the page to the role get role list params
func (*RoleGetRoleListParams) WithTimeout ¶
func (o *RoleGetRoleListParams) WithTimeout(timeout time.Duration) *RoleGetRoleListParams
WithTimeout adds the timeout to the role get role list params
func (*RoleGetRoleListParams) WriteToRequest ¶
func (o *RoleGetRoleListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RoleGetRoleListReader ¶
type RoleGetRoleListReader struct {
// contains filtered or unexported fields
}
RoleGetRoleListReader is a Reader for the RoleGetRoleList structure.
func (*RoleGetRoleListReader) ReadResponse ¶
func (o *RoleGetRoleListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RoleUpdateRoleOK ¶
type RoleUpdateRoleOK struct {
Payload *models.RoleUpdateRoleResponseBody
}
RoleUpdateRoleOK describes a response with status code 200, with default header values.
OK response.
func NewRoleUpdateRoleOK ¶
func NewRoleUpdateRoleOK() *RoleUpdateRoleOK
NewRoleUpdateRoleOK creates a RoleUpdateRoleOK with default headers values
func (*RoleUpdateRoleOK) Error ¶
func (o *RoleUpdateRoleOK) Error() string
func (*RoleUpdateRoleOK) GetPayload ¶
func (o *RoleUpdateRoleOK) GetPayload() *models.RoleUpdateRoleResponseBody
type RoleUpdateRoleParams ¶
type RoleUpdateRoleParams struct { /* Authorization. api key auth */ Authorization *string // UpdateRoleRequestBody. UpdateRoleRequestBody *models.RoleUpdateRoleRequestBody /* RoleID. Role ID Format: int64 */ RoleID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RoleUpdateRoleParams contains all the parameters to send to the API endpoint
for the role update role operation. Typically these are written to a http.Request.
func NewRoleUpdateRoleParams ¶
func NewRoleUpdateRoleParams() *RoleUpdateRoleParams
NewRoleUpdateRoleParams creates a new RoleUpdateRoleParams 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 NewRoleUpdateRoleParamsWithContext ¶
func NewRoleUpdateRoleParamsWithContext(ctx context.Context) *RoleUpdateRoleParams
NewRoleUpdateRoleParamsWithContext creates a new RoleUpdateRoleParams object with the ability to set a context for a request.
func NewRoleUpdateRoleParamsWithHTTPClient ¶
func NewRoleUpdateRoleParamsWithHTTPClient(client *http.Client) *RoleUpdateRoleParams
NewRoleUpdateRoleParamsWithHTTPClient creates a new RoleUpdateRoleParams object with the ability to set a custom HTTPClient for a request.
func NewRoleUpdateRoleParamsWithTimeout ¶
func NewRoleUpdateRoleParamsWithTimeout(timeout time.Duration) *RoleUpdateRoleParams
NewRoleUpdateRoleParamsWithTimeout creates a new RoleUpdateRoleParams object with the ability to set a timeout on a request.
func (*RoleUpdateRoleParams) SetAuthorization ¶
func (o *RoleUpdateRoleParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the role update role params
func (*RoleUpdateRoleParams) SetContext ¶
func (o *RoleUpdateRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the role update role params
func (*RoleUpdateRoleParams) SetDefaults ¶
func (o *RoleUpdateRoleParams) SetDefaults()
SetDefaults hydrates default values in the role update role params (not the query body).
All values with no default are reset to their zero value.
func (*RoleUpdateRoleParams) SetHTTPClient ¶
func (o *RoleUpdateRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the role update role params
func (*RoleUpdateRoleParams) SetRoleID ¶
func (o *RoleUpdateRoleParams) SetRoleID(roleID int64)
SetRoleID adds the roleId to the role update role params
func (*RoleUpdateRoleParams) SetTimeout ¶
func (o *RoleUpdateRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the role update role params
func (*RoleUpdateRoleParams) SetUpdateRoleRequestBody ¶
func (o *RoleUpdateRoleParams) SetUpdateRoleRequestBody(updateRoleRequestBody *models.RoleUpdateRoleRequestBody)
SetUpdateRoleRequestBody adds the updateRoleRequestBody to the role update role params
func (*RoleUpdateRoleParams) WithAuthorization ¶
func (o *RoleUpdateRoleParams) WithAuthorization(authorization *string) *RoleUpdateRoleParams
WithAuthorization adds the authorization to the role update role params
func (*RoleUpdateRoleParams) WithContext ¶
func (o *RoleUpdateRoleParams) WithContext(ctx context.Context) *RoleUpdateRoleParams
WithContext adds the context to the role update role params
func (*RoleUpdateRoleParams) WithDefaults ¶
func (o *RoleUpdateRoleParams) WithDefaults() *RoleUpdateRoleParams
WithDefaults hydrates default values in the role update role params (not the query body).
All values with no default are reset to their zero value.
func (*RoleUpdateRoleParams) WithHTTPClient ¶
func (o *RoleUpdateRoleParams) WithHTTPClient(client *http.Client) *RoleUpdateRoleParams
WithHTTPClient adds the HTTPClient to the role update role params
func (*RoleUpdateRoleParams) WithRoleID ¶
func (o *RoleUpdateRoleParams) WithRoleID(roleID int64) *RoleUpdateRoleParams
WithRoleID adds the roleID to the role update role params
func (*RoleUpdateRoleParams) WithTimeout ¶
func (o *RoleUpdateRoleParams) WithTimeout(timeout time.Duration) *RoleUpdateRoleParams
WithTimeout adds the timeout to the role update role params
func (*RoleUpdateRoleParams) WithUpdateRoleRequestBody ¶
func (o *RoleUpdateRoleParams) WithUpdateRoleRequestBody(updateRoleRequestBody *models.RoleUpdateRoleRequestBody) *RoleUpdateRoleParams
WithUpdateRoleRequestBody adds the updateRoleRequestBody to the role update role params
func (*RoleUpdateRoleParams) WriteToRequest ¶
func (o *RoleUpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RoleUpdateRoleReader ¶
type RoleUpdateRoleReader struct {
// contains filtered or unexported fields
}
RoleUpdateRoleReader is a Reader for the RoleUpdateRole structure.
func (*RoleUpdateRoleReader) ReadResponse ¶
func (o *RoleUpdateRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.