Documentation ¶
Index ¶
- type Client
- type CreateUnitBadRequest
- func (o *CreateUnitBadRequest) Code() int
- func (o *CreateUnitBadRequest) Error() string
- func (o *CreateUnitBadRequest) IsClientError() bool
- func (o *CreateUnitBadRequest) IsCode(code int) bool
- func (o *CreateUnitBadRequest) IsRedirect() bool
- func (o *CreateUnitBadRequest) IsServerError() bool
- func (o *CreateUnitBadRequest) IsSuccess() bool
- type CreateUnitConflict
- func (o *CreateUnitConflict) Code() int
- func (o *CreateUnitConflict) Error() string
- func (o *CreateUnitConflict) IsClientError() bool
- func (o *CreateUnitConflict) IsCode(code int) bool
- func (o *CreateUnitConflict) IsRedirect() bool
- func (o *CreateUnitConflict) IsServerError() bool
- func (o *CreateUnitConflict) IsSuccess() bool
- type CreateUnitCreated
- func (o *CreateUnitCreated) Code() int
- func (o *CreateUnitCreated) Error() string
- func (o *CreateUnitCreated) IsClientError() bool
- func (o *CreateUnitCreated) IsCode(code int) bool
- func (o *CreateUnitCreated) IsRedirect() bool
- func (o *CreateUnitCreated) IsServerError() bool
- func (o *CreateUnitCreated) IsSuccess() bool
- type CreateUnitReader
- type CreateUnitRequest
- func (a *CreateUnitRequest) Do() (*CreateUnitCreated, error)
- func (o *CreateUnitRequest) FromJson(j string) (*CreateUnitRequest, error)
- func (a *CreateUnitRequest) MustDo() *CreateUnitCreated
- func (o *CreateUnitRequest) WithContext(ctx context.Context) *CreateUnitRequest
- func (o *CreateUnitRequest) WithHTTPClient(client *http.Client) *CreateUnitRequest
- func (o *CreateUnitRequest) WithOrganisationCreationRequest(organisationCreationRequest models.OrganisationCreation) *CreateUnitRequest
- func (o *CreateUnitRequest) WithoutOrganisationCreationRequest() *CreateUnitRequest
- func (o *CreateUnitRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUnitNotFound
- func (o *GetUnitNotFound) Code() int
- func (o *GetUnitNotFound) Error() string
- func (o *GetUnitNotFound) IsClientError() bool
- func (o *GetUnitNotFound) IsCode(code int) bool
- func (o *GetUnitNotFound) IsRedirect() bool
- func (o *GetUnitNotFound) IsServerError() bool
- func (o *GetUnitNotFound) IsSuccess() bool
- type GetUnitOK
- type GetUnitReader
- type GetUnitRequest
- func (a *GetUnitRequest) Do() (*GetUnitOK, error)
- func (o *GetUnitRequest) FromJson(j string) (*GetUnitRequest, error)
- func (a *GetUnitRequest) MustDo() *GetUnitOK
- func (o *GetUnitRequest) WithContext(ctx context.Context) *GetUnitRequest
- func (o *GetUnitRequest) WithHTTPClient(client *http.Client) *GetUnitRequest
- func (o *GetUnitRequest) WithID(id strfmt.UUID) *GetUnitRequest
- func (o *GetUnitRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUnitsOK
- type ListUnitsReader
- type ListUnitsRequest
- func (a *ListUnitsRequest) Do() (*ListUnitsOK, error)
- func (o *ListUnitsRequest) FromJson(j string) (*ListUnitsRequest, error)
- func (a *ListUnitsRequest) MustDo() *ListUnitsOK
- func (o *ListUnitsRequest) WithContext(ctx context.Context) *ListUnitsRequest
- func (o *ListUnitsRequest) WithFilterChildOrganisationID(filterChildOrganisationID strfmt.UUID) *ListUnitsRequest
- func (o *ListUnitsRequest) WithFilterOrganisationIds(filterOrganisationIds []strfmt.UUID) *ListUnitsRequest
- func (o *ListUnitsRequest) WithHTTPClient(client *http.Client) *ListUnitsRequest
- func (o *ListUnitsRequest) WithoutFilterChildOrganisationID() *ListUnitsRequest
- func (o *ListUnitsRequest) WithoutFilterOrganisationIds() *ListUnitsRequest
- func (o *ListUnitsRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyUnitBadRequest
- func (o *ModifyUnitBadRequest) Code() int
- func (o *ModifyUnitBadRequest) Error() string
- func (o *ModifyUnitBadRequest) IsClientError() bool
- func (o *ModifyUnitBadRequest) IsCode(code int) bool
- func (o *ModifyUnitBadRequest) IsRedirect() bool
- func (o *ModifyUnitBadRequest) IsServerError() bool
- func (o *ModifyUnitBadRequest) IsSuccess() bool
- type ModifyUnitNotFound
- func (o *ModifyUnitNotFound) Code() int
- func (o *ModifyUnitNotFound) Error() string
- func (o *ModifyUnitNotFound) IsClientError() bool
- func (o *ModifyUnitNotFound) IsCode(code int) bool
- func (o *ModifyUnitNotFound) IsRedirect() bool
- func (o *ModifyUnitNotFound) IsServerError() bool
- func (o *ModifyUnitNotFound) IsSuccess() bool
- type ModifyUnitOK
- type ModifyUnitReader
- type ModifyUnitRequest
- func (a *ModifyUnitRequest) Do() (*ModifyUnitOK, error)
- func (o *ModifyUnitRequest) FromJson(j string) (*ModifyUnitRequest, error)
- func (a *ModifyUnitRequest) MustDo() *ModifyUnitOK
- func (o *ModifyUnitRequest) WithContext(ctx context.Context) *ModifyUnitRequest
- func (o *ModifyUnitRequest) WithHTTPClient(client *http.Client) *ModifyUnitRequest
- func (o *ModifyUnitRequest) WithID(id strfmt.UUID) *ModifyUnitRequest
- func (o *ModifyUnitRequest) WithOrganisationUpdateRequest(organisationUpdateRequest models.OrganisationUpdate) *ModifyUnitRequest
- func (o *ModifyUnitRequest) WithoutOrganisationUpdateRequest() *ModifyUnitRequest
- func (o *ModifyUnitRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 ¶
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 ¶
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 ¶
func (a *CreateUnitRequest) Do() (*CreateUnitCreated, error)
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 ¶
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) IsClientError ¶
IsClientError returns true when this get unit o k response has a 4xx status code
func (*GetUnitOK) IsCode ¶
IsCode returns true when this get unit o k response a status code equal to that given
func (*GetUnitOK) IsRedirect ¶
IsRedirect returns true when this get unit o k response has a 3xx status code
func (*GetUnitOK) IsServerError ¶
IsServerError returns true when this get unit o k response has a 5xx 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) 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) 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 ¶
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 ¶
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 (o *ModifyUnitRequest) WithID(id strfmt.UUID) *ModifyUnitRequest
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