usergroup

package
v0.0.0-...-8db688c Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateUserGroup creates user group

	   Create user group information*/
	CreateUserGroup(ctx context.Context, params *CreateUserGroupParams) (*CreateUserGroupCreated, error)
	/*
	   DeleteUserGroup deletes user group

	   Delete user group*/
	DeleteUserGroup(ctx context.Context, params *DeleteUserGroupParams) (*DeleteUserGroupOK, error)
	/*
	   GetUserGroup gets user group information

	   Get user group information*/
	GetUserGroup(ctx context.Context, params *GetUserGroupParams) (*GetUserGroupOK, error)
	/*
	   ListUserGroups gets all user groups information

	   Get all user groups information, it is open for system admin*/
	ListUserGroups(ctx context.Context, params *ListUserGroupsParams) (*ListUserGroupsOK, error)
	/*
	   SearchUserGroups searches groups by groupname

	   This endpoint is to search groups by group name.  It's open for all authenticated requests.
	*/
	SearchUserGroups(ctx context.Context, params *SearchUserGroupsParams) (*SearchUserGroupsOK, error)
	/*
	   UpdateUserGroup updates group information

	   Update user group information*/
	UpdateUserGroup(ctx context.Context, params *UpdateUserGroupParams) (*UpdateUserGroupOK, error)
}

API is the interface of the usergroup client

type Client

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

Client for usergroup API

func New

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

New creates a new usergroup API client.

func (*Client) CreateUserGroup

func (a *Client) CreateUserGroup(ctx context.Context, params *CreateUserGroupParams) (*CreateUserGroupCreated, error)

CreateUserGroup creates user group

Create user group information

func (*Client) DeleteUserGroup

func (a *Client) DeleteUserGroup(ctx context.Context, params *DeleteUserGroupParams) (*DeleteUserGroupOK, error)

DeleteUserGroup deletes user group

Delete user group

func (*Client) GetUserGroup

func (a *Client) GetUserGroup(ctx context.Context, params *GetUserGroupParams) (*GetUserGroupOK, error)

GetUserGroup gets user group information

Get user group information

func (*Client) ListUserGroups

func (a *Client) ListUserGroups(ctx context.Context, params *ListUserGroupsParams) (*ListUserGroupsOK, error)

ListUserGroups gets all user groups information

Get all user groups information, it is open for system admin

func (*Client) SearchUserGroups

func (a *Client) SearchUserGroups(ctx context.Context, params *SearchUserGroupsParams) (*SearchUserGroupsOK, error)

SearchUserGroups searches groups by groupname

This endpoint is to search groups by group name. It's open for all authenticated requests.

func (*Client) UpdateUserGroup

func (a *Client) UpdateUserGroup(ctx context.Context, params *UpdateUserGroupParams) (*UpdateUserGroupOK, error)

UpdateUserGroup updates group information

Update user group information

type CreateUserGroupBadRequest

type CreateUserGroupBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Bad request

func NewCreateUserGroupBadRequest

func NewCreateUserGroupBadRequest() *CreateUserGroupBadRequest

NewCreateUserGroupBadRequest creates a CreateUserGroupBadRequest with default headers values

func (*CreateUserGroupBadRequest) Code

func (o *CreateUserGroupBadRequest) Code() int

Code gets the status code for the create user group bad request response

func (*CreateUserGroupBadRequest) Error

func (o *CreateUserGroupBadRequest) Error() string

func (*CreateUserGroupBadRequest) GetPayload

func (o *CreateUserGroupBadRequest) GetPayload() *models.Errors

func (*CreateUserGroupBadRequest) IsClientError

func (o *CreateUserGroupBadRequest) IsClientError() bool

IsClientError returns true when this create user group bad request response has a 4xx status code

func (*CreateUserGroupBadRequest) IsCode

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

IsCode returns true when this create user group bad request response a status code equal to that given

func (*CreateUserGroupBadRequest) IsRedirect

