group

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for group API

func (*Client) CreateGroup

CreateGroup adds a new userlist group

func (*Client) DeleteGroup

DeleteGroup deletes a group

func (*Client) GetGroup

func (a *Client) GetGroup(params *GetGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGroupOK, error)

GetGroup returns one userlist group

func (*Client) GetGroups

func (a *Client) GetGroups(params *GetGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGroupsOK, error)

GetGroups returns an array of userlist groups

func (*Client) ReplaceGroup

ReplaceGroup replaces a group

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.0.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateGroup(params *CreateGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGroupCreated, *CreateGroupAccepted, error)

	DeleteGroup(params *DeleteGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGroupAccepted, *DeleteGroupNoContent, error)

	GetGroup(params *GetGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGroupOK, error)

	GetGroups(params *GetGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGroupsOK, error)

	ReplaceGroup(params *ReplaceGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceGroupOK, *ReplaceGroupAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new group API client.

type CreateGroupAccepted

type CreateGroupAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Group
}

CreateGroupAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateGroupAccepted

func NewCreateGroupAccepted() *CreateGroupAccepted

NewCreateGroupAccepted creates a CreateGroupAccepted with default headers values

func (*CreateGroupAccepted) Code added in v1.1.5

func (o *CreateGroupAccepted) Code() int

Code gets the status code for the create group accepted response

func (*CreateGroupAccepted) Error

func (o *CreateGroupAccepted) Error() string

func (*CreateGroupAccepted) GetPayload

func (o *CreateGroupAccepted) GetPayload() *models.Group

func (*CreateGroupAccepted) IsClientError added in v1.1.0

func (o *CreateGroupAccepted) IsClientError() bool

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

func (*CreateGroupAccepted) IsCode added in v1.1.0

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

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

func (*CreateGroupAccepted) IsRedirect added in v1.1.0

func (o *CreateGroupAccepted) IsRedirect() bool

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

func (*CreateGroupAccepted) IsServerError added in v1.1.0

func (o *CreateGroupAccepted) IsServerError() bool

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

func (*CreateGroupAccepted) IsSuccess added in v1.1.0

func (o *CreateGroupAccepted) IsSuccess() bool

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

func (*CreateGroupAccepted) String added in v1.1.0

func (o *CreateGroupAccepted) String() string

type CreateGroupBadRequest

type CreateGroupBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateGroupBadRequest

func NewCreateGroupBadRequest() *CreateGroupBadRequest

NewCreateGroupBadRequest creates a CreateGroupBadRequest with default headers values

func (*CreateGroupBadRequest) Code added in v1.1.5

func (o *CreateGroupBadRequest) Code() int

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

func (*CreateGroupBadRequest) Error

func (o *CreateGroupBadRequest) Error() string

func (*CreateGroupBadRequest) GetPayload

func (o *CreateGroupBadRequest) GetPayload() *models.Error

func (*CreateGroupBadRequest) IsClientError added in v1.1.0

func (o *CreateGroupBadRequest) IsClientError() bool

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

func (*CreateGroupBadRequest) IsCode added in v1.1.0

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

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

func (*CreateGroupBadRequest) IsRedirect added in v1.1.0

func (o *CreateGroupBadRequest) IsRedirect() bool

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

func (*CreateGroupBadRequest) IsServerError added in v1.1.0

func (o *CreateGroupBadRequest) IsServerError() bool

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

func (*CreateGroupBadRequest) IsSuccess added in v1.1.0

func (o *CreateGroupBadRequest) IsSuccess() bool

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

func (*CreateGroupBadRequest) String added in v1.1.0

func (o *CreateGroupBadRequest) String() string

type CreateGroupConflict

type CreateGroupConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreateGroupConflict

func NewCreateGroupConflict() *CreateGroupConflict

NewCreateGroupConflict creates a CreateGroupConflict with default headers values

func (*CreateGroupConflict) Code added in v1.1.5

func (o *CreateGroupConflict) Code() int

Code gets the status code for the create group conflict response

func (*CreateGroupConflict) Error

func (o *CreateGroupConflict) Error() string

func (*CreateGroupConflict) GetPayload

func (o *CreateGroupConflict) GetPayload() *models.Error

func (*CreateGroupConflict) IsClientError added in v1.1.0

func (o *CreateGroupConflict) IsClientError() bool

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

func (*CreateGroupConflict) IsCode added in v1.1.0

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

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

func (*CreateGroupConflict) IsRedirect added in v1.1.0

func (o *CreateGroupConflict) IsRedirect() bool

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

func (*CreateGroupConflict) IsServerError added in v1.1.0

func (o *CreateGroupConflict) IsServerError() bool

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

func (*CreateGroupConflict) IsSuccess added in v1.1.0

func (o *CreateGroupConflict) IsSuccess() bool

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

func (*CreateGroupConflict) String added in v1.1.0

func (o *CreateGroupConflict) String() string

type CreateGroupCreated

type CreateGroupCreated struct {
	Payload *models.Group
}

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

Group created

func NewCreateGroupCreated

func NewCreateGroupCreated() *CreateGroupCreated

NewCreateGroupCreated creates a CreateGroupCreated with default headers values

func (*CreateGroupCreated) Code added in v1.1.5

func (o *CreateGroupCreated) Code() int

Code gets the status code for the create group created response

func (*CreateGroupCreated) Error

func (o *CreateGroupCreated) Error() string

func (*CreateGroupCreated) GetPayload

func (o *CreateGroupCreated) GetPayload() *models.Group

func (*CreateGroupCreated) IsClientError added in v1.1.0

func (o *CreateGroupCreated) IsClientError() bool

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

