organisations

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for organisations API

func New

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

New creates a new organisations API client.

func (*Client) DeleteUnitsID

func (a *Client) DeleteUnitsID(params *DeleteUnitsIDParams) (*DeleteUnitsIDNoContent, error)

DeleteUnitsID deletes organisation

func (*Client) GetUnits

func (a *Client) GetUnits(params *GetUnitsParams) (*GetUnitsOK, error)

GetUnits lists all organisations

func (*Client) GetUnitsID

func (a *Client) GetUnitsID(params *GetUnitsIDParams) (*GetUnitsIDOK, error)

GetUnitsID fetches organisation

func (*Client) PatchUnitsID

func (a *Client) PatchUnitsID(params *PatchUnitsIDParams) (*PatchUnitsIDOK, error)

PatchUnitsID updates organisation

func (*Client) PostUnits

func (a *Client) PostUnits(params *PostUnitsParams) (*PostUnitsCreated, error)

PostUnits creates organisation

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteUnitsIDNoContent

type DeleteUnitsIDNoContent struct {
}

DeleteUnitsIDNoContent handles this case with default header values.

Organisation deleted

func NewDeleteUnitsIDNoContent

func NewDeleteUnitsIDNoContent() *DeleteUnitsIDNoContent

NewDeleteUnitsIDNoContent creates a DeleteUnitsIDNoContent with default headers values

func (*DeleteUnitsIDNoContent) Error

func (o *DeleteUnitsIDNoContent) Error() string

type DeleteUnitsIDParams