func (o *CreateUserGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this create user group bad request response has a 3xx status code

func (*CreateUserGroupBadRequest) IsServerError

func (o *CreateUserGroupBadRequest) IsServerError() bool

IsServerError returns true when this create user group bad request response has a 5xx status code

func (*CreateUserGroupBadRequest) IsSuccess

func (o *CreateUserGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this create user group bad request response has a 2xx status code

func (*CreateUserGroupBadRequest) String

func (o *CreateUserGroupBadRequest) String() string

type CreateUserGroupConflict

type CreateUserGroupConflict struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateUserGroupConflict describes a response with status code 409, with default header values.

Conflict

func NewCreateUserGroupConflict

func NewCreateUserGroupConflict() *CreateUserGroupConflict

NewCreateUserGroupConflict creates a CreateUserGroupConflict with default headers values

func (*CreateUserGroupConflict) Code

func (o *CreateUserGroupConflict) Code() int

Code gets the status code for the create user group conflict response

func (*CreateUserGroupConflict) Error

func (o *CreateUserGroupConflict) Error() string

func (*CreateUserGroupConflict) GetPayload

func (o *CreateUserGroupConflict) GetPayload() *models.Errors

func (*CreateUserGroupConflict) IsClientError

func (o *CreateUserGroupConflict) IsClientError() bool

IsClientError returns true when this create user group conflict response has a 4xx status code

func (*CreateUserGroupConflict) IsCode

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

IsCode returns true when this create user group conflict response a status code equal to that given

func (*CreateUserGroupConflict) IsRedirect

func (o *CreateUserGroupConflict) IsRedirect() bool

IsRedirect returns true when this create user group conflict response has a 3xx status code

func (*CreateUserGroupConflict) IsServerError

func (o *CreateUserGroupConflict) IsServerError() bool

IsServerError returns true when this create user group conflict response has a 5xx status code

func (*CreateUserGroupConflict) IsSuccess

func (o *CreateUserGroupConflict) IsSuccess() bool

IsSuccess returns true when this create user group conflict response has a 2xx status code

func (*CreateUserGroupConflict) String

func (o *CreateUserGroupConflict) String() string

type CreateUserGroupCreated

type CreateUserGroupCreated struct {

	/* The URL of the created resource
	 */
	Location string
}

CreateUserGroupCreated describes a response with status code 201, with default header values.

User group created successfully.

func NewCreateUserGroupCreated

func NewCreateUserGroupCreated() *CreateUserGroupCreated

NewCreateUserGroupCreated creates a CreateUserGroupCreated with default headers values

func (*CreateUserGroupCreated) Code

func (o *CreateUserGroupCreated) Code() int

Code gets the status code for the create user group created response

func (*CreateUserGroupCreated) Error

func (o *CreateUserGroupCreated) Error() string

func (*CreateUserGroupCreated) IsClientError

func (o *CreateUserGroupCreated) IsClientError() bool

IsClientError returns true when this create user group created response has a 4xx status code

func (*CreateUserGroupCreated) IsCode

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

IsCode returns true when this create user group created response a status code equal to that given

func (*CreateUserGroupCreated) IsRedirect

func (o *CreateUserGroupCreated) IsRedirect() bool

IsRedirect returns true when this create user group created response has a 3xx status code

func (*CreateUserGroupCreated) IsServerError

func (o *CreateUserGroupCreated) IsServerError() bool

IsServerError returns true when this create user group created response has a 5xx status code

func (*CreateUserGroupCreated) IsSuccess

func (o *CreateUserGroupCreated) IsSuccess() bool

IsSuccess returns true when this create user group created response has a 2xx status code

func (*CreateUserGroupCreated) String

func (o *CreateUserGroupCreated) String() string

type CreateUserGroupForbidden

type CreateUserGroupForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewCreateUserGroupForbidden

func NewCreateUserGroupForbidden() *CreateUserGroupForbidden

NewCreateUserGroupForbidden creates a CreateUserGroupForbidden with default headers values

func (*CreateUserGroupForbidden) Code

func (o *CreateUserGroupForbidden) Code() int

Code gets the status code for the create user group forbidden response

func (*CreateUserGroupForbidden) Error

func (o *CreateUserGroupForbidden) Error() string

func (*CreateUserGroupForbidden) GetPayload

func (o *CreateUserGroupForbidden) GetPayload() *models.Errors

func (*CreateUserGroupForbidden) IsClientError

func (o *CreateUserGroupForbidden) IsClientError() bool

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

func (*CreateUserGroupForbidden) IsCode

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

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

func (*CreateUserGroupForbidden) IsRedirect

func (o *CreateUserGroupForbidden) IsRedirect() bool

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

func (*CreateUserGroupForbidden) IsServerError

func (o *CreateUserGroupForbidden) IsServerError() bool

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

func (*CreateUserGroupForbidden) IsSuccess

func (o *CreateUserGroupForbidden) IsSuccess() bool

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

func (*CreateUserGroupForbidden) String

func (o *CreateUserGroupForbidden) String() string

type CreateUserGroupInternalServerError

type CreateUserGroupInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateUserGroupInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewCreateUserGroupInternalServerError

func NewCreateUserGroupInternalServerError() *CreateUserGroupInternalServerError

NewCreateUserGroupInternalServerError creates a CreateUserGroupInternalServerError with default headers values

func (*CreateUserGroupInternalServerError) Code

Code gets the status code for the create user group internal server error response

func (*CreateUserGroupInternalServerError) Error

func (*CreateUserGroupInternalServerError) GetPayload

func (*CreateUserGroupInternalServerError) IsClientError

func (o *CreateUserGroupInternalServerError) IsClientError() bool

IsClientError returns true when this create user group internal server error response has a 4xx status code

func (*CreateUserGroupInternalServerError) IsCode

IsCode returns true when this create user group internal server error response a status code equal to that given

func (*CreateUserGroupInternalServerError) IsRedirect

func (o *CreateUserGroupInternalServerError) IsRedirect() bool

IsRedirect returns true when this create user group internal server error response has a 3xx status code

func (*CreateUserGroupInternalServerError) IsServerError

func (o *CreateUserGroupInternalServerError) IsServerError() bool

IsServerError returns true when this create user group internal server error response has a 5xx status code

func (*CreateUserGroupInternalServerError) IsSuccess

IsSuccess returns true when this create user group internal server error response has a 2xx status code

func (*CreateUserGroupInternalServerError) String

type CreateUserGroupParams

type CreateUserGroupParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	// Usergroup.
	Usergroup *models.UserGroup `js:"usergroup"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

CreateUserGroupParams contains all the parameters to send to the API endpoint

for the create user group operation.

Typically these are written to a http.Request.

func NewCreateUserGroupParams

func NewCreateUserGroupParams() *CreateUserGroupParams

NewCreateUserGroupParams creates a new CreateUserGroupParams 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 NewCreateUserGroupParamsWithContext

func NewCreateUserGroupParamsWithContext(ctx context.Context) *CreateUserGroupParams

NewCreateUserGroupParamsWithContext creates a new CreateUserGroupParams object with the ability to set a context for a request.

func NewCreateUserGroupParamsWithHTTPClient

func NewCreateUserGroupParamsWithHTTPClient(client *http.Client) *CreateUserGroupParams

NewCreateUserGroupParamsWithHTTPClient creates a new CreateUserGroupParams object with the ability to set a custom HTTPClient for a request.

func NewCreateUserGroupParamsWithTimeout

func NewCreateUserGroupParamsWithTimeout(timeout time.Duration) *CreateUserGroupParams

NewCreateUserGroupParamsWithTimeout creates a new CreateUserGroupParams object with the ability to set a timeout on a request.

func (*CreateUserGroupParams) SetContext

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

SetContext adds the context to the create user group params

func (*CreateUserGroupParams) SetDefaults

func (o *CreateUserGroupParams) SetDefaults()

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

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

func (*CreateUserGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user group params

func (*CreateUserGroupParams) SetTimeout

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

SetTimeout adds the timeout to the create user group params

func (*CreateUserGroupParams) SetUsergroup

func (o *CreateUserGroupParams) SetUsergroup(usergroup *models.UserGroup)

SetUsergroup adds the usergroup to the create user group params

func (*CreateUserGroupParams) SetXRequestID

func (o *CreateUserGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create user group params

func (*CreateUserGroupParams) WithContext

WithContext adds the context to the create user group params

func (*CreateUserGroupParams) WithDefaults

func (o *CreateUserGroupParams) WithDefaults() *CreateUserGroupParams

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

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

func (*CreateUserGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create user group params

func (*CreateUserGroupParams) WithTimeout

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

WithTimeout adds the timeout to the create user group params

func (*CreateUserGroupParams) WithUsergroup

func (o *CreateUserGroupParams) WithUsergroup(usergroup *models.UserGroup) *CreateUserGroupParams

WithUsergroup adds the usergroup to the create user group params

func (*CreateUserGroupParams) WithXRequestID

func (o *CreateUserGroupParams) WithXRequestID(xRequestID *string) *CreateUserGroupParams

WithXRequestID adds the xRequestID to the create user group params

func (*CreateUserGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateUserGroupReader

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

CreateUserGroupReader is a Reader for the CreateUserGroup structure.

func (*CreateUserGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserGroupUnauthorized

type CreateUserGroupUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateUserGroupUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateUserGroupUnauthorized

func NewCreateUserGroupUnauthorized() *CreateUserGroupUnauthorized

NewCreateUserGroupUnauthorized creates a CreateUserGroupUnauthorized with default headers values

func (*CreateUserGroupUnauthorized) Code

func (o *CreateUserGroupUnauthorized) Code() int

Code gets the status code for the create user group unauthorized response

func (*CreateUserGroupUnauthorized) Error

func (*CreateUserGroupUnauthorized) GetPayload

func (o *CreateUserGroupUnauthorized) GetPayload() *models.Errors

func (*CreateUserGroupUnauthorized) IsClientError

func (o *CreateUserGroupUnauthorized) IsClientError() bool

IsClientError returns true when this create user group unauthorized response has a 4xx status code

func (*CreateUserGroupUnauthorized) IsCode

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

IsCode returns true when this create user group unauthorized response a status code equal to that given

func (*CreateUserGroupUnauthorized) IsRedirect

func (o *CreateUserGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this create user group unauthorized response has a 3xx status code

func (*CreateUserGroupUnauthorized) IsServerError

func (o *CreateUserGroupUnauthorized) IsServerError() bool

IsServerError returns true when this create user group unauthorized response has a 5xx status code

func (*CreateUserGroupUnauthorized) IsSuccess

func (o *CreateUserGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this create user group unauthorized response has a 2xx status code

func (*CreateUserGroupUnauthorized) String

func (o *CreateUserGroupUnauthorized) String() string

type DeleteUserGroupBadRequest

type DeleteUserGroupBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Bad request

func NewDeleteUserGroupBadRequest

func NewDeleteUserGroupBadRequest() *DeleteUserGroupBadRequest

NewDeleteUserGroupBadRequest creates a DeleteUserGroupBadRequest with default headers values

func (*DeleteUserGroupBadRequest) Code

func (o *DeleteUserGroupBadRequest) Code() int

Code gets the status code for the delete user group bad request response

func (*DeleteUserGroupBadRequest) Error

func (o *DeleteUserGroupBadRequest) Error() string

func (*DeleteUserGroupBadRequest) GetPayload

func (o *DeleteUserGroupBadRequest) GetPayload() *models.Errors

func (*DeleteUserGroupBadRequest) IsClientError

func (o *DeleteUserGroupBadRequest) IsClientError() bool

IsClientError returns true when this delete user group bad request response has a 4xx status code

func (*DeleteUserGroupBadRequest) IsCode

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

IsCode returns true when this delete user group bad request response a status code equal to that given

func (*DeleteUserGroupBadRequest) IsRedirect

func (o *DeleteUserGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this delete user group bad request response has a 3xx status code

func (*DeleteUserGroupBadRequest) IsServerError

func (o *DeleteUserGroupBadRequest) IsServerError() bool

IsServerError returns true when this delete user group bad request response has a 5xx status code

func (*DeleteUserGroupBadRequest) IsSuccess

func (o *DeleteUserGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this delete user group bad request response has a 2xx status code

func (*DeleteUserGroupBadRequest) String

func (o *DeleteUserGroupBadRequest) String() string

type DeleteUserGroupForbidden

type DeleteUserGroupForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewDeleteUserGroupForbidden

func NewDeleteUserGroupForbidden() *DeleteUserGroupForbidden

NewDeleteUserGroupForbidden creates a DeleteUserGroupForbidden with default headers values

func (*DeleteUserGroupForbidden) Code

func (o *DeleteUserGroupForbidden) Code() int

Code gets the status code for the delete user group forbidden response

func (*DeleteUserGroupForbidden) Error

func (o *DeleteUserGroupForbidden) Error() string

func (*DeleteUserGroupForbidden) GetPayload

func (o *DeleteUserGroupForbidden) GetPayload() *models.Errors

func (*DeleteUserGroupForbidden) IsClientError

func (o *DeleteUserGroupForbidden) IsClientError() bool

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

func (*DeleteUserGroupForbidden) IsCode

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

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

func (*DeleteUserGroupForbidden) IsRedirect

func (o *DeleteUserGroupForbidden) IsRedirect() bool

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

func (*DeleteUserGroupForbidden) IsServerError

func (o *DeleteUserGroupForbidden) IsServerError() bool

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

func (*DeleteUserGroupForbidden) IsSuccess

func (o *DeleteUserGroupForbidden) IsSuccess() bool

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

func (*DeleteUserGroupForbidden) String

func (o *DeleteUserGroupForbidden) String() string

type DeleteUserGroupInternalServerError

type DeleteUserGroupInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteUserGroupInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteUserGroupInternalServerError

func NewDeleteUserGroupInternalServerError() *DeleteUserGroupInternalServerError

NewDeleteUserGroupInternalServerError creates a DeleteUserGroupInternalServerError with default headers values

func (*DeleteUserGroupInternalServerError) Code

Code gets the status code for the delete user group internal server error response

func (*DeleteUserGroupInternalServerError) Error

func (*DeleteUserGroupInternalServerError) GetPayload

func (*DeleteUserGroupInternalServerError) IsClientError

func (o *DeleteUserGroupInternalServerError) IsClientError() bool

IsClientError returns true when this delete user group internal server error response has a 4xx status code

func (*DeleteUserGroupInternalServerError) IsCode

IsCode returns true when this delete user group internal server error response a status code equal to that given

func (*DeleteUserGroupInternalServerError) IsRedirect

func (o *DeleteUserGroupInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete user group internal server error response has a 3xx status code

func (*DeleteUserGroupInternalServerError) IsServerError

func (o *DeleteUserGroupInternalServerError) IsServerError() bool

IsServerError returns true when this delete user group internal server error response has a 5xx status code

func (*DeleteUserGroupInternalServerError) IsSuccess

IsSuccess returns true when this delete user group internal server error response has a 2xx status code

func (*DeleteUserGroupInternalServerError) String

type DeleteUserGroupOK

type DeleteUserGroupOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewDeleteUserGroupOK

func NewDeleteUserGroupOK() *DeleteUserGroupOK

NewDeleteUserGroupOK creates a DeleteUserGroupOK with default headers values

func (*DeleteUserGroupOK) Code

func (o *DeleteUserGroupOK) Code() int

Code gets the status code for the delete user group o k response

func (*DeleteUserGroupOK) Error

func (o *DeleteUserGroupOK) Error() string

func (*DeleteUserGroupOK) IsClientError

func (o *DeleteUserGroupOK) IsClientError() bool

IsClientError returns true when this delete user group o k response has a 4xx status code

func (*DeleteUserGroupOK) IsCode

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

IsCode returns true when this delete user group o k response a status code equal to that given

func (*DeleteUserGroupOK) IsRedirect

func (o *DeleteUserGroupOK) IsRedirect() bool

IsRedirect returns true when this delete user group o k response has a 3xx status code

func (*DeleteUserGroupOK) IsServerError

func (o *DeleteUserGroupOK) IsServerError() bool

IsServerError returns true when this delete user group o k response has a 5xx status code

func (*DeleteUserGroupOK) IsSuccess

func (o *DeleteUserGroupOK) IsSuccess() bool

IsSuccess returns true when this delete user group o k response has a 2xx status code

func (*DeleteUserGroupOK) String

func (o *DeleteUserGroupOK) String() string

type DeleteUserGroupParams

type DeleteUserGroupParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	// GroupID.
	GroupID int64 `js:"groupID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

DeleteUserGroupParams contains all the parameters to send to the API endpoint

for the delete user group operation.

Typically these are written to a http.Request.

func NewDeleteUserGroupParams

func NewDeleteUserGroupParams() *DeleteUserGroupParams

NewDeleteUserGroupParams creates a new DeleteUserGroupParams 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 NewDeleteUserGroupParamsWithContext

func NewDeleteUserGroupParamsWithContext(ctx context.Context) *DeleteUserGroupParams

NewDeleteUserGroupParamsWithContext creates a new DeleteUserGroupParams object with the ability to set a context for a request.

func NewDeleteUserGroupParamsWithHTTPClient

func NewDeleteUserGroupParamsWithHTTPClient(client *http.Client) *DeleteUserGroupParams

NewDeleteUserGroupParamsWithHTTPClient creates a new DeleteUserGroupParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteUserGroupParamsWithTimeout

func NewDeleteUserGroupParamsWithTimeout(timeout time.Duration) *DeleteUserGroupParams

NewDeleteUserGroupParamsWithTimeout creates a new DeleteUserGroupParams object with the ability to set a timeout on a request.

func (*DeleteUserGroupParams) SetContext

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

SetContext adds the context to the delete user group params

func (*DeleteUserGroupParams) SetDefaults

func (o *DeleteUserGroupParams) SetDefaults()

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

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

func (*DeleteUserGroupParams) SetGroupID

func (o *DeleteUserGroupParams) SetGroupID(groupID int64)

SetGroupID adds the groupId to the delete user group params

func (*DeleteUserGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete user group params

func (*DeleteUserGroupParams) SetTimeout

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

SetTimeout adds the timeout to the delete user group params

func (*DeleteUserGroupParams) SetXRequestID

func (o *DeleteUserGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete user group params

func (*DeleteUserGroupParams) WithContext

WithContext adds the context to the delete user group params

func (*DeleteUserGroupParams) WithDefaults

func (o *DeleteUserGroupParams) WithDefaults() *DeleteUserGroupParams

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

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

func (*DeleteUserGroupParams) WithGroupID

func (o *DeleteUserGroupParams) WithGroupID(groupID int64) *DeleteUserGroupParams

WithGroupID adds the groupID to the delete user group params

func (*DeleteUserGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user group params

func (*DeleteUserGroupParams) WithTimeout

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

WithTimeout adds the timeout to the delete user group params

func (*DeleteUserGroupParams) WithXRequestID

func (o *DeleteUserGroupParams) WithXRequestID(xRequestID *string) *DeleteUserGroupParams

WithXRequestID adds the xRequestID to the delete user group params

func (*DeleteUserGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteUserGroupReader

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

DeleteUserGroupReader is a Reader for the DeleteUserGroup structure.

func (*DeleteUserGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteUserGroupUnauthorized

type DeleteUserGroupUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteUserGroupUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteUserGroupUnauthorized

func NewDeleteUserGroupUnauthorized() *DeleteUserGroupUnauthorized

NewDeleteUserGroupUnauthorized creates a DeleteUserGroupUnauthorized with default headers values

func (*DeleteUserGroupUnauthorized) Code

func (o *DeleteUserGroupUnauthorized) Code() int

Code gets the status code for the delete user group unauthorized response

func (*DeleteUserGroupUnauthorized) Error

func (*DeleteUserGroupUnauthorized) GetPayload

func (o *DeleteUserGroupUnauthorized) GetPayload() *models.Errors

func (*DeleteUserGroupUnauthorized) IsClientError

func (o *DeleteUserGroupUnauthorized) IsClientError() bool

IsClientError returns true when this delete user group unauthorized response has a 4xx status code

func (*DeleteUserGroupUnauthorized) IsCode

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

IsCode returns true when this delete user group unauthorized response a status code equal to that given

func (*DeleteUserGroupUnauthorized) IsRedirect

func (o *DeleteUserGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete user group unauthorized response has a 3xx status code

func (*DeleteUserGroupUnauthorized) IsServerError

func (o *DeleteUserGroupUnauthorized) IsServerError() bool

IsServerError returns true when this delete user group unauthorized response has a 5xx status code

func (*DeleteUserGroupUnauthorized) IsSuccess

func (o *DeleteUserGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete user group unauthorized response has a 2xx status code

func (*DeleteUserGroupUnauthorized) String

func (o *DeleteUserGroupUnauthorized) String() string

type GetUserGroupBadRequest

type GetUserGroupBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Bad request

func NewGetUserGroupBadRequest

func NewGetUserGroupBadRequest() *GetUserGroupBadRequest

NewGetUserGroupBadRequest creates a GetUserGroupBadRequest with default headers values

func (*GetUserGroupBadRequest) Code

func (o *GetUserGroupBadRequest) Code() int

Code gets the status code for the get user group bad request response

func (*GetUserGroupBadRequest) Error

func (o *GetUserGroupBadRequest) Error() string

func (*GetUserGroupBadRequest) GetPayload

func (o *GetUserGroupBadRequest) GetPayload() *models.Errors

func (*GetUserGroupBadRequest) IsClientError

func (o *GetUserGroupBadRequest) IsClientError() bool

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

func (*GetUserGroupBadRequest) IsCode

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

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

func (*GetUserGroupBadRequest) IsRedirect

func (o *GetUserGroupBadRequest) IsRedirect() bool

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

func (*GetUserGroupBadRequest) IsServerError

func (o *GetUserGroupBadRequest) IsServerError() bool

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

func (*GetUserGroupBadRequest) IsSuccess

func (o *GetUserGroupBadRequest) IsSuccess() bool

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

func (*GetUserGroupBadRequest) String

func (o *GetUserGroupBadRequest) String() string

type GetUserGroupForbidden

type GetUserGroupForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewGetUserGroupForbidden

func NewGetUserGroupForbidden() *GetUserGroupForbidden

NewGetUserGroupForbidden creates a GetUserGroupForbidden with default headers values

func (*GetUserGroupForbidden) Code

func (o *GetUserGroupForbidden) Code() int

Code gets the status code for the get user group forbidden response

func (*GetUserGroupForbidden) Error

func (o *GetUserGroupForbidden) Error() string

func (*GetUserGroupForbidden) GetPayload

func (o *GetUserGroupForbidden) GetPayload() *models.Errors

func (*GetUserGroupForbidden) IsClientError

func (o *GetUserGroupForbidden) IsClientError() bool

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

func (*GetUserGroupForbidden) IsCode

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

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

func (*GetUserGroupForbidden) IsRedirect

func (o *GetUserGroupForbidden) IsRedirect() bool

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

func (*GetUserGroupForbidden) IsServerError

func (o *GetUserGroupForbidden) IsServerError() bool

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

func (*GetUserGroupForbidden) IsSuccess

func (o *GetUserGroupForbidden) IsSuccess() bool

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

func (*GetUserGroupForbidden) String

func (o *GetUserGroupForbidden) String() string

type GetUserGroupInternalServerError

type GetUserGroupInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetUserGroupInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetUserGroupInternalServerError

func NewGetUserGroupInternalServerError() *GetUserGroupInternalServerError

NewGetUserGroupInternalServerError creates a GetUserGroupInternalServerError with default headers values

func (*GetUserGroupInternalServerError) Code

Code gets the status code for the get user group internal server error response

func (*GetUserGroupInternalServerError) Error

func (*GetUserGroupInternalServerError) GetPayload

func (*GetUserGroupInternalServerError) IsClientError

func (o *GetUserGroupInternalServerError) IsClientError() bool

IsClientError returns true when this get user group internal server error response has a 4xx status code

func (*GetUserGroupInternalServerError) IsCode

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

IsCode returns true when this get user group internal server error response a status code equal to that given

func (*GetUserGroupInternalServerError) IsRedirect

func (o *GetUserGroupInternalServerError) IsRedirect() bool

IsRedirect returns true when this get user group internal server error response has a 3xx status code

func (*GetUserGroupInternalServerError) IsServerError

func (o *GetUserGroupInternalServerError) IsServerError() bool

IsServerError returns true when this get user group internal server error response has a 5xx status code

func (*GetUserGroupInternalServerError) IsSuccess

func (o *GetUserGroupInternalServerError) IsSuccess() bool

IsSuccess returns true when this get user group internal server error response has a 2xx status code

func (*GetUserGroupInternalServerError) String

type GetUserGroupNotFound

type GetUserGroupNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Not found

func NewGetUserGroupNotFound

func NewGetUserGroupNotFound() *GetUserGroupNotFound

NewGetUserGroupNotFound creates a GetUserGroupNotFound with default headers values

func (*GetUserGroupNotFound) Code

func (o *GetUserGroupNotFound) Code() int

Code gets the status code for the get user group not found response

func (*GetUserGroupNotFound) Error

func (o *GetUserGroupNotFound) Error() string

func (*GetUserGroupNotFound) GetPayload

func (o *GetUserGroupNotFound) GetPayload() *models.Errors

func (*GetUserGroupNotFound) IsClientError

func (o *GetUserGroupNotFound) IsClientError() bool

IsClientError returns true when this get user group not found response has a 4xx status code

func (*GetUserGroupNotFound) IsCode

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

IsCode returns true when this get user group not found response a status code equal to that given

func (*GetUserGroupNotFound) IsRedirect

func (o *GetUserGroupNotFound) IsRedirect() bool

IsRedirect returns true when this get user group not found response has a 3xx status code

func (*GetUserGroupNotFound) IsServerError

func (o *GetUserGroupNotFound) IsServerError() bool

IsServerError returns true when this get user group not found response has a 5xx status code

func (*GetUserGroupNotFound) IsSuccess

func (o *GetUserGroupNotFound) IsSuccess() bool

IsSuccess returns true when this get user group not found response has a 2xx status code

func (*GetUserGroupNotFound) String

func (o *GetUserGroupNotFound) String() string

type GetUserGroupOK

type GetUserGroupOK struct {
	Payload *models.UserGroup
}

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

User group get successfully.

func NewGetUserGroupOK

func NewGetUserGroupOK() *GetUserGroupOK

NewGetUserGroupOK creates a GetUserGroupOK with default headers values

func (*GetUserGroupOK) Code

func (o *GetUserGroupOK) Code() int

Code gets the status code for the get user group o k response

func (*GetUserGroupOK) Error

func (o *GetUserGroupOK) Error() string

func (*GetUserGroupOK) GetPayload

func (o *GetUserGroupOK) GetPayload() *models.UserGroup

func (*GetUserGroupOK) IsClientError

func (o *GetUserGroupOK) IsClientError() bool

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

func (*GetUserGroupOK) IsCode

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

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

func (*GetUserGroupOK) IsRedirect

func (o *GetUserGroupOK) IsRedirect() bool

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

func (*GetUserGroupOK) IsServerError

func (o *GetUserGroupOK) IsServerError() bool

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

func (*GetUserGroupOK) IsSuccess

func (o *GetUserGroupOK) IsSuccess() bool

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

func (*GetUserGroupOK) String

func (o *GetUserGroupOK) String() string

type GetUserGroupParams

type GetUserGroupParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* GroupID.

	   Group ID

	   Format: int64
	*/
	GroupID int64 `js:"groupID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

GetUserGroupParams contains all the parameters to send to the API endpoint

for the get user group operation.

Typically these are written to a http.Request.

func NewGetUserGroupParams

func NewGetUserGroupParams() *GetUserGroupParams

NewGetUserGroupParams creates a new GetUserGroupParams 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 NewGetUserGroupParamsWithContext

func NewGetUserGroupParamsWithContext(ctx context.Context) *GetUserGroupParams

NewGetUserGroupParamsWithContext creates a new GetUserGroupParams object with the ability to set a context for a request.

func NewGetUserGroupParamsWithHTTPClient

func NewGetUserGroupParamsWithHTTPClient(client *http.Client) *GetUserGroupParams

NewGetUserGroupParamsWithHTTPClient creates a new GetUserGroupParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserGroupParamsWithTimeout

func NewGetUserGroupParamsWithTimeout(timeout time.Duration) *GetUserGroupParams

NewGetUserGroupParamsWithTimeout creates a new GetUserGroupParams object with the ability to set a timeout on a request.

func (*GetUserGroupParams) SetContext

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

SetContext adds the context to the get user group params

func (*GetUserGroupParams) SetDefaults

func (o *GetUserGroupParams) SetDefaults()

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

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

func (*GetUserGroupParams) SetGroupID

func (o *GetUserGroupParams) SetGroupID(groupID int64)

SetGroupID adds the groupId to the get user group params

func (*GetUserGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user group params

func (*GetUserGroupParams) SetTimeout

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

SetTimeout adds the timeout to the get user group params

func (*GetUserGroupParams) SetXRequestID

func (o *GetUserGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get user group params

func (*GetUserGroupParams) WithContext

WithContext adds the context to the get user group params

func (*GetUserGroupParams) WithDefaults

func (o *GetUserGroupParams) WithDefaults() *GetUserGroupParams

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

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

func (*GetUserGroupParams) WithGroupID

func (o *GetUserGroupParams) WithGroupID(groupID int64) *GetUserGroupParams

WithGroupID adds the groupID to the get user group params

func (*GetUserGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user group params

func (*GetUserGroupParams) WithTimeout

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

WithTimeout adds the timeout to the get user group params

func (*GetUserGroupParams) WithXRequestID

func (o *GetUserGroupParams) WithXRequestID(xRequestID *string) *GetUserGroupParams

WithXRequestID adds the xRequestID to the get user group params

func (*GetUserGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserGroupReader

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

GetUserGroupReader is a Reader for the GetUserGroup structure.

func (*GetUserGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserGroupUnauthorized

type GetUserGroupUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetUserGroupUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetUserGroupUnauthorized

func NewGetUserGroupUnauthorized() *GetUserGroupUnauthorized

NewGetUserGroupUnauthorized creates a GetUserGroupUnauthorized with default headers values

func (*GetUserGroupUnauthorized) Code

func (o *GetUserGroupUnauthorized) Code() int

Code gets the status code for the get user group unauthorized response

func (*GetUserGroupUnauthorized) Error

func (o *GetUserGroupUnauthorized) Error() string

func (*GetUserGroupUnauthorized) GetPayload

func (o *GetUserGroupUnauthorized) GetPayload() *models.Errors

func (*GetUserGroupUnauthorized) IsClientError

func (o *GetUserGroupUnauthorized) IsClientError() bool

IsClientError returns true when this get user group unauthorized response has a 4xx status code

func (*GetUserGroupUnauthorized) IsCode

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

IsCode returns true when this get user group unauthorized response a status code equal to that given

func (*GetUserGroupUnauthorized) IsRedirect

func (o *GetUserGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this get user group unauthorized response has a 3xx status code

func (*GetUserGroupUnauthorized) IsServerError

func (o *GetUserGroupUnauthorized) IsServerError() bool

IsServerError returns true when this get user group unauthorized response has a 5xx status code

func (*GetUserGroupUnauthorized) IsSuccess

func (o *GetUserGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this get user group unauthorized response has a 2xx status code

func (*GetUserGroupUnauthorized) String

func (o *GetUserGroupUnauthorized) String() string

type ListUserGroupsForbidden

type ListUserGroupsForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewListUserGroupsForbidden

func NewListUserGroupsForbidden() *ListUserGroupsForbidden

NewListUserGroupsForbidden creates a ListUserGroupsForbidden with default headers values

func (*ListUserGroupsForbidden) Code

func (o *ListUserGroupsForbidden) Code() int

Code gets the status code for the list user groups forbidden response

func (*ListUserGroupsForbidden) Error

func (o *ListUserGroupsForbidden) Error() string

func (*ListUserGroupsForbidden) GetPayload

func (o *ListUserGroupsForbidden) GetPayload() *models.Errors

func (*ListUserGroupsForbidden) IsClientError

func (o *ListUserGroupsForbidden) IsClientError() bool

IsClientError returns true when this list user groups forbidden response has a 4xx status code

func (*ListUserGroupsForbidden) IsCode

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

IsCode returns true when this list user groups forbidden response a status code equal to that given

func (*ListUserGroupsForbidden) IsRedirect

func (o *ListUserGroupsForbidden) IsRedirect() bool

IsRedirect returns true when this list user groups forbidden response has a 3xx status code

func (*ListUserGroupsForbidden) IsServerError

func (o *ListUserGroupsForbidden) IsServerError() bool

IsServerError returns true when this list user groups forbidden response has a 5xx status code

func (*ListUserGroupsForbidden) IsSuccess

func (o *ListUserGroupsForbidden) IsSuccess() bool

IsSuccess returns true when this list user groups forbidden response has a 2xx status code

func (*ListUserGroupsForbidden) String

func (o *ListUserGroupsForbidden) String() string

type ListUserGroupsInternalServerError

type ListUserGroupsInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListUserGroupsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewListUserGroupsInternalServerError

func NewListUserGroupsInternalServerError() *ListUserGroupsInternalServerError

NewListUserGroupsInternalServerError creates a ListUserGroupsInternalServerError with default headers values

func (*ListUserGroupsInternalServerError) Code

Code gets the status code for the list user groups internal server error response

func (*ListUserGroupsInternalServerError) Error

func (*ListUserGroupsInternalServerError) GetPayload

func (*ListUserGroupsInternalServerError) IsClientError

func (o *ListUserGroupsInternalServerError) IsClientError() bool

IsClientError returns true when this list user groups internal server error response has a 4xx status code

func (*ListUserGroupsInternalServerError) IsCode

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

IsCode returns true when this list user groups internal server error response a status code equal to that given

func (*ListUserGroupsInternalServerError) IsRedirect

func (o *ListUserGroupsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list user groups internal server error response has a 3xx status code

func (*ListUserGroupsInternalServerError) IsServerError

func (o *ListUserGroupsInternalServerError) IsServerError() bool

IsServerError returns true when this list user groups internal server error response has a 5xx status code

func (*ListUserGroupsInternalServerError) IsSuccess

func (o *ListUserGroupsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list user groups internal server error response has a 2xx status code

func (*ListUserGroupsInternalServerError) String

type ListUserGroupsOK

type ListUserGroupsOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of available items
	 */
	XTotalCount int64

	Payload []*models.UserGroup
}

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

Get user group successfully.

func NewListUserGroupsOK

func NewListUserGroupsOK() *ListUserGroupsOK

NewListUserGroupsOK creates a ListUserGroupsOK with default headers values

func (*ListUserGroupsOK) Code

func (o *ListUserGroupsOK) Code() int

Code gets the status code for the list user groups o k response

func (*ListUserGroupsOK) Error

func (o *ListUserGroupsOK) Error() string

func (*ListUserGroupsOK) GetPayload

func (o *ListUserGroupsOK) GetPayload() []*models.UserGroup

func (*ListUserGroupsOK) IsClientError

func (o *ListUserGroupsOK) IsClientError() bool

IsClientError returns true when this list user groups o k response has a 4xx status code

func (*ListUserGroupsOK) IsCode

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

IsCode returns true when this list user groups o k response a status code equal to that given

func (*ListUserGroupsOK) IsRedirect

func (o *ListUserGroupsOK) IsRedirect() bool

IsRedirect returns true when this list user groups o k response has a 3xx status code

func (*ListUserGroupsOK) IsServerError

func (o *ListUserGroupsOK) IsServerError() bool

IsServerError returns true when this list user groups o k response has a 5xx status code

func (*ListUserGroupsOK) IsSuccess

func (o *ListUserGroupsOK) IsSuccess() bool

IsSuccess returns true when this list user groups o k response has a 2xx status code

func (*ListUserGroupsOK) String

func (o *ListUserGroupsOK) String() string

type ListUserGroupsParams

type ListUserGroupsParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* GroupName.

	   group name need to search, fuzzy matches
	*/
	GroupName *string `js:"groupName"`

	/* LdapGroupDn.

	   search with ldap group DN
	*/
	LdapGroupDn *string `js:"ldapGroupDn"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

ListUserGroupsParams contains all the parameters to send to the API endpoint

for the list user groups operation.

Typically these are written to a http.Request.

func NewListUserGroupsParams

func NewListUserGroupsParams() *ListUserGroupsParams

NewListUserGroupsParams creates a new ListUserGroupsParams 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 NewListUserGroupsParamsWithContext

func NewListUserGroupsParamsWithContext(ctx context.Context) *ListUserGroupsParams

NewListUserGroupsParamsWithContext creates a new ListUserGroupsParams object with the ability to set a context for a request.

func NewListUserGroupsParamsWithHTTPClient

func NewListUserGroupsParamsWithHTTPClient(client *http.Client) *ListUserGroupsParams

NewListUserGroupsParamsWithHTTPClient creates a new ListUserGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewListUserGroupsParamsWithTimeout

func NewListUserGroupsParamsWithTimeout(timeout time.Duration) *ListUserGroupsParams

NewListUserGroupsParamsWithTimeout creates a new ListUserGroupsParams object with the ability to set a timeout on a request.

func (*ListUserGroupsParams) SetContext

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

SetContext adds the context to the list user groups params

func (*ListUserGroupsParams) SetDefaults

func (o *ListUserGroupsParams) SetDefaults()

SetDefaults hydrates default values in the list user groups params (not the query body).

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

func (*ListUserGroupsParams) SetGroupName

func (o *ListUserGroupsParams) SetGroupName(groupName *string)

SetGroupName adds the groupName to the list user groups params

func (*ListUserGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user groups params

func (*ListUserGroupsParams) SetLdapGroupDn

func (o *ListUserGroupsParams) SetLdapGroupDn(ldapGroupDn *string)

SetLdapGroupDn adds the ldapGroupDn to the list user groups params

func (*ListUserGroupsParams) SetPage

func (o *ListUserGroupsParams) SetPage(page *int64)

SetPage adds the page to the list user groups params

func (*ListUserGroupsParams) SetPageSize

func (o *ListUserGroupsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list user groups params

func (*ListUserGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the list user groups params

func (*ListUserGroupsParams) SetXRequestID

func (o *ListUserGroupsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list user groups params

func (*ListUserGroupsParams) WithContext

WithContext adds the context to the list user groups params

func (*ListUserGroupsParams) WithDefaults

func (o *ListUserGroupsParams) WithDefaults() *ListUserGroupsParams

WithDefaults hydrates default values in the list user groups params (not the query body).

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

func (*ListUserGroupsParams) WithGroupName

func (o *ListUserGroupsParams) WithGroupName(groupName *string) *ListUserGroupsParams

WithGroupName adds the groupName to the list user groups params

func (*ListUserGroupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list user groups params

func (*ListUserGroupsParams) WithLdapGroupDn

func (o *ListUserGroupsParams) WithLdapGroupDn(ldapGroupDn *string) *ListUserGroupsParams

WithLdapGroupDn adds the ldapGroupDn to the list user groups params

func (*ListUserGroupsParams) WithPage

func (o *ListUserGroupsParams) WithPage(page *int64) *ListUserGroupsParams

WithPage adds the page to the list user groups params

func (*ListUserGroupsParams) WithPageSize

func (o *ListUserGroupsParams) WithPageSize(pageSize *int64) *ListUserGroupsParams

WithPageSize adds the pageSize to the list user groups params

func (*ListUserGroupsParams) WithTimeout

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

WithTimeout adds the timeout to the list user groups params

func (*ListUserGroupsParams) WithXRequestID

func (o *ListUserGroupsParams) WithXRequestID(xRequestID *string) *ListUserGroupsParams

WithXRequestID adds the xRequestID to the list user groups params

func (*ListUserGroupsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUserGroupsReader

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

ListUserGroupsReader is a Reader for the ListUserGroups structure.

func (*ListUserGroupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserGroupsUnauthorized

type ListUserGroupsUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListUserGroupsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListUserGroupsUnauthorized

func NewListUserGroupsUnauthorized() *ListUserGroupsUnauthorized

NewListUserGroupsUnauthorized creates a ListUserGroupsUnauthorized with default headers values

func (*ListUserGroupsUnauthorized) Code

func (o *ListUserGroupsUnauthorized) Code() int

Code gets the status code for the list user groups unauthorized response

func (*ListUserGroupsUnauthorized) Error

func (*ListUserGroupsUnauthorized) GetPayload

func (o *ListUserGroupsUnauthorized) GetPayload() *models.Errors

func (*ListUserGroupsUnauthorized) IsClientError

func (o *ListUserGroupsUnauthorized) IsClientError() bool

IsClientError returns true when this list user groups unauthorized response has a 4xx status code

func (*ListUserGroupsUnauthorized) IsCode

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

IsCode returns true when this list user groups unauthorized response a status code equal to that given

func (*ListUserGroupsUnauthorized) IsRedirect

func (o *ListUserGroupsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list user groups unauthorized response has a 3xx status code

func (*ListUserGroupsUnauthorized) IsServerError

func (o *ListUserGroupsUnauthorized) IsServerError() bool

IsServerError returns true when this list user groups unauthorized response has a 5xx status code

func (*ListUserGroupsUnauthorized) IsSuccess

func (o *ListUserGroupsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list user groups unauthorized response has a 2xx status code

func (*ListUserGroupsUnauthorized) String

func (o *ListUserGroupsUnauthorized) String() string

type SearchUserGroupsInternalServerError

type SearchUserGroupsInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchUserGroupsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSearchUserGroupsInternalServerError

func NewSearchUserGroupsInternalServerError() *SearchUserGroupsInternalServerError

NewSearchUserGroupsInternalServerError creates a SearchUserGroupsInternalServerError with default headers values

func (*SearchUserGroupsInternalServerError) Code

Code gets the status code for the search user groups internal server error response

func (*SearchUserGroupsInternalServerError) Error

func (*SearchUserGroupsInternalServerError) GetPayload

func (*SearchUserGroupsInternalServerError) IsClientError

func (o *SearchUserGroupsInternalServerError) IsClientError() bool

IsClientError returns true when this search user groups internal server error response has a 4xx status code

func (*SearchUserGroupsInternalServerError) IsCode

IsCode returns true when this search user groups internal server error response a status code equal to that given

func (*SearchUserGroupsInternalServerError) IsRedirect

func (o *SearchUserGroupsInternalServerError) IsRedirect() bool

IsRedirect returns true when this search user groups internal server error response has a 3xx status code

func (*SearchUserGroupsInternalServerError) IsServerError

func (o *SearchUserGroupsInternalServerError) IsServerError() bool

IsServerError returns true when this search user groups internal server error response has a 5xx status code

func (*SearchUserGroupsInternalServerError) IsSuccess

IsSuccess returns true when this search user groups internal server error response has a 2xx status code

func (*SearchUserGroupsInternalServerError) String

type SearchUserGroupsOK

type SearchUserGroupsOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of available items
	 */
	XTotalCount int64

	Payload []*models.UserGroupSearchItem
}

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

Search groups successfully.

func NewSearchUserGroupsOK

func NewSearchUserGroupsOK() *SearchUserGroupsOK

NewSearchUserGroupsOK creates a SearchUserGroupsOK with default headers values

func (*SearchUserGroupsOK) Code

func (o *SearchUserGroupsOK) Code() int

Code gets the status code for the search user groups o k response

func (*SearchUserGroupsOK) Error

func (o *SearchUserGroupsOK) Error() string

func (*SearchUserGroupsOK) GetPayload

func (o *SearchUserGroupsOK) GetPayload() []*models.UserGroupSearchItem

func (*SearchUserGroupsOK) IsClientError

func (o *SearchUserGroupsOK) IsClientError() bool

IsClientError returns true when this search user groups o k response has a 4xx status code

func (*SearchUserGroupsOK) IsCode

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

IsCode returns true when this search user groups o k response a status code equal to that given

func (*SearchUserGroupsOK) IsRedirect

func (o *SearchUserGroupsOK) IsRedirect() bool

IsRedirect returns true when this search user groups o k response has a 3xx status code

func (*SearchUserGroupsOK) IsServerError

func (o *SearchUserGroupsOK) IsServerError() bool

IsServerError returns true when this search user groups o k response has a 5xx status code

func (*SearchUserGroupsOK) IsSuccess

func (o *SearchUserGroupsOK) IsSuccess() bool

IsSuccess returns true when this search user groups o k response has a 2xx status code

func (*SearchUserGroupsOK) String

func (o *SearchUserGroupsOK) String() string

type SearchUserGroupsParams

type SearchUserGroupsParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Groupname.

	   Group name for filtering results.
	*/
	Groupname string `js:"groupname"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

SearchUserGroupsParams contains all the parameters to send to the API endpoint

for the search user groups operation.

Typically these are written to a http.Request.

func NewSearchUserGroupsParams

func NewSearchUserGroupsParams() *SearchUserGroupsParams

NewSearchUserGroupsParams creates a new SearchUserGroupsParams 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 NewSearchUserGroupsParamsWithContext

func NewSearchUserGroupsParamsWithContext(ctx context.Context) *SearchUserGroupsParams

NewSearchUserGroupsParamsWithContext creates a new SearchUserGroupsParams object with the ability to set a context for a request.

func NewSearchUserGroupsParamsWithHTTPClient

func NewSearchUserGroupsParamsWithHTTPClient(client *http.Client) *SearchUserGroupsParams

NewSearchUserGroupsParamsWithHTTPClient creates a new SearchUserGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchUserGroupsParamsWithTimeout

func NewSearchUserGroupsParamsWithTimeout(timeout time.Duration) *SearchUserGroupsParams

NewSearchUserGroupsParamsWithTimeout creates a new SearchUserGroupsParams object with the ability to set a timeout on a request.

func (*SearchUserGroupsParams) SetContext

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

SetContext adds the context to the search user groups params

func (*SearchUserGroupsParams) SetDefaults

func (o *SearchUserGroupsParams) SetDefaults()

SetDefaults hydrates default values in the search user groups params (not the query body).

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

func (*SearchUserGroupsParams) SetGroupname

func (o *SearchUserGroupsParams) SetGroupname(groupname string)

SetGroupname adds the groupname to the search user groups params

func (*SearchUserGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search user groups params

func (*SearchUserGroupsParams) SetPage

func (o *SearchUserGroupsParams) SetPage(page *int64)

SetPage adds the page to the search user groups params

func (*SearchUserGroupsParams) SetPageSize

func (o *SearchUserGroupsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the search user groups params

func (*SearchUserGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the search user groups params

func (*SearchUserGroupsParams) SetXRequestID

func (o *SearchUserGroupsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search user groups params

func (*SearchUserGroupsParams) WithContext

WithContext adds the context to the search user groups params

func (*SearchUserGroupsParams) WithDefaults

WithDefaults hydrates default values in the search user groups params (not the query body).

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

func (*SearchUserGroupsParams) WithGroupname

func (o *SearchUserGroupsParams) WithGroupname(groupname string) *SearchUserGroupsParams

WithGroupname adds the groupname to the search user groups params

func (*SearchUserGroupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search user groups params

func (*SearchUserGroupsParams) WithPage

WithPage adds the page to the search user groups params

func (*SearchUserGroupsParams) WithPageSize

func (o *SearchUserGroupsParams) WithPageSize(pageSize *int64) *SearchUserGroupsParams

WithPageSize adds the pageSize to the search user groups params

func (*SearchUserGroupsParams) WithTimeout

WithTimeout adds the timeout to the search user groups params

func (*SearchUserGroupsParams) WithXRequestID

func (o *SearchUserGroupsParams) WithXRequestID(xRequestID *string) *SearchUserGroupsParams

WithXRequestID adds the xRequestID to the search user groups params

func (*SearchUserGroupsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchUserGroupsReader

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

SearchUserGroupsReader is a Reader for the SearchUserGroups structure.

func (*SearchUserGroupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchUserGroupsUnauthorized

type SearchUserGroupsUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SearchUserGroupsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSearchUserGroupsUnauthorized

func NewSearchUserGroupsUnauthorized() *SearchUserGroupsUnauthorized

NewSearchUserGroupsUnauthorized creates a SearchUserGroupsUnauthorized with default headers values

func (*SearchUserGroupsUnauthorized) Code

Code gets the status code for the search user groups unauthorized response

func (*SearchUserGroupsUnauthorized) Error

func (*SearchUserGroupsUnauthorized) GetPayload

func (o *SearchUserGroupsUnauthorized) GetPayload() *models.Errors

func (*SearchUserGroupsUnauthorized) IsClientError

func (o *SearchUserGroupsUnauthorized) IsClientError() bool

IsClientError returns true when this search user groups unauthorized response has a 4xx status code

func (*SearchUserGroupsUnauthorized) IsCode

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

IsCode returns true when this search user groups unauthorized response a status code equal to that given

func (*SearchUserGroupsUnauthorized) IsRedirect

func (o *SearchUserGroupsUnauthorized) IsRedirect() bool

IsRedirect returns true when this search user groups unauthorized response has a 3xx status code

func (*SearchUserGroupsUnauthorized) IsServerError

func (o *SearchUserGroupsUnauthorized) IsServerError() bool

IsServerError returns true when this search user groups unauthorized response has a 5xx status code

func (*SearchUserGroupsUnauthorized) IsSuccess

func (o *SearchUserGroupsUnauthorized) IsSuccess() bool

IsSuccess returns true when this search user groups unauthorized response has a 2xx status code

func (*SearchUserGroupsUnauthorized) String

type UpdateUserGroupBadRequest

type UpdateUserGroupBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Bad request

func NewUpdateUserGroupBadRequest

func NewUpdateUserGroupBadRequest() *UpdateUserGroupBadRequest

NewUpdateUserGroupBadRequest creates a UpdateUserGroupBadRequest with default headers values

func (*UpdateUserGroupBadRequest) Code

func (o *UpdateUserGroupBadRequest) Code() int

Code gets the status code for the update user group bad request response

func (*UpdateUserGroupBadRequest) Error

func (o *UpdateUserGroupBadRequest) Error() string

func (*UpdateUserGroupBadRequest) GetPayload

func (o *UpdateUserGroupBadRequest) GetPayload() *models.Errors

func (*UpdateUserGroupBadRequest) IsClientError

func (o *UpdateUserGroupBadRequest) IsClientError() bool

IsClientError returns true when this update user group bad request response has a 4xx status code

func (*UpdateUserGroupBadRequest) IsCode

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

IsCode returns true when this update user group bad request response a status code equal to that given

func (*UpdateUserGroupBadRequest) IsRedirect

func (o *UpdateUserGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this update user group bad request response has a 3xx status code

func (*UpdateUserGroupBadRequest) IsServerError

func (o *UpdateUserGroupBadRequest) IsServerError() bool

IsServerError returns true when this update user group bad request response has a 5xx status code

func (*UpdateUserGroupBadRequest) IsSuccess

func (o *UpdateUserGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this update user group bad request response has a 2xx status code

func (*UpdateUserGroupBadRequest) String

func (o *UpdateUserGroupBadRequest) String() string

type UpdateUserGroupForbidden

type UpdateUserGroupForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewUpdateUserGroupForbidden

func NewUpdateUserGroupForbidden() *UpdateUserGroupForbidden

NewUpdateUserGroupForbidden creates a UpdateUserGroupForbidden with default headers values

func (*UpdateUserGroupForbidden) Code

func (o *UpdateUserGroupForbidden) Code() int

Code gets the status code for the update user group forbidden response

func (*UpdateUserGroupForbidden) Error

func (o *UpdateUserGroupForbidden) Error() string

func (*UpdateUserGroupForbidden) GetPayload

func (o *UpdateUserGroupForbidden) GetPayload() *models.Errors

func (*UpdateUserGroupForbidden) IsClientError

func (o *UpdateUserGroupForbidden) IsClientError() bool

IsClientError returns true when this update user group forbidden response has a 4xx status code

func (*UpdateUserGroupForbidden) IsCode

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

IsCode returns true when this update user group forbidden response a status code equal to that given

func (*UpdateUserGroupForbidden) IsRedirect

func (o *UpdateUserGroupForbidden) IsRedirect() bool

IsRedirect returns true when this update user group forbidden response has a 3xx status code

func (*UpdateUserGroupForbidden) IsServerError

func (o *UpdateUserGroupForbidden) IsServerError() bool

IsServerError returns true when this update user group forbidden response has a 5xx status code

func (*UpdateUserGroupForbidden) IsSuccess

func (o *UpdateUserGroupForbidden) IsSuccess() bool

IsSuccess returns true when this update user group forbidden response has a 2xx status code

func (*UpdateUserGroupForbidden) String

func (o *UpdateUserGroupForbidden) String() string

type UpdateUserGroupInternalServerError

type UpdateUserGroupInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateUserGroupInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewUpdateUserGroupInternalServerError

func NewUpdateUserGroupInternalServerError() *UpdateUserGroupInternalServerError

NewUpdateUserGroupInternalServerError creates a UpdateUserGroupInternalServerError with default headers values

func (*UpdateUserGroupInternalServerError) Code

Code gets the status code for the update user group internal server error response

func (*UpdateUserGroupInternalServerError) Error

func (*UpdateUserGroupInternalServerError) GetPayload

func (*UpdateUserGroupInternalServerError) IsClientError

func (o *UpdateUserGroupInternalServerError) IsClientError() bool

IsClientError returns true when this update user group internal server error response has a 4xx status code

func (*UpdateUserGroupInternalServerError) IsCode

IsCode returns true when this update user group internal server error response a status code equal to that given

func (*UpdateUserGroupInternalServerError) IsRedirect

func (o *UpdateUserGroupInternalServerError) IsRedirect() bool

IsRedirect returns true when this update user group internal server error response has a 3xx status code

func (*UpdateUserGroupInternalServerError) IsServerError

func (o *UpdateUserGroupInternalServerError) IsServerError() bool

IsServerError returns true when this update user group internal server error response has a 5xx status code

func (*UpdateUserGroupInternalServerError) IsSuccess

IsSuccess returns true when this update user group internal server error response has a 2xx status code

func (*UpdateUserGroupInternalServerError) String

type UpdateUserGroupNotFound

type UpdateUserGroupNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Not found

func NewUpdateUserGroupNotFound

func NewUpdateUserGroupNotFound() *UpdateUserGroupNotFound

NewUpdateUserGroupNotFound creates a UpdateUserGroupNotFound with default headers values

func (*UpdateUserGroupNotFound) Code

func (o *UpdateUserGroupNotFound) Code() int

Code gets the status code for the update user group not found response

func (*UpdateUserGroupNotFound) Error

func (o *UpdateUserGroupNotFound) Error() string

func (*UpdateUserGroupNotFound) GetPayload

func (o *UpdateUserGroupNotFound) GetPayload() *models.Errors

func (*UpdateUserGroupNotFound) IsClientError

func (o *UpdateUserGroupNotFound) IsClientError() bool

IsClientError returns true when this update user group not found response has a 4xx status code

func (*UpdateUserGroupNotFound) IsCode

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

IsCode returns true when this update user group not found response a status code equal to that given

func (*UpdateUserGroupNotFound) IsRedirect

func (o *UpdateUserGroupNotFound) IsRedirect() bool

IsRedirect returns true when this update user group not found response has a 3xx status code

func (*UpdateUserGroupNotFound) IsServerError

func (o *UpdateUserGroupNotFound) IsServerError() bool

IsServerError returns true when this update user group not found response has a 5xx status code

func (*UpdateUserGroupNotFound) IsSuccess

func (o *UpdateUserGroupNotFound) IsSuccess() bool

IsSuccess returns true when this update user group not found response has a 2xx status code

func (*UpdateUserGroupNotFound) String

func (o *UpdateUserGroupNotFound) String() string

type UpdateUserGroupOK

type UpdateUserGroupOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewUpdateUserGroupOK

func NewUpdateUserGroupOK() *UpdateUserGroupOK

NewUpdateUserGroupOK creates a UpdateUserGroupOK with default headers values

func (*UpdateUserGroupOK) Code

func (o *UpdateUserGroupOK) Code() int

Code gets the status code for the update user group o k response

func (*UpdateUserGroupOK) Error

func (o *UpdateUserGroupOK) Error() string

func (*UpdateUserGroupOK) IsClientError

func (o *UpdateUserGroupOK) IsClientError() bool

IsClientError returns true when this update user group o k response has a 4xx status code

func (*UpdateUserGroupOK) IsCode

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

IsCode returns true when this update user group o k response a status code equal to that given

func (*UpdateUserGroupOK) IsRedirect

func (o *UpdateUserGroupOK) IsRedirect() bool

IsRedirect returns true when this update user group o k response has a 3xx status code

func (*UpdateUserGroupOK) IsServerError

func (o *UpdateUserGroupOK) IsServerError() bool

IsServerError returns true when this update user group o k response has a 5xx status code

func (*UpdateUserGroupOK) IsSuccess

func (o *UpdateUserGroupOK) IsSuccess() bool

IsSuccess returns true when this update user group o k response has a 2xx status code

func (*UpdateUserGroupOK) String

func (o *UpdateUserGroupOK) String() string

type UpdateUserGroupParams

type UpdateUserGroupParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* GroupID.

	   Group ID

	   Format: int64
	*/
	GroupID int64 `js:"groupID"`

	// Usergroup.
	Usergroup *models.UserGroup `js:"usergroup"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

UpdateUserGroupParams contains all the parameters to send to the API endpoint

for the update user group operation.

Typically these are written to a http.Request.

func NewUpdateUserGroupParams

func NewUpdateUserGroupParams() *UpdateUserGroupParams

NewUpdateUserGroupParams creates a new UpdateUserGroupParams 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 NewUpdateUserGroupParamsWithContext

func NewUpdateUserGroupParamsWithContext(ctx context.Context) *UpdateUserGroupParams

NewUpdateUserGroupParamsWithContext creates a new UpdateUserGroupParams object with the ability to set a context for a request.

func NewUpdateUserGroupParamsWithHTTPClient

func NewUpdateUserGroupParamsWithHTTPClient(client *http.Client) *UpdateUserGroupParams

NewUpdateUserGroupParamsWithHTTPClient creates a new UpdateUserGroupParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserGroupParamsWithTimeout

func NewUpdateUserGroupParamsWithTimeout(timeout time.Duration) *UpdateUserGroupParams

NewUpdateUserGroupParamsWithTimeout creates a new UpdateUserGroupParams object with the ability to set a timeout on a request.

func (*UpdateUserGroupParams) SetContext

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

SetContext adds the context to the update user group params

func (*UpdateUserGroupParams) SetDefaults

func (o *UpdateUserGroupParams) SetDefaults()

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

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

func (*UpdateUserGroupParams) SetGroupID

func (o *UpdateUserGroupParams) SetGroupID(groupID int64)

SetGroupID adds the groupId to the update user group params

func (*UpdateUserGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user group params

func (*UpdateUserGroupParams) SetTimeout

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

SetTimeout adds the timeout to the update user group params

func (*UpdateUserGroupParams) SetUsergroup

func (o *UpdateUserGroupParams) SetUsergroup(usergroup *models.UserGroup)

SetUsergroup adds the usergroup to the update user group params

func (*UpdateUserGroupParams) SetXRequestID

func (o *UpdateUserGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update user group params

func (*UpdateUserGroupParams) WithContext

WithContext adds the context to the update user group params

func (*UpdateUserGroupParams) WithDefaults

func (o *UpdateUserGroupParams) WithDefaults() *UpdateUserGroupParams

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

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

func (*UpdateUserGroupParams) WithGroupID

func (o *UpdateUserGroupParams) WithGroupID(groupID int64) *UpdateUserGroupParams

WithGroupID adds the groupID to the update user group params

func (*UpdateUserGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user group params

func (*UpdateUserGroupParams) WithTimeout

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

WithTimeout adds the timeout to the update user group params

func (*UpdateUserGroupParams) WithUsergroup

func (o *UpdateUserGroupParams) WithUsergroup(usergroup *models.UserGroup) *UpdateUserGroupParams

WithUsergroup adds the usergroup to the update user group params

func (*UpdateUserGroupParams) WithXRequestID

func (o *UpdateUserGroupParams) WithXRequestID(xRequestID *string) *UpdateUserGroupParams

WithXRequestID adds the xRequestID to the update user group params

func (*UpdateUserGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserGroupReader

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

UpdateUserGroupReader is a Reader for the UpdateUserGroup structure.

func (*UpdateUserGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserGroupUnauthorized

type UpdateUserGroupUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateUserGroupUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateUserGroupUnauthorized

func NewUpdateUserGroupUnauthorized() *UpdateUserGroupUnauthorized

NewUpdateUserGroupUnauthorized creates a UpdateUserGroupUnauthorized with default headers values

func (*UpdateUserGroupUnauthorized) Code

func (o *UpdateUserGroupUnauthorized) Code() int

Code gets the status code for the update user group unauthorized response

func (*UpdateUserGroupUnauthorized) Error

func (*UpdateUserGroupUnauthorized) GetPayload

func (o *UpdateUserGroupUnauthorized) GetPayload() *models.Errors

func (*UpdateUserGroupUnauthorized) IsClientError

func (o *UpdateUserGroupUnauthorized) IsClientError() bool

IsClientError returns true when this update user group unauthorized response has a 4xx status code

func (*UpdateUserGroupUnauthorized) IsCode

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

IsCode returns true when this update user group unauthorized response a status code equal to that given

func (*UpdateUserGroupUnauthorized) IsRedirect

func (o *UpdateUserGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this update user group unauthorized response has a 3xx status code

func (*UpdateUserGroupUnauthorized) IsServerError

func (o *UpdateUserGroupUnauthorized) IsServerError() bool

IsServerError returns true when this update user group unauthorized response has a 5xx status code

func (*UpdateUserGroupUnauthorized) IsSuccess

func (o *UpdateUserGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this update user group unauthorized response has a 2xx status code

func (*UpdateUserGroupUnauthorized) String

func (o *UpdateUserGroupUnauthorized) String() string

Jump to

Keyboard shortcuts

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