func (*CreateGroupCreated) IsCode added in v1.1.0

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

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

func (*CreateGroupCreated) IsRedirect added in v1.1.0

func (o *CreateGroupCreated) IsRedirect() bool

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

func (*CreateGroupCreated) IsServerError added in v1.1.0

func (o *CreateGroupCreated) IsServerError() bool

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

func (*CreateGroupCreated) IsSuccess added in v1.1.0

func (o *CreateGroupCreated) IsSuccess() bool

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

func (*CreateGroupCreated) String added in v1.1.0

func (o *CreateGroupCreated) String() string

type CreateGroupDefault

type CreateGroupDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateGroupDefault describes a response with status code -1, with default header values.

General Error

func NewCreateGroupDefault

func NewCreateGroupDefault(code int) *CreateGroupDefault

NewCreateGroupDefault creates a CreateGroupDefault with default headers values

func (*CreateGroupDefault) Code

func (o *CreateGroupDefault) Code() int

Code gets the status code for the create group default response

func (*CreateGroupDefault) Error

func (o *CreateGroupDefault) Error() string

func (*CreateGroupDefault) GetPayload

func (o *CreateGroupDefault) GetPayload() *models.Error

func (*CreateGroupDefault) IsClientError added in v1.1.0

func (o *CreateGroupDefault) IsClientError() bool

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

func (*CreateGroupDefault) IsCode added in v1.1.0

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

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

func (*CreateGroupDefault) IsRedirect added in v1.1.0

func (o *CreateGroupDefault) IsRedirect() bool

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

func (*CreateGroupDefault) IsServerError added in v1.1.0

func (o *CreateGroupDefault) IsServerError() bool

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

func (*CreateGroupDefault) IsSuccess added in v1.1.0

func (o *CreateGroupDefault) IsSuccess() bool

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

func (*CreateGroupDefault) String added in v1.1.0

func (o *CreateGroupDefault) String() string

type CreateGroupParams

