security_management_roles

package
v0.0.0-...-f4869d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 security management roles API

func (*Client) Create

func (a *Client) Create(params *CreateParams, opts ...ClientOption) (*CreateOK, error)

Create creates role

func (*Client) Delete

func (a *Client) Delete(params *DeleteParams, opts ...ClientOption) error

Delete deletes role

func (*Client) GetRole

func (a *Client) GetRole(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)

GetRole gets role

func (*Client) GetRoles

func (a *Client) GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error)

GetRoles lists roles

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Update1

func (a *Client) Update1(params *Update1Params, opts ...ClientOption) error

Update1 updates role

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Create(params *CreateParams, opts ...ClientOption) (*CreateOK, error)

	Delete(params *DeleteParams, opts ...ClientOption) error

	GetRole(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)

	GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error)

	Update1(params *Update1Params, opts ...ClientOption) 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 security management roles API client.

type CreateForbidden

type CreateForbidden struct {
}

CreateForbidden describes a response with status code 403, with default header values.

Insufficient permissions to create role

func NewCreateForbidden

func NewCreateForbidden() *CreateForbidden

NewCreateForbidden creates a CreateForbidden with default headers values

func (*CreateForbidden) Code

func (o *CreateForbidden) Code() int

Code gets the status code for the create forbidden response

func (*CreateForbidden) Error

func (o *CreateForbidden) Error() string

func (*CreateForbidden) IsClientError

func (o *CreateForbidden) IsClientError() bool

IsClientError returns true when this create forbidden response has a 4xx status code

func (*CreateForbidden) IsCode

func (o *CreateForbidden) IsCode(code int) bool

IsCode returns true when this create forbidden response a status code equal to that given

func (*CreateForbidden) IsRedirect

func (o *CreateForbidden) IsRedirect() bool

IsRedirect returns true when this create forbidden response has a 3xx status code

func (*CreateForbidden) IsServerError

func (o *CreateForbidden) IsServerError() bool

IsServerError returns true when this create forbidden response has a 5xx status code

func (*CreateForbidden) IsSuccess

func (o *CreateForbidden) IsSuccess() bool

IsSuccess returns true when this create forbidden response has a 2xx status code

func (*CreateForbidden) String

func (o *CreateForbidden) String() string

type CreateOK

type CreateOK struct {
	Payload *models.RoleXOResponse
}

CreateOK describes a response with status code 200, with default header values.

successful operation

func NewCreateOK

func NewCreateOK() *CreateOK

NewCreateOK creates a CreateOK with default headers values

func (*CreateOK) Code

func (o *CreateOK) Code() int

Code gets the status code for the create o k response

func (*CreateOK) Error

func (o *CreateOK) Error() string

func (*CreateOK) GetPayload

func (o *CreateOK) GetPayload() *models.RoleXOResponse

func (*CreateOK) IsClientError

func (o *CreateOK) IsClientError() bool

IsClientError returns true when this create o k response has a 4xx status code

func (*CreateOK) IsCode

func (o *CreateOK) IsCode(code int) bool

IsCode returns true when this create o k response a status code equal to that given

func (*CreateOK) IsRedirect

func (o *CreateOK) IsRedirect() bool

IsRedirect returns true when this create o k response has a 3xx status code

func (*CreateOK) IsServerError

func (o *CreateOK) IsServerError() bool

IsServerError returns true when this create o k response has a 5xx status code

func (*CreateOK) IsSuccess

func (o *CreateOK) IsSuccess() bool

IsSuccess returns true when this create o k response has a 2xx status code

func (*CreateOK) String

func (o *CreateOK) String() string

type CreateParams

