organisations

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 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 CreateUnitBadRequest

type CreateUnitBadRequest struct {

	// isStream: false
	*models.APIError
}

CreateUnitBadRequest handles this case with default header values.

Bad Request

func NewCreateUnitBadRequest

func NewCreateUnitBadRequest() *CreateUnitBadRequest

NewCreateUnitBadRequest creates a CreateUnitBadRequest with default headers values

func (*CreateUnitBadRequest) Code

func (o *CreateUnitBadRequest) Code() int

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

func (*CreateUnitBadRequest) Error

func (o *CreateUnitBadRequest) Error() string

func (*CreateUnitBadRequest) IsClientError

func (o *CreateUnitBadRequest) IsClientError() bool

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

func (*CreateUnitBadRequest) IsCode

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

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

func (*CreateUnitBadRequest) IsRedirect

func (o *CreateUnitBadRequest) IsRedirect() bool

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

func (*CreateUnitBadRequest) IsServerError

func (o *CreateUnitBadRequest) IsServerError() bool

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

func (*CreateUnitBadRequest) IsSuccess

func (o *CreateUnitBadRequest) IsSuccess() bool

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

type CreateUnitConflict

type CreateUnitConflict struct {

	// isStream: false
	*models.APIError
}

CreateUnitConflict handles this case with default header values.

Conflict

func NewCreateUnitConflict

func NewCreateUnitConflict() *CreateUnitConflict

NewCreateUnitConflict creates a CreateUnitConflict with default headers values

func (*CreateUnitConflict) Code

func (o *CreateUnitConflict) Code() int

Code gets the status code for the create unit conflict response

func (*CreateUnitConflict) Error

func (o *CreateUnitConflict) Error() string

func (*CreateUnitConflict) IsClientError

func (o *CreateUnitConflict) IsClientError() bool

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

func (*CreateUnitConflict) IsCode

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

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

func (*CreateUnitConflict) IsRedirect

func (o *CreateUnitConflict) IsRedirect() bool

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

func (*CreateUnitConflict) IsServerError

func (o *CreateUnitConflict) IsServerError() bool

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

func (*CreateUnitConflict) IsSuccess

func (o *CreateUnitConflict) IsSuccess() bool

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

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) Code

func (o *CreateUnitCreated) Code() int

Code gets the status code for the create unit created response

func (*CreateUnitCreated) Error

func (o *CreateUnitCreated) Error() string

func (*CreateUnitCreated) IsClientError

func (o *CreateUnitCreated) IsClientError() bool

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

func (*CreateUnitCreated) IsCode

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

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

func (*CreateUnitCreated) IsRedirect

func (o *CreateUnitCreated) IsRedirect() bool

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

func (*CreateUnitCreated) IsServerError

func (o *CreateUnitCreated) IsServerError() bool

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

func (*CreateUnitCreated) IsSuccess

func (o *CreateUnitCreated) IsSuccess() bool

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

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 GetUnitNotFound

type GetUnitNotFound struct {

	// isStream: false
	*models.APIError
}

GetUnitNotFound handles this case with default header values.

Not Found

func NewGetUnitNotFound

func NewGetUnitNotFound() *GetUnitNotFound

NewGetUnitNotFound creates a GetUnitNotFound with default headers values

func (*GetUnitNotFound) Code

func (o *GetUnitNotFound) Code() int

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

func (*GetUnitNotFound) Error

func (o *GetUnitNotFound) Error() string

func (*GetUnitNotFound) IsClientError

func (o *GetUnitNotFound) IsClientError() bool

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

func (*GetUnitNotFound) IsCode

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

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

func (*GetUnitNotFound) IsRedirect

func (o *GetUnitNotFound) IsRedirect() bool

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

func (*GetUnitNotFound) IsServerError

func (o *GetUnitNotFound) IsServerError() bool

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

func (*GetUnitNotFound) IsSuccess

func (o *GetUnitNotFound) IsSuccess() bool

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

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) Code

func (o *GetUnitOK) Code() int

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

func (*GetUnitOK) Error

func (o *GetUnitOK) Error() string

func (*GetUnitOK) IsClientError

func (o *GetUnitOK) IsClientError() bool

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

func (*GetUnitOK) IsCode

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

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

func (*GetUnitOK) IsRedirect

func (o *GetUnitOK) IsRedirect() bool

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

func (*GetUnitOK) IsServerError

func (o *GetUnitOK) IsServerError() bool

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

func (*GetUnitOK) IsSuccess

func (o *GetUnitOK) IsSuccess() bool

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

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) Code

func (o *ListUnitsOK) Code() int

