group

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 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) (*GetGroupOK, error)

GetGroup returns one userlist group

func (*Client) GetGroups

func (a *Client) GetGroups(params *GetGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*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 ClientService

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

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

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

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

	ReplaceGroup(params *ReplaceGroupParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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) Error

func (o *CreateGroupAccepted) Error() string

func (*CreateGroupAccepted) GetPayload

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

type CreateGroupBadRequest

type CreateGroupBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateGroupBadRequest handles this case with default header values.

Bad request

func NewCreateGroupBadRequest

func NewCreateGroupBadRequest() *CreateGroupBadRequest

NewCreateGroupBadRequest creates a CreateGroupBadRequest with default headers values

func (*CreateGroupBadRequest) Error

func (o *CreateGroupBadRequest) Error() string

func (*CreateGroupBadRequest) GetPayload

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

type CreateGroupConflict

type CreateGroupConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateGroupConflict handles this case with default header values.

The specified resource already exists

func NewCreateGroupConflict

func NewCreateGroupConflict() *CreateGroupConflict

NewCreateGroupConflict creates a CreateGroupConflict with default headers values

func (*CreateGroupConflict) Error

func (o *CreateGroupConflict) Error() string

func (*CreateGroupConflict) GetPayload

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

type CreateGroupCreated

type CreateGroupCreated struct {
	Payload *models.Group
}

CreateGroupCreated handles this case with default header values.

Group created

func NewCreateGroupCreated

func NewCreateGroupCreated() *CreateGroupCreated

NewCreateGroupCreated creates a CreateGroupCreated with default headers values

func (*CreateGroupCreated) Error

func (o *CreateGroupCreated) Error() string

func (*CreateGroupCreated) GetPayload

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

type CreateGroupDefault

type CreateGroupDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateGroupDefault handles this case 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

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 values initialized.

func NewCreateGroupParamsWithContext

func NewCreateGroupParamsWithContext(ctx context.Context) *CreateGroupParams

NewCreateGroupParamsWithContext creates a new CreateGroupParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *DeleteGroupAccepted) Error() string

type DeleteGroupDefault

type DeleteGroupDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteGroupDefault handles this case 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

type DeleteGroupNoContent

type DeleteGroupNoContent struct {
}

DeleteGroupNoContent handles this case with default header values.

Group deleted

func NewDeleteGroupNoContent

func NewDeleteGroupNoContent() *DeleteGroupNoContent

NewDeleteGroupNoContent creates a DeleteGroupNoContent with default headers values

func (*DeleteGroupNoContent) Error

func (o *DeleteGroupNoContent) Error() string

type DeleteGroupNotFound

type DeleteGroupNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteGroupNotFound handles this case 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) Error

func (o *DeleteGroupNotFound) Error() string

func (*DeleteGroupNotFound) GetPayload

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

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 values initialized.

func NewDeleteGroupParamsWithContext

func NewDeleteGroupParamsWithContext(ctx context.Context) *DeleteGroupParams

NewDeleteGroupParamsWithContext creates a new DeleteGroupParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetGroupNotFound

type GetGroupNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetGroupNotFound handles this case with default header values.

The specified resource already exists

func NewGetGroupNotFound

func NewGetGroupNotFound() *GetGroupNotFound

NewGetGroupNotFound creates a GetGroupNotFound with default headers values

func (*GetGroupNotFound) Error

func (o *GetGroupNotFound) Error() string

func (*GetGroupNotFound) GetPayload

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

type GetGroupOK

type GetGroupOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetGroupOKBody
}

GetGroupOK handles this case with default header values.

Successful operation

func NewGetGroupOK

func NewGetGroupOK() *GetGroupOK

NewGetGroupOK creates a GetGroupOK with default headers values

func (*GetGroupOK) Error

func (o *GetGroupOK) Error() string

func (*GetGroupOK) GetPayload

func (o *GetGroupOK) GetPayload() *GetGroupOKBody

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) 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 values initialized.

func NewGetGroupParamsWithContext

func NewGetGroupParamsWithContext(ctx context.Context) *GetGroupParams

NewGetGroupParamsWithContext creates a new GetGroupParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetGroupsOK

type GetGroupsOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetGroupsOKBody
}

GetGroupsOK handles this case with default header values.

Successful operation

func NewGetGroupsOK

func NewGetGroupsOK() *GetGroupsOK

NewGetGroupsOK creates a GetGroupsOK with default headers values

func (*GetGroupsOK) Error

func (o *GetGroupsOK) Error() string

func (*GetGroupsOK) GetPayload

func (o *GetGroupsOK) GetPayload() *GetGroupsOKBody

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) 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 values initialized.

func NewGetGroupsParamsWithContext

func NewGetGroupsParamsWithContext(ctx context.Context) *GetGroupsParams

NewGetGroupsParamsWithContext creates a new GetGroupsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *ReplaceGroupAccepted) Error() string

func (*ReplaceGroupAccepted) GetPayload

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

type ReplaceGroupBadRequest

type ReplaceGroupBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceGroupBadRequest handles this case with default header values.

Bad request

func NewReplaceGroupBadRequest

func NewReplaceGroupBadRequest() *ReplaceGroupBadRequest

NewReplaceGroupBadRequest creates a ReplaceGroupBadRequest with default headers values

func (*ReplaceGroupBadRequest) Error

func (o *ReplaceGroupBadRequest) Error() string

func (*ReplaceGroupBadRequest) GetPayload

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

type ReplaceGroupDefault

type ReplaceGroupDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceGroupDefault handles this case 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

type ReplaceGroupNotFound

type ReplaceGroupNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceGroupNotFound handles this case 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) Error

func (o *ReplaceGroupNotFound) Error() string

func (*ReplaceGroupNotFound) GetPayload

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

type ReplaceGroupOK

type ReplaceGroupOK struct {
	Payload *models.Group
}

ReplaceGroupOK handles this case with default header values.

Group replaced

func NewReplaceGroupOK

func NewReplaceGroupOK() *ReplaceGroupOK

NewReplaceGroupOK creates a ReplaceGroupOK with default headers values

func (*ReplaceGroupOK) Error

func (o *ReplaceGroupOK) Error() string

func (*ReplaceGroupOK) GetPayload

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

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 values initialized.

func NewReplaceGroupParamsWithContext

func NewReplaceGroupParamsWithContext(ctx context.Context) *ReplaceGroupParams

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