type DeleteUnitsIDParams struct {

	/*ID
	  Organisation Id

	*/
	ID strfmt.UUID
	/*Version
	  Version

	*/
	Version int64

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

DeleteUnitsIDParams contains all the parameters to send to the API endpoint for the delete units ID operation typically these are written to a http.Request

func NewDeleteUnitsIDParams

func NewDeleteUnitsIDParams() *DeleteUnitsIDParams

NewDeleteUnitsIDParams creates a new DeleteUnitsIDParams object with the default values initialized.

func NewDeleteUnitsIDParamsWithContext

func NewDeleteUnitsIDParamsWithContext(ctx context.Context) *DeleteUnitsIDParams

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

func NewDeleteUnitsIDParamsWithHTTPClient

func NewDeleteUnitsIDParamsWithHTTPClient(client *http.Client) *DeleteUnitsIDParams

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

func NewDeleteUnitsIDParamsWithTimeout

func NewDeleteUnitsIDParamsWithTimeout(timeout time.Duration) *DeleteUnitsIDParams

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

func (*DeleteUnitsIDParams) SetContext

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

SetContext adds the context to the delete units ID params

func (*DeleteUnitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete units ID params

func (*DeleteUnitsIDParams) SetID

func (o *DeleteUnitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the delete units ID params

func (*DeleteUnitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete units ID params

func (*DeleteUnitsIDParams) SetVersion

func (o *DeleteUnitsIDParams) SetVersion(version int64)

SetVersion adds the version to the delete units ID params

func (*DeleteUnitsIDParams) WithContext

WithContext adds the context to the delete units ID params

func (*DeleteUnitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete units ID params

func (*DeleteUnitsIDParams) WithID

WithID adds the id to the delete units ID params

func (*DeleteUnitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the delete units ID params

func (*DeleteUnitsIDParams) WithVersion

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

WithVersion adds the version to the delete units ID params

func (*DeleteUnitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteUnitsIDReader

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

DeleteUnitsIDReader is a Reader for the DeleteUnitsID structure.

func (*DeleteUnitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUnitsIDOK

type GetUnitsIDOK struct {
	Payload *models.OrganisationDetailsResponse
}

GetUnitsIDOK handles this case with default header values.

Organisation details

func NewGetUnitsIDOK

func NewGetUnitsIDOK() *GetUnitsIDOK

NewGetUnitsIDOK creates a GetUnitsIDOK with default headers values

func (*GetUnitsIDOK) Error

func (o *GetUnitsIDOK) Error() string

type GetUnitsIDParams

type GetUnitsIDParams struct {

	/*ID
	  Organisation Id

	*/
	ID strfmt.UUID

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

GetUnitsIDParams contains all the parameters to send to the API endpoint for the get units ID operation typically these are written to a http.Request

func NewGetUnitsIDParams

func NewGetUnitsIDParams() *GetUnitsIDParams

NewGetUnitsIDParams creates a new GetUnitsIDParams object with the default values initialized.

func NewGetUnitsIDParamsWithContext

func NewGetUnitsIDParamsWithContext(ctx context.Context) *GetUnitsIDParams

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

func NewGetUnitsIDParamsWithHTTPClient

func NewGetUnitsIDParamsWithHTTPClient(client *http.Client) *GetUnitsIDParams

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

func NewGetUnitsIDParamsWithTimeout

func NewGetUnitsIDParamsWithTimeout(timeout time.Duration) *GetUnitsIDParams

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

func (*GetUnitsIDParams) SetContext

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

SetContext adds the context to the get units ID params

func (*GetUnitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get units ID params

func (*GetUnitsIDParams) SetID

func (o *GetUnitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the get units ID params

func (*GetUnitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get units ID params

func (*GetUnitsIDParams) WithContext

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

WithContext adds the context to the get units ID params

func (*GetUnitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get units ID params

func (*GetUnitsIDParams) WithID

WithID adds the id to the get units ID params

func (*GetUnitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the get units ID params

func (*GetUnitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUnitsIDReader

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

GetUnitsIDReader is a Reader for the GetUnitsID structure.

func (*GetUnitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUnitsOK

type GetUnitsOK struct {
	Payload *models.OrganisationDetailsListResponse
}

GetUnitsOK handles this case with default header values.

List of organisation details

func NewGetUnitsOK

func NewGetUnitsOK() *GetUnitsOK

NewGetUnitsOK creates a GetUnitsOK with default headers values

func (*GetUnitsOK) Error

func (o *GetUnitsOK) Error() string

type GetUnitsParams

type GetUnitsParams struct {

	/*FilterChildOrganisationID
	  Child org id

	*/
	FilterChildOrganisationID *strfmt.UUID

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

GetUnitsParams contains all the parameters to send to the API endpoint for the get units operation typically these are written to a http.Request

func NewGetUnitsParams

func NewGetUnitsParams() *GetUnitsParams

NewGetUnitsParams creates a new GetUnitsParams object with the default values initialized.

func NewGetUnitsParamsWithContext

func NewGetUnitsParamsWithContext(ctx context.Context) *GetUnitsParams

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

func NewGetUnitsParamsWithHTTPClient

func NewGetUnitsParamsWithHTTPClient(client *http.Client) *GetUnitsParams

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

func NewGetUnitsParamsWithTimeout

func NewGetUnitsParamsWithTimeout(timeout time.Duration) *GetUnitsParams

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

func (*GetUnitsParams) SetContext

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

SetContext adds the context to the get units params

func (*GetUnitsParams) SetFilterChildOrganisationID

func (o *GetUnitsParams) SetFilterChildOrganisationID(filterChildOrganisationID *strfmt.UUID)

SetFilterChildOrganisationID adds the filterChildOrganisationId to the get units params

func (*GetUnitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get units params

func (*GetUnitsParams) SetTimeout

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

SetTimeout adds the timeout to the get units params

func (*GetUnitsParams) WithContext

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

WithContext adds the context to the get units params

func (*GetUnitsParams) WithFilterChildOrganisationID

func (o *GetUnitsParams) WithFilterChildOrganisationID(filterChildOrganisationID *strfmt.UUID) *GetUnitsParams

WithFilterChildOrganisationID adds the filterChildOrganisationID to the get units params

func (*GetUnitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get units params

func (*GetUnitsParams) WithTimeout

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

WithTimeout adds the timeout to the get units params

func (*GetUnitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUnitsReader

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

GetUnitsReader is a Reader for the GetUnits structure.

func (*GetUnitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchUnitsIDOK

type PatchUnitsIDOK struct {
	Payload *models.OrganisationDetailsResponse
}

PatchUnitsIDOK handles this case with default header values.

Organisation details

func NewPatchUnitsIDOK

func NewPatchUnitsIDOK() *PatchUnitsIDOK

NewPatchUnitsIDOK creates a PatchUnitsIDOK with default headers values

func (*PatchUnitsIDOK) Error

func (o *PatchUnitsIDOK) Error() string

type PatchUnitsIDParams

type PatchUnitsIDParams struct {

	/*OrganisationUpdateRequest*/
	OrganisationUpdateRequest *models.OrganisationUpdate
	/*ID
	  Organisation Id

	*/
	ID strfmt.UUID

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

PatchUnitsIDParams contains all the parameters to send to the API endpoint for the patch units ID operation typically these are written to a http.Request

func NewPatchUnitsIDParams

func NewPatchUnitsIDParams() *PatchUnitsIDParams

NewPatchUnitsIDParams creates a new PatchUnitsIDParams object with the default values initialized.

func NewPatchUnitsIDParamsWithContext

func NewPatchUnitsIDParamsWithContext(ctx context.Context) *PatchUnitsIDParams

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

func NewPatchUnitsIDParamsWithHTTPClient

func NewPatchUnitsIDParamsWithHTTPClient(client *http.Client) *PatchUnitsIDParams

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

func NewPatchUnitsIDParamsWithTimeout

func NewPatchUnitsIDParamsWithTimeout(timeout time.Duration) *PatchUnitsIDParams

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

func (*PatchUnitsIDParams) SetContext

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

SetContext adds the context to the patch units ID params

func (*PatchUnitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch units ID params

func (*PatchUnitsIDParams) SetID

func (o *PatchUnitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the patch units ID params

func (*PatchUnitsIDParams) SetOrganisationUpdateRequest

func (o *PatchUnitsIDParams) SetOrganisationUpdateRequest(organisationUpdateRequest *models.OrganisationUpdate)

SetOrganisationUpdateRequest adds the organisationUpdateRequest to the patch units ID params

func (*PatchUnitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch units ID params

func (*PatchUnitsIDParams) WithContext

WithContext adds the context to the patch units ID params

func (*PatchUnitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch units ID params

func (*PatchUnitsIDParams) WithID

WithID adds the id to the patch units ID params

func (*PatchUnitsIDParams) WithOrganisationUpdateRequest

func (o *PatchUnitsIDParams) WithOrganisationUpdateRequest(organisationUpdateRequest *models.OrganisationUpdate) *PatchUnitsIDParams

WithOrganisationUpdateRequest adds the organisationUpdateRequest to the patch units ID params

func (*PatchUnitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the patch units ID params

func (*PatchUnitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchUnitsIDReader

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

PatchUnitsIDReader is a Reader for the PatchUnitsID structure.

func (*PatchUnitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUnitsCreated

type PostUnitsCreated struct {
	Payload *models.OrganisationCreationResponse
}

PostUnitsCreated handles this case with default header values.

Organisation creation response

func NewPostUnitsCreated

func NewPostUnitsCreated() *PostUnitsCreated

NewPostUnitsCreated creates a PostUnitsCreated with default headers values

func (*PostUnitsCreated) Error

func (o *PostUnitsCreated) Error() string

type PostUnitsParams

type PostUnitsParams struct {

	/*OrganisationCreationRequest*/
	OrganisationCreationRequest *models.OrganisationCreation

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

PostUnitsParams contains all the parameters to send to the API endpoint for the post units operation typically these are written to a http.Request

func NewPostUnitsParams

func NewPostUnitsParams() *PostUnitsParams

NewPostUnitsParams creates a new PostUnitsParams object with the default values initialized.

func NewPostUnitsParamsWithContext

func NewPostUnitsParamsWithContext(ctx context.Context) *PostUnitsParams

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

func NewPostUnitsParamsWithHTTPClient

func NewPostUnitsParamsWithHTTPClient(client *http.Client) *PostUnitsParams

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

func NewPostUnitsParamsWithTimeout

func NewPostUnitsParamsWithTimeout(timeout time.Duration) *PostUnitsParams

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

func (*PostUnitsParams) SetContext

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

SetContext adds the context to the post units params

func (*PostUnitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post units params

func (*PostUnitsParams) SetOrganisationCreationRequest

func (o *PostUnitsParams) SetOrganisationCreationRequest(organisationCreationRequest *models.OrganisationCreation)

SetOrganisationCreationRequest adds the organisationCreationRequest to the post units params

func (*PostUnitsParams) SetTimeout

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

SetTimeout adds the timeout to the post units params

func (*PostUnitsParams) WithContext

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

WithContext adds the context to the post units params

func (*PostUnitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post units params

func (*PostUnitsParams) WithOrganisationCreationRequest

func (o *PostUnitsParams) WithOrganisationCreationRequest(organisationCreationRequest *models.OrganisationCreation) *PostUnitsParams

WithOrganisationCreationRequest adds the organisationCreationRequest to the post units params

func (*PostUnitsParams) WithTimeout

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

WithTimeout adds the timeout to the post units params

func (*PostUnitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostUnitsReader

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

PostUnitsReader is a Reader for the PostUnits structure.

func (*PostUnitsReader) ReadResponse

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