organization_workers

package
v1.0.86 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT 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 {
	// contains filtered or unexported fields
}

Client for organization workers API

func New

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

New creates a new organization workers API client.

func (*Client) GetWorkers

func (a *Client) GetWorkers(params *GetWorkersParams, authInfo runtime.ClientAuthInfoWriter) (*GetWorkersOK, error)

GetWorkers Get the workers that the authenticated user has access to.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetWorkersDefault

type GetWorkersDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetWorkersDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetWorkersDefault

func NewGetWorkersDefault(code int) *GetWorkersDefault

NewGetWorkersDefault creates a GetWorkersDefault with default headers values

func (*GetWorkersDefault) Code

func (o *GetWorkersDefault) Code() int

Code gets the status code for the get workers default response

func (*GetWorkersDefault) Error

func (o *GetWorkersDefault) Error() string

func (*GetWorkersDefault) GetPayload

func (o *GetWorkersDefault) GetPayload() *models.ErrorPayload

type GetWorkersNotFound

type GetWorkersNotFound struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetWorkersNotFound handles this case with default header values.

The response sent when any of the entities present in the path is not found.

func NewGetWorkersNotFound

func NewGetWorkersNotFound() *GetWorkersNotFound

NewGetWorkersNotFound creates a GetWorkersNotFound with default headers values

func (*GetWorkersNotFound) Error

func (o *GetWorkersNotFound) Error() string

func (*GetWorkersNotFound) GetPayload

func (o *GetWorkersNotFound) GetPayload() *models.ErrorPayload

type GetWorkersOK

type GetWorkersOK struct {
	Payload *GetWorkersOKBody
}

GetWorkersOK handles this case with default header values.

List of the workers which authenticated user has access to.

func NewGetWorkersOK

func NewGetWorkersOK() *GetWorkersOK

NewGetWorkersOK creates a GetWorkersOK with default headers values

func (*GetWorkersOK) Error

func (o *GetWorkersOK) Error() string

func (*GetWorkersOK) GetPayload

func (o *GetWorkersOK) GetPayload() *GetWorkersOKBody

type GetWorkersOKBody

type GetWorkersOKBody struct {

	// data
	// Required: true
	Data []*models.Worker `json:"data"`

	// pagination
	// Required: true
	Pagination *models.Pagination `json:"pagination"`
}

GetWorkersOKBody get workers o k body swagger:model GetWorkersOKBody

func (*GetWorkersOKBody) MarshalBinary

func (o *GetWorkersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWorkersOKBody) UnmarshalBinary

func (o *GetWorkersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWorkersOKBody) Validate

func (o *GetWorkersOKBody) Validate(formats strfmt.Registry) error

Validate validates this get workers o k body

type GetWorkersParams

type GetWorkersParams struct {

	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string
	/*PageIndex
	  The page number to request. The first page is 1.

	*/
	PageIndex *uint32
	/*PageSize
	  The number of items at most which the response can have.

	*/
	PageSize *uint32

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

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

func NewGetWorkersParams

func NewGetWorkersParams() *GetWorkersParams

NewGetWorkersParams creates a new GetWorkersParams object with the default values initialized.

func NewGetWorkersParamsWithContext

func NewGetWorkersParamsWithContext(ctx context.Context) *GetWorkersParams

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

func NewGetWorkersParamsWithHTTPClient

func NewGetWorkersParamsWithHTTPClient(client *http.Client) *GetWorkersParams

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

func NewGetWorkersParamsWithTimeout

func NewGetWorkersParamsWithTimeout(timeout time.Duration) *GetWorkersParams

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

func (*GetWorkersParams) SetContext

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

SetContext adds the context to the get workers params

func (*GetWorkersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workers params

func (*GetWorkersParams) SetOrganizationCanonical

func (o *GetWorkersParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get workers params

func (*GetWorkersParams) SetPageIndex

func (o *GetWorkersParams) SetPageIndex(pageIndex *uint32)

SetPageIndex adds the pageIndex to the get workers params

func (*GetWorkersParams) SetPageSize

func (o *GetWorkersParams) SetPageSize(pageSize *uint32)

SetPageSize adds the pageSize to the get workers params

func (*GetWorkersParams) SetTimeout

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

SetTimeout adds the timeout to the get workers params

func (*GetWorkersParams) WithContext

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

WithContext adds the context to the get workers params

func (*GetWorkersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get workers params

func (*GetWorkersParams) WithOrganizationCanonical

func (o *GetWorkersParams) WithOrganizationCanonical(organizationCanonical string) *GetWorkersParams

WithOrganizationCanonical adds the organizationCanonical to the get workers params

func (*GetWorkersParams) WithPageIndex

func (o *GetWorkersParams) WithPageIndex(pageIndex *uint32) *GetWorkersParams

WithPageIndex adds the pageIndex to the get workers params

func (*GetWorkersParams) WithPageSize

func (o *GetWorkersParams) WithPageSize(pageSize *uint32) *GetWorkersParams

WithPageSize adds the pageSize to the get workers params

func (*GetWorkersParams) WithTimeout

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

WithTimeout adds the timeout to the get workers params

func (*GetWorkersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetWorkersReader

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

GetWorkersReader is a Reader for the GetWorkers structure.

func (*GetWorkersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkersUnprocessableEntity

type GetWorkersUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetWorkersUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetWorkersUnprocessableEntity

func NewGetWorkersUnprocessableEntity() *GetWorkersUnprocessableEntity

NewGetWorkersUnprocessableEntity creates a GetWorkersUnprocessableEntity with default headers values

func (*GetWorkersUnprocessableEntity) Error

func (*GetWorkersUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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