Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error)
- func (a *Client) GetRole(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)
- func (a *Client) SearchRoles(params *SearchRolesParams, opts ...ClientOption) (*SearchRolesOK, error)
- func (a *Client) SetRole(params *SetRoleParams, opts ...ClientOption) (*SetRoleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteRoleForbidden
- func (o *DeleteRoleForbidden) Code() int
- func (o *DeleteRoleForbidden) Error() string
- func (o *DeleteRoleForbidden) GetPayload() *models.RestError
- func (o *DeleteRoleForbidden) IsClientError() bool
- func (o *DeleteRoleForbidden) IsCode(code int) bool
- func (o *DeleteRoleForbidden) IsRedirect() bool
- func (o *DeleteRoleForbidden) IsServerError() bool
- func (o *DeleteRoleForbidden) IsSuccess() bool
- func (o *DeleteRoleForbidden) String() string
- type DeleteRoleInternalServerError
- func (o *DeleteRoleInternalServerError) Code() int
- func (o *DeleteRoleInternalServerError) Error() string
- func (o *DeleteRoleInternalServerError) GetPayload() *models.RestError
- func (o *DeleteRoleInternalServerError) IsClientError() bool
- func (o *DeleteRoleInternalServerError) IsCode(code int) bool
- func (o *DeleteRoleInternalServerError) IsRedirect() bool
- func (o *DeleteRoleInternalServerError) IsServerError() bool
- func (o *DeleteRoleInternalServerError) IsSuccess() bool
- func (o *DeleteRoleInternalServerError) String() string
- type DeleteRoleNotFound
- func (o *DeleteRoleNotFound) Code() int
- func (o *DeleteRoleNotFound) Error() string
- func (o *DeleteRoleNotFound) GetPayload() *models.RestError
- func (o *DeleteRoleNotFound) IsClientError() bool
- func (o *DeleteRoleNotFound) IsCode(code int) bool
- func (o *DeleteRoleNotFound) IsRedirect() bool
- func (o *DeleteRoleNotFound) IsServerError() bool
- func (o *DeleteRoleNotFound) IsSuccess() bool
- func (o *DeleteRoleNotFound) String() string
- type DeleteRoleOK
- func (o *DeleteRoleOK) Code() int
- func (o *DeleteRoleOK) Error() string
- func (o *DeleteRoleOK) GetPayload() *models.IdmRole
- func (o *DeleteRoleOK) IsClientError() bool
- func (o *DeleteRoleOK) IsCode(code int) bool
- func (o *DeleteRoleOK) IsRedirect() bool
- func (o *DeleteRoleOK) IsServerError() bool
- func (o *DeleteRoleOK) IsSuccess() bool
- func (o *DeleteRoleOK) String() string
- type DeleteRoleParams
- func (o *DeleteRoleParams) SetAutoApplies(autoApplies []string)
- func (o *DeleteRoleParams) SetContext(ctx context.Context)
- func (o *DeleteRoleParams) SetDefaults()
- func (o *DeleteRoleParams) SetForceOverride(forceOverride *bool)
- func (o *DeleteRoleParams) SetGroupRole(groupRole *bool)
- func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRoleParams) SetIsTeam(isTeam *bool)
- func (o *DeleteRoleParams) SetLabel(label *string)
- func (o *DeleteRoleParams) SetLastUpdated(lastUpdated *int32)
- func (o *DeleteRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)
- func (o *DeleteRoleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRoleParams) SetUUID(uuid string)
- func (o *DeleteRoleParams) SetUserRole(userRole *bool)
- func (o *DeleteRoleParams) WithAutoApplies(autoApplies []string) *DeleteRoleParams
- func (o *DeleteRoleParams) WithContext(ctx context.Context) *DeleteRoleParams
- func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams
- func (o *DeleteRoleParams) WithForceOverride(forceOverride *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithGroupRole(groupRole *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
- func (o *DeleteRoleParams) WithIsTeam(isTeam *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithLabel(label *string) *DeleteRoleParams
- func (o *DeleteRoleParams) WithLastUpdated(lastUpdated *int32) *DeleteRoleParams
- func (o *DeleteRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithTimeout(timeout time.Duration) *DeleteRoleParams
- func (o *DeleteRoleParams) WithUUID(uuid string) *DeleteRoleParams
- func (o *DeleteRoleParams) WithUserRole(userRole *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRoleReader
- type DeleteRoleUnauthorized
- func (o *DeleteRoleUnauthorized) Code() int
- func (o *DeleteRoleUnauthorized) Error() string
- func (o *DeleteRoleUnauthorized) IsClientError() bool
- func (o *DeleteRoleUnauthorized) IsCode(code int) bool
- func (o *DeleteRoleUnauthorized) IsRedirect() bool
- func (o *DeleteRoleUnauthorized) IsServerError() bool
- func (o *DeleteRoleUnauthorized) IsSuccess() bool
- func (o *DeleteRoleUnauthorized) String() string
- type GetRoleForbidden
- func (o *GetRoleForbidden) Code() int
- func (o *GetRoleForbidden) Error() string
- func (o *GetRoleForbidden) GetPayload() *models.RestError
- func (o *GetRoleForbidden) IsClientError() bool
- func (o *GetRoleForbidden) IsCode(code int) bool
- func (o *GetRoleForbidden) IsRedirect() bool
- func (o *GetRoleForbidden) IsServerError() bool
- func (o *GetRoleForbidden) IsSuccess() bool
- func (o *GetRoleForbidden) String() string
- type GetRoleInternalServerError
- func (o *GetRoleInternalServerError) Code() int
- func (o *GetRoleInternalServerError) Error() string
- func (o *GetRoleInternalServerError) GetPayload() *models.RestError
- func (o *GetRoleInternalServerError) IsClientError() bool
- func (o *GetRoleInternalServerError) IsCode(code int) bool
- func (o *GetRoleInternalServerError) IsRedirect() bool
- func (o *GetRoleInternalServerError) IsServerError() bool
- func (o *GetRoleInternalServerError) IsSuccess() bool
- func (o *GetRoleInternalServerError) String() string
- type GetRoleNotFound
- func (o *GetRoleNotFound) Code() int
- func (o *GetRoleNotFound) Error() string
- func (o *GetRoleNotFound) GetPayload() *models.RestError
- func (o *GetRoleNotFound) IsClientError() bool
- func (o *GetRoleNotFound) IsCode(code int) bool
- func (o *GetRoleNotFound) IsRedirect() bool
- func (o *GetRoleNotFound) IsServerError() bool
- func (o *GetRoleNotFound) IsSuccess() bool
- func (o *GetRoleNotFound) String() string
- type GetRoleOK
- func (o *GetRoleOK) Code() int
- func (o *GetRoleOK) Error() string
- func (o *GetRoleOK) GetPayload() *models.IdmRole
- func (o *GetRoleOK) IsClientError() bool
- func (o *GetRoleOK) IsCode(code int) bool
- func (o *GetRoleOK) IsRedirect() bool
- func (o *GetRoleOK) IsServerError() bool
- func (o *GetRoleOK) IsSuccess() bool
- func (o *GetRoleOK) String() string
- type GetRoleParams
- func (o *GetRoleParams) SetAutoApplies(autoApplies []string)
- func (o *GetRoleParams) SetContext(ctx context.Context)
- func (o *GetRoleParams) SetDefaults()
- func (o *GetRoleParams) SetForceOverride(forceOverride *bool)
- func (o *GetRoleParams) SetGroupRole(groupRole *bool)
- func (o *GetRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetRoleParams) SetIsTeam(isTeam *bool)
- func (o *GetRoleParams) SetLabel(label *string)
- func (o *GetRoleParams) SetLastUpdated(lastUpdated *int32)
- func (o *GetRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)
- func (o *GetRoleParams) SetTimeout(timeout time.Duration)
- func (o *GetRoleParams) SetUUID(uuid string)
- func (o *GetRoleParams) SetUserRole(userRole *bool)
- func (o *GetRoleParams) WithAutoApplies(autoApplies []string) *GetRoleParams
- func (o *GetRoleParams) WithContext(ctx context.Context) *GetRoleParams
- func (o *GetRoleParams) WithDefaults() *GetRoleParams
- func (o *GetRoleParams) WithForceOverride(forceOverride *bool) *GetRoleParams
- func (o *GetRoleParams) WithGroupRole(groupRole *bool) *GetRoleParams
- func (o *GetRoleParams) WithHTTPClient(client *http.Client) *GetRoleParams
- func (o *GetRoleParams) WithIsTeam(isTeam *bool) *GetRoleParams
- func (o *GetRoleParams) WithLabel(label *string) *GetRoleParams
- func (o *GetRoleParams) WithLastUpdated(lastUpdated *int32) *GetRoleParams
- func (o *GetRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *GetRoleParams
- func (o *GetRoleParams) WithTimeout(timeout time.Duration) *GetRoleParams
- func (o *GetRoleParams) WithUUID(uuid string) *GetRoleParams
- func (o *GetRoleParams) WithUserRole(userRole *bool) *GetRoleParams
- func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoleReader
- type GetRoleUnauthorized
- func (o *GetRoleUnauthorized) Code() int
- func (o *GetRoleUnauthorized) Error() string
- func (o *GetRoleUnauthorized) IsClientError() bool
- func (o *GetRoleUnauthorized) IsCode(code int) bool
- func (o *GetRoleUnauthorized) IsRedirect() bool
- func (o *GetRoleUnauthorized) IsServerError() bool
- func (o *GetRoleUnauthorized) IsSuccess() bool
- func (o *GetRoleUnauthorized) String() string
- type SearchRolesForbidden
- func (o *SearchRolesForbidden) Code() int
- func (o *SearchRolesForbidden) Error() string
- func (o *SearchRolesForbidden) GetPayload() *models.RestError
- func (o *SearchRolesForbidden) IsClientError() bool
- func (o *SearchRolesForbidden) IsCode(code int) bool
- func (o *SearchRolesForbidden) IsRedirect() bool
- func (o *SearchRolesForbidden) IsServerError() bool
- func (o *SearchRolesForbidden) IsSuccess() bool
- func (o *SearchRolesForbidden) String() string
- type SearchRolesInternalServerError
- func (o *SearchRolesInternalServerError) Code() int
- func (o *SearchRolesInternalServerError) Error() string
- func (o *SearchRolesInternalServerError) GetPayload() *models.RestError
- func (o *SearchRolesInternalServerError) IsClientError() bool
- func (o *SearchRolesInternalServerError) IsCode(code int) bool
- func (o *SearchRolesInternalServerError) IsRedirect() bool
- func (o *SearchRolesInternalServerError) IsServerError() bool
- func (o *SearchRolesInternalServerError) IsSuccess() bool
- func (o *SearchRolesInternalServerError) String() string
- type SearchRolesNotFound
- func (o *SearchRolesNotFound) Code() int
- func (o *SearchRolesNotFound) Error() string
- func (o *SearchRolesNotFound) GetPayload() *models.RestError
- func (o *SearchRolesNotFound) IsClientError() bool
- func (o *SearchRolesNotFound) IsCode(code int) bool
- func (o *SearchRolesNotFound) IsRedirect() bool
- func (o *SearchRolesNotFound) IsServerError() bool
- func (o *SearchRolesNotFound) IsSuccess() bool
- func (o *SearchRolesNotFound) String() string
- type SearchRolesOK
- func (o *SearchRolesOK) Code() int
- func (o *SearchRolesOK) Error() string
- func (o *SearchRolesOK) GetPayload() *models.RestRolesCollection
- func (o *SearchRolesOK) IsClientError() bool
- func (o *SearchRolesOK) IsCode(code int) bool
- func (o *SearchRolesOK) IsRedirect() bool
- func (o *SearchRolesOK) IsServerError() bool
- func (o *SearchRolesOK) IsSuccess() bool
- func (o *SearchRolesOK) String() string
- type SearchRolesParams
- func (o *SearchRolesParams) SetBody(body *models.RestSearchRoleRequest)
- func (o *SearchRolesParams) SetContext(ctx context.Context)
- func (o *SearchRolesParams) SetDefaults()
- func (o *SearchRolesParams) SetHTTPClient(client *http.Client)
- func (o *SearchRolesParams) SetTimeout(timeout time.Duration)
- func (o *SearchRolesParams) WithBody(body *models.RestSearchRoleRequest) *SearchRolesParams
- func (o *SearchRolesParams) WithContext(ctx context.Context) *SearchRolesParams
- func (o *SearchRolesParams) WithDefaults() *SearchRolesParams
- func (o *SearchRolesParams) WithHTTPClient(client *http.Client) *SearchRolesParams
- func (o *SearchRolesParams) WithTimeout(timeout time.Duration) *SearchRolesParams
- func (o *SearchRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchRolesReader
- type SearchRolesUnauthorized
- func (o *SearchRolesUnauthorized) Code() int
- func (o *SearchRolesUnauthorized) Error() string
- func (o *SearchRolesUnauthorized) IsClientError() bool
- func (o *SearchRolesUnauthorized) IsCode(code int) bool
- func (o *SearchRolesUnauthorized) IsRedirect() bool
- func (o *SearchRolesUnauthorized) IsServerError() bool
- func (o *SearchRolesUnauthorized) IsSuccess() bool
- func (o *SearchRolesUnauthorized) String() string
- type SetRoleBody
- type SetRoleForbidden
- func (o *SetRoleForbidden) Code() int
- func (o *SetRoleForbidden) Error() string
- func (o *SetRoleForbidden) GetPayload() *models.RestError
- func (o *SetRoleForbidden) IsClientError() bool
- func (o *SetRoleForbidden) IsCode(code int) bool
- func (o *SetRoleForbidden) IsRedirect() bool
- func (o *SetRoleForbidden) IsServerError() bool
- func (o *SetRoleForbidden) IsSuccess() bool
- func (o *SetRoleForbidden) String() string
- type SetRoleInternalServerError
- func (o *SetRoleInternalServerError) Code() int
- func (o *SetRoleInternalServerError) Error() string
- func (o *SetRoleInternalServerError) GetPayload() *models.RestError
- func (o *SetRoleInternalServerError) IsClientError() bool
- func (o *SetRoleInternalServerError) IsCode(code int) bool
- func (o *SetRoleInternalServerError) IsRedirect() bool
- func (o *SetRoleInternalServerError) IsServerError() bool
- func (o *SetRoleInternalServerError) IsSuccess() bool
- func (o *SetRoleInternalServerError) String() string
- type SetRoleNotFound
- func (o *SetRoleNotFound) Code() int
- func (o *SetRoleNotFound) Error() string
- func (o *SetRoleNotFound) GetPayload() *models.RestError
- func (o *SetRoleNotFound) IsClientError() bool
- func (o *SetRoleNotFound) IsCode(code int) bool
- func (o *SetRoleNotFound) IsRedirect() bool
- func (o *SetRoleNotFound) IsServerError() bool
- func (o *SetRoleNotFound) IsSuccess() bool
- func (o *SetRoleNotFound) String() string
- type SetRoleOK
- func (o *SetRoleOK) Code() int
- func (o *SetRoleOK) Error() string
- func (o *SetRoleOK) GetPayload() *models.IdmRole
- func (o *SetRoleOK) IsClientError() bool
- func (o *SetRoleOK) IsCode(code int) bool
- func (o *SetRoleOK) IsRedirect() bool
- func (o *SetRoleOK) IsServerError() bool
- func (o *SetRoleOK) IsSuccess() bool
- func (o *SetRoleOK) String() string
- type SetRoleParams
- func (o *SetRoleParams) SetBody(body SetRoleBody)
- func (o *SetRoleParams) SetContext(ctx context.Context)
- func (o *SetRoleParams) SetDefaults()
- func (o *SetRoleParams) SetHTTPClient(client *http.Client)
- func (o *SetRoleParams) SetTimeout(timeout time.Duration)
- func (o *SetRoleParams) SetUUID(uuid string)
- func (o *SetRoleParams) WithBody(body SetRoleBody) *SetRoleParams
- func (o *SetRoleParams) WithContext(ctx context.Context) *SetRoleParams
- func (o *SetRoleParams) WithDefaults() *SetRoleParams
- func (o *SetRoleParams) WithHTTPClient(client *http.Client) *SetRoleParams
- func (o *SetRoleParams) WithTimeout(timeout time.Duration) *SetRoleParams
- func (o *SetRoleParams) WithUUID(uuid string) *SetRoleParams
- func (o *SetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetRoleReader
- type SetRoleUnauthorized
- func (o *SetRoleUnauthorized) Code() int
- func (o *SetRoleUnauthorized) Error() string
- func (o *SetRoleUnauthorized) IsClientError() bool
- func (o *SetRoleUnauthorized) IsCode(code int) bool
- func (o *SetRoleUnauthorized) IsRedirect() bool
- func (o *SetRoleUnauthorized) IsServerError() bool
- func (o *SetRoleUnauthorized) IsSuccess() bool
- func (o *SetRoleUnauthorized) String() string
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 service API
func (*Client) DeleteRole ¶
func (a *Client) DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error)
DeleteRole deletes a role by ID
func (*Client) GetRole ¶
func (a *Client) GetRole(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)
GetRole gets a role by ID
func (*Client) SearchRoles ¶
func (a *Client) SearchRoles(params *SearchRolesParams, opts ...ClientOption) (*SearchRolesOK, error)
SearchRoles searches roles
func (*Client) SetRole ¶
func (a *Client) SetRole(params *SetRoleParams, opts ...ClientOption) (*SetRoleOK, error)
SetRole creates or update 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 { DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error) GetRole(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error) SearchRoles(params *SearchRolesParams, opts ...ClientOption) (*SearchRolesOK, error) SetRole(params *SetRoleParams, opts ...ClientOption) (*SetRoleOK, 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 service API client.
type DeleteRoleForbidden ¶
DeleteRoleForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewDeleteRoleForbidden ¶
func NewDeleteRoleForbidden() *DeleteRoleForbidden
NewDeleteRoleForbidden creates a DeleteRoleForbidden with default headers values
func (*DeleteRoleForbidden) Code ¶
func (o *DeleteRoleForbidden) Code() int
Code gets the status code for the delete role forbidden response
func (*DeleteRoleForbidden) Error ¶
func (o *DeleteRoleForbidden) Error() string
func (*DeleteRoleForbidden) GetPayload ¶
func (o *DeleteRoleForbidden) GetPayload() *models.RestError
func (*DeleteRoleForbidden) IsClientError ¶
func (o *DeleteRoleForbidden) IsClientError() bool
IsClientError returns true when this delete role forbidden response has a 4xx status code
func (*DeleteRoleForbidden) IsCode ¶
func (o *DeleteRoleForbidden) IsCode(code int) bool
IsCode returns true when this delete role forbidden response a status code equal to that given
func (*DeleteRoleForbidden) IsRedirect ¶
func (o *DeleteRoleForbidden) IsRedirect() bool
IsRedirect returns true when this delete role forbidden response has a 3xx status code
func (*DeleteRoleForbidden) IsServerError ¶
func (o *DeleteRoleForbidden) IsServerError() bool
IsServerError returns true when this delete role forbidden response has a 5xx status code
func (*DeleteRoleForbidden) IsSuccess ¶
func (o *DeleteRoleForbidden) IsSuccess() bool
IsSuccess returns true when this delete role forbidden response has a 2xx status code
func (*DeleteRoleForbidden) String ¶
func (o *DeleteRoleForbidden) String() string
type DeleteRoleInternalServerError ¶
DeleteRoleInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewDeleteRoleInternalServerError ¶
func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError
NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values
func (*DeleteRoleInternalServerError) Code ¶
func (o *DeleteRoleInternalServerError) Code() int
Code gets the status code for the delete role internal server error response
func (*DeleteRoleInternalServerError) Error ¶
func (o *DeleteRoleInternalServerError) Error() string
func (*DeleteRoleInternalServerError) GetPayload ¶
func (o *DeleteRoleInternalServerError) GetPayload() *models.RestError
func (*DeleteRoleInternalServerError) IsClientError ¶
func (o *DeleteRoleInternalServerError) IsClientError() bool
IsClientError returns true when this delete role internal server error response has a 4xx status code
func (*DeleteRoleInternalServerError) IsCode ¶
func (o *DeleteRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this delete role internal server error response a status code equal to that given
func (*DeleteRoleInternalServerError) IsRedirect ¶
func (o *DeleteRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete role internal server error response has a 3xx status code
func (*DeleteRoleInternalServerError) IsServerError ¶
func (o *DeleteRoleInternalServerError) IsServerError() bool
IsServerError returns true when this delete role internal server error response has a 5xx status code
func (*DeleteRoleInternalServerError) IsSuccess ¶
func (o *DeleteRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete role internal server error response has a 2xx status code
func (*DeleteRoleInternalServerError) String ¶
func (o *DeleteRoleInternalServerError) String() string
type DeleteRoleNotFound ¶
DeleteRoleNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewDeleteRoleNotFound ¶
func NewDeleteRoleNotFound() *DeleteRoleNotFound
NewDeleteRoleNotFound creates a DeleteRoleNotFound with default headers values
func (*DeleteRoleNotFound) Code ¶
func (o *DeleteRoleNotFound) Code() int
Code gets the status code for the delete role not found response
func (*DeleteRoleNotFound) Error ¶
func (o *DeleteRoleNotFound) Error() string
func (*DeleteRoleNotFound) GetPayload ¶
func (o *DeleteRoleNotFound) GetPayload() *models.RestError
func (*DeleteRoleNotFound) IsClientError ¶
func (o *DeleteRoleNotFound) IsClientError() bool
IsClientError returns true when this delete role not found response has a 4xx status code
func (*DeleteRoleNotFound) IsCode ¶
func (o *DeleteRoleNotFound) IsCode(code int) bool
IsCode returns true when this delete role not found response a status code equal to that given
func (*DeleteRoleNotFound) IsRedirect ¶
func (o *DeleteRoleNotFound) IsRedirect() bool
IsRedirect returns true when this delete role not found response has a 3xx status code
func (*DeleteRoleNotFound) IsServerError ¶
func (o *DeleteRoleNotFound) IsServerError() bool
IsServerError returns true when this delete role not found response has a 5xx status code
func (*DeleteRoleNotFound) IsSuccess ¶
func (o *DeleteRoleNotFound) IsSuccess() bool
IsSuccess returns true when this delete role not found response has a 2xx status code
func (*DeleteRoleNotFound) String ¶
func (o *DeleteRoleNotFound) String() string
type DeleteRoleOK ¶
DeleteRoleOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteRoleOK ¶
func NewDeleteRoleOK() *DeleteRoleOK
NewDeleteRoleOK creates a DeleteRoleOK with default headers values
func (*DeleteRoleOK) Code ¶
func (o *DeleteRoleOK) Code() int
Code gets the status code for the delete role o k response
func (*DeleteRoleOK) Error ¶
func (o *DeleteRoleOK) Error() string
func (*DeleteRoleOK) GetPayload ¶
func (o *DeleteRoleOK) GetPayload() *models.IdmRole
func (*DeleteRoleOK) IsClientError ¶
func (o *DeleteRoleOK) IsClientError() bool
IsClientError returns true when this delete role o k response has a 4xx status code
func (*DeleteRoleOK) IsCode ¶
func (o *DeleteRoleOK) IsCode(code int) bool
IsCode returns true when this delete role o k response a status code equal to that given
func (*DeleteRoleOK) IsRedirect ¶
func (o *DeleteRoleOK) IsRedirect() bool
IsRedirect returns true when this delete role o k response has a 3xx status code
func (*DeleteRoleOK) IsServerError ¶
func (o *DeleteRoleOK) IsServerError() bool
IsServerError returns true when this delete role o k response has a 5xx status code
func (*DeleteRoleOK) IsSuccess ¶
func (o *DeleteRoleOK) IsSuccess() bool
IsSuccess returns true when this delete role o k response has a 2xx status code
func (*DeleteRoleOK) String ¶
func (o *DeleteRoleOK) String() string
type DeleteRoleParams ¶
type DeleteRoleParams struct { /* AutoApplies. List of profiles (standard, shared, admin) on which the role will be automatically applied */ AutoApplies []string /* ForceOverride. Is used in a stack of roles, this one will always be applied last. */ ForceOverride *bool /* GroupRole. Whether this role is attached to a Group object */ GroupRole *bool /* IsTeam. Whether this role represents a user team or not */ IsTeam *bool /* Label. Label of this role */ Label *string /* LastUpdated. Last modification date of the role Format: int32 */ LastUpdated *int32 /* PoliciesContextEditable. Whether the policies resolve into an editable state */ PoliciesContextEditable *bool /* UserRole. Whether this role is attached to a User object */ UserRole *bool /* UUID. Unique identifier of this role */ UUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteRoleParams contains all the parameters to send to the API endpoint
for the delete role operation. Typically these are written to a http.Request.
func NewDeleteRoleParams ¶
func NewDeleteRoleParams() *DeleteRoleParams
NewDeleteRoleParams creates a new DeleteRoleParams 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 NewDeleteRoleParamsWithContext ¶
func NewDeleteRoleParamsWithContext(ctx context.Context) *DeleteRoleParams
NewDeleteRoleParamsWithContext creates a new DeleteRoleParams object with the ability to set a context for a request.
func NewDeleteRoleParamsWithHTTPClient ¶
func NewDeleteRoleParamsWithHTTPClient(client *http.Client) *DeleteRoleParams
NewDeleteRoleParamsWithHTTPClient creates a new DeleteRoleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRoleParamsWithTimeout ¶
func NewDeleteRoleParamsWithTimeout(timeout time.Duration) *DeleteRoleParams
NewDeleteRoleParamsWithTimeout creates a new DeleteRoleParams object with the ability to set a timeout on a request.
func (*DeleteRoleParams) SetAutoApplies ¶
func (o *DeleteRoleParams) SetAutoApplies(autoApplies []string)
SetAutoApplies adds the autoApplies to the delete role params
func (*DeleteRoleParams) SetContext ¶
func (o *DeleteRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete role params
func (*DeleteRoleParams) SetDefaults ¶
func (o *DeleteRoleParams) SetDefaults()
SetDefaults hydrates default values in the delete role params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRoleParams) SetForceOverride ¶
func (o *DeleteRoleParams) SetForceOverride(forceOverride *bool)
SetForceOverride adds the forceOverride to the delete role params
func (*DeleteRoleParams) SetGroupRole ¶
func (o *DeleteRoleParams) SetGroupRole(groupRole *bool)
SetGroupRole adds the groupRole to the delete role params
func (*DeleteRoleParams) SetHTTPClient ¶
func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) SetIsTeam ¶
func (o *DeleteRoleParams) SetIsTeam(isTeam *bool)
SetIsTeam adds the isTeam to the delete role params
func (*DeleteRoleParams) SetLabel ¶
func (o *DeleteRoleParams) SetLabel(label *string)
SetLabel adds the label to the delete role params
func (*DeleteRoleParams) SetLastUpdated ¶
func (o *DeleteRoleParams) SetLastUpdated(lastUpdated *int32)
SetLastUpdated adds the lastUpdated to the delete role params
func (*DeleteRoleParams) SetPoliciesContextEditable ¶
func (o *DeleteRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)
SetPoliciesContextEditable adds the policiesContextEditable to the delete role params
func (*DeleteRoleParams) SetTimeout ¶
func (o *DeleteRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete role params
func (*DeleteRoleParams) SetUUID ¶
func (o *DeleteRoleParams) SetUUID(uuid string)
SetUUID adds the uuid to the delete role params
func (*DeleteRoleParams) SetUserRole ¶
func (o *DeleteRoleParams) SetUserRole(userRole *bool)
SetUserRole adds the userRole to the delete role params
func (*DeleteRoleParams) WithAutoApplies ¶
func (o *DeleteRoleParams) WithAutoApplies(autoApplies []string) *DeleteRoleParams
WithAutoApplies adds the autoApplies to the delete role params
func (*DeleteRoleParams) WithContext ¶
func (o *DeleteRoleParams) WithContext(ctx context.Context) *DeleteRoleParams
WithContext adds the context to the delete role params
func (*DeleteRoleParams) WithDefaults ¶
func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams
WithDefaults hydrates default values in the delete role params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRoleParams) WithForceOverride ¶
func (o *DeleteRoleParams) WithForceOverride(forceOverride *bool) *DeleteRoleParams
WithForceOverride adds the forceOverride to the delete role params
func (*DeleteRoleParams) WithGroupRole ¶
func (o *DeleteRoleParams) WithGroupRole(groupRole *bool) *DeleteRoleParams
WithGroupRole adds the groupRole to the delete role params
func (*DeleteRoleParams) WithHTTPClient ¶
func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
WithHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) WithIsTeam ¶
func (o *DeleteRoleParams) WithIsTeam(isTeam *bool) *DeleteRoleParams
WithIsTeam adds the isTeam to the delete role params
func (*DeleteRoleParams) WithLabel ¶
func (o *DeleteRoleParams) WithLabel(label *string) *DeleteRoleParams
WithLabel adds the label to the delete role params
func (*DeleteRoleParams) WithLastUpdated ¶
func (o *DeleteRoleParams) WithLastUpdated(lastUpdated *int32) *DeleteRoleParams
WithLastUpdated adds the lastUpdated to the delete role params
func (*DeleteRoleParams) WithPoliciesContextEditable ¶
func (o *DeleteRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *DeleteRoleParams
WithPoliciesContextEditable adds the policiesContextEditable to the delete role params
func (*DeleteRoleParams) WithTimeout ¶
func (o *DeleteRoleParams) WithTimeout(timeout time.Duration) *DeleteRoleParams
WithTimeout adds the timeout to the delete role params
func (*DeleteRoleParams) WithUUID ¶
func (o *DeleteRoleParams) WithUUID(uuid string) *DeleteRoleParams
WithUUID adds the uuid to the delete role params
func (*DeleteRoleParams) WithUserRole ¶
func (o *DeleteRoleParams) WithUserRole(userRole *bool) *DeleteRoleParams
WithUserRole adds the userRole to the delete role params
func (*DeleteRoleParams) WriteToRequest ¶
func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRoleReader ¶
type DeleteRoleReader struct {
// contains filtered or unexported fields
}
DeleteRoleReader is a Reader for the DeleteRole structure.
func (*DeleteRoleReader) ReadResponse ¶
func (o *DeleteRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteRoleUnauthorized ¶
type DeleteRoleUnauthorized struct { }
DeleteRoleUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewDeleteRoleUnauthorized ¶
func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized
NewDeleteRoleUnauthorized creates a DeleteRoleUnauthorized with default headers values
func (*DeleteRoleUnauthorized) Code ¶
func (o *DeleteRoleUnauthorized) Code() int
Code gets the status code for the delete role unauthorized response
func (*DeleteRoleUnauthorized) Error ¶
func (o *DeleteRoleUnauthorized) Error() string
func (*DeleteRoleUnauthorized) IsClientError ¶
func (o *DeleteRoleUnauthorized) IsClientError() bool
IsClientError returns true when this delete role unauthorized response has a 4xx status code
func (*DeleteRoleUnauthorized) IsCode ¶
func (o *DeleteRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this delete role unauthorized response a status code equal to that given
func (*DeleteRoleUnauthorized) IsRedirect ¶
func (o *DeleteRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete role unauthorized response has a 3xx status code
func (*DeleteRoleUnauthorized) IsServerError ¶
func (o *DeleteRoleUnauthorized) IsServerError() bool
IsServerError returns true when this delete role unauthorized response has a 5xx status code
func (*DeleteRoleUnauthorized) IsSuccess ¶
func (o *DeleteRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete role unauthorized response has a 2xx status code
func (*DeleteRoleUnauthorized) String ¶
func (o *DeleteRoleUnauthorized) String() string
type GetRoleForbidden ¶
GetRoleForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewGetRoleForbidden ¶
func NewGetRoleForbidden() *GetRoleForbidden
NewGetRoleForbidden creates a GetRoleForbidden with default headers values
func (*GetRoleForbidden) Code ¶
func (o *GetRoleForbidden) Code() int
Code gets the status code for the get role forbidden response
func (*GetRoleForbidden) Error ¶
func (o *GetRoleForbidden) Error() string
func (*GetRoleForbidden) GetPayload ¶
func (o *GetRoleForbidden) GetPayload() *models.RestError
func (*GetRoleForbidden) IsClientError ¶
func (o *GetRoleForbidden) IsClientError() bool
IsClientError returns true when this get role forbidden response has a 4xx status code
func (*GetRoleForbidden) IsCode ¶
func (o *GetRoleForbidden) IsCode(code int) bool
IsCode returns true when this get role forbidden response a status code equal to that given
func (*GetRoleForbidden) IsRedirect ¶
func (o *GetRoleForbidden) IsRedirect() bool
IsRedirect returns true when this get role forbidden response has a 3xx status code
func (*GetRoleForbidden) IsServerError ¶
func (o *GetRoleForbidden) IsServerError() bool
IsServerError returns true when this get role forbidden response has a 5xx status code
func (*GetRoleForbidden) IsSuccess ¶
func (o *GetRoleForbidden) IsSuccess() bool
IsSuccess returns true when this get role forbidden response has a 2xx status code
func (*GetRoleForbidden) String ¶
func (o *GetRoleForbidden) String() string
type GetRoleInternalServerError ¶
GetRoleInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewGetRoleInternalServerError ¶
func NewGetRoleInternalServerError() *GetRoleInternalServerError
NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values
func (*GetRoleInternalServerError) Code ¶
func (o *GetRoleInternalServerError) Code() int
Code gets the status code for the get role internal server error response
func (*GetRoleInternalServerError) Error ¶
func (o *GetRoleInternalServerError) Error() string
func (*GetRoleInternalServerError) GetPayload ¶
func (o *GetRoleInternalServerError) GetPayload() *models.RestError
func (*GetRoleInternalServerError) IsClientError ¶
func (o *GetRoleInternalServerError) IsClientError() bool
IsClientError returns true when this get role internal server error response has a 4xx status code
func (*GetRoleInternalServerError) IsCode ¶
func (o *GetRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this get role internal server error response a status code equal to that given
func (*GetRoleInternalServerError) IsRedirect ¶
func (o *GetRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this get role internal server error response has a 3xx status code
func (*GetRoleInternalServerError) IsServerError ¶
func (o *GetRoleInternalServerError) IsServerError() bool
IsServerError returns true when this get role internal server error response has a 5xx status code
func (*GetRoleInternalServerError) IsSuccess ¶
func (o *GetRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this get role internal server error response has a 2xx status code
func (*GetRoleInternalServerError) String ¶
func (o *GetRoleInternalServerError) String() string
type GetRoleNotFound ¶
GetRoleNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewGetRoleNotFound ¶
func NewGetRoleNotFound() *GetRoleNotFound
NewGetRoleNotFound creates a GetRoleNotFound with default headers values
func (*GetRoleNotFound) Code ¶
func (o *GetRoleNotFound) Code() int
Code gets the status code for the get role not found response
func (*GetRoleNotFound) Error ¶
func (o *GetRoleNotFound) Error() string
func (*GetRoleNotFound) GetPayload ¶
func (o *GetRoleNotFound) GetPayload() *models.RestError
func (*GetRoleNotFound) IsClientError ¶
func (o *GetRoleNotFound) IsClientError() bool
IsClientError returns true when this get role not found response has a 4xx status code
func (*GetRoleNotFound) IsCode ¶
func (o *GetRoleNotFound) IsCode(code int) bool
IsCode returns true when this get role not found response a status code equal to that given
func (*GetRoleNotFound) IsRedirect ¶
func (o *GetRoleNotFound) IsRedirect() bool
IsRedirect returns true when this get role not found response has a 3xx status code
func (*GetRoleNotFound) IsServerError ¶
func (o *GetRoleNotFound) IsServerError() bool
IsServerError returns true when this get role not found response has a 5xx status code
func (*GetRoleNotFound) IsSuccess ¶
func (o *GetRoleNotFound) IsSuccess() bool
IsSuccess returns true when this get role not found response has a 2xx status code
func (*GetRoleNotFound) String ¶
func (o *GetRoleNotFound) String() string
type GetRoleOK ¶
GetRoleOK describes a response with status code 200, with default header values.
A successful response.
func NewGetRoleOK ¶
func NewGetRoleOK() *GetRoleOK
NewGetRoleOK creates a GetRoleOK with default headers values
func (*GetRoleOK) GetPayload ¶
func (*GetRoleOK) IsClientError ¶
IsClientError returns true when this get role o k response has a 4xx status code
func (*GetRoleOK) IsCode ¶
IsCode returns true when this get role o k response a status code equal to that given
func (*GetRoleOK) IsRedirect ¶
IsRedirect returns true when this get role o k response has a 3xx status code
func (*GetRoleOK) IsServerError ¶
IsServerError returns true when this get role o k response has a 5xx status code
type GetRoleParams ¶
type GetRoleParams struct { /* AutoApplies. List of profiles (standard, shared, admin) on which the role will be automatically applied */ AutoApplies []string /* ForceOverride. Is used in a stack of roles, this one will always be applied last. */ ForceOverride *bool /* GroupRole. Whether this role is attached to a Group object */ GroupRole *bool /* IsTeam. Whether this role represents a user team or not */ IsTeam *bool /* Label. Label of this role */ Label *string /* LastUpdated. Last modification date of the role Format: int32 */ LastUpdated *int32 /* PoliciesContextEditable. Whether the policies resolve into an editable state */ PoliciesContextEditable *bool /* UserRole. Whether this role is attached to a User object */ UserRole *bool /* UUID. Unique identifier of this role */ UUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRoleParams contains all the parameters to send to the API endpoint
for the get role operation. Typically these are written to a http.Request.
func NewGetRoleParams ¶
func NewGetRoleParams() *GetRoleParams
NewGetRoleParams creates a new GetRoleParams 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 NewGetRoleParamsWithContext ¶
func NewGetRoleParamsWithContext(ctx context.Context) *GetRoleParams
NewGetRoleParamsWithContext creates a new GetRoleParams object with the ability to set a context for a request.
func NewGetRoleParamsWithHTTPClient ¶
func NewGetRoleParamsWithHTTPClient(client *http.Client) *GetRoleParams
NewGetRoleParamsWithHTTPClient creates a new GetRoleParams object with the ability to set a custom HTTPClient for a request.
func NewGetRoleParamsWithTimeout ¶
func NewGetRoleParamsWithTimeout(timeout time.Duration) *GetRoleParams
NewGetRoleParamsWithTimeout creates a new GetRoleParams object with the ability to set a timeout on a request.
func (*GetRoleParams) SetAutoApplies ¶
func (o *GetRoleParams) SetAutoApplies(autoApplies []string)
SetAutoApplies adds the autoApplies to the get role params
func (*GetRoleParams) SetContext ¶
func (o *GetRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the get role params
func (*GetRoleParams) SetDefaults ¶
func (o *GetRoleParams) SetDefaults()
SetDefaults hydrates default values in the get role params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleParams) SetForceOverride ¶
func (o *GetRoleParams) SetForceOverride(forceOverride *bool)
SetForceOverride adds the forceOverride to the get role params
func (*GetRoleParams) SetGroupRole ¶
func (o *GetRoleParams) SetGroupRole(groupRole *bool)
SetGroupRole adds the groupRole to the get role params
func (*GetRoleParams) SetHTTPClient ¶
func (o *GetRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get role params
func (*GetRoleParams) SetIsTeam ¶
func (o *GetRoleParams) SetIsTeam(isTeam *bool)
SetIsTeam adds the isTeam to the get role params
func (*GetRoleParams) SetLabel ¶
func (o *GetRoleParams) SetLabel(label *string)
SetLabel adds the label to the get role params
func (*GetRoleParams) SetLastUpdated ¶
func (o *GetRoleParams) SetLastUpdated(lastUpdated *int32)
SetLastUpdated adds the lastUpdated to the get role params
func (*GetRoleParams) SetPoliciesContextEditable ¶
func (o *GetRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)
SetPoliciesContextEditable adds the policiesContextEditable to the get role params
func (*GetRoleParams) SetTimeout ¶
func (o *GetRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get role params
func (*GetRoleParams) SetUUID ¶
func (o *GetRoleParams) SetUUID(uuid string)
SetUUID adds the uuid to the get role params
func (*GetRoleParams) SetUserRole ¶
func (o *GetRoleParams) SetUserRole(userRole *bool)
SetUserRole adds the userRole to the get role params
func (*GetRoleParams) WithAutoApplies ¶
func (o *GetRoleParams) WithAutoApplies(autoApplies []string) *GetRoleParams
WithAutoApplies adds the autoApplies to the get role params
func (*GetRoleParams) WithContext ¶
func (o *GetRoleParams) WithContext(ctx context.Context) *GetRoleParams
WithContext adds the context to the get role params
func (*GetRoleParams) WithDefaults ¶
func (o *GetRoleParams) WithDefaults() *GetRoleParams
WithDefaults hydrates default values in the get role params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleParams) WithForceOverride ¶
func (o *GetRoleParams) WithForceOverride(forceOverride *bool) *GetRoleParams
WithForceOverride adds the forceOverride to the get role params
func (*GetRoleParams) WithGroupRole ¶
func (o *GetRoleParams) WithGroupRole(groupRole *bool) *GetRoleParams
WithGroupRole adds the groupRole to the get role params
func (*GetRoleParams) WithHTTPClient ¶
func (o *GetRoleParams) WithHTTPClient(client *http.Client) *GetRoleParams
WithHTTPClient adds the HTTPClient to the get role params
func (*GetRoleParams) WithIsTeam ¶
func (o *GetRoleParams) WithIsTeam(isTeam *bool) *GetRoleParams
WithIsTeam adds the isTeam to the get role params
func (*GetRoleParams) WithLabel ¶
func (o *GetRoleParams) WithLabel(label *string) *GetRoleParams
WithLabel adds the label to the get role params
func (*GetRoleParams) WithLastUpdated ¶
func (o *GetRoleParams) WithLastUpdated(lastUpdated *int32) *GetRoleParams
WithLastUpdated adds the lastUpdated to the get role params
func (*GetRoleParams) WithPoliciesContextEditable ¶
func (o *GetRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *GetRoleParams
WithPoliciesContextEditable adds the policiesContextEditable to the get role params
func (*GetRoleParams) WithTimeout ¶
func (o *GetRoleParams) WithTimeout(timeout time.Duration) *GetRoleParams
WithTimeout adds the timeout to the get role params
func (*GetRoleParams) WithUUID ¶
func (o *GetRoleParams) WithUUID(uuid string) *GetRoleParams
WithUUID adds the uuid to the get role params
func (*GetRoleParams) WithUserRole ¶
func (o *GetRoleParams) WithUserRole(userRole *bool) *GetRoleParams
WithUserRole adds the userRole to the get role params
func (*GetRoleParams) WriteToRequest ¶
func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRoleReader ¶
type GetRoleReader struct {
// contains filtered or unexported fields
}
GetRoleReader is a Reader for the GetRole structure.
func (*GetRoleReader) ReadResponse ¶
func (o *GetRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRoleUnauthorized ¶
type GetRoleUnauthorized struct { }
GetRoleUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewGetRoleUnauthorized ¶
func NewGetRoleUnauthorized() *GetRoleUnauthorized
NewGetRoleUnauthorized creates a GetRoleUnauthorized with default headers values
func (*GetRoleUnauthorized) Code ¶
func (o *GetRoleUnauthorized) Code() int
Code gets the status code for the get role unauthorized response
func (*GetRoleUnauthorized) Error ¶
func (o *GetRoleUnauthorized) Error() string
func (*GetRoleUnauthorized) IsClientError ¶
func (o *GetRoleUnauthorized) IsClientError() bool
IsClientError returns true when this get role unauthorized response has a 4xx status code
func (*GetRoleUnauthorized) IsCode ¶
func (o *GetRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this get role unauthorized response a status code equal to that given
func (*GetRoleUnauthorized) IsRedirect ¶
func (o *GetRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this get role unauthorized response has a 3xx status code
func (*GetRoleUnauthorized) IsServerError ¶
func (o *GetRoleUnauthorized) IsServerError() bool
IsServerError returns true when this get role unauthorized response has a 5xx status code
func (*GetRoleUnauthorized) IsSuccess ¶
func (o *GetRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this get role unauthorized response has a 2xx status code
func (*GetRoleUnauthorized) String ¶
func (o *GetRoleUnauthorized) String() string
type SearchRolesForbidden ¶
SearchRolesForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewSearchRolesForbidden ¶
func NewSearchRolesForbidden() *SearchRolesForbidden
NewSearchRolesForbidden creates a SearchRolesForbidden with default headers values
func (*SearchRolesForbidden) Code ¶
func (o *SearchRolesForbidden) Code() int
Code gets the status code for the search roles forbidden response
func (*SearchRolesForbidden) Error ¶
func (o *SearchRolesForbidden) Error() string
func (*SearchRolesForbidden) GetPayload ¶
func (o *SearchRolesForbidden) GetPayload() *models.RestError
func (*SearchRolesForbidden) IsClientError ¶
func (o *SearchRolesForbidden) IsClientError() bool
IsClientError returns true when this search roles forbidden response has a 4xx status code
func (*SearchRolesForbidden) IsCode ¶
func (o *SearchRolesForbidden) IsCode(code int) bool
IsCode returns true when this search roles forbidden response a status code equal to that given
func (*SearchRolesForbidden) IsRedirect ¶
func (o *SearchRolesForbidden) IsRedirect() bool
IsRedirect returns true when this search roles forbidden response has a 3xx status code
func (*SearchRolesForbidden) IsServerError ¶
func (o *SearchRolesForbidden) IsServerError() bool
IsServerError returns true when this search roles forbidden response has a 5xx status code
func (*SearchRolesForbidden) IsSuccess ¶
func (o *SearchRolesForbidden) IsSuccess() bool
IsSuccess returns true when this search roles forbidden response has a 2xx status code
func (*SearchRolesForbidden) String ¶
func (o *SearchRolesForbidden) String() string
type SearchRolesInternalServerError ¶
SearchRolesInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewSearchRolesInternalServerError ¶
func NewSearchRolesInternalServerError() *SearchRolesInternalServerError
NewSearchRolesInternalServerError creates a SearchRolesInternalServerError with default headers values
func (*SearchRolesInternalServerError) Code ¶
func (o *SearchRolesInternalServerError) Code() int
Code gets the status code for the search roles internal server error response
func (*SearchRolesInternalServerError) Error ¶
func (o *SearchRolesInternalServerError) Error() string
func (*SearchRolesInternalServerError) GetPayload ¶
func (o *SearchRolesInternalServerError) GetPayload() *models.RestError
func (*SearchRolesInternalServerError) IsClientError ¶
func (o *SearchRolesInternalServerError) IsClientError() bool
IsClientError returns true when this search roles internal server error response has a 4xx status code
func (*SearchRolesInternalServerError) IsCode ¶
func (o *SearchRolesInternalServerError) IsCode(code int) bool
IsCode returns true when this search roles internal server error response a status code equal to that given
func (*SearchRolesInternalServerError) IsRedirect ¶
func (o *SearchRolesInternalServerError) IsRedirect() bool
IsRedirect returns true when this search roles internal server error response has a 3xx status code
func (*SearchRolesInternalServerError) IsServerError ¶
func (o *SearchRolesInternalServerError) IsServerError() bool
IsServerError returns true when this search roles internal server error response has a 5xx status code
func (*SearchRolesInternalServerError) IsSuccess ¶
func (o *SearchRolesInternalServerError) IsSuccess() bool
IsSuccess returns true when this search roles internal server error response has a 2xx status code
func (*SearchRolesInternalServerError) String ¶
func (o *SearchRolesInternalServerError) String() string
type SearchRolesNotFound ¶
SearchRolesNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewSearchRolesNotFound ¶
func NewSearchRolesNotFound() *SearchRolesNotFound
NewSearchRolesNotFound creates a SearchRolesNotFound with default headers values
func (*SearchRolesNotFound) Code ¶
func (o *SearchRolesNotFound) Code() int
Code gets the status code for the search roles not found response
func (*SearchRolesNotFound) Error ¶
func (o *SearchRolesNotFound) Error() string
func (*SearchRolesNotFound) GetPayload ¶
func (o *SearchRolesNotFound) GetPayload() *models.RestError
func (*SearchRolesNotFound) IsClientError ¶
func (o *SearchRolesNotFound) IsClientError() bool
IsClientError returns true when this search roles not found response has a 4xx status code
func (*SearchRolesNotFound) IsCode ¶
func (o *SearchRolesNotFound) IsCode(code int) bool
IsCode returns true when this search roles not found response a status code equal to that given
func (*SearchRolesNotFound) IsRedirect ¶
func (o *SearchRolesNotFound) IsRedirect() bool
IsRedirect returns true when this search roles not found response has a 3xx status code
func (*SearchRolesNotFound) IsServerError ¶
func (o *SearchRolesNotFound) IsServerError() bool
IsServerError returns true when this search roles not found response has a 5xx status code
func (*SearchRolesNotFound) IsSuccess ¶
func (o *SearchRolesNotFound) IsSuccess() bool
IsSuccess returns true when this search roles not found response has a 2xx status code
func (*SearchRolesNotFound) String ¶
func (o *SearchRolesNotFound) String() string
type SearchRolesOK ¶
type SearchRolesOK struct {
Payload *models.RestRolesCollection
}
SearchRolesOK describes a response with status code 200, with default header values.
A successful response.
func NewSearchRolesOK ¶
func NewSearchRolesOK() *SearchRolesOK
NewSearchRolesOK creates a SearchRolesOK with default headers values
func (*SearchRolesOK) Code ¶
func (o *SearchRolesOK) Code() int
Code gets the status code for the search roles o k response
func (*SearchRolesOK) Error ¶
func (o *SearchRolesOK) Error() string
func (*SearchRolesOK) GetPayload ¶
func (o *SearchRolesOK) GetPayload() *models.RestRolesCollection
func (*SearchRolesOK) IsClientError ¶
func (o *SearchRolesOK) IsClientError() bool
IsClientError returns true when this search roles o k response has a 4xx status code
func (*SearchRolesOK) IsCode ¶
func (o *SearchRolesOK) IsCode(code int) bool
IsCode returns true when this search roles o k response a status code equal to that given
func (*SearchRolesOK) IsRedirect ¶
func (o *SearchRolesOK) IsRedirect() bool
IsRedirect returns true when this search roles o k response has a 3xx status code
func (*SearchRolesOK) IsServerError ¶
func (o *SearchRolesOK) IsServerError() bool
IsServerError returns true when this search roles o k response has a 5xx status code
func (*SearchRolesOK) IsSuccess ¶
func (o *SearchRolesOK) IsSuccess() bool
IsSuccess returns true when this search roles o k response has a 2xx status code
func (*SearchRolesOK) String ¶
func (o *SearchRolesOK) String() string
type SearchRolesParams ¶
type SearchRolesParams struct { // Body. Body *models.RestSearchRoleRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchRolesParams contains all the parameters to send to the API endpoint
for the search roles operation. Typically these are written to a http.Request.
func NewSearchRolesParams ¶
func NewSearchRolesParams() *SearchRolesParams
NewSearchRolesParams creates a new SearchRolesParams 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 NewSearchRolesParamsWithContext ¶
func NewSearchRolesParamsWithContext(ctx context.Context) *SearchRolesParams
NewSearchRolesParamsWithContext creates a new SearchRolesParams object with the ability to set a context for a request.
func NewSearchRolesParamsWithHTTPClient ¶
func NewSearchRolesParamsWithHTTPClient(client *http.Client) *SearchRolesParams
NewSearchRolesParamsWithHTTPClient creates a new SearchRolesParams object with the ability to set a custom HTTPClient for a request.
func NewSearchRolesParamsWithTimeout ¶
func NewSearchRolesParamsWithTimeout(timeout time.Duration) *SearchRolesParams
NewSearchRolesParamsWithTimeout creates a new SearchRolesParams object with the ability to set a timeout on a request.
func (*SearchRolesParams) SetBody ¶
func (o *SearchRolesParams) SetBody(body *models.RestSearchRoleRequest)
SetBody adds the body to the search roles params
func (*SearchRolesParams) SetContext ¶
func (o *SearchRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the search roles params
func (*SearchRolesParams) SetDefaults ¶
func (o *SearchRolesParams) SetDefaults()
SetDefaults hydrates default values in the search roles params (not the query body).
All values with no default are reset to their zero value.
func (*SearchRolesParams) SetHTTPClient ¶
func (o *SearchRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search roles params
func (*SearchRolesParams) SetTimeout ¶
func (o *SearchRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search roles params
func (*SearchRolesParams) WithBody ¶
func (o *SearchRolesParams) WithBody(body *models.RestSearchRoleRequest) *SearchRolesParams
WithBody adds the body to the search roles params
func (*SearchRolesParams) WithContext ¶
func (o *SearchRolesParams) WithContext(ctx context.Context) *SearchRolesParams
WithContext adds the context to the search roles params
func (*SearchRolesParams) WithDefaults ¶
func (o *SearchRolesParams) WithDefaults() *SearchRolesParams
WithDefaults hydrates default values in the search roles params (not the query body).
All values with no default are reset to their zero value.
func (*SearchRolesParams) WithHTTPClient ¶
func (o *SearchRolesParams) WithHTTPClient(client *http.Client) *SearchRolesParams
WithHTTPClient adds the HTTPClient to the search roles params
func (*SearchRolesParams) WithTimeout ¶
func (o *SearchRolesParams) WithTimeout(timeout time.Duration) *SearchRolesParams
WithTimeout adds the timeout to the search roles params
func (*SearchRolesParams) WriteToRequest ¶
func (o *SearchRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchRolesReader ¶
type SearchRolesReader struct {
// contains filtered or unexported fields
}
SearchRolesReader is a Reader for the SearchRoles structure.
func (*SearchRolesReader) ReadResponse ¶
func (o *SearchRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchRolesUnauthorized ¶
type SearchRolesUnauthorized struct { }
SearchRolesUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewSearchRolesUnauthorized ¶
func NewSearchRolesUnauthorized() *SearchRolesUnauthorized
NewSearchRolesUnauthorized creates a SearchRolesUnauthorized with default headers values
func (*SearchRolesUnauthorized) Code ¶
func (o *SearchRolesUnauthorized) Code() int
Code gets the status code for the search roles unauthorized response
func (*SearchRolesUnauthorized) Error ¶
func (o *SearchRolesUnauthorized) Error() string
func (*SearchRolesUnauthorized) IsClientError ¶
func (o *SearchRolesUnauthorized) IsClientError() bool
IsClientError returns true when this search roles unauthorized response has a 4xx status code
func (*SearchRolesUnauthorized) IsCode ¶
func (o *SearchRolesUnauthorized) IsCode(code int) bool
IsCode returns true when this search roles unauthorized response a status code equal to that given
func (*SearchRolesUnauthorized) IsRedirect ¶
func (o *SearchRolesUnauthorized) IsRedirect() bool
IsRedirect returns true when this search roles unauthorized response has a 3xx status code
func (*SearchRolesUnauthorized) IsServerError ¶
func (o *SearchRolesUnauthorized) IsServerError() bool
IsServerError returns true when this search roles unauthorized response has a 5xx status code
func (*SearchRolesUnauthorized) IsSuccess ¶
func (o *SearchRolesUnauthorized) IsSuccess() bool
IsSuccess returns true when this search roles unauthorized response has a 2xx status code
func (*SearchRolesUnauthorized) String ¶
func (o *SearchRolesUnauthorized) String() string
type SetRoleBody ¶
type SetRoleBody struct { // List of profiles (standard, shared, admin) on which the role will be automatically applied AutoApplies []string `json:"AutoApplies"` // Is used in a stack of roles, this one will always be applied last. ForceOverride bool `json:"ForceOverride,omitempty"` // Whether this role is attached to a Group object GroupRole bool `json:"GroupRole,omitempty"` // Whether this role represents a user team or not IsTeam bool `json:"IsTeam,omitempty"` // Label of this role Label string `json:"Label,omitempty"` // Last modification date of the role LastUpdated int32 `json:"LastUpdated,omitempty"` // List of policies for securing this role access Policies []*models.ServiceResourcePolicy `json:"Policies"` // Whether the policies resolve into an editable state PoliciesContextEditable bool `json:"PoliciesContextEditable,omitempty"` // Whether this role is attached to a User object UserRole bool `json:"UserRole,omitempty"` }
SetRoleBody Role represents a generic set of permissions that can be applied to any users or groups. swagger:model SetRoleBody
func (*SetRoleBody) ContextValidate ¶
ContextValidate validate this set role body based on the context it is used
func (*SetRoleBody) MarshalBinary ¶
func (o *SetRoleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SetRoleBody) UnmarshalBinary ¶
func (o *SetRoleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SetRoleForbidden ¶
SetRoleForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewSetRoleForbidden ¶
func NewSetRoleForbidden() *SetRoleForbidden
NewSetRoleForbidden creates a SetRoleForbidden with default headers values
func (*SetRoleForbidden) Code ¶
func (o *SetRoleForbidden) Code() int
Code gets the status code for the set role forbidden response
func (*SetRoleForbidden) Error ¶
func (o *SetRoleForbidden) Error() string
func (*SetRoleForbidden) GetPayload ¶
func (o *SetRoleForbidden) GetPayload() *models.RestError
func (*SetRoleForbidden) IsClientError ¶
func (o *SetRoleForbidden) IsClientError() bool
IsClientError returns true when this set role forbidden response has a 4xx status code
func (*SetRoleForbidden) IsCode ¶
func (o *SetRoleForbidden) IsCode(code int) bool
IsCode returns true when this set role forbidden response a status code equal to that given
func (*SetRoleForbidden) IsRedirect ¶
func (o *SetRoleForbidden) IsRedirect() bool
IsRedirect returns true when this set role forbidden response has a 3xx status code
func (*SetRoleForbidden) IsServerError ¶
func (o *SetRoleForbidden) IsServerError() bool
IsServerError returns true when this set role forbidden response has a 5xx status code
func (*SetRoleForbidden) IsSuccess ¶
func (o *SetRoleForbidden) IsSuccess() bool
IsSuccess returns true when this set role forbidden response has a 2xx status code
func (*SetRoleForbidden) String ¶
func (o *SetRoleForbidden) String() string
type SetRoleInternalServerError ¶
SetRoleInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewSetRoleInternalServerError ¶
func NewSetRoleInternalServerError() *SetRoleInternalServerError
NewSetRoleInternalServerError creates a SetRoleInternalServerError with default headers values
func (*SetRoleInternalServerError) Code ¶
func (o *SetRoleInternalServerError) Code() int
Code gets the status code for the set role internal server error response
func (*SetRoleInternalServerError) Error ¶
func (o *SetRoleInternalServerError) Error() string
func (*SetRoleInternalServerError) GetPayload ¶
func (o *SetRoleInternalServerError) GetPayload() *models.RestError
func (*SetRoleInternalServerError) IsClientError ¶
func (o *SetRoleInternalServerError) IsClientError() bool
IsClientError returns true when this set role internal server error response has a 4xx status code
func (*SetRoleInternalServerError) IsCode ¶
func (o *SetRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this set role internal server error response a status code equal to that given
func (*SetRoleInternalServerError) IsRedirect ¶
func (o *SetRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this set role internal server error response has a 3xx status code
func (*SetRoleInternalServerError) IsServerError ¶
func (o *SetRoleInternalServerError) IsServerError() bool
IsServerError returns true when this set role internal server error response has a 5xx status code
func (*SetRoleInternalServerError) IsSuccess ¶
func (o *SetRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this set role internal server error response has a 2xx status code
func (*SetRoleInternalServerError) String ¶
func (o *SetRoleInternalServerError) String() string
type SetRoleNotFound ¶
SetRoleNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewSetRoleNotFound ¶
func NewSetRoleNotFound() *SetRoleNotFound
NewSetRoleNotFound creates a SetRoleNotFound with default headers values
func (*SetRoleNotFound) Code ¶
func (o *SetRoleNotFound) Code() int
Code gets the status code for the set role not found response
func (*SetRoleNotFound) Error ¶
func (o *SetRoleNotFound) Error() string
func (*SetRoleNotFound) GetPayload ¶
func (o *SetRoleNotFound) GetPayload() *models.RestError
func (*SetRoleNotFound) IsClientError ¶
func (o *SetRoleNotFound) IsClientError() bool
IsClientError returns true when this set role not found response has a 4xx status code
func (*SetRoleNotFound) IsCode ¶
func (o *SetRoleNotFound) IsCode(code int) bool
IsCode returns true when this set role not found response a status code equal to that given
func (*SetRoleNotFound) IsRedirect ¶
func (o *SetRoleNotFound) IsRedirect() bool
IsRedirect returns true when this set role not found response has a 3xx status code
func (*SetRoleNotFound) IsServerError ¶
func (o *SetRoleNotFound) IsServerError() bool
IsServerError returns true when this set role not found response has a 5xx status code
func (*SetRoleNotFound) IsSuccess ¶
func (o *SetRoleNotFound) IsSuccess() bool
IsSuccess returns true when this set role not found response has a 2xx status code
func (*SetRoleNotFound) String ¶
func (o *SetRoleNotFound) String() string
type SetRoleOK ¶
SetRoleOK describes a response with status code 200, with default header values.
A successful response.
func NewSetRoleOK ¶
func NewSetRoleOK() *SetRoleOK
NewSetRoleOK creates a SetRoleOK with default headers values
func (*SetRoleOK) GetPayload ¶
func (*SetRoleOK) IsClientError ¶
IsClientError returns true when this set role o k response has a 4xx status code
func (*SetRoleOK) IsCode ¶
IsCode returns true when this set role o k response a status code equal to that given
func (*SetRoleOK) IsRedirect ¶
IsRedirect returns true when this set role o k response has a 3xx status code
func (*SetRoleOK) IsServerError ¶
IsServerError returns true when this set role o k response has a 5xx status code
type SetRoleParams ¶
type SetRoleParams struct { /* UUID. Unique identifier of this role */ UUID string // Body. Body SetRoleBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetRoleParams contains all the parameters to send to the API endpoint
for the set role operation. Typically these are written to a http.Request.
func NewSetRoleParams ¶
func NewSetRoleParams() *SetRoleParams
NewSetRoleParams creates a new SetRoleParams 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 NewSetRoleParamsWithContext ¶
func NewSetRoleParamsWithContext(ctx context.Context) *SetRoleParams
NewSetRoleParamsWithContext creates a new SetRoleParams object with the ability to set a context for a request.
func NewSetRoleParamsWithHTTPClient ¶
func NewSetRoleParamsWithHTTPClient(client *http.Client) *SetRoleParams
NewSetRoleParamsWithHTTPClient creates a new SetRoleParams object with the ability to set a custom HTTPClient for a request.
func NewSetRoleParamsWithTimeout ¶
func NewSetRoleParamsWithTimeout(timeout time.Duration) *SetRoleParams
NewSetRoleParamsWithTimeout creates a new SetRoleParams object with the ability to set a timeout on a request.
func (*SetRoleParams) SetBody ¶
func (o *SetRoleParams) SetBody(body SetRoleBody)
SetBody adds the body to the set role params
func (*SetRoleParams) SetContext ¶
func (o *SetRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the set role params
func (*SetRoleParams) SetDefaults ¶
func (o *SetRoleParams) SetDefaults()
SetDefaults hydrates default values in the set role params (not the query body).
All values with no default are reset to their zero value.
func (*SetRoleParams) SetHTTPClient ¶
func (o *SetRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set role params
func (*SetRoleParams) SetTimeout ¶
func (o *SetRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set role params
func (*SetRoleParams) SetUUID ¶
func (o *SetRoleParams) SetUUID(uuid string)
SetUUID adds the uuid to the set role params
func (*SetRoleParams) WithBody ¶
func (o *SetRoleParams) WithBody(body SetRoleBody) *SetRoleParams
WithBody adds the body to the set role params
func (*SetRoleParams) WithContext ¶
func (o *SetRoleParams) WithContext(ctx context.Context) *SetRoleParams
WithContext adds the context to the set role params
func (*SetRoleParams) WithDefaults ¶
func (o *SetRoleParams) WithDefaults() *SetRoleParams
WithDefaults hydrates default values in the set role params (not the query body).
All values with no default are reset to their zero value.
func (*SetRoleParams) WithHTTPClient ¶
func (o *SetRoleParams) WithHTTPClient(client *http.Client) *SetRoleParams
WithHTTPClient adds the HTTPClient to the set role params
func (*SetRoleParams) WithTimeout ¶
func (o *SetRoleParams) WithTimeout(timeout time.Duration) *SetRoleParams
WithTimeout adds the timeout to the set role params
func (*SetRoleParams) WithUUID ¶
func (o *SetRoleParams) WithUUID(uuid string) *SetRoleParams
WithUUID adds the uuid to the set role params
func (*SetRoleParams) WriteToRequest ¶
func (o *SetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetRoleReader ¶
type SetRoleReader struct {
// contains filtered or unexported fields
}
SetRoleReader is a Reader for the SetRole structure.
func (*SetRoleReader) ReadResponse ¶
func (o *SetRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetRoleUnauthorized ¶
type SetRoleUnauthorized struct { }
SetRoleUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewSetRoleUnauthorized ¶
func NewSetRoleUnauthorized() *SetRoleUnauthorized
NewSetRoleUnauthorized creates a SetRoleUnauthorized with default headers values
func (*SetRoleUnauthorized) Code ¶
func (o *SetRoleUnauthorized) Code() int
Code gets the status code for the set role unauthorized response
func (*SetRoleUnauthorized) Error ¶
func (o *SetRoleUnauthorized) Error() string
func (*SetRoleUnauthorized) IsClientError ¶
func (o *SetRoleUnauthorized) IsClientError() bool
IsClientError returns true when this set role unauthorized response has a 4xx status code
func (*SetRoleUnauthorized) IsCode ¶
func (o *SetRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this set role unauthorized response a status code equal to that given
func (*SetRoleUnauthorized) IsRedirect ¶
func (o *SetRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this set role unauthorized response has a 3xx status code
func (*SetRoleUnauthorized) IsServerError ¶
func (o *SetRoleUnauthorized) IsServerError() bool
IsServerError returns true when this set role unauthorized response has a 5xx status code
func (*SetRoleUnauthorized) IsSuccess ¶
func (o *SetRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this set role unauthorized response has a 2xx status code
func (*SetRoleUnauthorized) String ¶
func (o *SetRoleUnauthorized) String() string