Documentation ¶
Index ¶
- type Client
- type CreateRolesCreated
- 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 DeleteRoleNoContent
- 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 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 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) Error ¶
func (o *CreateRolesCreated) Error() string
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 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) Error ¶
func (o *DeleteRoleNoContent) Error() string
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 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
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) Error ¶
func (o *ListRolesOK) Error() string
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