division

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 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 division API

func (*Client) DivisionListPostList

func (a *Client) DivisionListPostList(params *DivisionListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionListPostListCreated, error)

DivisionListPostList bs e t a create divisions

func (*Client) DivisionListPutList

func (a *Client) DivisionListPutList(params *DivisionListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionListPutListOK, error)

DivisionListPutList bs e t a update multiple divisions

func (*Client) DivisionPost

func (a *Client) DivisionPost(params *DivisionPostParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionPostCreated, error)

DivisionPost bs e t a create division

func (*Client) DivisionPut

func (a *Client) DivisionPut(params *DivisionPutParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionPutOK, error)

DivisionPut bs e t a update division information

func (*Client) DivisionSearch

func (a *Client) DivisionSearch(params *DivisionSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionSearchOK, error)

DivisionSearch bs e t a get divisions

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DivisionListPostList(params *DivisionListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionListPostListCreated, error)

	DivisionListPutList(params *DivisionListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionListPutListOK, error)

	DivisionPost(params *DivisionPostParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionPostCreated, error)

	DivisionPut(params *DivisionPutParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionPutOK, error)

	DivisionSearch(params *DivisionSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DivisionSearchOK, 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 division API client.

type DivisionListPostListCreated

type DivisionListPostListCreated struct {
	Payload *models.ListResponseDivision
}

DivisionListPostListCreated handles this case with default header values.

successfully created

func NewDivisionListPostListCreated

func NewDivisionListPostListCreated() *DivisionListPostListCreated

NewDivisionListPostListCreated creates a DivisionListPostListCreated with default headers values

func (*DivisionListPostListCreated) Error

func (*DivisionListPostListCreated) GetPayload

type DivisionListPostListParams

type DivisionListPostListParams struct {

	/*Body
	  JSON representing a list of new object to be created. Should not have ID and version set.

	*/
	Body []*models.Division

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

DivisionListPostListParams contains all the parameters to send to the API endpoint for the division list post list operation typically these are written to a http.Request

func NewDivisionListPostListParams

func NewDivisionListPostListParams() *DivisionListPostListParams

NewDivisionListPostListParams creates a new DivisionListPostListParams object with the default values initialized.

func NewDivisionListPostListParamsWithContext

func NewDivisionListPostListParamsWithContext(ctx context.Context) *DivisionListPostListParams

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

func NewDivisionListPostListParamsWithHTTPClient

func NewDivisionListPostListParamsWithHTTPClient(client *http.Client) *DivisionListPostListParams

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

func NewDivisionListPostListParamsWithTimeout

func NewDivisionListPostListParamsWithTimeout(timeout time.Duration) *DivisionListPostListParams

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

func (*DivisionListPostListParams) SetBody

func (o *DivisionListPostListParams) SetBody(body []*models.Division)

SetBody adds the body to the division list post list params

func (*DivisionListPostListParams) SetContext

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

SetContext adds the context to the division list post list params

func (*DivisionListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the division list post list params

func (*DivisionListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the division list post list params

func (*DivisionListPostListParams) WithBody

WithBody adds the body to the division list post list params

func (*DivisionListPostListParams) WithContext

WithContext adds the context to the division list post list params

func (*DivisionListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the division list post list params

func (*DivisionListPostListParams) WithTimeout

WithTimeout adds the timeout to the division list post list params

func (*DivisionListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DivisionListPostListReader

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

DivisionListPostListReader is a Reader for the DivisionListPostList structure.

func (*DivisionListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DivisionListPutListOK

type DivisionListPutListOK struct {
	Payload *models.ListResponseDivision
}

DivisionListPutListOK handles this case with default header values.

successful operation

func NewDivisionListPutListOK

func NewDivisionListPutListOK() *DivisionListPutListOK

NewDivisionListPutListOK creates a DivisionListPutListOK with default headers values

func (*DivisionListPutListOK) Error

func (o *DivisionListPutListOK) Error() string

func (*DivisionListPutListOK) GetPayload

type DivisionListPutListParams

type DivisionListPutListParams struct {

	/*Body
	  JSON representing updates to object. Should have ID and version set.

	*/
	Body []*models.Division

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

DivisionListPutListParams contains all the parameters to send to the API endpoint for the division list put list operation typically these are written to a http.Request

func NewDivisionListPutListParams

func NewDivisionListPutListParams() *DivisionListPutListParams

NewDivisionListPutListParams creates a new DivisionListPutListParams object with the default values initialized.

func NewDivisionListPutListParamsWithContext

func NewDivisionListPutListParamsWithContext(ctx context.Context) *DivisionListPutListParams

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

func NewDivisionListPutListParamsWithHTTPClient

func NewDivisionListPutListParamsWithHTTPClient(client *http.Client) *DivisionListPutListParams

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

func NewDivisionListPutListParamsWithTimeout

func NewDivisionListPutListParamsWithTimeout(timeout time.Duration) *DivisionListPutListParams

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

func (*DivisionListPutListParams) SetBody

func (o *DivisionListPutListParams) SetBody(body []*models.Division)

SetBody adds the body to the division list put list params

func (*DivisionListPutListParams) SetContext

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

SetContext adds the context to the division list put list params

func (*DivisionListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the division list put list params

func (*DivisionListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the division list put list params

func (*DivisionListPutListParams) WithBody

WithBody adds the body to the division list put list params

func (*DivisionListPutListParams) WithContext

WithContext adds the context to the division list put list params

func (*DivisionListPutListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the division list put list params

func (*DivisionListPutListParams) WithTimeout

WithTimeout adds the timeout to the division list put list params

func (*DivisionListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DivisionListPutListReader

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

DivisionListPutListReader is a Reader for the DivisionListPutList structure.

func (*DivisionListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DivisionPostCreated

type DivisionPostCreated struct {
	Payload *models.ResponseWrapperDivision
}

DivisionPostCreated handles this case with default header values.

successfully created

func NewDivisionPostCreated

func NewDivisionPostCreated() *DivisionPostCreated

NewDivisionPostCreated creates a DivisionPostCreated with default headers values

func (*DivisionPostCreated) Error

func (o *DivisionPostCreated) Error() string

func (*DivisionPostCreated) GetPayload

type DivisionPostParams

type DivisionPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.Division

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

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

func NewDivisionPostParams

func NewDivisionPostParams() *DivisionPostParams

NewDivisionPostParams creates a new DivisionPostParams object with the default values initialized.

func NewDivisionPostParamsWithContext

func NewDivisionPostParamsWithContext(ctx context.Context) *DivisionPostParams

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

func NewDivisionPostParamsWithHTTPClient

func NewDivisionPostParamsWithHTTPClient(client *http.Client) *DivisionPostParams

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

func NewDivisionPostParamsWithTimeout

func NewDivisionPostParamsWithTimeout(timeout time.Duration) *DivisionPostParams

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

func (*DivisionPostParams) SetBody

func (o *DivisionPostParams) SetBody(body *models.Division)

SetBody adds the body to the division post params

func (*DivisionPostParams) SetContext

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

SetContext adds the context to the division post params

func (*DivisionPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the division post params

func (*DivisionPostParams) SetTimeout

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

SetTimeout adds the timeout to the division post params

func (*DivisionPostParams) WithBody

WithBody adds the body to the division post params

func (*DivisionPostParams) WithContext

WithContext adds the context to the division post params

func (*DivisionPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the division post params

func (*DivisionPostParams) WithTimeout

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

WithTimeout adds the timeout to the division post params

func (*DivisionPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DivisionPostReader

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

DivisionPostReader is a Reader for the DivisionPost structure.

func (*DivisionPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DivisionPutOK

type DivisionPutOK struct {
	Payload *models.ResponseWrapperDivision
}

DivisionPutOK handles this case with default header values.

successful operation

func NewDivisionPutOK

func NewDivisionPutOK() *DivisionPutOK

NewDivisionPutOK creates a DivisionPutOK with default headers values

func (*DivisionPutOK) Error

func (o *DivisionPutOK) Error() string

func (*DivisionPutOK) GetPayload

func (o *DivisionPutOK) GetPayload() *models.ResponseWrapperDivision

type DivisionPutParams

type DivisionPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Division
	/*ID
	  Element ID

	*/
	ID int32

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

DivisionPutParams contains all the parameters to send to the API endpoint for the division put operation typically these are written to a http.Request

func NewDivisionPutParams

func NewDivisionPutParams() *DivisionPutParams

NewDivisionPutParams creates a new DivisionPutParams object with the default values initialized.

func NewDivisionPutParamsWithContext

func NewDivisionPutParamsWithContext(ctx context.Context) *DivisionPutParams

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

func NewDivisionPutParamsWithHTTPClient

func NewDivisionPutParamsWithHTTPClient(client *http.Client) *DivisionPutParams

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

func NewDivisionPutParamsWithTimeout

func NewDivisionPutParamsWithTimeout(timeout time.Duration) *DivisionPutParams

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

func (*DivisionPutParams) SetBody

func (o *DivisionPutParams) SetBody(body *models.Division)

SetBody adds the body to the division put params

func (*DivisionPutParams) SetContext

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

SetContext adds the context to the division put params

func (*DivisionPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the division put params

func (*DivisionPutParams) SetID

func (o *DivisionPutParams) SetID(id int32)

SetID adds the id to the division put params

func (*DivisionPutParams) SetTimeout

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

SetTimeout adds the timeout to the division put params

func (*DivisionPutParams) WithBody

func (o *DivisionPutParams) WithBody(body *models.Division) *DivisionPutParams

WithBody adds the body to the division put params

func (*DivisionPutParams) WithContext

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

WithContext adds the context to the division put params

func (*DivisionPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the division put params

func (*DivisionPutParams) WithID

func (o *DivisionPutParams) WithID(id int32) *DivisionPutParams

WithID adds the id to the division put params

func (*DivisionPutParams) WithTimeout

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

WithTimeout adds the timeout to the division put params

func (*DivisionPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DivisionPutReader

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

DivisionPutReader is a Reader for the DivisionPut structure.

func (*DivisionPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DivisionSearchOK

type DivisionSearchOK struct {
	Payload *models.ListResponseDivision
}

DivisionSearchOK handles this case with default header values.

successful operation

func NewDivisionSearchOK

func NewDivisionSearchOK() *DivisionSearchOK

NewDivisionSearchOK creates a DivisionSearchOK with default headers values

func (*DivisionSearchOK) Error

func (o *DivisionSearchOK) Error() string

func (*DivisionSearchOK) GetPayload

func (o *DivisionSearchOK) GetPayload() *models.ListResponseDivision

type DivisionSearchParams

type DivisionSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

DivisionSearchParams contains all the parameters to send to the API endpoint for the division search operation typically these are written to a http.Request

func NewDivisionSearchParams

func NewDivisionSearchParams() *DivisionSearchParams

NewDivisionSearchParams creates a new DivisionSearchParams object with the default values initialized.

func NewDivisionSearchParamsWithContext

func NewDivisionSearchParamsWithContext(ctx context.Context) *DivisionSearchParams

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

func NewDivisionSearchParamsWithHTTPClient

func NewDivisionSearchParamsWithHTTPClient(client *http.Client) *DivisionSearchParams

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

func NewDivisionSearchParamsWithTimeout

func NewDivisionSearchParamsWithTimeout(timeout time.Duration) *DivisionSearchParams

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

func (*DivisionSearchParams) SetContext

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

SetContext adds the context to the division search params

func (*DivisionSearchParams) SetCount

func (o *DivisionSearchParams) SetCount(count *int64)

SetCount adds the count to the division search params

func (*DivisionSearchParams) SetFields

func (o *DivisionSearchParams) SetFields(fields *string)

SetFields adds the fields to the division search params

func (*DivisionSearchParams) SetFrom

func (o *DivisionSearchParams) SetFrom(from *int64)

SetFrom adds the from to the division search params

func (*DivisionSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the division search params

func (*DivisionSearchParams) SetSorting

func (o *DivisionSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the division search params

func (*DivisionSearchParams) SetTimeout

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

SetTimeout adds the timeout to the division search params

func (*DivisionSearchParams) WithContext

WithContext adds the context to the division search params

func (*DivisionSearchParams) WithCount

func (o *DivisionSearchParams) WithCount(count *int64) *DivisionSearchParams

WithCount adds the count to the division search params

func (*DivisionSearchParams) WithFields

func (o *DivisionSearchParams) WithFields(fields *string) *DivisionSearchParams

WithFields adds the fields to the division search params

func (*DivisionSearchParams) WithFrom

func (o *DivisionSearchParams) WithFrom(from *int64) *DivisionSearchParams

WithFrom adds the from to the division search params

func (*DivisionSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the division search params

func (*DivisionSearchParams) WithSorting

func (o *DivisionSearchParams) WithSorting(sorting *string) *DivisionSearchParams

WithSorting adds the sorting to the division search params

func (*DivisionSearchParams) WithTimeout

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

WithTimeout adds the timeout to the division search params

func (*DivisionSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DivisionSearchReader

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

DivisionSearchReader is a Reader for the DivisionSearch structure.

func (*DivisionSearchReader) ReadResponse

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