Documentation ¶
Index ¶
- type AddRoleAssignmentsBadRequest
- func (o *AddRoleAssignmentsBadRequest) Code() int
- func (o *AddRoleAssignmentsBadRequest) Error() string
- func (o *AddRoleAssignmentsBadRequest) GetPayload() *models.BasicFailedReply
- func (o *AddRoleAssignmentsBadRequest) IsClientError() bool
- func (o *AddRoleAssignmentsBadRequest) IsCode(code int) bool
- func (o *AddRoleAssignmentsBadRequest) IsRedirect() bool
- func (o *AddRoleAssignmentsBadRequest) IsServerError() bool
- func (o *AddRoleAssignmentsBadRequest) IsSuccess() bool
- func (o *AddRoleAssignmentsBadRequest) String() string
- type AddRoleAssignmentsForbidden
- func (o *AddRoleAssignmentsForbidden) Code() int
- func (o *AddRoleAssignmentsForbidden) Error() string
- func (o *AddRoleAssignmentsForbidden) GetPayload() *models.BasicFailedReply
- func (o *AddRoleAssignmentsForbidden) IsClientError() bool
- func (o *AddRoleAssignmentsForbidden) IsCode(code int) bool
- func (o *AddRoleAssignmentsForbidden) IsRedirect() bool
- func (o *AddRoleAssignmentsForbidden) IsServerError() bool
- func (o *AddRoleAssignmentsForbidden) IsSuccess() bool
- func (o *AddRoleAssignmentsForbidden) String() string
- type AddRoleAssignmentsOK
- func (o *AddRoleAssignmentsOK) Code() int
- func (o *AddRoleAssignmentsOK) Error() string
- func (o *AddRoleAssignmentsOK) GetPayload() models.EmptyResponse
- func (o *AddRoleAssignmentsOK) IsClientError() bool
- func (o *AddRoleAssignmentsOK) IsCode(code int) bool
- func (o *AddRoleAssignmentsOK) IsRedirect() bool
- func (o *AddRoleAssignmentsOK) IsServerError() bool
- func (o *AddRoleAssignmentsOK) IsSuccess() bool
- func (o *AddRoleAssignmentsOK) String() string
- type AddRoleAssignmentsParams
- func NewAddRoleAssignmentsParams() *AddRoleAssignmentsParams
- func NewAddRoleAssignmentsParamsWithContext(ctx context.Context) *AddRoleAssignmentsParams
- func NewAddRoleAssignmentsParamsWithHTTPClient(client *http.Client) *AddRoleAssignmentsParams
- func NewAddRoleAssignmentsParamsWithTimeout(timeout time.Duration) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) SetBody(body *models.RoleAssignments)
- func (o *AddRoleAssignmentsParams) SetContext(ctx context.Context)
- func (o *AddRoleAssignmentsParams) SetDefaults()
- func (o *AddRoleAssignmentsParams) SetHTTPClient(client *http.Client)
- func (o *AddRoleAssignmentsParams) SetTimeout(timeout time.Duration)
- func (o *AddRoleAssignmentsParams) SetUserID(userID string)
- func (o *AddRoleAssignmentsParams) WithBody(body *models.RoleAssignments) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WithContext(ctx context.Context) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WithDefaults() *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WithHTTPClient(client *http.Client) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WithTimeout(timeout time.Duration) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WithUserID(userID string) *AddRoleAssignmentsParams
- func (o *AddRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddRoleAssignmentsReader
- type AddRoleAssignmentsUnauthorized
- func (o *AddRoleAssignmentsUnauthorized) Code() int
- func (o *AddRoleAssignmentsUnauthorized) Error() string
- func (o *AddRoleAssignmentsUnauthorized) GetPayload() *models.BasicFailedReply
- func (o *AddRoleAssignmentsUnauthorized) IsClientError() bool
- func (o *AddRoleAssignmentsUnauthorized) IsCode(code int) bool
- func (o *AddRoleAssignmentsUnauthorized) IsRedirect() bool
- func (o *AddRoleAssignmentsUnauthorized) IsServerError() bool
- func (o *AddRoleAssignmentsUnauthorized) IsSuccess() bool
- func (o *AddRoleAssignmentsUnauthorized) String() string
- type Client
- func (a *Client) AddRoleAssignments(params *AddRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddRoleAssignmentsOK, error)
- func (a *Client) RemoveRoleAssignments(params *RemoveRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveRoleAssignmentsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RemoveRoleAssignmentsBadRequest
- func (o *RemoveRoleAssignmentsBadRequest) Code() int
- func (o *RemoveRoleAssignmentsBadRequest) Error() string
- func (o *RemoveRoleAssignmentsBadRequest) GetPayload() *models.BasicFailedReply
- func (o *RemoveRoleAssignmentsBadRequest) IsClientError() bool
- func (o *RemoveRoleAssignmentsBadRequest) IsCode(code int) bool
- func (o *RemoveRoleAssignmentsBadRequest) IsRedirect() bool
- func (o *RemoveRoleAssignmentsBadRequest) IsServerError() bool
- func (o *RemoveRoleAssignmentsBadRequest) IsSuccess() bool
- func (o *RemoveRoleAssignmentsBadRequest) String() string
- type RemoveRoleAssignmentsForbidden
- func (o *RemoveRoleAssignmentsForbidden) Code() int
- func (o *RemoveRoleAssignmentsForbidden) Error() string
- func (o *RemoveRoleAssignmentsForbidden) GetPayload() *models.BasicFailedReply
- func (o *RemoveRoleAssignmentsForbidden) IsClientError() bool
- func (o *RemoveRoleAssignmentsForbidden) IsCode(code int) bool
- func (o *RemoveRoleAssignmentsForbidden) IsRedirect() bool
- func (o *RemoveRoleAssignmentsForbidden) IsServerError() bool
- func (o *RemoveRoleAssignmentsForbidden) IsSuccess() bool
- func (o *RemoveRoleAssignmentsForbidden) String() string
- type RemoveRoleAssignmentsOK
- func (o *RemoveRoleAssignmentsOK) Code() int
- func (o *RemoveRoleAssignmentsOK) Error() string
- func (o *RemoveRoleAssignmentsOK) GetPayload() models.EmptyResponse
- func (o *RemoveRoleAssignmentsOK) IsClientError() bool
- func (o *RemoveRoleAssignmentsOK) IsCode(code int) bool
- func (o *RemoveRoleAssignmentsOK) IsRedirect() bool
- func (o *RemoveRoleAssignmentsOK) IsServerError() bool
- func (o *RemoveRoleAssignmentsOK) IsSuccess() bool
- func (o *RemoveRoleAssignmentsOK) String() string
- type RemoveRoleAssignmentsParams
- func NewRemoveRoleAssignmentsParams() *RemoveRoleAssignmentsParams
- func NewRemoveRoleAssignmentsParamsWithContext(ctx context.Context) *RemoveRoleAssignmentsParams
- func NewRemoveRoleAssignmentsParamsWithHTTPClient(client *http.Client) *RemoveRoleAssignmentsParams
- func NewRemoveRoleAssignmentsParamsWithTimeout(timeout time.Duration) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) SetBody(body *models.RoleAssignments)
- func (o *RemoveRoleAssignmentsParams) SetContext(ctx context.Context)
- func (o *RemoveRoleAssignmentsParams) SetDefaults()
- func (o *RemoveRoleAssignmentsParams) SetForce(force *bool)
- func (o *RemoveRoleAssignmentsParams) SetHTTPClient(client *http.Client)
- func (o *RemoveRoleAssignmentsParams) SetTimeout(timeout time.Duration)
- func (o *RemoveRoleAssignmentsParams) SetUserID(userID string)
- func (o *RemoveRoleAssignmentsParams) WithBody(body *models.RoleAssignments) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithContext(ctx context.Context) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithDefaults() *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithForce(force *bool) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithHTTPClient(client *http.Client) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithTimeout(timeout time.Duration) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WithUserID(userID string) *RemoveRoleAssignmentsParams
- func (o *RemoveRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveRoleAssignmentsReader
- type RemoveRoleAssignmentsUnauthorized
- func (o *RemoveRoleAssignmentsUnauthorized) Code() int
- func (o *RemoveRoleAssignmentsUnauthorized) Error() string
- func (o *RemoveRoleAssignmentsUnauthorized) GetPayload() *models.BasicFailedReply
- func (o *RemoveRoleAssignmentsUnauthorized) IsClientError() bool
- func (o *RemoveRoleAssignmentsUnauthorized) IsCode(code int) bool
- func (o *RemoveRoleAssignmentsUnauthorized) IsRedirect() bool
- func (o *RemoveRoleAssignmentsUnauthorized) IsServerError() bool
- func (o *RemoveRoleAssignmentsUnauthorized) IsSuccess() bool
- func (o *RemoveRoleAssignmentsUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRoleAssignmentsBadRequest ¶
type AddRoleAssignmentsBadRequest struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
AddRoleAssignmentsBadRequest describes a response with status code 400, with default header values.
The target user Id is invalid. (code: `role_assignments.invalid_target_user_id`)
func NewAddRoleAssignmentsBadRequest ¶
func NewAddRoleAssignmentsBadRequest() *AddRoleAssignmentsBadRequest
NewAddRoleAssignmentsBadRequest creates a AddRoleAssignmentsBadRequest with default headers values
func (*AddRoleAssignmentsBadRequest) Code ¶
func (o *AddRoleAssignmentsBadRequest) Code() int
Code gets the status code for the add role assignments bad request response
func (*AddRoleAssignmentsBadRequest) Error ¶
func (o *AddRoleAssignmentsBadRequest) Error() string
func (*AddRoleAssignmentsBadRequest) GetPayload ¶
func (o *AddRoleAssignmentsBadRequest) GetPayload() *models.BasicFailedReply
func (*AddRoleAssignmentsBadRequest) IsClientError ¶
func (o *AddRoleAssignmentsBadRequest) IsClientError() bool
IsClientError returns true when this add role assignments bad request response has a 4xx status code
func (*AddRoleAssignmentsBadRequest) IsCode ¶
func (o *AddRoleAssignmentsBadRequest) IsCode(code int) bool
IsCode returns true when this add role assignments bad request response a status code equal to that given
func (*AddRoleAssignmentsBadRequest) IsRedirect ¶
func (o *AddRoleAssignmentsBadRequest) IsRedirect() bool
IsRedirect returns true when this add role assignments bad request response has a 3xx status code
func (*AddRoleAssignmentsBadRequest) IsServerError ¶
func (o *AddRoleAssignmentsBadRequest) IsServerError() bool
IsServerError returns true when this add role assignments bad request response has a 5xx status code
func (*AddRoleAssignmentsBadRequest) IsSuccess ¶
func (o *AddRoleAssignmentsBadRequest) IsSuccess() bool
IsSuccess returns true when this add role assignments bad request response has a 2xx status code
func (*AddRoleAssignmentsBadRequest) String ¶
func (o *AddRoleAssignmentsBadRequest) String() string
type AddRoleAssignmentsForbidden ¶
type AddRoleAssignmentsForbidden struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
AddRoleAssignmentsForbidden describes a response with status code 403, with default header values.
You are not authorised to add the specified RoleAssignments. (code: `role_assignments.unauthorized_role_assignments`)
func NewAddRoleAssignmentsForbidden ¶
func NewAddRoleAssignmentsForbidden() *AddRoleAssignmentsForbidden
NewAddRoleAssignmentsForbidden creates a AddRoleAssignmentsForbidden with default headers values
func (*AddRoleAssignmentsForbidden) Code ¶
func (o *AddRoleAssignmentsForbidden) Code() int
Code gets the status code for the add role assignments forbidden response
func (*AddRoleAssignmentsForbidden) Error ¶
func (o *AddRoleAssignmentsForbidden) Error() string
func (*AddRoleAssignmentsForbidden) GetPayload ¶
func (o *AddRoleAssignmentsForbidden) GetPayload() *models.BasicFailedReply
func (*AddRoleAssignmentsForbidden) IsClientError ¶
func (o *AddRoleAssignmentsForbidden) IsClientError() bool
IsClientError returns true when this add role assignments forbidden response has a 4xx status code
func (*AddRoleAssignmentsForbidden) IsCode ¶
func (o *AddRoleAssignmentsForbidden) IsCode(code int) bool
IsCode returns true when this add role assignments forbidden response a status code equal to that given
func (*AddRoleAssignmentsForbidden) IsRedirect ¶
func (o *AddRoleAssignmentsForbidden) IsRedirect() bool
IsRedirect returns true when this add role assignments forbidden response has a 3xx status code
func (*AddRoleAssignmentsForbidden) IsServerError ¶
func (o *AddRoleAssignmentsForbidden) IsServerError() bool
IsServerError returns true when this add role assignments forbidden response has a 5xx status code
func (*AddRoleAssignmentsForbidden) IsSuccess ¶
func (o *AddRoleAssignmentsForbidden) IsSuccess() bool
IsSuccess returns true when this add role assignments forbidden response has a 2xx status code
func (*AddRoleAssignmentsForbidden) String ¶
func (o *AddRoleAssignmentsForbidden) String() string
type AddRoleAssignmentsOK ¶
type AddRoleAssignmentsOK struct {
Payload models.EmptyResponse
}
AddRoleAssignmentsOK describes a response with status code 200, with default header values.
Role Assignments were successfully added to the target User
func NewAddRoleAssignmentsOK ¶
func NewAddRoleAssignmentsOK() *AddRoleAssignmentsOK
NewAddRoleAssignmentsOK creates a AddRoleAssignmentsOK with default headers values
func (*AddRoleAssignmentsOK) Code ¶
func (o *AddRoleAssignmentsOK) Code() int
Code gets the status code for the add role assignments o k response
func (*AddRoleAssignmentsOK) Error ¶
func (o *AddRoleAssignmentsOK) Error() string
func (*AddRoleAssignmentsOK) GetPayload ¶
func (o *AddRoleAssignmentsOK) GetPayload() models.EmptyResponse
func (*AddRoleAssignmentsOK) IsClientError ¶
func (o *AddRoleAssignmentsOK) IsClientError() bool
IsClientError returns true when this add role assignments o k response has a 4xx status code
func (*AddRoleAssignmentsOK) IsCode ¶
func (o *AddRoleAssignmentsOK) IsCode(code int) bool
IsCode returns true when this add role assignments o k response a status code equal to that given
func (*AddRoleAssignmentsOK) IsRedirect ¶
func (o *AddRoleAssignmentsOK) IsRedirect() bool
IsRedirect returns true when this add role assignments o k response has a 3xx status code
func (*AddRoleAssignmentsOK) IsServerError ¶
func (o *AddRoleAssignmentsOK) IsServerError() bool
IsServerError returns true when this add role assignments o k response has a 5xx status code
func (*AddRoleAssignmentsOK) IsSuccess ¶
func (o *AddRoleAssignmentsOK) IsSuccess() bool
IsSuccess returns true when this add role assignments o k response has a 2xx status code
func (*AddRoleAssignmentsOK) String ¶
func (o *AddRoleAssignmentsOK) String() string
type AddRoleAssignmentsParams ¶
type AddRoleAssignmentsParams struct { /* Body. The Role Assignments to add */ Body *models.RoleAssignments /* UserID. Identifier for the user; include realm name and id if required */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddRoleAssignmentsParams contains all the parameters to send to the API endpoint
for the add role assignments operation. Typically these are written to a http.Request.
func NewAddRoleAssignmentsParams ¶
func NewAddRoleAssignmentsParams() *AddRoleAssignmentsParams
NewAddRoleAssignmentsParams creates a new AddRoleAssignmentsParams 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 NewAddRoleAssignmentsParamsWithContext ¶
func NewAddRoleAssignmentsParamsWithContext(ctx context.Context) *AddRoleAssignmentsParams
NewAddRoleAssignmentsParamsWithContext creates a new AddRoleAssignmentsParams object with the ability to set a context for a request.
func NewAddRoleAssignmentsParamsWithHTTPClient ¶
func NewAddRoleAssignmentsParamsWithHTTPClient(client *http.Client) *AddRoleAssignmentsParams
NewAddRoleAssignmentsParamsWithHTTPClient creates a new AddRoleAssignmentsParams object with the ability to set a custom HTTPClient for a request.
func NewAddRoleAssignmentsParamsWithTimeout ¶
func NewAddRoleAssignmentsParamsWithTimeout(timeout time.Duration) *AddRoleAssignmentsParams
NewAddRoleAssignmentsParamsWithTimeout creates a new AddRoleAssignmentsParams object with the ability to set a timeout on a request.
func (*AddRoleAssignmentsParams) SetBody ¶
func (o *AddRoleAssignmentsParams) SetBody(body *models.RoleAssignments)
SetBody adds the body to the add role assignments params
func (*AddRoleAssignmentsParams) SetContext ¶
func (o *AddRoleAssignmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the add role assignments params
func (*AddRoleAssignmentsParams) SetDefaults ¶
func (o *AddRoleAssignmentsParams) SetDefaults()
SetDefaults hydrates default values in the add role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*AddRoleAssignmentsParams) SetHTTPClient ¶
func (o *AddRoleAssignmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add role assignments params
func (*AddRoleAssignmentsParams) SetTimeout ¶
func (o *AddRoleAssignmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add role assignments params
func (*AddRoleAssignmentsParams) SetUserID ¶
func (o *AddRoleAssignmentsParams) SetUserID(userID string)
SetUserID adds the userId to the add role assignments params
func (*AddRoleAssignmentsParams) WithBody ¶
func (o *AddRoleAssignmentsParams) WithBody(body *models.RoleAssignments) *AddRoleAssignmentsParams
WithBody adds the body to the add role assignments params
func (*AddRoleAssignmentsParams) WithContext ¶
func (o *AddRoleAssignmentsParams) WithContext(ctx context.Context) *AddRoleAssignmentsParams
WithContext adds the context to the add role assignments params
func (*AddRoleAssignmentsParams) WithDefaults ¶
func (o *AddRoleAssignmentsParams) WithDefaults() *AddRoleAssignmentsParams
WithDefaults hydrates default values in the add role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*AddRoleAssignmentsParams) WithHTTPClient ¶
func (o *AddRoleAssignmentsParams) WithHTTPClient(client *http.Client) *AddRoleAssignmentsParams
WithHTTPClient adds the HTTPClient to the add role assignments params
func (*AddRoleAssignmentsParams) WithTimeout ¶
func (o *AddRoleAssignmentsParams) WithTimeout(timeout time.Duration) *AddRoleAssignmentsParams
WithTimeout adds the timeout to the add role assignments params
func (*AddRoleAssignmentsParams) WithUserID ¶
func (o *AddRoleAssignmentsParams) WithUserID(userID string) *AddRoleAssignmentsParams
WithUserID adds the userID to the add role assignments params
func (*AddRoleAssignmentsParams) WriteToRequest ¶
func (o *AddRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddRoleAssignmentsReader ¶
type AddRoleAssignmentsReader struct {
// contains filtered or unexported fields
}
AddRoleAssignmentsReader is a Reader for the AddRoleAssignments structure.
func (*AddRoleAssignmentsReader) ReadResponse ¶
func (o *AddRoleAssignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddRoleAssignmentsUnauthorized ¶
type AddRoleAssignmentsUnauthorized struct { string }XCloudErrorCodes
AddRoleAssignmentsUnauthorized describes a response with status code 401, with default header values.
Credentials were invalid. (code: `root.unauthorized`)
func NewAddRoleAssignmentsUnauthorized ¶
func NewAddRoleAssignmentsUnauthorized() *AddRoleAssignmentsUnauthorized
NewAddRoleAssignmentsUnauthorized creates a AddRoleAssignmentsUnauthorized with default headers values
func (*AddRoleAssignmentsUnauthorized) Code ¶
func (o *AddRoleAssignmentsUnauthorized) Code() int
Code gets the status code for the add role assignments unauthorized response
func (*AddRoleAssignmentsUnauthorized) Error ¶
func (o *AddRoleAssignmentsUnauthorized) Error() string
func (*AddRoleAssignmentsUnauthorized) GetPayload ¶
func (o *AddRoleAssignmentsUnauthorized) GetPayload() *models.BasicFailedReply
func (*AddRoleAssignmentsUnauthorized) IsClientError ¶
func (o *AddRoleAssignmentsUnauthorized) IsClientError() bool
IsClientError returns true when this add role assignments unauthorized response has a 4xx status code
func (*AddRoleAssignmentsUnauthorized) IsCode ¶
func (o *AddRoleAssignmentsUnauthorized) IsCode(code int) bool
IsCode returns true when this add role assignments unauthorized response a status code equal to that given
func (*AddRoleAssignmentsUnauthorized) IsRedirect ¶
func (o *AddRoleAssignmentsUnauthorized) IsRedirect() bool
IsRedirect returns true when this add role assignments unauthorized response has a 3xx status code
func (*AddRoleAssignmentsUnauthorized) IsServerError ¶
func (o *AddRoleAssignmentsUnauthorized) IsServerError() bool
IsServerError returns true when this add role assignments unauthorized response has a 5xx status code
func (*AddRoleAssignmentsUnauthorized) IsSuccess ¶
func (o *AddRoleAssignmentsUnauthorized) IsSuccess() bool
IsSuccess returns true when this add role assignments unauthorized response has a 2xx status code
func (*AddRoleAssignmentsUnauthorized) String ¶
func (o *AddRoleAssignmentsUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user role assignments API
func (*Client) AddRoleAssignments ¶
func (a *Client) AddRoleAssignments(params *AddRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleAssignmentsOK, error)
AddRoleAssignments adds role assignments
Adds a set of RoleAssignments to the specified User. Currently unavailable in self-hosted ECE.
func (*Client) RemoveRoleAssignments ¶
func (a *Client) RemoveRoleAssignments(params *RemoveRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleAssignmentsOK, error)
RemoveRoleAssignments removes role assignments
Removes a set of RoleAssignments from the specified User. Currently unavailable in self-hosted ECE.
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 { AddRoleAssignments(params *AddRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleAssignmentsOK, error) RemoveRoleAssignments(params *RemoveRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleAssignmentsOK, 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 user role assignments API client.
type RemoveRoleAssignmentsBadRequest ¶
type RemoveRoleAssignmentsBadRequest struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
RemoveRoleAssignmentsBadRequest describes a response with status code 400, with default header values.
The target user Id is invalid. (code: `role_assignments.invalid_target_user_id`)
func NewRemoveRoleAssignmentsBadRequest ¶
func NewRemoveRoleAssignmentsBadRequest() *RemoveRoleAssignmentsBadRequest
NewRemoveRoleAssignmentsBadRequest creates a RemoveRoleAssignmentsBadRequest with default headers values
func (*RemoveRoleAssignmentsBadRequest) Code ¶
func (o *RemoveRoleAssignmentsBadRequest) Code() int
Code gets the status code for the remove role assignments bad request response
func (*RemoveRoleAssignmentsBadRequest) Error ¶
func (o *RemoveRoleAssignmentsBadRequest) Error() string
func (*RemoveRoleAssignmentsBadRequest) GetPayload ¶
func (o *RemoveRoleAssignmentsBadRequest) GetPayload() *models.BasicFailedReply
func (*RemoveRoleAssignmentsBadRequest) IsClientError ¶
func (o *RemoveRoleAssignmentsBadRequest) IsClientError() bool
IsClientError returns true when this remove role assignments bad request response has a 4xx status code
func (*RemoveRoleAssignmentsBadRequest) IsCode ¶
func (o *RemoveRoleAssignmentsBadRequest) IsCode(code int) bool
IsCode returns true when this remove role assignments bad request response a status code equal to that given
func (*RemoveRoleAssignmentsBadRequest) IsRedirect ¶
func (o *RemoveRoleAssignmentsBadRequest) IsRedirect() bool
IsRedirect returns true when this remove role assignments bad request response has a 3xx status code
func (*RemoveRoleAssignmentsBadRequest) IsServerError ¶
func (o *RemoveRoleAssignmentsBadRequest) IsServerError() bool
IsServerError returns true when this remove role assignments bad request response has a 5xx status code
func (*RemoveRoleAssignmentsBadRequest) IsSuccess ¶
func (o *RemoveRoleAssignmentsBadRequest) IsSuccess() bool
IsSuccess returns true when this remove role assignments bad request response has a 2xx status code
func (*RemoveRoleAssignmentsBadRequest) String ¶
func (o *RemoveRoleAssignmentsBadRequest) String() string
type RemoveRoleAssignmentsForbidden ¶
type RemoveRoleAssignmentsForbidden struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
RemoveRoleAssignmentsForbidden describes a response with status code 403, with default header values.
You are not authorised to remove the specified RoleAssignments. (code: `role_assignments.unauthorized_role_assignments`)
func NewRemoveRoleAssignmentsForbidden ¶
func NewRemoveRoleAssignmentsForbidden() *RemoveRoleAssignmentsForbidden
NewRemoveRoleAssignmentsForbidden creates a RemoveRoleAssignmentsForbidden with default headers values
func (*RemoveRoleAssignmentsForbidden) Code ¶
func (o *RemoveRoleAssignmentsForbidden) Code() int
Code gets the status code for the remove role assignments forbidden response
func (*RemoveRoleAssignmentsForbidden) Error ¶
func (o *RemoveRoleAssignmentsForbidden) Error() string
func (*RemoveRoleAssignmentsForbidden) GetPayload ¶
func (o *RemoveRoleAssignmentsForbidden) GetPayload() *models.BasicFailedReply
func (*RemoveRoleAssignmentsForbidden) IsClientError ¶
func (o *RemoveRoleAssignmentsForbidden) IsClientError() bool
IsClientError returns true when this remove role assignments forbidden response has a 4xx status code
func (*RemoveRoleAssignmentsForbidden) IsCode ¶
func (o *RemoveRoleAssignmentsForbidden) IsCode(code int) bool
IsCode returns true when this remove role assignments forbidden response a status code equal to that given
func (*RemoveRoleAssignmentsForbidden) IsRedirect ¶
func (o *RemoveRoleAssignmentsForbidden) IsRedirect() bool
IsRedirect returns true when this remove role assignments forbidden response has a 3xx status code
func (*RemoveRoleAssignmentsForbidden) IsServerError ¶
func (o *RemoveRoleAssignmentsForbidden) IsServerError() bool
IsServerError returns true when this remove role assignments forbidden response has a 5xx status code
func (*RemoveRoleAssignmentsForbidden) IsSuccess ¶
func (o *RemoveRoleAssignmentsForbidden) IsSuccess() bool
IsSuccess returns true when this remove role assignments forbidden response has a 2xx status code
func (*RemoveRoleAssignmentsForbidden) String ¶
func (o *RemoveRoleAssignmentsForbidden) String() string
type RemoveRoleAssignmentsOK ¶
type RemoveRoleAssignmentsOK struct {
Payload models.EmptyResponse
}
RemoveRoleAssignmentsOK describes a response with status code 200, with default header values.
Role Assignments were successfully removed from the target User
func NewRemoveRoleAssignmentsOK ¶
func NewRemoveRoleAssignmentsOK() *RemoveRoleAssignmentsOK
NewRemoveRoleAssignmentsOK creates a RemoveRoleAssignmentsOK with default headers values
func (*RemoveRoleAssignmentsOK) Code ¶
func (o *RemoveRoleAssignmentsOK) Code() int
Code gets the status code for the remove role assignments o k response
func (*RemoveRoleAssignmentsOK) Error ¶
func (o *RemoveRoleAssignmentsOK) Error() string
func (*RemoveRoleAssignmentsOK) GetPayload ¶
func (o *RemoveRoleAssignmentsOK) GetPayload() models.EmptyResponse
func (*RemoveRoleAssignmentsOK) IsClientError ¶
func (o *RemoveRoleAssignmentsOK) IsClientError() bool
IsClientError returns true when this remove role assignments o k response has a 4xx status code
func (*RemoveRoleAssignmentsOK) IsCode ¶
func (o *RemoveRoleAssignmentsOK) IsCode(code int) bool
IsCode returns true when this remove role assignments o k response a status code equal to that given
func (*RemoveRoleAssignmentsOK) IsRedirect ¶
func (o *RemoveRoleAssignmentsOK) IsRedirect() bool
IsRedirect returns true when this remove role assignments o k response has a 3xx status code
func (*RemoveRoleAssignmentsOK) IsServerError ¶
func (o *RemoveRoleAssignmentsOK) IsServerError() bool
IsServerError returns true when this remove role assignments o k response has a 5xx status code
func (*RemoveRoleAssignmentsOK) IsSuccess ¶
func (o *RemoveRoleAssignmentsOK) IsSuccess() bool
IsSuccess returns true when this remove role assignments o k response has a 2xx status code
func (*RemoveRoleAssignmentsOK) String ¶
func (o *RemoveRoleAssignmentsOK) String() string
type RemoveRoleAssignmentsParams ¶
type RemoveRoleAssignmentsParams struct { /* Body. The Role Assignments to remove */ Body *models.RoleAssignments /* Force. Whether or not to force the removal of role assignments (effective only for Platform Admins) */ Force *bool /* UserID. Identifier for the user; include realm name and id if required */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveRoleAssignmentsParams contains all the parameters to send to the API endpoint
for the remove role assignments operation. Typically these are written to a http.Request.
func NewRemoveRoleAssignmentsParams ¶
func NewRemoveRoleAssignmentsParams() *RemoveRoleAssignmentsParams
NewRemoveRoleAssignmentsParams creates a new RemoveRoleAssignmentsParams 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 NewRemoveRoleAssignmentsParamsWithContext ¶
func NewRemoveRoleAssignmentsParamsWithContext(ctx context.Context) *RemoveRoleAssignmentsParams
NewRemoveRoleAssignmentsParamsWithContext creates a new RemoveRoleAssignmentsParams object with the ability to set a context for a request.
func NewRemoveRoleAssignmentsParamsWithHTTPClient ¶
func NewRemoveRoleAssignmentsParamsWithHTTPClient(client *http.Client) *RemoveRoleAssignmentsParams
NewRemoveRoleAssignmentsParamsWithHTTPClient creates a new RemoveRoleAssignmentsParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveRoleAssignmentsParamsWithTimeout ¶
func NewRemoveRoleAssignmentsParamsWithTimeout(timeout time.Duration) *RemoveRoleAssignmentsParams
NewRemoveRoleAssignmentsParamsWithTimeout creates a new RemoveRoleAssignmentsParams object with the ability to set a timeout on a request.
func (*RemoveRoleAssignmentsParams) SetBody ¶
func (o *RemoveRoleAssignmentsParams) SetBody(body *models.RoleAssignments)
SetBody adds the body to the remove role assignments params
func (*RemoveRoleAssignmentsParams) SetContext ¶
func (o *RemoveRoleAssignmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the remove role assignments params
func (*RemoveRoleAssignmentsParams) SetDefaults ¶
func (o *RemoveRoleAssignmentsParams) SetDefaults()
SetDefaults hydrates default values in the remove role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRoleAssignmentsParams) SetForce ¶
func (o *RemoveRoleAssignmentsParams) SetForce(force *bool)
SetForce adds the force to the remove role assignments params
func (*RemoveRoleAssignmentsParams) SetHTTPClient ¶
func (o *RemoveRoleAssignmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove role assignments params
func (*RemoveRoleAssignmentsParams) SetTimeout ¶
func (o *RemoveRoleAssignmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove role assignments params
func (*RemoveRoleAssignmentsParams) SetUserID ¶
func (o *RemoveRoleAssignmentsParams) SetUserID(userID string)
SetUserID adds the userId to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithBody ¶
func (o *RemoveRoleAssignmentsParams) WithBody(body *models.RoleAssignments) *RemoveRoleAssignmentsParams
WithBody adds the body to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithContext ¶
func (o *RemoveRoleAssignmentsParams) WithContext(ctx context.Context) *RemoveRoleAssignmentsParams
WithContext adds the context to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithDefaults ¶
func (o *RemoveRoleAssignmentsParams) WithDefaults() *RemoveRoleAssignmentsParams
WithDefaults hydrates default values in the remove role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveRoleAssignmentsParams) WithForce ¶
func (o *RemoveRoleAssignmentsParams) WithForce(force *bool) *RemoveRoleAssignmentsParams
WithForce adds the force to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithHTTPClient ¶
func (o *RemoveRoleAssignmentsParams) WithHTTPClient(client *http.Client) *RemoveRoleAssignmentsParams
WithHTTPClient adds the HTTPClient to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithTimeout ¶
func (o *RemoveRoleAssignmentsParams) WithTimeout(timeout time.Duration) *RemoveRoleAssignmentsParams
WithTimeout adds the timeout to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WithUserID ¶
func (o *RemoveRoleAssignmentsParams) WithUserID(userID string) *RemoveRoleAssignmentsParams
WithUserID adds the userID to the remove role assignments params
func (*RemoveRoleAssignmentsParams) WriteToRequest ¶
func (o *RemoveRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveRoleAssignmentsReader ¶
type RemoveRoleAssignmentsReader struct {
// contains filtered or unexported fields
}
RemoveRoleAssignmentsReader is a Reader for the RemoveRoleAssignments structure.
func (*RemoveRoleAssignmentsReader) ReadResponse ¶
func (o *RemoveRoleAssignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveRoleAssignmentsUnauthorized ¶
type RemoveRoleAssignmentsUnauthorized struct { string }XCloudErrorCodes
RemoveRoleAssignmentsUnauthorized describes a response with status code 401, with default header values.
Credentials were invalid. (code: `root.unauthorized`)
func NewRemoveRoleAssignmentsUnauthorized ¶
func NewRemoveRoleAssignmentsUnauthorized() *RemoveRoleAssignmentsUnauthorized
NewRemoveRoleAssignmentsUnauthorized creates a RemoveRoleAssignmentsUnauthorized with default headers values
func (*RemoveRoleAssignmentsUnauthorized) Code ¶
func (o *RemoveRoleAssignmentsUnauthorized) Code() int
Code gets the status code for the remove role assignments unauthorized response
func (*RemoveRoleAssignmentsUnauthorized) Error ¶
func (o *RemoveRoleAssignmentsUnauthorized) Error() string
func (*RemoveRoleAssignmentsUnauthorized) GetPayload ¶
func (o *RemoveRoleAssignmentsUnauthorized) GetPayload() *models.BasicFailedReply
func (*RemoveRoleAssignmentsUnauthorized) IsClientError ¶
func (o *RemoveRoleAssignmentsUnauthorized) IsClientError() bool
IsClientError returns true when this remove role assignments unauthorized response has a 4xx status code
func (*RemoveRoleAssignmentsUnauthorized) IsCode ¶
func (o *RemoveRoleAssignmentsUnauthorized) IsCode(code int) bool
IsCode returns true when this remove role assignments unauthorized response a status code equal to that given
func (*RemoveRoleAssignmentsUnauthorized) IsRedirect ¶
func (o *RemoveRoleAssignmentsUnauthorized) IsRedirect() bool
IsRedirect returns true when this remove role assignments unauthorized response has a 3xx status code
func (*RemoveRoleAssignmentsUnauthorized) IsServerError ¶
func (o *RemoveRoleAssignmentsUnauthorized) IsServerError() bool
IsServerError returns true when this remove role assignments unauthorized response has a 5xx status code
func (*RemoveRoleAssignmentsUnauthorized) IsSuccess ¶
func (o *RemoveRoleAssignmentsUnauthorized) IsSuccess() bool
IsSuccess returns true when this remove role assignments unauthorized response has a 2xx status code
func (*RemoveRoleAssignmentsUnauthorized) String ¶
func (o *RemoveRoleAssignmentsUnauthorized) String() string