Documentation ¶
Index ¶
- type Client
- type CreateRolesBadRequest
- func (o *CreateRolesBadRequest) Code() int
- func (o *CreateRolesBadRequest) Error() string
- func (o *CreateRolesBadRequest) IsClientError() bool
- func (o *CreateRolesBadRequest) IsCode(code int) bool
- func (o *CreateRolesBadRequest) IsRedirect() bool
- func (o *CreateRolesBadRequest) IsServerError() bool
- func (o *CreateRolesBadRequest) IsSuccess() bool
- type CreateRolesConflict
- func (o *CreateRolesConflict) Code() int
- func (o *CreateRolesConflict) Error() string
- func (o *CreateRolesConflict) IsClientError() bool
- func (o *CreateRolesConflict) IsCode(code int) bool
- func (o *CreateRolesConflict) IsRedirect() bool
- func (o *CreateRolesConflict) IsServerError() bool
- func (o *CreateRolesConflict) IsSuccess() bool
- type CreateRolesCreated
- func (o *CreateRolesCreated) Code() int
- func (o *CreateRolesCreated) Error() string
- func (o *CreateRolesCreated) IsClientError() bool
- func (o *CreateRolesCreated) IsCode(code int) bool
- func (o *CreateRolesCreated) IsRedirect() bool
- func (o *CreateRolesCreated) IsServerError() bool
- func (o *CreateRolesCreated) IsSuccess() bool
- type CreateRolesReader
- type CreateRolesRequest
- func (a *CreateRolesRequest) Do() (*CreateRolesCreated, error)
- func (o *CreateRolesRequest) FromJson(j string) (*CreateRolesRequest, error)
- func (a *CreateRolesRequest) MustDo() *CreateRolesCreated
- func (o *CreateRolesRequest) WithContext(ctx context.Context) *CreateRolesRequest
- func (o *CreateRolesRequest) WithHTTPClient(client *http.Client) *CreateRolesRequest
- func (o *CreateRolesRequest) WithRoleCreationRequest(roleCreationRequest models.RoleCreation) *CreateRolesRequest
- func (o *CreateRolesRequest) WithoutRoleCreationRequest() *CreateRolesRequest
- func (o *CreateRolesRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRoleConflict
- func (o *DeleteRoleConflict) Code() int
- func (o *DeleteRoleConflict) Error() string
- func (o *DeleteRoleConflict) IsClientError() bool
- func (o *DeleteRoleConflict) IsCode(code int) bool
- func (o *DeleteRoleConflict) IsRedirect() bool
- func (o *DeleteRoleConflict) IsServerError() bool
- func (o *DeleteRoleConflict) IsSuccess() bool
- type DeleteRoleNoContent
- func (o *DeleteRoleNoContent) Code() int
- func (o *DeleteRoleNoContent) Error() string
- func (o *DeleteRoleNoContent) IsClientError() bool
- func (o *DeleteRoleNoContent) IsCode(code int) bool
- func (o *DeleteRoleNoContent) IsRedirect() bool
- func (o *DeleteRoleNoContent) IsServerError() bool
- func (o *DeleteRoleNoContent) IsSuccess() bool
- type DeleteRoleNotFound
- func (o *DeleteRoleNotFound) Code() int
- func (o *DeleteRoleNotFound) Error() string
- 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
- type DeleteRoleReader
- type DeleteRoleRequest
- func (a *DeleteRoleRequest) Do() (*DeleteRoleNoContent, error)
- func (o *DeleteRoleRequest) FromJson(j string) (*DeleteRoleRequest, error)
- func (a *DeleteRoleRequest) MustDo() *DeleteRoleNoContent
- func (o *DeleteRoleRequest) WithContext(ctx context.Context) *DeleteRoleRequest
- func (o *DeleteRoleRequest) WithHTTPClient(client *http.Client) *DeleteRoleRequest
- func (o *DeleteRoleRequest) WithRoleID(roleID strfmt.UUID) *DeleteRoleRequest
- func (o *DeleteRoleRequest) WithVersion(version int64) *DeleteRoleRequest
- func (o *DeleteRoleRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoleNotFound
- func (o *GetRoleNotFound) Code() int
- func (o *GetRoleNotFound) Error() string
- 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
- type GetRoleOK
- type GetRoleReader
- type GetRoleRequest
- func (a *GetRoleRequest) Do() (*GetRoleOK, error)
- func (o *GetRoleRequest) FromJson(j string) (*GetRoleRequest, error)
- func (a *GetRoleRequest) MustDo() *GetRoleOK
- func (o *GetRoleRequest) WithContext(ctx context.Context) *GetRoleRequest
- func (o *GetRoleRequest) WithHTTPClient(client *http.Client) *GetRoleRequest
- func (o *GetRoleRequest) WithRoleID(roleID strfmt.UUID) *GetRoleRequest
- func (o *GetRoleRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRolesOK
- type ListRolesReader
- type ListRolesRequest
- func (a *ListRolesRequest) Do() (*ListRolesOK, error)
- func (o *ListRolesRequest) FromJson(j string) (*ListRolesRequest, error)
- func (a *ListRolesRequest) MustDo() *ListRolesOK
- func (o *ListRolesRequest) WithContext(ctx context.Context) *ListRolesRequest
- func (o *ListRolesRequest) WithHTTPClient(client *http.Client) *ListRolesRequest
- func (o *ListRolesRequest) WithPageNumber(pageNumber int64) *ListRolesRequest
- func (o *ListRolesRequest) WithPageSize(pageSize int64) *ListRolesRequest
- func (o *ListRolesRequest) WithoutPageNumber() *ListRolesRequest
- func (o *ListRolesRequest) WithoutPageSize() *ListRolesRequest
- func (o *ListRolesRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client for roles API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, defaults client.Defaults) *Client
New creates a new roles API client.
func (*Client) CreateRoles ¶
func (c *Client) CreateRoles() *CreateRolesRequest
Client.CreateRoles creates a new CreateRolesRequest object with the default values initialized.
func (*Client) DeleteRole ¶
func (c *Client) DeleteRole() *DeleteRoleRequest
Client.DeleteRole creates a new DeleteRoleRequest object with the default values initialized.
func (*Client) GetRole ¶
func (c *Client) GetRole() *GetRoleRequest
Client.GetRole creates a new GetRoleRequest object with the default values initialized.
func (*Client) ListRoles ¶
func (c *Client) ListRoles() *ListRolesRequest
Client.ListRoles creates a new ListRolesRequest object with the default values initialized.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateRolesBadRequest ¶
CreateRolesBadRequest handles this case with default header values.
Bad request
func NewCreateRolesBadRequest ¶
func NewCreateRolesBadRequest() *CreateRolesBadRequest
NewCreateRolesBadRequest creates a CreateRolesBadRequest with default headers values
func (*CreateRolesBadRequest) Code ¶
func (o *CreateRolesBadRequest) Code() int
Code gets the status code for the create roles bad request response
func (*CreateRolesBadRequest) Error ¶
func (o *CreateRolesBadRequest) Error() string
func (*CreateRolesBadRequest) IsClientError ¶
func (o *CreateRolesBadRequest) IsClientError() bool
IsClientError returns true when this create roles bad request response has a 4xx status code
func (*CreateRolesBadRequest) IsCode ¶
func (o *CreateRolesBadRequest) IsCode(code int) bool
IsCode returns true when this create roles bad request response a status code equal to that given
func (*CreateRolesBadRequest) IsRedirect ¶
func (o *CreateRolesBadRequest) IsRedirect() bool
IsRedirect returns true when this create roles bad request response has a 3xx status code
func (*CreateRolesBadRequest) IsServerError ¶
func (o *CreateRolesBadRequest) IsServerError() bool
IsServerError returns true when this create roles bad request response has a 5xx status code
func (*CreateRolesBadRequest) IsSuccess ¶
func (o *CreateRolesBadRequest) IsSuccess() bool
IsSuccess returns true when this create roles bad request response has a 2xx status code
type CreateRolesConflict ¶
CreateRolesConflict handles this case with default header values.
Conflict
func NewCreateRolesConflict ¶
func NewCreateRolesConflict() *CreateRolesConflict
NewCreateRolesConflict creates a CreateRolesConflict with default headers values
func (*CreateRolesConflict) Code ¶
func (o *CreateRolesConflict) Code() int
Code gets the status code for the create roles conflict response
func (*CreateRolesConflict) Error ¶
func (o *CreateRolesConflict) Error() string
func (*CreateRolesConflict) IsClientError ¶
func (o *CreateRolesConflict) IsClientError() bool
IsClientError returns true when this create roles conflict response has a 4xx status code
func (*CreateRolesConflict) IsCode ¶
func (o *CreateRolesConflict) IsCode(code int) bool
IsCode returns true when this create roles conflict response a status code equal to that given
func (*CreateRolesConflict) IsRedirect ¶
func (o *CreateRolesConflict) IsRedirect() bool
IsRedirect returns true when this create roles conflict response has a 3xx status code
func (*CreateRolesConflict) IsServerError ¶
func (o *CreateRolesConflict) IsServerError() bool
IsServerError returns true when this create roles conflict response has a 5xx status code
func (*CreateRolesConflict) IsSuccess ¶
func (o *CreateRolesConflict) IsSuccess() bool
IsSuccess returns true when this create roles conflict response has a 2xx status code
type CreateRolesCreated ¶
type CreateRolesCreated struct { // isStream: false *models.RoleCreationResponse }
CreateRolesCreated handles this case with default header values.
Role creation response
func NewCreateRolesCreated ¶
func NewCreateRolesCreated() *CreateRolesCreated
NewCreateRolesCreated creates a CreateRolesCreated with default headers values
func (*CreateRolesCreated) Code ¶
func (o *CreateRolesCreated) Code() int
Code gets the status code for the create roles created response
func (*CreateRolesCreated) Error ¶
func (o *CreateRolesCreated) Error() string
func (*CreateRolesCreated) IsClientError ¶
func (o *CreateRolesCreated) IsClientError() bool
IsClientError returns true when this create roles created response has a 4xx status code
func (*CreateRolesCreated) IsCode ¶
func (o *CreateRolesCreated) IsCode(code int) bool
IsCode returns true when this create roles created response a status code equal to that given
func (*CreateRolesCreated) IsRedirect ¶
func (o *CreateRolesCreated) IsRedirect() bool
IsRedirect returns true when this create roles created response has a 3xx status code
func (*CreateRolesCreated) IsServerError ¶
func (o *CreateRolesCreated) IsServerError() bool
IsServerError returns true when this create roles created response has a 5xx status code
func (*CreateRolesCreated) IsSuccess ¶
func (o *CreateRolesCreated) IsSuccess() bool
IsSuccess returns true when this create roles created response has a 2xx status code
type CreateRolesReader ¶
type CreateRolesReader struct {
// contains filtered or unexported fields
}
CreateRolesReader is a Reader for the CreateRoles structure.
func (*CreateRolesReader) ReadResponse ¶
func (o *CreateRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateRolesRequest ¶
type CreateRolesRequest struct { *models.RoleCreation Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
func (*CreateRolesRequest) Do ¶
func (a *CreateRolesRequest) Do() (*CreateRolesCreated, error)
create roles API
func (*CreateRolesRequest) FromJson ¶
func (o *CreateRolesRequest) FromJson(j string) (*CreateRolesRequest, error)
func (*CreateRolesRequest) MustDo ¶
func (a *CreateRolesRequest) MustDo() *CreateRolesCreated
func (*CreateRolesRequest) WithContext ¶
func (o *CreateRolesRequest) WithContext(ctx context.Context) *CreateRolesRequest
//////////////// WithContext adds the context to the create roles Request
func (*CreateRolesRequest) WithHTTPClient ¶
func (o *CreateRolesRequest) WithHTTPClient(client *http.Client) *CreateRolesRequest
WithHTTPClient adds the HTTPClient to the create roles Request
func (*CreateRolesRequest) WithRoleCreationRequest ¶
func (o *CreateRolesRequest) WithRoleCreationRequest(roleCreationRequest models.RoleCreation) *CreateRolesRequest
func (*CreateRolesRequest) WithoutRoleCreationRequest ¶
func (o *CreateRolesRequest) WithoutRoleCreationRequest() *CreateRolesRequest
func (*CreateRolesRequest) WriteToRequest ¶
func (o *CreateRolesRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these Request to a swagger request
type DeleteRoleConflict ¶
DeleteRoleConflict handles this case with default header values.
Conflict
func NewDeleteRoleConflict ¶
func NewDeleteRoleConflict() *DeleteRoleConflict
NewDeleteRoleConflict creates a DeleteRoleConflict with default headers values
func (*DeleteRoleConflict) Code ¶
func (o *DeleteRoleConflict) Code() int
Code gets the status code for the delete role conflict response
func (*DeleteRoleConflict) Error ¶
func (o *DeleteRoleConflict) Error() string
func (*DeleteRoleConflict) IsClientError ¶
func (o *DeleteRoleConflict) IsClientError() bool
IsClientError returns true when this delete role conflict response has a 4xx status code
func (*DeleteRoleConflict) IsCode ¶
func (o *DeleteRoleConflict) IsCode(code int) bool
IsCode returns true when this delete role conflict response a status code equal to that given
func (*DeleteRoleConflict) IsRedirect ¶
func (o *DeleteRoleConflict) IsRedirect() bool
IsRedirect returns true when this delete role conflict response has a 3xx status code
func (*DeleteRoleConflict) IsServerError ¶
func (o *DeleteRoleConflict) IsServerError() bool
IsServerError returns true when this delete role conflict response has a 5xx status code
func (*DeleteRoleConflict) IsSuccess ¶
func (o *DeleteRoleConflict) IsSuccess() bool
IsSuccess returns true when this delete role conflict response has a 2xx status code
type DeleteRoleNoContent ¶
type DeleteRoleNoContent struct { }
DeleteRoleNoContent handles this case with default header values.
Role deleted
func NewDeleteRoleNoContent ¶
func NewDeleteRoleNoContent() *DeleteRoleNoContent
NewDeleteRoleNoContent creates a DeleteRoleNoContent with default headers values
func (*DeleteRoleNoContent) Code ¶
func (o *DeleteRoleNoContent) Code() int
Code gets the status code for the delete role no content response
func (*DeleteRoleNoContent) Error ¶
func (o *DeleteRoleNoContent) Error() string
func (*DeleteRoleNoContent) IsClientError ¶
func (o *DeleteRoleNoContent) IsClientError() bool
IsClientError returns true when this delete role no content response has a 4xx status code
func (*DeleteRoleNoContent) IsCode ¶
func (o *DeleteRoleNoContent) IsCode(code int) bool
IsCode returns true when this delete role no content response a status code equal to that given
func (*DeleteRoleNoContent) IsRedirect ¶
func (o *DeleteRoleNoContent) IsRedirect() bool
IsRedirect returns true when this delete role no content response has a 3xx status code
func (*DeleteRoleNoContent) IsServerError ¶
func (o *DeleteRoleNoContent) IsServerError() bool
IsServerError returns true when this delete role no content response has a 5xx status code
func (*DeleteRoleNoContent) IsSuccess ¶
func (o *DeleteRoleNoContent) IsSuccess() bool
IsSuccess returns true when this delete role no content response has a 2xx status code
type DeleteRoleNotFound ¶
DeleteRoleNotFound handles this case with default header values.
Not Found
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) 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
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 DeleteRoleRequest ¶
type DeleteRoleRequest struct { RoleID strfmt.UUID Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
func (*DeleteRoleRequest) Do ¶
func (a *DeleteRoleRequest) Do() (*DeleteRoleNoContent, error)
delete role API
func (*DeleteRoleRequest) FromJson ¶
func (o *DeleteRoleRequest) FromJson(j string) (*DeleteRoleRequest, error)
func (*DeleteRoleRequest) MustDo ¶
func (a *DeleteRoleRequest) MustDo() *DeleteRoleNoContent
func (*DeleteRoleRequest) WithContext ¶
func (o *DeleteRoleRequest) WithContext(ctx context.Context) *DeleteRoleRequest
//////////////// WithContext adds the context to the delete role Request
func (*DeleteRoleRequest) WithHTTPClient ¶
func (o *DeleteRoleRequest) WithHTTPClient(client *http.Client) *DeleteRoleRequest
WithHTTPClient adds the HTTPClient to the delete role Request
func (*DeleteRoleRequest) WithRoleID ¶
func (o *DeleteRoleRequest) WithRoleID(roleID strfmt.UUID) *DeleteRoleRequest
func (*DeleteRoleRequest) WithVersion ¶
func (o *DeleteRoleRequest) WithVersion(version int64) *DeleteRoleRequest
func (*DeleteRoleRequest) WriteToRequest ¶
func (o *DeleteRoleRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these Request to a swagger request
type GetRoleNotFound ¶
GetRoleNotFound handles this case with default header values.
Not Found
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) 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
type GetRoleOK ¶
type GetRoleOK struct { // isStream: false *models.RoleDetailsResponse }
GetRoleOK handles this case with default header values.
Role details
func NewGetRoleOK ¶
func NewGetRoleOK() *GetRoleOK
NewGetRoleOK creates a GetRoleOK with default headers values
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 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 GetRoleRequest ¶
type GetRoleRequest struct { RoleID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
func (*GetRoleRequest) FromJson ¶
func (o *GetRoleRequest) FromJson(j string) (*GetRoleRequest, error)
func (*GetRoleRequest) MustDo ¶
func (a *GetRoleRequest) MustDo() *GetRoleOK
func (*GetRoleRequest) WithContext ¶
func (o *GetRoleRequest) WithContext(ctx context.Context) *GetRoleRequest
//////////////// WithContext adds the context to the get role Request
func (*GetRoleRequest) WithHTTPClient ¶
func (o *GetRoleRequest) WithHTTPClient(client *http.Client) *GetRoleRequest
WithHTTPClient adds the HTTPClient to the get role Request
func (*GetRoleRequest) WithRoleID ¶
func (o *GetRoleRequest) WithRoleID(roleID strfmt.UUID) *GetRoleRequest
func (*GetRoleRequest) WriteToRequest ¶
func (o *GetRoleRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these Request to a swagger request
type ListRolesOK ¶
type ListRolesOK struct { // isStream: false *models.RoleDetailsListResponse }
ListRolesOK handles this case with default header values.
List of role details
func NewListRolesOK ¶
func NewListRolesOK() *ListRolesOK
NewListRolesOK creates a ListRolesOK with default headers values
func (*ListRolesOK) Code ¶
func (o *ListRolesOK) Code() int
Code gets the status code for the list roles o k response
func (*ListRolesOK) Error ¶
func (o *ListRolesOK) Error() string
func (*ListRolesOK) IsClientError ¶
func (o *ListRolesOK) IsClientError() bool
IsClientError returns true when this list roles o k response has a 4xx status code
func (*ListRolesOK) IsCode ¶
func (o *ListRolesOK) IsCode(code int) bool
IsCode returns true when this list roles o k response a status code equal to that given
func (*ListRolesOK) IsRedirect ¶
func (o *ListRolesOK) IsRedirect() bool
IsRedirect returns true when this list roles o k response has a 3xx status code
func (*ListRolesOK) IsServerError ¶
func (o *ListRolesOK) IsServerError() bool
IsServerError returns true when this list roles o k response has a 5xx status code
func (*ListRolesOK) IsSuccess ¶
func (o *ListRolesOK) IsSuccess() bool
IsSuccess returns true when this list roles o k response has a 2xx status code
type ListRolesReader ¶
type ListRolesReader struct {
// contains filtered or unexported fields
}
ListRolesReader is a Reader for the ListRoles structure.
func (*ListRolesReader) ReadResponse ¶
func (o *ListRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListRolesRequest ¶
type ListRolesRequest struct { PageNumber *int64 PageSize *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
func (*ListRolesRequest) FromJson ¶
func (o *ListRolesRequest) FromJson(j string) (*ListRolesRequest, error)
func (*ListRolesRequest) MustDo ¶
func (a *ListRolesRequest) MustDo() *ListRolesOK
func (*ListRolesRequest) WithContext ¶
func (o *ListRolesRequest) WithContext(ctx context.Context) *ListRolesRequest
//////////////// WithContext adds the context to the list roles Request
func (*ListRolesRequest) WithHTTPClient ¶
func (o *ListRolesRequest) WithHTTPClient(client *http.Client) *ListRolesRequest
WithHTTPClient adds the HTTPClient to the list roles Request
func (*ListRolesRequest) WithPageNumber ¶
func (o *ListRolesRequest) WithPageNumber(pageNumber int64) *ListRolesRequest
func (*ListRolesRequest) WithPageSize ¶
func (o *ListRolesRequest) WithPageSize(pageSize int64) *ListRolesRequest
func (*ListRolesRequest) WithoutPageNumber ¶
func (o *ListRolesRequest) WithoutPageNumber() *ListRolesRequest
func (*ListRolesRequest) WithoutPageSize ¶
func (o *ListRolesRequest) WithoutPageSize() *ListRolesRequest
func (*ListRolesRequest) WriteToRequest ¶
func (o *ListRolesRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these Request to a swagger request