access_manager

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindUserRoleOK

type BindUserRoleOK struct {
	Payload *models.OpenpitrixBindUserRoleResponse
}

BindUserRoleOK handles this case with default header values.

A successful response.

func NewBindUserRoleOK

func NewBindUserRoleOK() *BindUserRoleOK

NewBindUserRoleOK creates a BindUserRoleOK with default headers values

func (*BindUserRoleOK) Error

func (o *BindUserRoleOK) Error() string

type BindUserRoleParams

type BindUserRoleParams struct {

	/*Body*/
	Body *models.OpenpitrixBindUserRoleRequest

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

BindUserRoleParams contains all the parameters to send to the API endpoint for the bind user role operation typically these are written to a http.Request

func NewBindUserRoleParams

func NewBindUserRoleParams() *BindUserRoleParams

NewBindUserRoleParams creates a new BindUserRoleParams object with the default values initialized.

func NewBindUserRoleParamsWithContext

func NewBindUserRoleParamsWithContext(ctx context.Context) *BindUserRoleParams

NewBindUserRoleParamsWithContext creates a new BindUserRoleParams object with the default values initialized, and the ability to set a context for a request

func NewBindUserRoleParamsWithHTTPClient

func NewBindUserRoleParamsWithHTTPClient(client *http.Client) *BindUserRoleParams

NewBindUserRoleParamsWithHTTPClient creates a new BindUserRoleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewBindUserRoleParamsWithTimeout

func NewBindUserRoleParamsWithTimeout(timeout time.Duration) *BindUserRoleParams

NewBindUserRoleParamsWithTimeout creates a new BindUserRoleParams object with the default values initialized, and the ability to set a timeout on a request

func (*BindUserRoleParams) SetBody

SetBody adds the body to the bind user role params

func (*BindUserRoleParams) SetContext

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

SetContext adds the context to the bind user role params

func (*BindUserRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bind user role params

func (*BindUserRoleParams) SetTimeout

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

SetTimeout adds the timeout to the bind user role params

func (*BindUserRoleParams) WithBody

WithBody adds the body to the bind user role params

func (*BindUserRoleParams) WithContext

WithContext adds the context to the bind user role params

func (*BindUserRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bind user role params

func (*BindUserRoleParams) WithTimeout

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

WithTimeout adds the timeout to the bind user role params

func (*BindUserRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BindUserRoleReader

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

BindUserRoleReader is a Reader for the BindUserRole structure.

func (*BindUserRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CanDoOK

type CanDoOK struct {
	Payload *models.OpenpitrixCanDoResponse
}

CanDoOK handles this case with default header values.

A successful response.

func NewCanDoOK

func NewCanDoOK() *CanDoOK

NewCanDoOK creates a CanDoOK with default headers values

func (*CanDoOK) Error

func (o *CanDoOK) Error() string

type CanDoParams

type CanDoParams struct {

	/*Body*/
	Body *models.OpenpitrixCanDoRequest

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

CanDoParams contains all the parameters to send to the API endpoint for the can do operation typically these are written to a http.Request

func NewCanDoParams

func NewCanDoParams() *CanDoParams

NewCanDoParams creates a new CanDoParams object with the default values initialized.

func NewCanDoParamsWithContext

func NewCanDoParamsWithContext(ctx context.Context) *CanDoParams

NewCanDoParamsWithContext creates a new CanDoParams object with the default values initialized, and the ability to set a context for a request

func NewCanDoParamsWithHTTPClient

func NewCanDoParamsWithHTTPClient(client *http.Client) *CanDoParams

NewCanDoParamsWithHTTPClient creates a new CanDoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCanDoParamsWithTimeout

func NewCanDoParamsWithTimeout(timeout time.Duration) *CanDoParams

NewCanDoParamsWithTimeout creates a new CanDoParams object with the default values initialized, and the ability to set a timeout on a request

func (*CanDoParams) SetBody

func (o *CanDoParams) SetBody(body *models.OpenpitrixCanDoRequest)

SetBody adds the body to the can do params

func (*CanDoParams) SetContext

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

SetContext adds the context to the can do params

func (*CanDoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the can do params

func (*CanDoParams) SetTimeout

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

SetTimeout adds the timeout to the can do params

func (*CanDoParams) WithBody

WithBody adds the body to the can do params

func (*CanDoParams) WithContext

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

WithContext adds the context to the can do params

func (*CanDoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the can do params

func (*CanDoParams) WithTimeout

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

WithTimeout adds the timeout to the can do params

func (*CanDoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CanDoReader

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

CanDoReader is a Reader for the CanDo structure.

func (*CanDoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for access manager API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new access manager API client.

func (*Client) BindUserRole

func (a *Client) BindUserRole(params *BindUserRoleParams, authInfo runtime.ClientAuthInfoWriter) (*BindUserRoleOK, error)

BindUserRole binds role and user a user belong to a role

func (*Client) CanDo

func (a *Client) CanDo(params *CanDoParams, authInfo runtime.ClientAuthInfoWriter) (*CanDoOK, error)

CanDo validates whether the user user id have permission to visit resource url method url

func (*Client) CreateRole

func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRoleOK, error)

CreateRole creates role different role has different permissions

func (*Client) DeleteRoles

func (a *Client) DeleteRoles(params *DeleteRolesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRolesOK, error)

DeleteRoles batches delete roles

func (*Client) DescribeRoles

func (a *Client) DescribeRoles(params *DescribeRolesParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeRolesOK, error)

DescribeRoles gets roles

func (*Client) GetRole

func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter) (*GetRoleOK, error)

GetRole gets role info

func (*Client) GetRoleModule

func (a *Client) GetRoleModule(params *GetRoleModuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetRoleModuleOK, error)

GetRoleModule gets role module different role has different permission to access different module

func (*Client) ModifyRole

func (a *Client) ModifyRole(params *ModifyRoleParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyRoleOK, error)

ModifyRole batches modify role info

func (*Client) ModifyRoleModule

func (a *Client) ModifyRoleModule(params *ModifyRoleModuleParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyRoleModuleOK, error)

ModifyRoleModule modifies role module that can be visited

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnbindUserRole

func (a *Client) UnbindUserRole(params *UnbindUserRoleParams, authInfo runtime.ClientAuthInfoWriter) (*UnbindUserRoleOK, error)

UnbindUserRole unbinds user and role

type CreateRoleOK

type CreateRoleOK struct {
	Payload *models.OpenpitrixCreateRoleResponse
}

CreateRoleOK handles this case with default header values.

A successful response.

func NewCreateRoleOK

func NewCreateRoleOK() *CreateRoleOK

NewCreateRoleOK creates a CreateRoleOK with default headers values

func (*CreateRoleOK) Error

func (o *CreateRoleOK) Error() string

type CreateRoleParams

type CreateRoleParams struct {

	/*Body*/
	Body *models.OpenpitrixCreateRoleRequest

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

CreateRoleParams contains all the parameters to send to the API endpoint for the create role operation typically these are written to a http.Request

func NewCreateRoleParams

func NewCreateRoleParams() *CreateRoleParams

NewCreateRoleParams creates a new CreateRoleParams object with the default values initialized.

func NewCreateRoleParamsWithContext

func NewCreateRoleParamsWithContext(ctx context.Context) *CreateRoleParams

NewCreateRoleParamsWithContext creates a new CreateRoleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateRoleParamsWithHTTPClient

func NewCreateRoleParamsWithHTTPClient(client *http.Client) *CreateRoleParams

NewCreateRoleParamsWithHTTPClient creates a new CreateRoleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateRoleParamsWithTimeout

func NewCreateRoleParamsWithTimeout(timeout time.Duration) *CreateRoleParams

NewCreateRoleParamsWithTimeout creates a new CreateRoleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateRoleParams) SetBody

SetBody adds the body to the create role params

func (*CreateRoleParams) SetContext

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

SetContext adds the context to the create role params

func (*CreateRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create role params

func (*CreateRoleParams) SetTimeout

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

SetTimeout adds the timeout to the create role params

func (*CreateRoleParams) WithBody

WithBody adds the body to the create role params

func (*CreateRoleParams) WithContext

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

WithContext adds the context to the create role params

func (*CreateRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create role params

func (*CreateRoleParams) WithTimeout

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

WithTimeout adds the timeout to the create role params

func (*CreateRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRoleReader

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

CreateRoleReader is a Reader for the CreateRole structure.

func (*CreateRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRolesOK

type DeleteRolesOK struct {
	Payload *models.OpenpitrixDeleteRolesResponse
}

DeleteRolesOK handles this case with default header values.

A successful response.

func NewDeleteRolesOK

func NewDeleteRolesOK() *DeleteRolesOK

NewDeleteRolesOK creates a DeleteRolesOK with default headers values

func (*DeleteRolesOK) Error

func (o *DeleteRolesOK) Error() string

type DeleteRolesParams

type DeleteRolesParams struct {

	/*Body*/
	Body *models.OpenpitrixDeleteRolesRequest

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

DeleteRolesParams contains all the parameters to send to the API endpoint for the delete roles operation typically these are written to a http.Request

func NewDeleteRolesParams

func NewDeleteRolesParams() *DeleteRolesParams

NewDeleteRolesParams creates a new DeleteRolesParams object with the default values initialized.

func NewDeleteRolesParamsWithContext

func NewDeleteRolesParamsWithContext(ctx context.Context) *DeleteRolesParams

NewDeleteRolesParamsWithContext creates a new DeleteRolesParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteRolesParamsWithHTTPClient

func NewDeleteRolesParamsWithHTTPClient(client *http.Client) *DeleteRolesParams

NewDeleteRolesParamsWithHTTPClient creates a new DeleteRolesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteRolesParamsWithTimeout

func NewDeleteRolesParamsWithTimeout(timeout time.Duration) *DeleteRolesParams

NewDeleteRolesParamsWithTimeout creates a new DeleteRolesParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteRolesParams) SetBody

SetBody adds the body to the delete roles params

func (*DeleteRolesParams) SetContext

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

SetContext adds the context to the delete roles params

func (*DeleteRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete roles params

func (*DeleteRolesParams) SetTimeout

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

SetTimeout adds the timeout to the delete roles params

func (*DeleteRolesParams) WithBody

WithBody adds the body to the delete roles params

func (*DeleteRolesParams) WithContext

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

WithContext adds the context to the delete roles params

func (*DeleteRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete roles params

func (*DeleteRolesParams) WithTimeout

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

WithTimeout adds the timeout to the delete roles params

func (*DeleteRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRolesReader

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

DeleteRolesReader is a Reader for the DeleteRoles structure.

func (*DeleteRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DescribeRolesOK

type DescribeRolesOK struct {
	Payload *models.OpenpitrixDescribeRolesResponse
}

DescribeRolesOK handles this case with default header values.

A successful response.

func NewDescribeRolesOK

func NewDescribeRolesOK() *DescribeRolesOK

NewDescribeRolesOK creates a DescribeRolesOK with default headers values

func (*DescribeRolesOK) Error

func (o *DescribeRolesOK) Error() string

type DescribeRolesParams

type DescribeRolesParams struct {

	/*ActionBundleID
	  action bundle ids.

	*/
	ActionBundleID []string
	/*Limit
	  data limit per page, default value 20, max value 200.

	*/
	Limit *int64
	/*Offset
	  data offset, default 0.

	*/
	Offset *int64
	/*Portal
	  portal eg.[global_admin|user|isv].

	*/
	Portal []string
	/*Reverse
	  value = 0 sort ASC, value = 1 sort DESC.

	*/
	Reverse *bool
	/*RoleID
	  role ids.

	*/
	RoleID []string
	/*RoleName
	  name.

	*/
	RoleName []string
	/*SearchWord
	  query key, support these fields(role_id, portal, status).

	*/
	SearchWord *string
	/*SortKey
	  sort key, order by sort_key, default create_time.

	*/
	SortKey *string
	/*Status
	  status eg.[active|deleted].

	*/
	Status []string

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

DescribeRolesParams contains all the parameters to send to the API endpoint for the describe roles operation typically these are written to a http.Request

func NewDescribeRolesParams

func NewDescribeRolesParams() *DescribeRolesParams

NewDescribeRolesParams creates a new DescribeRolesParams object with the default values initialized.

func NewDescribeRolesParamsWithContext

func NewDescribeRolesParamsWithContext(ctx context.Context) *DescribeRolesParams

NewDescribeRolesParamsWithContext creates a new DescribeRolesParams object with the default values initialized, and the ability to set a context for a request

func NewDescribeRolesParamsWithHTTPClient

func NewDescribeRolesParamsWithHTTPClient(client *http.Client) *DescribeRolesParams

NewDescribeRolesParamsWithHTTPClient creates a new DescribeRolesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDescribeRolesParamsWithTimeout

func NewDescribeRolesParamsWithTimeout(timeout time.Duration) *DescribeRolesParams

NewDescribeRolesParamsWithTimeout creates a new DescribeRolesParams object with the default values initialized, and the ability to set a timeout on a request

func (*DescribeRolesParams) SetActionBundleID

func (o *DescribeRolesParams) SetActionBundleID(actionBundleID []string)

SetActionBundleID adds the actionBundleId to the describe roles params

func (*DescribeRolesParams) SetContext

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

SetContext adds the context to the describe roles params

func (*DescribeRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe roles params

func (*DescribeRolesParams) SetLimit

func (o *DescribeRolesParams) SetLimit(limit *int64)

SetLimit adds the limit to the describe roles params

func (*DescribeRolesParams) SetOffset

func (o *DescribeRolesParams) SetOffset(offset *int64)

SetOffset adds the offset to the describe roles params

func (*DescribeRolesParams) SetPortal

func (o *DescribeRolesParams) SetPortal(portal []string)

SetPortal adds the portal to the describe roles params

func (*DescribeRolesParams) SetReverse

func (o *DescribeRolesParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the describe roles params

func (*DescribeRolesParams) SetRoleID

func (o *DescribeRolesParams) SetRoleID(roleID []string)

SetRoleID adds the roleId to the describe roles params

func (*DescribeRolesParams) SetRoleName

func (o *DescribeRolesParams) SetRoleName(roleName []string)

SetRoleName adds the roleName to the describe roles params

func (*DescribeRolesParams) SetSearchWord

func (o *DescribeRolesParams) SetSearchWord(searchWord *string)

SetSearchWord adds the searchWord to the describe roles params

func (*DescribeRolesParams) SetSortKey

func (o *DescribeRolesParams) SetSortKey(sortKey *string)

SetSortKey adds the sortKey to the describe roles params

func (*DescribeRolesParams) SetStatus

func (o *DescribeRolesParams) SetStatus(status []string)

SetStatus adds the status to the describe roles params

func (*DescribeRolesParams) SetTimeout

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

SetTimeout adds the timeout to the describe roles params

func (*DescribeRolesParams) WithActionBundleID

func (o *DescribeRolesParams) WithActionBundleID(actionBundleID []string) *DescribeRolesParams

WithActionBundleID adds the actionBundleID to the describe roles params

func (*DescribeRolesParams) WithContext

WithContext adds the context to the describe roles params

func (*DescribeRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe roles params

func (*DescribeRolesParams) WithLimit

func (o *DescribeRolesParams) WithLimit(limit *int64) *DescribeRolesParams

WithLimit adds the limit to the describe roles params

func (*DescribeRolesParams) WithOffset

func (o *DescribeRolesParams) WithOffset(offset *int64) *DescribeRolesParams

WithOffset adds the offset to the describe roles params

func (*DescribeRolesParams) WithPortal

func (o *DescribeRolesParams) WithPortal(portal []string) *DescribeRolesParams

WithPortal adds the portal to the describe roles params

func (*DescribeRolesParams) WithReverse

func (o *DescribeRolesParams) WithReverse(reverse *bool) *DescribeRolesParams

WithReverse adds the reverse to the describe roles params

func (*DescribeRolesParams) WithRoleID

func (o *DescribeRolesParams) WithRoleID(roleID []string) *DescribeRolesParams

WithRoleID adds the roleID to the describe roles params

func (*DescribeRolesParams) WithRoleName

func (o *DescribeRolesParams) WithRoleName(roleName []string) *DescribeRolesParams

WithRoleName adds the roleName to the describe roles params

func (*DescribeRolesParams) WithSearchWord

func (o *DescribeRolesParams) WithSearchWord(searchWord *string) *DescribeRolesParams

WithSearchWord adds the searchWord to the describe roles params

func (*DescribeRolesParams) WithSortKey

func (o *DescribeRolesParams) WithSortKey(sortKey *string) *DescribeRolesParams

WithSortKey adds the sortKey to the describe roles params

func (*DescribeRolesParams) WithStatus

func (o *DescribeRolesParams) WithStatus(status []string) *DescribeRolesParams

WithStatus adds the status to the describe roles params

func (*DescribeRolesParams) WithTimeout

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

WithTimeout adds the timeout to the describe roles params

func (*DescribeRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DescribeRolesReader

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

DescribeRolesReader is a Reader for the DescribeRoles structure.

func (*DescribeRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleModuleOK

type GetRoleModuleOK struct {
	Payload *models.OpenpitrixGetRoleModuleResponse
}

GetRoleModuleOK handles this case with default header values.

A successful response.

func NewGetRoleModuleOK

func NewGetRoleModuleOK() *GetRoleModuleOK

NewGetRoleModuleOK creates a GetRoleModuleOK with default headers values

func (*GetRoleModuleOK) Error

func (o *GetRoleModuleOK) Error() string

type GetRoleModuleParams

type GetRoleModuleParams struct {

	/*RoleID
	  required, use role id to get role's module.

	*/
	RoleID *string

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

GetRoleModuleParams contains all the parameters to send to the API endpoint for the get role module operation typically these are written to a http.Request

func NewGetRoleModuleParams

func NewGetRoleModuleParams() *GetRoleModuleParams

NewGetRoleModuleParams creates a new GetRoleModuleParams object with the default values initialized.

func NewGetRoleModuleParamsWithContext

func NewGetRoleModuleParamsWithContext(ctx context.Context) *GetRoleModuleParams

NewGetRoleModuleParamsWithContext creates a new GetRoleModuleParams object with the default values initialized, and the ability to set a context for a request

func NewGetRoleModuleParamsWithHTTPClient

func NewGetRoleModuleParamsWithHTTPClient(client *http.Client) *GetRoleModuleParams

NewGetRoleModuleParamsWithHTTPClient creates a new GetRoleModuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRoleModuleParamsWithTimeout

func NewGetRoleModuleParamsWithTimeout(timeout time.Duration) *GetRoleModuleParams

NewGetRoleModuleParamsWithTimeout creates a new GetRoleModuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRoleModuleParams) SetContext

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

SetContext adds the context to the get role module params

func (*GetRoleModuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role module params

func (*GetRoleModuleParams) SetRoleID

func (o *GetRoleModuleParams) SetRoleID(roleID *string)

SetRoleID adds the roleId to the get role module params

func (*GetRoleModuleParams) SetTimeout

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

SetTimeout adds the timeout to the get role module params

func (*GetRoleModuleParams) WithContext

WithContext adds the context to the get role module params

func (*GetRoleModuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role module params

func (*GetRoleModuleParams) WithRoleID

func (o *GetRoleModuleParams) WithRoleID(roleID *string) *GetRoleModuleParams

WithRoleID adds the roleID to the get role module params

func (*GetRoleModuleParams) WithTimeout

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

WithTimeout adds the timeout to the get role module params

func (*GetRoleModuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoleModuleReader

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

GetRoleModuleReader is a Reader for the GetRoleModule structure.

func (*GetRoleModuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleOK

type GetRoleOK struct {
	Payload *models.OpenpitrixGetRoleResponse
}

GetRoleOK handles this case with default header values.

A successful response.

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

type GetRoleParams

type GetRoleParams struct {

	/*RoleID
	  required, use role id to get role info.

	*/
	RoleID *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 values initialized.

func NewGetRoleParamsWithContext

func NewGetRoleParamsWithContext(ctx context.Context) *GetRoleParams

NewGetRoleParamsWithContext creates a new GetRoleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) SetRoleID

func (o *GetRoleParams) SetRoleID(roleID *string)

SetRoleID adds the roleId 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) WithRoleID

func (o *GetRoleParams) WithRoleID(roleID *string) *GetRoleParams

WithRoleID adds the roleID 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 ModifyRoleModuleOK

type ModifyRoleModuleOK struct {
	Payload *models.OpenpitrixModifyRoleModuleResponse
}

ModifyRoleModuleOK handles this case with default header values.

A successful response.

func NewModifyRoleModuleOK

func NewModifyRoleModuleOK() *ModifyRoleModuleOK

NewModifyRoleModuleOK creates a ModifyRoleModuleOK with default headers values

func (*ModifyRoleModuleOK) Error

func (o *ModifyRoleModuleOK) Error() string

type ModifyRoleModuleParams

type ModifyRoleModuleParams struct {

	/*Body*/
	Body *models.OpenpitrixModifyRoleModuleRequest

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

ModifyRoleModuleParams contains all the parameters to send to the API endpoint for the modify role module operation typically these are written to a http.Request

func NewModifyRoleModuleParams

func NewModifyRoleModuleParams() *ModifyRoleModuleParams

NewModifyRoleModuleParams creates a new ModifyRoleModuleParams object with the default values initialized.

func NewModifyRoleModuleParamsWithContext

func NewModifyRoleModuleParamsWithContext(ctx context.Context) *ModifyRoleModuleParams

NewModifyRoleModuleParamsWithContext creates a new ModifyRoleModuleParams object with the default values initialized, and the ability to set a context for a request

func NewModifyRoleModuleParamsWithHTTPClient

func NewModifyRoleModuleParamsWithHTTPClient(client *http.Client) *ModifyRoleModuleParams

NewModifyRoleModuleParamsWithHTTPClient creates a new ModifyRoleModuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewModifyRoleModuleParamsWithTimeout

func NewModifyRoleModuleParamsWithTimeout(timeout time.Duration) *ModifyRoleModuleParams

NewModifyRoleModuleParamsWithTimeout creates a new ModifyRoleModuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*ModifyRoleModuleParams) SetBody

SetBody adds the body to the modify role module params

func (*ModifyRoleModuleParams) SetContext

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

SetContext adds the context to the modify role module params

func (*ModifyRoleModuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify role module params

func (*ModifyRoleModuleParams) SetTimeout

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

SetTimeout adds the timeout to the modify role module params

func (*ModifyRoleModuleParams) WithBody

WithBody adds the body to the modify role module params

func (*ModifyRoleModuleParams) WithContext

WithContext adds the context to the modify role module params

func (*ModifyRoleModuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify role module params

func (*ModifyRoleModuleParams) WithTimeout

WithTimeout adds the timeout to the modify role module params

func (*ModifyRoleModuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ModifyRoleModuleReader

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

ModifyRoleModuleReader is a Reader for the ModifyRoleModule structure.

func (*ModifyRoleModuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyRoleOK

type ModifyRoleOK struct {
	Payload *models.OpenpitrixModifyRoleResponse
}

ModifyRoleOK handles this case with default header values.

A successful response.

func NewModifyRoleOK

func NewModifyRoleOK() *ModifyRoleOK

NewModifyRoleOK creates a ModifyRoleOK with default headers values

func (*ModifyRoleOK) Error

func (o *ModifyRoleOK) Error() string

type ModifyRoleParams

type ModifyRoleParams struct {

	/*Body*/
	Body *models.OpenpitrixModifyRoleRequest

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

ModifyRoleParams contains all the parameters to send to the API endpoint for the modify role operation typically these are written to a http.Request

func NewModifyRoleParams

func NewModifyRoleParams() *ModifyRoleParams

NewModifyRoleParams creates a new ModifyRoleParams object with the default values initialized.

func NewModifyRoleParamsWithContext

func NewModifyRoleParamsWithContext(ctx context.Context) *ModifyRoleParams

NewModifyRoleParamsWithContext creates a new ModifyRoleParams object with the default values initialized, and the ability to set a context for a request

func NewModifyRoleParamsWithHTTPClient

func NewModifyRoleParamsWithHTTPClient(client *http.Client) *ModifyRoleParams

NewModifyRoleParamsWithHTTPClient creates a new ModifyRoleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewModifyRoleParamsWithTimeout

func NewModifyRoleParamsWithTimeout(timeout time.Duration) *ModifyRoleParams

NewModifyRoleParamsWithTimeout creates a new ModifyRoleParams object with the default values initialized, and the ability to set a timeout on a request

func (*ModifyRoleParams) SetBody

SetBody adds the body to the modify role params

func (*ModifyRoleParams) SetContext

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

SetContext adds the context to the modify role params

func (*ModifyRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify role params

func (*ModifyRoleParams) SetTimeout

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

SetTimeout adds the timeout to the modify role params

func (*ModifyRoleParams) WithBody

WithBody adds the body to the modify role params

func (*ModifyRoleParams) WithContext

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

WithContext adds the context to the modify role params

func (*ModifyRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify role params

func (*ModifyRoleParams) WithTimeout

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

WithTimeout adds the timeout to the modify role params

func (*ModifyRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ModifyRoleReader

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

ModifyRoleReader is a Reader for the ModifyRole structure.

func (*ModifyRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnbindUserRoleOK

type UnbindUserRoleOK struct {
	Payload *models.OpenpitrixUnbindUserRoleResponse
}

UnbindUserRoleOK handles this case with default header values.

A successful response.

func NewUnbindUserRoleOK

func NewUnbindUserRoleOK() *UnbindUserRoleOK

NewUnbindUserRoleOK creates a UnbindUserRoleOK with default headers values

func (*UnbindUserRoleOK) Error

func (o *UnbindUserRoleOK) Error() string

type UnbindUserRoleParams

type UnbindUserRoleParams struct {

	/*Body*/
	Body *models.OpenpitrixUnbindUserRoleRequest

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

UnbindUserRoleParams contains all the parameters to send to the API endpoint for the unbind user role operation typically these are written to a http.Request

func NewUnbindUserRoleParams

func NewUnbindUserRoleParams() *UnbindUserRoleParams

NewUnbindUserRoleParams creates a new UnbindUserRoleParams object with the default values initialized.

func NewUnbindUserRoleParamsWithContext

func NewUnbindUserRoleParamsWithContext(ctx context.Context) *UnbindUserRoleParams

NewUnbindUserRoleParamsWithContext creates a new UnbindUserRoleParams object with the default values initialized, and the ability to set a context for a request

func NewUnbindUserRoleParamsWithHTTPClient

func NewUnbindUserRoleParamsWithHTTPClient(client *http.Client) *UnbindUserRoleParams

NewUnbindUserRoleParamsWithHTTPClient creates a new UnbindUserRoleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUnbindUserRoleParamsWithTimeout

func NewUnbindUserRoleParamsWithTimeout(timeout time.Duration) *UnbindUserRoleParams

NewUnbindUserRoleParamsWithTimeout creates a new UnbindUserRoleParams object with the default values initialized, and the ability to set a timeout on a request

func (*UnbindUserRoleParams) SetBody

SetBody adds the body to the unbind user role params

func (*UnbindUserRoleParams) SetContext

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

SetContext adds the context to the unbind user role params

func (*UnbindUserRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unbind user role params

func (*UnbindUserRoleParams) SetTimeout

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

SetTimeout adds the timeout to the unbind user role params

func (*UnbindUserRoleParams) WithBody

WithBody adds the body to the unbind user role params

func (*UnbindUserRoleParams) WithContext

WithContext adds the context to the unbind user role params

func (*UnbindUserRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unbind user role params

func (*UnbindUserRoleParams) WithTimeout

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

WithTimeout adds the timeout to the unbind user role params

func (*UnbindUserRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnbindUserRoleReader

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

UnbindUserRoleReader is a Reader for the UnbindUserRole structure.

func (*UnbindUserRoleReader) ReadResponse

func (o *UnbindUserRoleReader) 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