Code gets the status code for the list units o k response

func (*ListUnitsOK) Error

func (o *ListUnitsOK) Error() string

func (*ListUnitsOK) IsClientError

func (o *ListUnitsOK) IsClientError() bool

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

func (*ListUnitsOK) IsCode

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

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

func (*ListUnitsOK) IsRedirect

func (o *ListUnitsOK) IsRedirect() bool

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

func (*ListUnitsOK) IsServerError

func (o *ListUnitsOK) IsServerError() bool

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

func (*ListUnitsOK) IsSuccess

func (o *ListUnitsOK) IsSuccess() bool

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

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 ModifyUnitBadRequest

type ModifyUnitBadRequest struct {

	// isStream: false
	*models.APIError
}

ModifyUnitBadRequest handles this case with default header values.

Bad request

func NewModifyUnitBadRequest

func NewModifyUnitBadRequest() *ModifyUnitBadRequest

NewModifyUnitBadRequest creates a ModifyUnitBadRequest with default headers values

func (*ModifyUnitBadRequest) Code

func (o *ModifyUnitBadRequest) Code() int

Code gets the status code for the modify unit bad request response

func (*ModifyUnitBadRequest) Error

func (o *ModifyUnitBadRequest) Error() string

func (*ModifyUnitBadRequest) IsClientError

func (o *ModifyUnitBadRequest) IsClientError() bool

IsClientError returns true when this modify unit bad request response has a 4xx status code

func (*ModifyUnitBadRequest) IsCode

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

IsCode returns true when this modify unit bad request response a status code equal to that given

func (*ModifyUnitBadRequest) IsRedirect

func (o *ModifyUnitBadRequest) IsRedirect() bool

IsRedirect returns true when this modify unit bad request response has a 3xx status code

func (*ModifyUnitBadRequest) IsServerError

func (o *ModifyUnitBadRequest) IsServerError() bool

IsServerError returns true when this modify unit bad request response has a 5xx status code

func (*ModifyUnitBadRequest) IsSuccess

func (o *ModifyUnitBadRequest) IsSuccess() bool

IsSuccess returns true when this modify unit bad request response has a 2xx status code

type ModifyUnitNotFound

type ModifyUnitNotFound struct {

	// isStream: false
	*models.APIError
}

ModifyUnitNotFound handles this case with default header values.

Not Found

func NewModifyUnitNotFound

func NewModifyUnitNotFound() *ModifyUnitNotFound

NewModifyUnitNotFound creates a ModifyUnitNotFound with default headers values

func (*ModifyUnitNotFound) Code

func (o *ModifyUnitNotFound) Code() int

Code gets the status code for the modify unit not found response

func (*ModifyUnitNotFound) Error

func (o *ModifyUnitNotFound) Error() string

func (*ModifyUnitNotFound) IsClientError

func (o *ModifyUnitNotFound) IsClientError() bool

IsClientError returns true when this modify unit not found response has a 4xx status code

func (*ModifyUnitNotFound) IsCode

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

IsCode returns true when this modify unit not found response a status code equal to that given

func (*ModifyUnitNotFound) IsRedirect

func (o *ModifyUnitNotFound) IsRedirect() bool

IsRedirect returns true when this modify unit not found response has a 3xx status code

func (*ModifyUnitNotFound) IsServerError

func (o *ModifyUnitNotFound) IsServerError() bool

IsServerError returns true when this modify unit not found response has a 5xx status code

func (*ModifyUnitNotFound) IsSuccess

func (o *ModifyUnitNotFound) IsSuccess() bool

IsSuccess returns true when this modify unit not found response has a 2xx status code

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) Code

func (o *ModifyUnitOK) Code() int

Code gets the status code for the modify unit o k response

func (*ModifyUnitOK) Error

func (o *ModifyUnitOK) Error() string

func (*ModifyUnitOK) IsClientError

func (o *ModifyUnitOK) IsClientError() bool

IsClientError returns true when this modify unit o k response has a 4xx status code

func (*ModifyUnitOK) IsCode

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

IsCode returns true when this modify unit o k response a status code equal to that given

func (*ModifyUnitOK) IsRedirect

func (o *ModifyUnitOK) IsRedirect() bool

IsRedirect returns true when this modify unit o k response has a 3xx status code

func (*ModifyUnitOK) IsServerError

func (o *ModifyUnitOK) IsServerError() bool

IsServerError returns true when this modify unit o k response has a 5xx status code

func (*ModifyUnitOK) IsSuccess

func (o *ModifyUnitOK) IsSuccess() bool

IsSuccess returns true when this modify unit o k response has a 2xx status code

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