type CreateParams struct {

	/* Body.

	   A role configuration
	*/
	Body *models.RoleXORequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateParams contains all the parameters to send to the API endpoint

for the create operation.

Typically these are written to a http.Request.

func NewCreateParams

func NewCreateParams() *CreateParams

NewCreateParams creates a new CreateParams 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 NewCreateParamsWithContext

func NewCreateParamsWithContext(ctx context.Context) *CreateParams

NewCreateParamsWithContext creates a new CreateParams object with the ability to set a context for a request.

func NewCreateParamsWithHTTPClient

func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams

NewCreateParamsWithHTTPClient creates a new CreateParams object with the ability to set a custom HTTPClient for a request.

func NewCreateParamsWithTimeout

func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams

NewCreateParamsWithTimeout creates a new CreateParams object with the ability to set a timeout on a request.

func (*CreateParams) SetBody

func (o *CreateParams) SetBody(body *models.RoleXORequest)

SetBody adds the body to the create params

func (*CreateParams) SetContext

func (o *CreateParams) SetContext(ctx context.Context)

SetContext adds the context to the create params

func (*CreateParams) SetDefaults

func (o *CreateParams) SetDefaults()

SetDefaults hydrates default values in the create params (not the query body).

All values with no default are reset to their zero value.

func (*CreateParams) SetHTTPClient

func (o *CreateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create params

func (*CreateParams) SetTimeout

func (o *CreateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create params

func (*CreateParams) WithBody

func (o *CreateParams) WithBody(body *models.RoleXORequest) *CreateParams

WithBody adds the body to the create params

func (*CreateParams) WithContext

func (o *CreateParams) WithContext(ctx context.Context) *CreateParams

WithContext adds the context to the create params

func (*CreateParams) WithDefaults

func (o *CreateParams) WithDefaults() *CreateParams

WithDefaults hydrates default values in the create params (not the query body).

All values with no default are reset to their zero value.

func (*CreateParams) WithHTTPClient

func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams

WithHTTPClient adds the HTTPClient to the create params

func (*CreateParams) WithTimeout

func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams

WithTimeout adds the timeout to the create params

func (*CreateParams) WriteToRequest

func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateReader

type CreateReader struct {
	// contains filtered or unexported fields
}

CreateReader is a Reader for the Create structure.

func (*CreateReader) ReadResponse

func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteForbidden

type DeleteForbidden struct {
}

DeleteForbidden describes a response with status code 403, with default header values.

Insufficient permissions to delete role

func NewDeleteForbidden

func NewDeleteForbidden() *DeleteForbidden

NewDeleteForbidden creates a DeleteForbidden with default headers values

func (*DeleteForbidden) Code

func (o *DeleteForbidden) Code() int

Code gets the status code for the delete forbidden response

func (*DeleteForbidden) Error

func (o *DeleteForbidden) Error() string

func (*DeleteForbidden) IsClientError

func (o *DeleteForbidden) IsClientError() bool

IsClientError returns true when this delete forbidden response has a 4xx status code

func (*DeleteForbidden) IsCode

func (o *DeleteForbidden) IsCode(code int) bool

IsCode returns true when this delete forbidden response a status code equal to that given

func (*DeleteForbidden) IsRedirect

func (o *DeleteForbidden) IsRedirect() bool

IsRedirect returns true when this delete forbidden response has a 3xx status code

func (*DeleteForbidden) IsServerError

func (o *DeleteForbidden) IsServerError() bool

IsServerError returns true when this delete forbidden response has a 5xx status code

func (*DeleteForbidden) IsSuccess

func (o *DeleteForbidden) IsSuccess() bool

IsSuccess returns true when this delete forbidden response has a 2xx status code

func (*DeleteForbidden) String

func (o *DeleteForbidden) String() string

type DeleteNotFound

type DeleteNotFound struct {
}

DeleteNotFound describes a response with status code 404, with default header values.

Role not found

func NewDeleteNotFound

func NewDeleteNotFound() *DeleteNotFound

NewDeleteNotFound creates a DeleteNotFound with default headers values

func (*DeleteNotFound) Code

func (o *DeleteNotFound) Code() int

Code gets the status code for the delete not found response

func (*DeleteNotFound) Error

func (o *DeleteNotFound) Error() string

func (*DeleteNotFound) IsClientError

func (o *DeleteNotFound) IsClientError() bool

IsClientError returns true when this delete not found response has a 4xx status code

func (*DeleteNotFound) IsCode

func (o *DeleteNotFound) IsCode(code int) bool

IsCode returns true when this delete not found response a status code equal to that given

func (*DeleteNotFound) IsRedirect

func (o *DeleteNotFound) IsRedirect() bool

IsRedirect returns true when this delete not found response has a 3xx status code

func (*DeleteNotFound) IsServerError

func (o *DeleteNotFound) IsServerError() bool

IsServerError returns true when this delete not found response has a 5xx status code

func (*DeleteNotFound) IsSuccess

func (o *DeleteNotFound) IsSuccess() bool

IsSuccess returns true when this delete not found response has a 2xx status code

func (*DeleteNotFound) String

func (o *DeleteNotFound) String() string

type DeleteParams

type DeleteParams struct {

	/* ID.

	   The id of the role to delete
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteParams contains all the parameters to send to the API endpoint

for the delete operation.

Typically these are written to a http.Request.

func NewDeleteParams

func NewDeleteParams() *DeleteParams

NewDeleteParams creates a new DeleteParams 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 NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with the ability to set a context for a request.

func NewDeleteParamsWithHTTPClient

func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams

NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteParamsWithTimeout

func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams

NewDeleteParamsWithTimeout creates a new DeleteParams object with the ability to set a timeout on a request.

func (*DeleteParams) SetContext

func (o *DeleteParams) SetContext(ctx context.Context)

SetContext adds the context to the delete params

func (*DeleteParams) SetDefaults

func (o *DeleteParams) SetDefaults()

SetDefaults hydrates default values in the delete params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteParams) SetHTTPClient

func (o *DeleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) SetID

func (o *DeleteParams) SetID(id string)

SetID adds the id to the delete params

func (*DeleteParams) SetTimeout

func (o *DeleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete params

func (*DeleteParams) WithContext

func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams

WithContext adds the context to the delete params

func (*DeleteParams) WithDefaults

func (o *DeleteParams) WithDefaults() *DeleteParams

WithDefaults hydrates default values in the delete params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteParams) WithHTTPClient

func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams

WithHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) WithID

func (o *DeleteParams) WithID(id string) *DeleteParams

WithID adds the id to the delete params

func (*DeleteParams) WithTimeout

func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams

WithTimeout adds the timeout to the delete params

func (*DeleteParams) WriteToRequest

func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteReader

type DeleteReader struct {
	// contains filtered or unexported fields
}

DeleteReader is a Reader for the Delete structure.

func (*DeleteReader) ReadResponse

func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRoleBadRequest

type GetRoleBadRequest struct {
}

GetRoleBadRequest describes a response with status code 400, with default header values.

The specified source does not exist

func NewGetRoleBadRequest

func NewGetRoleBadRequest() *GetRoleBadRequest

NewGetRoleBadRequest creates a GetRoleBadRequest with default headers values

func (*GetRoleBadRequest) Code

func (o *GetRoleBadRequest) Code() int

Code gets the status code for the get role bad request response

func (*GetRoleBadRequest) Error

func (o *GetRoleBadRequest) Error() string

func (*GetRoleBadRequest) IsClientError

func (o *GetRoleBadRequest) IsClientError() bool

IsClientError returns true when this get role bad request response has a 4xx status code

func (*GetRoleBadRequest) IsCode

func (o *GetRoleBadRequest) IsCode(code int) bool

IsCode returns true when this get role bad request response a status code equal to that given

func (*GetRoleBadRequest) IsRedirect

func (o *GetRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this get role bad request response has a 3xx status code

func (*GetRoleBadRequest) IsServerError

func (o *GetRoleBadRequest) IsServerError() bool

IsServerError returns true when this get role bad request response has a 5xx status code

func (*GetRoleBadRequest) IsSuccess

func (o *GetRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this get role bad request response has a 2xx status code

func (*GetRoleBadRequest) String

func (o *GetRoleBadRequest) String() string

type GetRoleForbidden

type GetRoleForbidden struct {
}

GetRoleForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read roles

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) 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 GetRoleNotFound

type GetRoleNotFound struct {
}

GetRoleNotFound describes a response with status code 404, with default header values.

Role 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

func (*GetRoleNotFound) String

func (o *GetRoleNotFound) String() string

type GetRoleOK

type GetRoleOK struct {
	Payload *models.RoleXOResponse
}

GetRoleOK describes a response with status code 200, with default header values.

successful operation

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Code

func (o *GetRoleOK) Code() int

Code gets the status code for the get role o k response

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

func (o *GetRoleOK) GetPayload() *models.RoleXOResponse

func (*GetRoleOK) IsClientError

func (o *GetRoleOK) IsClientError() bool

IsClientError returns true when this get role o k response has a 4xx status code

func (*GetRoleOK) IsCode

func (o *GetRoleOK) IsCode(code int) bool

IsCode returns true when this get role o k response a status code equal to that given

func (*GetRoleOK) IsRedirect

func (o *GetRoleOK) IsRedirect() bool

IsRedirect returns true when this get role o k response has a 3xx status code

func (*GetRoleOK) IsServerError

func (o *GetRoleOK) IsServerError() bool

IsServerError returns true when this get role o k response has a 5xx status code

func (*GetRoleOK) IsSuccess

func (o *GetRoleOK) IsSuccess() bool

IsSuccess returns true when this get role o k response has a 2xx status code

func (*GetRoleOK) String

func (o *GetRoleOK) String() string

type GetRoleParams

type GetRoleParams struct {

	/* ID.

	   The id of the role to get
	*/
	ID string

	/* Source.

	   The id of the user source to filter the roles by. Available sources can be fetched using the 'User Sources' endpoint.

	   Default: "default"
	*/
	Source *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) 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) SetHTTPClient

func (o *GetRoleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) SetID

func (o *GetRoleParams) SetID(id string)

SetID adds the id to the get role params

func (*GetRoleParams) SetSource

func (o *GetRoleParams) SetSource(source *string)

SetSource adds the source 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) 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) WithHTTPClient