type CreateGroupParams struct {

	// Data.
	Data *models.Group

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Userlist.

	   Parent userlist name
	*/
	Userlist string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

CreateGroupParams contains all the parameters to send to the API endpoint

for the create group operation.

Typically these are written to a http.Request.

func NewCreateGroupParams

func NewCreateGroupParams() *CreateGroupParams

NewCreateGroupParams creates a new CreateGroupParams 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 NewCreateGroupParamsWithContext

func NewCreateGroupParamsWithContext(ctx context.Context) *CreateGroupParams

NewCreateGroupParamsWithContext creates a new CreateGroupParams object with the ability to set a context for a request.

func NewCreateGroupParamsWithHTTPClient

func NewCreateGroupParamsWithHTTPClient(client *http.Client) *CreateGroupParams

NewCreateGroupParamsWithHTTPClient creates a new CreateGroupParams object with the ability to set a custom HTTPClient for a request.

func NewCreateGroupParamsWithTimeout

func NewCreateGroupParamsWithTimeout(timeout time.Duration) *CreateGroupParams

NewCreateGroupParamsWithTimeout creates a new CreateGroupParams object with the ability to set a timeout on a request.

func (*CreateGroupParams) SetContext

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

SetContext adds the context to the create group params

func (*CreateGroupParams) SetData

func (o *CreateGroupParams) SetData(data *models.Group)

SetData adds the data to the create group params

func (*CreateGroupParams) SetDefaults added in v1.0.0

func (o *CreateGroupParams) SetDefaults()

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

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

func (*CreateGroupParams) SetForceReload

func (o *CreateGroupParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create group params

func (*CreateGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create group params

func (*CreateGroupParams) SetTimeout

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

SetTimeout adds the timeout to the create group params

func (*CreateGroupParams) SetTransactionID

func (o *CreateGroupParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create group params

func (*CreateGroupParams) SetUserlist

func (o *CreateGroupParams) SetUserlist(userlist string)

SetUserlist adds the userlist to the create group params

func (*CreateGroupParams) SetVersion

func (o *CreateGroupParams) SetVersion(version *int64)

SetVersion adds the version to the create group params

func (*CreateGroupParams) WithContext

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

WithContext adds the context to the create group params

func (*CreateGroupParams) WithData

func (o *CreateGroupParams) WithData(data *models.Group) *CreateGroupParams

WithData adds the data to the create group params

func (*CreateGroupParams) WithDefaults added in v1.0.0

func (o *CreateGroupParams) WithDefaults() *CreateGroupParams

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

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

func (*CreateGroupParams) WithForceReload

func (o *CreateGroupParams) WithForceReload(forceReload *bool) *CreateGroupParams

WithForceReload adds the forceReload to the create group params

func (*CreateGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create group params

func (*CreateGroupParams) WithTimeout

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

WithTimeout adds the timeout to the create group params

func (*CreateGroupParams) WithTransactionID

func (o *CreateGroupParams) WithTransactionID(transactionID *string) *CreateGroupParams

WithTransactionID adds the transactionID to the create group params

func (*CreateGroupParams) WithUserlist

func (o *CreateGroupParams) WithUserlist(userlist string) *CreateGroupParams

WithUserlist adds the userlist to the create group params

func (*CreateGroupParams) WithVersion

func (o *CreateGroupParams) WithVersion(version *int64) *CreateGroupParams

WithVersion adds the version to the create group params

func (*CreateGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateGroupReader

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

CreateGroupReader is a Reader for the CreateGroup structure.

func (*CreateGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteGroupAccepted

type DeleteGroupAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteGroupAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteGroupAccepted

func NewDeleteGroupAccepted() *DeleteGroupAccepted

NewDeleteGroupAccepted creates a DeleteGroupAccepted with default headers values

func (*DeleteGroupAccepted) Code added in v1.1.5

func (o *DeleteGroupAccepted) Code() int

Code gets the status code for the delete group accepted response

func (*DeleteGroupAccepted) Error

func (o *DeleteGroupAccepted) Error() string

func (*DeleteGroupAccepted) IsClientError added in v1.1.0

func (o *DeleteGroupAccepted) IsClientError() bool

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

func (*DeleteGroupAccepted) IsCode added in v1.1.0

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

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

func (*DeleteGroupAccepted) IsRedirect added in v1.1.0

func (o *DeleteGroupAccepted) IsRedirect() bool

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

func (*DeleteGroupAccepted) IsServerError added in v1.1.0

func (o *DeleteGroupAccepted) IsServerError() bool

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

func (*DeleteGroupAccepted) IsSuccess added in v1.1.0

func (o *DeleteGroupAccepted) IsSuccess() bool

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

func (*DeleteGroupAccepted) String added in v1.1.0

func (o *DeleteGroupAccepted) String() string

type DeleteGroupDefault

type DeleteGroupDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteGroupDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteGroupDefault

func NewDeleteGroupDefault(code int) *DeleteGroupDefault

NewDeleteGroupDefault creates a DeleteGroupDefault with default headers values

func (*DeleteGroupDefault) Code

func (o *DeleteGroupDefault) Code() int

Code gets the status code for the delete group default response

func (*DeleteGroupDefault) Error

func (o *DeleteGroupDefault) Error() string

func (*DeleteGroupDefault) GetPayload

func (o *DeleteGroupDefault) GetPayload() *models.Error

func (*DeleteGroupDefault) IsClientError added in v1.1.0

func (o *DeleteGroupDefault) IsClientError() bool

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

func (*DeleteGroupDefault) IsCode added in v1.1.0

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

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

func (*DeleteGroupDefault) IsRedirect added in v1.1.0

func (o *DeleteGroupDefault) IsRedirect() bool

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

func (*DeleteGroupDefault) IsServerError added in v1.1.0

func (o *DeleteGroupDefault) IsServerError() bool

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

func (*DeleteGroupDefault) IsSuccess added in v1.1.0

func (o *DeleteGroupDefault) IsSuccess() bool

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

func (*DeleteGroupDefault) String added in v1.1.0

func (o *DeleteGroupDefault) String() string

type DeleteGroupNoContent

type DeleteGroupNoContent struct {
}

DeleteGroupNoContent describes a response with status code 204, with default header values.

Group deleted

func NewDeleteGroupNoContent

func NewDeleteGroupNoContent() *DeleteGroupNoContent

NewDeleteGroupNoContent creates a DeleteGroupNoContent with default headers values

func (*DeleteGroupNoContent) Code added in v1.1.5

func (o *DeleteGroupNoContent) Code() int

Code gets the status code for the delete group no content response

func (*DeleteGroupNoContent) Error

func (o *DeleteGroupNoContent) Error() string

func (*DeleteGroupNoContent) IsClientError added in v1.1.0

func (o *DeleteGroupNoContent) IsClientError() bool

IsClientError returns true when this delete group no content response has a 4xx status code

func (*DeleteGroupNoContent) IsCode added in v1.1.0

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

IsCode returns true when this delete group no content response a status code equal to that given

func (*DeleteGroupNoContent) IsRedirect added in v1.1.0

func (o *DeleteGroupNoContent) IsRedirect() bool

IsRedirect returns true when this delete group no content response has a 3xx status code

func (*DeleteGroupNoContent) IsServerError added in v1.1.0

func (o *DeleteGroupNoContent) IsServerError() bool

IsServerError returns true when this delete group no content response has a 5xx status code

func (*DeleteGroupNoContent) IsSuccess added in v1.1.0

func (o *DeleteGroupNoContent) IsSuccess() bool

IsSuccess returns true when this delete group no content response has a 2xx status code

func (*DeleteGroupNoContent) String added in v1.1.0

func (o *DeleteGroupNoContent) String() string

type DeleteGroupNotFound

type DeleteGroupNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewDeleteGroupNotFound

func NewDeleteGroupNotFound() *DeleteGroupNotFound

NewDeleteGroupNotFound creates a DeleteGroupNotFound with default headers values

func (*DeleteGroupNotFound) Code added in v1.1.5

func (o *DeleteGroupNotFound) Code() int

Code gets the status code for the delete group not found response

func (*DeleteGroupNotFound) Error

func (o *DeleteGroupNotFound) Error() string

func (*DeleteGroupNotFound) GetPayload

func (o *DeleteGroupNotFound) GetPayload() *models.Error

func (*DeleteGroupNotFound) IsClientError added in v1.1.0

func (o *DeleteGroupNotFound) IsClientError() bool

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

func (*DeleteGroupNotFound) IsCode added in v1.1.0

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

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

func (*DeleteGroupNotFound) IsRedirect added in v1.1.0

func (o *DeleteGroupNotFound) IsRedirect() bool

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

func (*DeleteGroupNotFound) IsServerError added in v1.1.0

func (o *DeleteGroupNotFound) IsServerError() bool

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

func (*DeleteGroupNotFound) IsSuccess added in v1.1.0

func (o *DeleteGroupNotFound) IsSuccess() bool

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

func (*DeleteGroupNotFound) String added in v1.1.0

func (o *DeleteGroupNotFound) String() string

type DeleteGroupParams

type DeleteGroupParams struct {

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   group name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Userlist.

	   Parent userlist name
	*/
	Userlist string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeleteGroupParams contains all the parameters to send to the API endpoint

for the delete group operation.

Typically these are written to a http.Request.

func NewDeleteGroupParams

func NewDeleteGroupParams() *DeleteGroupParams

NewDeleteGroupParams creates a new DeleteGroupParams 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 NewDeleteGroupParamsWithContext

func NewDeleteGroupParamsWithContext(ctx context.Context) *DeleteGroupParams

NewDeleteGroupParamsWithContext creates a new DeleteGroupParams object with the ability to set a context for a request.

func NewDeleteGroupParamsWithHTTPClient

func NewDeleteGroupParamsWithHTTPClient(client *http.Client) *DeleteGroupParams

NewDeleteGroupParamsWithHTTPClient creates a new DeleteGroupParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteGroupParamsWithTimeout

func NewDeleteGroupParamsWithTimeout(timeout time.Duration) *DeleteGroupParams

NewDeleteGroupParamsWithTimeout creates a new DeleteGroupParams object with the ability to set a timeout on a request.

func (*DeleteGroupParams) SetContext

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

SetContext adds the context to the delete group params

func (*DeleteGroupParams) SetDefaults added in v1.0.0

func (o *DeleteGroupParams) SetDefaults()

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

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

func (*DeleteGroupParams) SetForceReload

func (o *DeleteGroupParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete group params

func (*DeleteGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete group params

func (*DeleteGroupParams) SetName

func (o *DeleteGroupParams) SetName(name string)

SetName adds the name to the delete group params

func (*DeleteGroupParams) SetTimeout

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

SetTimeout adds the timeout to the delete group params

func (*DeleteGroupParams) SetTransactionID

func (o *DeleteGroupParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete group params

func (*DeleteGroupParams) SetUserlist

func (o *DeleteGroupParams) SetUserlist(userlist string)

SetUserlist adds the userlist to the delete group params

func (*DeleteGroupParams) SetVersion

func (o *DeleteGroupParams) SetVersion(version *int64)

SetVersion adds the version to the delete group params

func (*DeleteGroupParams) WithContext

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

WithContext adds the context to the delete group params

func (*DeleteGroupParams) WithDefaults added in v1.0.0

func (o *DeleteGroupParams) WithDefaults() *DeleteGroupParams

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

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

func (*DeleteGroupParams) WithForceReload

func (o *DeleteGroupParams) WithForceReload(forceReload *bool) *DeleteGroupParams

WithForceReload adds the forceReload to the delete group params

func (*DeleteGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete group params

func (*DeleteGroupParams) WithName

func (o *DeleteGroupParams) WithName(name string) *DeleteGroupParams

WithName adds the name to the delete group params

func (*DeleteGroupParams) WithTimeout

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

WithTimeout adds the timeout to the delete group params

func (*DeleteGroupParams) WithTransactionID

func (o *DeleteGroupParams) WithTransactionID(transactionID *string) *DeleteGroupParams

WithTransactionID adds the transactionID to the delete group params

func (*DeleteGroupParams) WithUserlist

func (o *DeleteGroupParams) WithUserlist(userlist string) *DeleteGroupParams

WithUserlist adds the userlist to the delete group params

func (*DeleteGroupParams) WithVersion

func (o *DeleteGroupParams) WithVersion(version *int64) *DeleteGroupParams

WithVersion adds the version to the delete group params

func (*DeleteGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteGroupReader

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

DeleteGroupReader is a Reader for the DeleteGroup structure.

func (*DeleteGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGroupDefault

type GetGroupDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetGroupDefault describes a response with status code -1, with default header values.

General Error

func NewGetGroupDefault

func NewGetGroupDefault(code int) *GetGroupDefault

NewGetGroupDefault creates a GetGroupDefault with default headers values

func (*GetGroupDefault) Code

func (o *GetGroupDefault) Code() int

Code gets the status code for the get group default response

func (*GetGroupDefault) Error

func (o *GetGroupDefault) Error() string

func (*GetGroupDefault) GetPayload

func (o *GetGroupDefault) GetPayload() *models.Error

func (*GetGroupDefault) IsClientError added in v1.1.0

func (o *GetGroupDefault) IsClientError() bool

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

func (*GetGroupDefault) IsCode added in v1.1.0

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

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

func (*GetGroupDefault) IsRedirect added in v1.1.0

func (o *GetGroupDefault) IsRedirect() bool

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

func (*GetGroupDefault) IsServerError added in v1.1.0

func (o *GetGroupDefault) IsServerError() bool

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

func (*GetGroupDefault) IsSuccess added in v1.1.0

func (o *GetGroupDefault) IsSuccess() bool

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

func (*GetGroupDefault) String added in v1.1.0

func (o *GetGroupDefault) String() string

type GetGroupNotFound

type GetGroupNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewGetGroupNotFound

func NewGetGroupNotFound() *GetGroupNotFound

NewGetGroupNotFound creates a GetGroupNotFound with default headers values

func (*GetGroupNotFound) Code added in v1.1.5

func (o *GetGroupNotFound) Code() int

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

func (*GetGroupNotFound) Error

func (o *GetGroupNotFound) Error() string

func (*GetGroupNotFound) GetPayload

func (o *GetGroupNotFound) GetPayload() *models.Error

func (*GetGroupNotFound) IsClientError added in v1.1.0

func (o *GetGroupNotFound) IsClientError() bool

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

func (*GetGroupNotFound) IsCode added in v1.1.0

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

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

func (*GetGroupNotFound) IsRedirect added in v1.1.0

func (o *GetGroupNotFound) IsRedirect() bool

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

func (*GetGroupNotFound) IsServerError added in v1.1.0

func (o *GetGroupNotFound) IsServerError() bool

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

func (*GetGroupNotFound) IsSuccess added in v1.1.0

func (o *GetGroupNotFound) IsSuccess() bool

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

func (*GetGroupNotFound) String added in v1.1.0

func (o *GetGroupNotFound) String() string

type GetGroupOK

type GetGroupOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetGroupOKBody
}

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

Successful operation

func NewGetGroupOK

func NewGetGroupOK() *GetGroupOK

NewGetGroupOK creates a GetGroupOK with default headers values

func (*GetGroupOK) Code added in v1.1.5

func (o *GetGroupOK) Code() int

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

func (*GetGroupOK) Error

func (o *GetGroupOK) Error() string

func (*GetGroupOK) GetPayload

func (o *GetGroupOK) GetPayload() *GetGroupOKBody

func (*GetGroupOK) IsClientError added in v1.1.0

func (o *GetGroupOK) IsClientError() bool

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

func (*GetGroupOK) IsCode added in v1.1.0

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

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

func (*GetGroupOK) IsRedirect added in v1.1.0

func (o *GetGroupOK) IsRedirect() bool

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

func (*GetGroupOK) IsServerError added in v1.1.0

func (o *GetGroupOK) IsServerError() bool

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

func (*GetGroupOK) IsSuccess added in v1.1.0

func (o *GetGroupOK) IsSuccess() bool

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

func (*GetGroupOK) String added in v1.1.0

func (o *GetGroupOK) String() string

type GetGroupOKBody

type GetGroupOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Group `json:"data,omitempty"`
}

GetGroupOKBody get group o k body swagger:model GetGroupOKBody

func (*GetGroupOKBody) ContextValidate added in v1.0.0

func (o *GetGroupOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get group o k body based on the context it is used

func (*GetGroupOKBody) MarshalBinary

func (o *GetGroupOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGroupOKBody) UnmarshalBinary

func (o *GetGroupOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGroupOKBody) Validate

func (o *GetGroupOKBody) Validate(formats strfmt.Registry) error

Validate validates this get group o k body

type GetGroupParams

type GetGroupParams struct {

	/* Name.

	   Group name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Userlist.

	   Parent userlist name
	*/
	Userlist string

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

GetGroupParams contains all the parameters to send to the API endpoint

for the get group operation.

Typically these are written to a http.Request.

func NewGetGroupParams

func NewGetGroupParams() *GetGroupParams

NewGetGroupParams creates a new GetGroupParams 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 NewGetGroupParamsWithContext

func NewGetGroupParamsWithContext(ctx context.Context) *GetGroupParams

NewGetGroupParamsWithContext creates a new GetGroupParams object with the ability to set a context for a request.

func NewGetGroupParamsWithHTTPClient

func NewGetGroupParamsWithHTTPClient(client *http.Client) *GetGroupParams

NewGetGroupParamsWithHTTPClient creates a new GetGroupParams object with the ability to set a custom HTTPClient for a request.

func NewGetGroupParamsWithTimeout

func NewGetGroupParamsWithTimeout(timeout time.Duration) *GetGroupParams

NewGetGroupParamsWithTimeout creates a new GetGroupParams object with the ability to set a timeout on a request.

func (*GetGroupParams) SetContext

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

SetContext adds the context to the get group params

func (*GetGroupParams) SetDefaults added in v1.0.0

func (o *GetGroupParams) SetDefaults()

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

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

func (*GetGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get group params

func (*GetGroupParams) SetName

func (o *GetGroupParams) SetName(name string)

SetName adds the name to the get group params

func (*GetGroupParams) SetTimeout

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

SetTimeout adds the timeout to the get group params

func (*GetGroupParams) SetTransactionID

func (o *GetGroupParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get group params

func (*GetGroupParams) SetUserlist

func (o *GetGroupParams) SetUserlist(userlist string)

SetUserlist adds the userlist to the get group params

func (*GetGroupParams) WithContext

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

WithContext adds the context to the get group params

func (*GetGroupParams) WithDefaults added in v1.0.0

func (o *GetGroupParams) WithDefaults() *GetGroupParams

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

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

func (*GetGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get group params

func (*GetGroupParams) WithName

func (o *GetGroupParams) WithName(name string) *GetGroupParams

WithName adds the name to the get group params

func (*GetGroupParams) WithTimeout

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

WithTimeout adds the timeout to the get group params

func (*GetGroupParams) WithTransactionID

func (o *GetGroupParams) WithTransactionID(transactionID *string) *GetGroupParams

WithTransactionID adds the transactionID to the get group params

func (*GetGroupParams) WithUserlist

func (o *GetGroupParams) WithUserlist(userlist string) *GetGroupParams

WithUserlist adds the userlist to the get group params

func (*GetGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGroupReader

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

GetGroupReader is a Reader for the GetGroup structure.

func (*GetGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGroupsDefault

type GetGroupsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetGroupsDefault describes a response with status code -1, with default header values.

General Error

func NewGetGroupsDefault

func NewGetGroupsDefault(code int) *GetGroupsDefault

NewGetGroupsDefault creates a GetGroupsDefault with default headers values

func (*GetGroupsDefault) Code

func (o *GetGroupsDefault) Code() int

Code gets the status code for the get groups default response

func (*GetGroupsDefault) Error

func (o *GetGroupsDefault) Error() string

func (*GetGroupsDefault) GetPayload

func (o *GetGroupsDefault) GetPayload() *models.Error

func (*GetGroupsDefault) IsClientError added in v1.1.0

func (o *GetGroupsDefault) IsClientError() bool

IsClientError returns true when this get groups default response has a 4xx status code

func (*GetGroupsDefault) IsCode added in v1.1.0

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

IsCode returns true when this get groups default response a status code equal to that given

func (*GetGroupsDefault) IsRedirect added in v1.1.0

func (o *GetGroupsDefault) IsRedirect() bool

IsRedirect returns true when this get groups default response has a 3xx status code

func (*GetGroupsDefault) IsServerError added in v1.1.0

func (o *GetGroupsDefault) IsServerError() bool

IsServerError returns true when this get groups default response has a 5xx status code

func (*GetGroupsDefault) IsSuccess added in v1.1.0

func (o *GetGroupsDefault) IsSuccess() bool

IsSuccess returns true when this get groups default response has a 2xx status code

func (*GetGroupsDefault) String added in v1.1.0

func (o *GetGroupsDefault) String() string

type GetGroupsOK

type GetGroupsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetGroupsOKBody
}

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

Successful operation

func NewGetGroupsOK

func NewGetGroupsOK() *GetGroupsOK

NewGetGroupsOK creates a GetGroupsOK with default headers values

func (*GetGroupsOK) Code added in v1.1.5

func (o *GetGroupsOK) Code() int

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

func (*GetGroupsOK) Error

func (o *GetGroupsOK) Error() string

func (*GetGroupsOK) GetPayload

func (o *GetGroupsOK) GetPayload() *GetGroupsOKBody

func (*GetGroupsOK) IsClientError added in v1.1.0

func (o *GetGroupsOK) IsClientError() bool

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

func (*GetGroupsOK) IsCode added in v1.1.0

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

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

func (*GetGroupsOK) IsRedirect added in v1.1.0

func (o *GetGroupsOK) IsRedirect() bool

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

func (*GetGroupsOK) IsServerError added in v1.1.0

func (o *GetGroupsOK) IsServerError() bool

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

func (*GetGroupsOK) IsSuccess added in v1.1.0

func (o *GetGroupsOK) IsSuccess() bool

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

func (*GetGroupsOK) String added in v1.1.0

func (o *GetGroupsOK) String() string

type GetGroupsOKBody

type GetGroupsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Groups `json:"data"`
}

GetGroupsOKBody get groups o k body swagger:model GetGroupsOKBody

func (*GetGroupsOKBody) ContextValidate added in v1.0.0

func (o *GetGroupsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get groups o k body based on the context it is used

func (*GetGroupsOKBody) MarshalBinary

func (o *GetGroupsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGroupsOKBody) UnmarshalBinary

func (o *GetGroupsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGroupsOKBody) Validate

func (o *GetGroupsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get groups o k body

type GetGroupsParams

type GetGroupsParams struct {

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Userlist.

	   Parent userlist name
	*/
	Userlist string

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

GetGroupsParams contains all the parameters to send to the API endpoint

for the get groups operation.

Typically these are written to a http.Request.

func NewGetGroupsParams

func NewGetGroupsParams() *GetGroupsParams

NewGetGroupsParams creates a new GetGroupsParams 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 NewGetGroupsParamsWithContext

func NewGetGroupsParamsWithContext(ctx context.Context) *GetGroupsParams

NewGetGroupsParamsWithContext creates a new GetGroupsParams object with the ability to set a context for a request.

func NewGetGroupsParamsWithHTTPClient

func NewGetGroupsParamsWithHTTPClient(client *http.Client) *GetGroupsParams

NewGetGroupsParamsWithHTTPClient creates a new GetGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewGetGroupsParamsWithTimeout

func NewGetGroupsParamsWithTimeout(timeout time.Duration) *GetGroupsParams

NewGetGroupsParamsWithTimeout creates a new GetGroupsParams object with the ability to set a timeout on a request.

func (*GetGroupsParams) SetContext

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

SetContext adds the context to the get groups params

func (*GetGroupsParams) SetDefaults added in v1.0.0

func (o *GetGroupsParams) SetDefaults()

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

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

func (*GetGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get groups params

func (*GetGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the get groups params

func (*GetGroupsParams) SetTransactionID

func (o *GetGroupsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get groups params

func (*GetGroupsParams) SetUserlist

func (o *GetGroupsParams) SetUserlist(userlist string)

SetUserlist adds the userlist to the get groups params

func (*GetGroupsParams) WithContext

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

WithContext adds the context to the get groups params

func (*GetGroupsParams) WithDefaults added in v1.0.0

func (o *GetGroupsParams) WithDefaults() *GetGroupsParams

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

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

func (*GetGroupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get groups params

func (*GetGroupsParams) WithTimeout

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

WithTimeout adds the timeout to the get groups params

func (*GetGroupsParams) WithTransactionID

func (o *GetGroupsParams) WithTransactionID(transactionID *string) *GetGroupsParams

WithTransactionID adds the transactionID to the get groups params

func (*GetGroupsParams) WithUserlist

func (o *GetGroupsParams) WithUserlist(userlist string) *GetGroupsParams

WithUserlist adds the userlist to the get groups params

func (*GetGroupsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGroupsReader

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

GetGroupsReader is a Reader for the GetGroups structure.

func (*GetGroupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceGroupAccepted

type ReplaceGroupAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Group
}

ReplaceGroupAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceGroupAccepted

func NewReplaceGroupAccepted() *ReplaceGroupAccepted

NewReplaceGroupAccepted creates a ReplaceGroupAccepted with default headers values

func (*ReplaceGroupAccepted) Code added in v1.1.5

func (o *ReplaceGroupAccepted) Code() int

Code gets the status code for the replace group accepted response

func (*ReplaceGroupAccepted) Error

func (o *ReplaceGroupAccepted) Error() string

func (*ReplaceGroupAccepted) GetPayload

func (o *ReplaceGroupAccepted) GetPayload() *models.Group

func (*ReplaceGroupAccepted) IsClientError added in v1.1.0

func (o *ReplaceGroupAccepted) IsClientError() bool

IsClientError returns true when this replace group accepted response has a 4xx status code

func (*ReplaceGroupAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace group accepted response a status code equal to that given

func (*ReplaceGroupAccepted) IsRedirect added in v1.1.0

func (o *ReplaceGroupAccepted) IsRedirect() bool

IsRedirect returns true when this replace group accepted response has a 3xx status code

func (*ReplaceGroupAccepted) IsServerError added in v1.1.0

func (o *ReplaceGroupAccepted) IsServerError() bool

IsServerError returns true when this replace group accepted response has a 5xx status code

func (*ReplaceGroupAccepted) IsSuccess added in v1.1.0

func (o *ReplaceGroupAccepted) IsSuccess() bool

IsSuccess returns true when this replace group accepted response has a 2xx status code

func (*ReplaceGroupAccepted) String added in v1.1.0

func (o *ReplaceGroupAccepted) String() string

type ReplaceGroupBadRequest

type ReplaceGroupBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceGroupBadRequest

func NewReplaceGroupBadRequest() *ReplaceGroupBadRequest

NewReplaceGroupBadRequest creates a ReplaceGroupBadRequest with default headers values

func (*ReplaceGroupBadRequest) Code added in v1.1.5

func (o *ReplaceGroupBadRequest) Code() int

Code gets the status code for the replace group bad request response

func (*ReplaceGroupBadRequest) Error

func (o *ReplaceGroupBadRequest) Error() string

func (*ReplaceGroupBadRequest) GetPayload

func (o *ReplaceGroupBadRequest) GetPayload() *models.Error

func (*ReplaceGroupBadRequest) IsClientError added in v1.1.0

func (o *ReplaceGroupBadRequest) IsClientError() bool

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

func (*ReplaceGroupBadRequest) IsCode added in v1.1.0

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

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

func (*ReplaceGroupBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceGroupBadRequest) IsRedirect() bool

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

func (*ReplaceGroupBadRequest) IsServerError added in v1.1.0

func (o *ReplaceGroupBadRequest) IsServerError() bool

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

func (*ReplaceGroupBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceGroupBadRequest) IsSuccess() bool

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

func (*ReplaceGroupBadRequest) String added in v1.1.0

func (o *ReplaceGroupBadRequest) String() string

type ReplaceGroupDefault

type ReplaceGroupDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceGroupDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceGroupDefault

func NewReplaceGroupDefault(code int) *ReplaceGroupDefault

NewReplaceGroupDefault creates a ReplaceGroupDefault with default headers values

func (*ReplaceGroupDefault) Code

func (o *ReplaceGroupDefault) Code() int

Code gets the status code for the replace group default response

func (*ReplaceGroupDefault) Error

func (o *ReplaceGroupDefault) Error() string

func (*ReplaceGroupDefault) GetPayload

func (o *ReplaceGroupDefault) GetPayload() *models.Error

func (*ReplaceGroupDefault) IsClientError added in v1.1.0

func (o *ReplaceGroupDefault) IsClientError() bool

IsClientError returns true when this replace group default response has a 4xx status code

func (*ReplaceGroupDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace group default response a status code equal to that given

func (*ReplaceGroupDefault) IsRedirect added in v1.1.0

func (o *ReplaceGroupDefault) IsRedirect() bool

IsRedirect returns true when this replace group default response has a 3xx status code

func (*ReplaceGroupDefault) IsServerError added in v1.1.0

func (o *ReplaceGroupDefault) IsServerError() bool

IsServerError returns true when this replace group default response has a 5xx status code

func (*ReplaceGroupDefault) IsSuccess added in v1.1.0

func (o *ReplaceGroupDefault) IsSuccess() bool

IsSuccess returns true when this replace group default response has a 2xx status code

func (*ReplaceGroupDefault) String added in v1.1.0

func (o *ReplaceGroupDefault) String() string

type ReplaceGroupNotFound

type ReplaceGroupNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewReplaceGroupNotFound

func NewReplaceGroupNotFound() *ReplaceGroupNotFound

NewReplaceGroupNotFound creates a ReplaceGroupNotFound with default headers values

func (*ReplaceGroupNotFound) Code added in v1.1.5

func (o *ReplaceGroupNotFound) Code() int

Code gets the status code for the replace group not found response

func (*ReplaceGroupNotFound) Error

func (o *ReplaceGroupNotFound) Error() string

func (*ReplaceGroupNotFound) GetPayload

func (o *ReplaceGroupNotFound) GetPayload() *models.Error

func (*ReplaceGroupNotFound) IsClientError added in v1.1.0

func (o *ReplaceGroupNotFound) IsClientError() bool

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

func (*ReplaceGroupNotFound) IsCode added in v1.1.0

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

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

func (*ReplaceGroupNotFound) IsRedirect added in v1.1.0

func (o *ReplaceGroupNotFound) IsRedirect() bool

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

func (*ReplaceGroupNotFound) IsServerError added in v1.1.0

func (o *ReplaceGroupNotFound) IsServerError() bool

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

func (*ReplaceGroupNotFound) IsSuccess added in v1.1.0

func (o *ReplaceGroupNotFound) IsSuccess() bool

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

func (*ReplaceGroupNotFound) String added in v1.1.0

func (o *ReplaceGroupNotFound) String() string

type ReplaceGroupOK

type ReplaceGroupOK struct {
	Payload *models.Group
}

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

Group replaced

func NewReplaceGroupOK

func NewReplaceGroupOK() *ReplaceGroupOK

NewReplaceGroupOK creates a ReplaceGroupOK with default headers values

func (*ReplaceGroupOK) Code added in v1.1.5

func (o *ReplaceGroupOK) Code() int

Code gets the status code for the replace group o k response

func (*ReplaceGroupOK) Error

func (o *ReplaceGroupOK) Error() string

func (*ReplaceGroupOK) GetPayload

func (o *ReplaceGroupOK) GetPayload() *models.Group

func (*ReplaceGroupOK) IsClientError added in v1.1.0

func (o *ReplaceGroupOK) IsClientError() bool

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

func (*ReplaceGroupOK) IsCode added in v1.1.0

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

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

func (*ReplaceGroupOK) IsRedirect added in v1.1.0

func (o *ReplaceGroupOK) IsRedirect() bool

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

func (*ReplaceGroupOK) IsServerError added in v1.1.0

func (o *ReplaceGroupOK) IsServerError() bool

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

func (*ReplaceGroupOK) IsSuccess added in v1.1.0

func (o *ReplaceGroupOK) IsSuccess() bool

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

func (*ReplaceGroupOK) String added in v1.1.0

func (o *ReplaceGroupOK) String() string

type ReplaceGroupParams

type ReplaceGroupParams struct {

	// Data.
	Data *models.Group

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   group name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Userlist.

	   Parent userlist name
	*/
	Userlist string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

ReplaceGroupParams contains all the parameters to send to the API endpoint

for the replace group operation.

Typically these are written to a http.Request.

func NewReplaceGroupParams

func NewReplaceGroupParams() *ReplaceGroupParams

NewReplaceGroupParams creates a new ReplaceGroupParams 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 NewReplaceGroupParamsWithContext

func NewReplaceGroupParamsWithContext(ctx context.Context) *ReplaceGroupParams

NewReplaceGroupParamsWithContext creates a new ReplaceGroupParams object with the ability to set a context for a request.

func NewReplaceGroupParamsWithHTTPClient

func NewReplaceGroupParamsWithHTTPClient(client *http.Client) *ReplaceGroupParams

NewReplaceGroupParamsWithHTTPClient creates a new ReplaceGroupParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceGroupParamsWithTimeout

func NewReplaceGroupParamsWithTimeout(timeout time.Duration) *ReplaceGroupParams

NewReplaceGroupParamsWithTimeout creates a new ReplaceGroupParams object with the ability to set a timeout on a request.

func (*ReplaceGroupParams) SetContext

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

SetContext adds the context to the replace group params

func (*ReplaceGroupParams) SetData

func (o *ReplaceGroupParams) SetData(data *models.Group)

SetData adds the data to the replace group params

func (*ReplaceGroupParams) SetDefaults added in v1.0.0

func (o *ReplaceGroupParams) SetDefaults()

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

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

func (*ReplaceGroupParams) SetForceReload

func (o *ReplaceGroupParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace group params

func (*ReplaceGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace group params

func (*ReplaceGroupParams) SetName

func (o *ReplaceGroupParams) SetName(name string)

SetName adds the name to the replace group params

func (*ReplaceGroupParams) SetTimeout

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

SetTimeout adds the timeout to the replace group params

func (*ReplaceGroupParams) SetTransactionID

func (o *ReplaceGroupParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace group params

func (*ReplaceGroupParams) SetUserlist

func (o *ReplaceGroupParams) SetUserlist(userlist string)

SetUserlist adds the userlist to the replace group params

func (*ReplaceGroupParams) SetVersion

func (o *ReplaceGroupParams) SetVersion(version *int64)

SetVersion adds the version to the replace group params

func (*ReplaceGroupParams) WithContext

WithContext adds the context to the replace group params

func (*ReplaceGroupParams) WithData

func (o *ReplaceGroupParams) WithData(data *models.Group) *ReplaceGroupParams

WithData adds the data to the replace group params

func (*ReplaceGroupParams) WithDefaults added in v1.0.0

func (o *ReplaceGroupParams) WithDefaults() *ReplaceGroupParams

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

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

func (*ReplaceGroupParams) WithForceReload

func (o *ReplaceGroupParams) WithForceReload(forceReload *bool) *ReplaceGroupParams

WithForceReload adds the forceReload to the replace group params

func (*ReplaceGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace group params

func (*ReplaceGroupParams) WithName

func (o *ReplaceGroupParams) WithName(name string) *ReplaceGroupParams

WithName adds the name to the replace group params

func (*ReplaceGroupParams) WithTimeout

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

WithTimeout adds the timeout to the replace group params

func (*ReplaceGroupParams) WithTransactionID

func (o *ReplaceGroupParams) WithTransactionID(transactionID *string) *ReplaceGroupParams

WithTransactionID adds the transactionID to the replace group params

func (*ReplaceGroupParams) WithUserlist

func (o *ReplaceGroupParams) WithUserlist(userlist string) *ReplaceGroupParams

WithUserlist adds the userlist to the replace group params

func (*ReplaceGroupParams) WithVersion

func (o *ReplaceGroupParams) WithVersion(version *int64) *ReplaceGroupParams

WithVersion adds the version to the replace group params

func (*ReplaceGroupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceGroupReader

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

ReplaceGroupReader is a Reader for the ReplaceGroup structure.

func (*ReplaceGroupReader) ReadResponse

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