organisations

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 13 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 {
	Defaults client.Defaults
	// contains filtered or unexported fields
}

Client for organisations API

func New

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

New creates a new organisations API client.

func (*Client) CreateUnit

func (c *Client) CreateUnit() *CreateUnitRequest

Client.CreateUnit creates a new CreateUnitRequest object with the default values initialized.

func (*Client) GetUnit

func (c *Client) GetUnit() *GetUnitRequest

Client.GetUnit creates a new GetUnitRequest object with the default values initialized.

func (*Client) ListUnits

func (c *Client) ListUnits() *ListUnitsRequest

Client.ListUnits creates a new ListUnitsRequest object with the default values initialized.

func (*Client) ModifyUnit

func (c *Client) ModifyUnit() *ModifyUnitRequest

Client.ModifyUnit creates a new ModifyUnitRequest object with the default values initialized.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateUnitCreated

type CreateUnitCreated struct {

	// isStream: false
	*models.OrganisationCreationResponse
}

CreateUnitCreated handles this case with default header values.

Organisation creation response

func NewCreateUnitCreated

func NewCreateUnitCreated() *CreateUnitCreated

NewCreateUnitCreated creates a CreateUnitCreated with default headers values

func (*CreateUnitCreated) Error

func (o *CreateUnitCreated) Error() string

type CreateUnitReader

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

CreateUnitReader is a Reader for the CreateUnit structure.

func (*CreateUnitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUnitRequest

type CreateUnitRequest struct {
	*models.OrganisationCreation

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

func (*CreateUnitRequest) Do

create unit API

func (*CreateUnitRequest) FromJson

func (o *CreateUnitRequest) FromJson(j string) (*CreateUnitRequest, error)

func (*CreateUnitRequest) MustDo

func (a *CreateUnitRequest) MustDo() *CreateUnitCreated

func (*CreateUnitRequest) WithContext

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

//////////////// WithContext adds the context to the create unit Request

func (*CreateUnitRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create unit Request

func (*CreateUnitRequest) WithOrganisationCreationRequest

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

func (*CreateUnitRequest) WithoutOrganisationCreationRequest

func (o *CreateUnitRequest) WithoutOrganisationCreationRequest() *CreateUnitRequest

func (*CreateUnitRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type GetUnitOK

type GetUnitOK struct {

	// isStream: false
	*models.OrganisationDetailsResponse
}

GetUnitOK handles this case with default header values.

Organisation details

func NewGetUnitOK

func NewGetUnitOK() *GetUnitOK

NewGetUnitOK creates a GetUnitOK with default headers values

func (*GetUnitOK) Error

func (o *GetUnitOK) Error() string

type GetUnitReader

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

GetUnitReader is a Reader for the GetUnit structure.

func (*GetUnitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUnitRequest

type GetUnitRequest struct {
	ID strfmt.UUID

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

func (*GetUnitRequest) Do

func (a *GetUnitRequest) Do() (*GetUnitOK, error)

get unit API

func (*GetUnitRequest) FromJson

func (o *GetUnitRequest) FromJson(j string) (*GetUnitRequest, error)

func (*GetUnitRequest) MustDo

func (a *GetUnitRequest) MustDo() *GetUnitOK

func (*GetUnitRequest) WithContext

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

//////////////// WithContext adds the context to the get unit Request

func (*GetUnitRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get unit Request

func (*GetUnitRequest) WithID

func (o *GetUnitRequest) WithID(id strfmt.UUID) *GetUnitRequest

func (*GetUnitRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type ListUnitsOK

type ListUnitsOK struct {

	// isStream: false
	*models.OrganisationDetailsListResponse
}

ListUnitsOK handles this case with default header values.

List of organisation details

func NewListUnitsOK

func NewListUnitsOK() *ListUnitsOK

NewListUnitsOK creates a ListUnitsOK with default headers values

func (*ListUnitsOK) Error

func (o *ListUnitsOK) Error() string

type ListUnitsReader

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

ListUnitsReader is a Reader for the ListUnits structure.

func (*ListUnitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUnitsRequest

type ListUnitsRequest struct {
	FilterChildOrganisationID *strfmt.UUID

	FilterOrganisationIds []strfmt.UUID

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

func (*ListUnitsRequest) Do

func (a *ListUnitsRequest) Do() (*ListUnitsOK, error)

list units API

func (*ListUnitsRequest) FromJson

func (o *ListUnitsRequest) FromJson(j string) (*ListUnitsRequest, error)

func (*ListUnitsRequest) MustDo

func (a *ListUnitsRequest) MustDo() *ListUnitsOK

func (*ListUnitsRequest) WithContext

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

//////////////// WithContext adds the context to the list units Request

func (*ListUnitsRequest) WithFilterChildOrganisationID

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

func (*ListUnitsRequest) WithFilterOrganisationIds

func (o *ListUnitsRequest) WithFilterOrganisationIds(filterOrganisationIds []strfmt.UUID) *ListUnitsRequest

func (*ListUnitsRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list units Request

func (*ListUnitsRequest) WithoutFilterChildOrganisationID

func (o *ListUnitsRequest) WithoutFilterChildOrganisationID() *ListUnitsRequest

func (*ListUnitsRequest) WithoutFilterOrganisationIds

func (o *ListUnitsRequest) WithoutFilterOrganisationIds() *ListUnitsRequest

func (*ListUnitsRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type ModifyUnitOK

type ModifyUnitOK struct {

	// isStream: false
	*models.OrganisationDetailsResponse
}

ModifyUnitOK handles this case with default header values.

Organisation details

func NewModifyUnitOK

func NewModifyUnitOK() *ModifyUnitOK

NewModifyUnitOK creates a ModifyUnitOK with default headers values

func (*ModifyUnitOK) Error

func (o *ModifyUnitOK) Error() string

type ModifyUnitReader

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

ModifyUnitReader is a Reader for the ModifyUnit structure.

func (*ModifyUnitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyUnitRequest

type ModifyUnitRequest struct {
	*models.OrganisationUpdate

	ID strfmt.UUID

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

func (*ModifyUnitRequest) Do

func (a *ModifyUnitRequest) Do() (*ModifyUnitOK, error)

modify unit API

func (*ModifyUnitRequest) FromJson

func (o *ModifyUnitRequest) FromJson(j string) (*ModifyUnitRequest, error)

func (*ModifyUnitRequest) MustDo

func (a *ModifyUnitRequest) MustDo() *ModifyUnitOK

func (*ModifyUnitRequest) WithContext

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

//////////////// WithContext adds the context to the modify unit Request

func (*ModifyUnitRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify unit Request

func (*ModifyUnitRequest) WithID

func (*ModifyUnitRequest) WithOrganisationUpdateRequest

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

func (*ModifyUnitRequest) WithoutOrganisationUpdateRequest

func (o *ModifyUnitRequest) WithoutOrganisationUpdateRequest() *ModifyUnitRequest

func (*ModifyUnitRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

Jump to

Keyboard shortcuts

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