func (o *GetRoleParams) WithHTTPClient(client *http.Client) *GetRoleParams

WithHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) WithID

func (o *GetRoleParams) WithID(id string) *GetRoleParams

WithID adds the id to the get role params

func (*GetRoleParams) WithSource

func (o *GetRoleParams) WithSource(source *string) *GetRoleParams

WithSource adds the source 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) 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 GetRolesBadRequest

type GetRolesBadRequest struct {
}

GetRolesBadRequest describes a response with status code 400, with default header values.

The specified source does not exist

func NewGetRolesBadRequest

func NewGetRolesBadRequest() *GetRolesBadRequest

NewGetRolesBadRequest creates a GetRolesBadRequest with default headers values

func (*GetRolesBadRequest) Code

func (o *GetRolesBadRequest) Code() int

Code gets the status code for the get roles bad request response

func (*GetRolesBadRequest) Error

func (o *GetRolesBadRequest) Error() string

func (*GetRolesBadRequest) IsClientError

func (o *GetRolesBadRequest) IsClientError() bool

IsClientError returns true when this get roles bad request response has a 4xx status code

func (*GetRolesBadRequest) IsCode

func (o *GetRolesBadRequest) IsCode(code int) bool

IsCode returns true when this get roles bad request response a status code equal to that given

func (*GetRolesBadRequest) IsRedirect

func (o *GetRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this get roles bad request response has a 3xx status code

func (*GetRolesBadRequest) IsServerError

func (o *GetRolesBadRequest) IsServerError() bool

IsServerError returns true when this get roles bad request response has a 5xx status code

func (*GetRolesBadRequest) IsSuccess

func (o *GetRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this get roles bad request response has a 2xx status code

func (*GetRolesBadRequest) String

func (o *GetRolesBadRequest) String() string

type GetRolesForbidden

type GetRolesForbidden struct {
}

GetRolesForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read roles

func NewGetRolesForbidden

func NewGetRolesForbidden() *GetRolesForbidden

NewGetRolesForbidden creates a GetRolesForbidden with default headers values

func (*GetRolesForbidden) Code

func (o *GetRolesForbidden) Code() int

Code gets the status code for the get roles forbidden response

func (*GetRolesForbidden) Error

func (o *GetRolesForbidden) Error() string

func (*GetRolesForbidden) IsClientError

func (o *GetRolesForbidden) IsClientError() bool

IsClientError returns true when this get roles forbidden response has a 4xx status code

func (*GetRolesForbidden) IsCode

func (o *GetRolesForbidden) IsCode(code int) bool

IsCode returns true when this get roles forbidden response a status code equal to that given

func (*GetRolesForbidden) IsRedirect

func (o *GetRolesForbidden) IsRedirect() bool

IsRedirect returns true when this get roles forbidden response has a 3xx status code

func (*GetRolesForbidden) IsServerError

func (o *GetRolesForbidden) IsServerError() bool

IsServerError returns true when this get roles forbidden response has a 5xx status code

func (*GetRolesForbidden) IsSuccess

func (o *GetRolesForbidden) IsSuccess() bool

IsSuccess returns true when this get roles forbidden response has a 2xx status code

func (*GetRolesForbidden) String

func (o *GetRolesForbidden) String() string

type GetRolesOK

type GetRolesOK struct {
	Payload []*models.RoleXOResponse
}

GetRolesOK describes a response with status code 200, with default header values.

successful operation

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates a GetRolesOK with default headers values

func (*GetRolesOK) Code

func (o *GetRolesOK) Code() int

Code gets the status code for the get roles o k response

func (*GetRolesOK) Error

func (o *GetRolesOK) Error() string

func (*GetRolesOK) GetPayload

func (o *GetRolesOK) GetPayload() []*models.RoleXOResponse

func (*GetRolesOK) IsClientError

func (o *GetRolesOK) IsClientError() bool

IsClientError returns true when this get roles o k response has a 4xx status code

func (*GetRolesOK) IsCode

func (o *GetRolesOK) IsCode(code int) bool

IsCode returns true when this get roles o k response a status code equal to that given

func (*GetRolesOK) IsRedirect

func (o *GetRolesOK) IsRedirect() bool

IsRedirect returns true when this get roles o k response has a 3xx status code

func (*GetRolesOK) IsServerError

func (o *GetRolesOK) IsServerError() bool

IsServerError returns true when this get roles o k response has a 5xx status code

func (*GetRolesOK) IsSuccess

func (o *GetRolesOK) IsSuccess() bool

IsSuccess returns true when this get roles o k response has a 2xx status code

func (*GetRolesOK) String

func (o *GetRolesOK) String() string

type GetRolesParams

type GetRolesParams struct {

	/* Source.

	   The id of the user source to filter the roles by, if supplied. Otherwise roles from all user sources will be returned.
	*/
	Source *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRolesParams contains all the parameters to send to the API endpoint

for the get roles operation.

Typically these are written to a http.Request.

func NewGetRolesParams

func NewGetRolesParams() *GetRolesParams

NewGetRolesParams creates a new GetRolesParams 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 NewGetRolesParamsWithContext

func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams

NewGetRolesParamsWithContext creates a new GetRolesParams object with the ability to set a context for a request.

func NewGetRolesParamsWithHTTPClient

func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams

NewGetRolesParamsWithHTTPClient creates a new GetRolesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRolesParamsWithTimeout

func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams

NewGetRolesParamsWithTimeout creates a new GetRolesParams object with the ability to set a timeout on a request.

func (*GetRolesParams) SetContext

func (o *GetRolesParams) SetContext(ctx context.Context)

SetContext adds the context to the get roles params

func (*GetRolesParams) SetDefaults

func (o *GetRolesParams) SetDefaults()

SetDefaults hydrates default values in the get roles params (not the query body).

All values with no default are reset to their zero value.

func (*GetRolesParams) SetHTTPClient

func (o *GetRolesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) SetSource

func (o *GetRolesParams) SetSource(source *string)

SetSource adds the source to the get roles params

func (*GetRolesParams) SetTimeout

func (o *GetRolesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get roles params

func (*GetRolesParams) WithContext

func (o *GetRolesParams) WithContext(ctx context.Context) *GetRolesParams

WithContext adds the context to the get roles params

func (*GetRolesParams) WithDefaults

func (o *GetRolesParams) WithDefaults() *GetRolesParams

WithDefaults hydrates default values in the get roles params (not the query body).

All values with no default are reset to their zero value.

func (*GetRolesParams) WithHTTPClient

func (o *GetRolesParams) WithHTTPClient(client *http.Client) *GetRolesParams

WithHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) WithSource

func (o *GetRolesParams) WithSource(source *string) *GetRolesParams

WithSource adds the source to the get roles params

func (*GetRolesParams) WithTimeout

func (o *GetRolesParams) WithTimeout(timeout time.Duration) *GetRolesParams

WithTimeout adds the timeout to the get roles params

func (*GetRolesParams) WriteToRequest

func (o *GetRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRolesReader

type GetRolesReader struct {
	// contains filtered or unexported fields
}

GetRolesReader is a Reader for the GetRoles structure.

func (*GetRolesReader) ReadResponse

func (o *GetRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Update1Forbidden

type Update1Forbidden struct {
}

Update1Forbidden describes a response with status code 403, with default header values.

Insufficient permissions to update role

func NewUpdate1Forbidden

func NewUpdate1Forbidden() *Update1Forbidden

NewUpdate1Forbidden creates a Update1Forbidden with default headers values

func (*Update1Forbidden) Code

func (o *Update1Forbidden) Code() int

Code gets the status code for the update1 forbidden response

func (*Update1Forbidden) Error

func (o *Update1Forbidden) Error() string

func (*Update1Forbidden) IsClientError

func (o *Update1Forbidden) IsClientError() bool

IsClientError returns true when this update1 forbidden response has a 4xx status code

func (*Update1Forbidden) IsCode

func (o *Update1Forbidden) IsCode(code int) bool

IsCode returns true when this update1 forbidden response a status code equal to that given

func (*Update1Forbidden) IsRedirect

func (o *Update1Forbidden) IsRedirect() bool

IsRedirect returns true when this update1 forbidden response has a 3xx status code

func (*Update1Forbidden) IsServerError

func (o *Update1Forbidden) IsServerError() bool

IsServerError returns true when this update1 forbidden response has a 5xx status code

func (*Update1Forbidden) IsSuccess

func (o *Update1Forbidden) IsSuccess() bool

IsSuccess returns true when this update1 forbidden response has a 2xx status code

func (*Update1Forbidden) String

func (o *Update1Forbidden) String() string

type Update1NotFound

type Update1NotFound struct {
}

Update1NotFound describes a response with status code 404, with default header values.

Role not found

func NewUpdate1NotFound

func NewUpdate1NotFound() *Update1NotFound

NewUpdate1NotFound creates a Update1NotFound with default headers values

func (*Update1NotFound) Code

func (o *Update1NotFound) Code() int

Code gets the status code for the update1 not found response

func (*Update1NotFound) Error

func (o *Update1NotFound) Error() string

func (*Update1NotFound) IsClientError

func (o *Update1NotFound) IsClientError() bool

IsClientError returns true when this update1 not found response has a 4xx status code

func (*Update1NotFound) IsCode

func (o *Update1NotFound) IsCode(code int) bool

IsCode returns true when this update1 not found response a status code equal to that given

func (*Update1NotFound) IsRedirect

func (o *Update1NotFound) IsRedirect() bool

IsRedirect returns true when this update1 not found response has a 3xx status code

func (*Update1NotFound) IsServerError

func (o *Update1NotFound) IsServerError() bool

IsServerError returns true when this update1 not found response has a 5xx status code

func (*Update1NotFound) IsSuccess

func (o *Update1NotFound) IsSuccess() bool

IsSuccess returns true when this update1 not found response has a 2xx status code

func (*Update1NotFound) String

func (o *Update1NotFound) String() string

type Update1Params

type Update1Params struct {

	/* Body.

	   A role configuration
	*/
	Body *models.RoleXORequest

	/* ID.

	   The id of the role to update
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Update1Params contains all the parameters to send to the API endpoint

for the update 1 operation.

Typically these are written to a http.Request.

func NewUpdate1Params

func NewUpdate1Params() *Update1Params

NewUpdate1Params creates a new Update1Params 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 NewUpdate1ParamsWithContext

func NewUpdate1ParamsWithContext(ctx context.Context) *Update1Params

NewUpdate1ParamsWithContext creates a new Update1Params object with the ability to set a context for a request.

func NewUpdate1ParamsWithHTTPClient

func NewUpdate1ParamsWithHTTPClient(client *http.Client) *Update1Params

NewUpdate1ParamsWithHTTPClient creates a new Update1Params object with the ability to set a custom HTTPClient for a request.

func NewUpdate1ParamsWithTimeout

func NewUpdate1ParamsWithTimeout(timeout time.Duration) *Update1Params

NewUpdate1ParamsWithTimeout creates a new Update1Params object with the ability to set a timeout on a request.

func (*Update1Params) SetBody

func (o *Update1Params) SetBody(body *models.RoleXORequest)

SetBody adds the body to the update 1 params

func (*Update1Params) SetContext

func (o *Update1Params) SetContext(ctx context.Context)

SetContext adds the context to the update 1 params

func (*Update1Params) SetDefaults

func (o *Update1Params) SetDefaults()

SetDefaults hydrates default values in the update 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Update1Params) SetHTTPClient

func (o *Update1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update 1 params

func (*Update1Params) SetID

func (o *Update1Params) SetID(id string)

SetID adds the id to the update 1 params

func (*Update1Params) SetTimeout

func (o *Update1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update 1 params

func (*Update1Params) WithBody

func (o *Update1Params) WithBody(body *models.RoleXORequest) *Update1Params

WithBody adds the body to the update 1 params

func (*Update1Params) WithContext

func (o *Update1Params) WithContext(ctx context.Context) *Update1Params

WithContext adds the context to the update 1 params

func (*Update1Params) WithDefaults

func (o *Update1Params) WithDefaults() *Update1Params

WithDefaults hydrates default values in the update 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Update1Params) WithHTTPClient

func (o *Update1Params) WithHTTPClient(client *http.Client) *Update1Params

WithHTTPClient adds the HTTPClient to the update 1 params

func (*Update1Params) WithID

func (o *Update1Params) WithID(id string) *Update1Params

WithID adds the id to the update 1 params

func (*Update1Params) WithTimeout

func (o *Update1Params) WithTimeout(timeout time.Duration) *Update1Params

WithTimeout adds the timeout to the update 1 params

func (*Update1Params) WriteToRequest

func (o *Update1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type Update1Reader

type Update1Reader struct {
	// contains filtered or unexported fields
}

Update1Reader is a Reader for the Update1 structure.

func (*Update1Reader) ReadResponse

func (o *Update1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL