project

package
v0.0.0-...-9e5aecc Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-2.0 Imports: 12 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 project API

func (*Client) DeleteAPIProjectsIDRatesRateID

DeleteAPIProjectsIDRatesRateID deletes one rate for an project

func (*Client) GetAPIProjects

func (a *Client) GetAPIProjects(params *GetAPIProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsOK, error)

GetAPIProjects returns a collection of projects

func (*Client) GetAPIProjectsID

func (a *Client) GetAPIProjectsID(params *GetAPIProjectsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsIDOK, error)

GetAPIProjectsID returns one project

func (*Client) GetAPIProjectsIDRates

func (a *Client) GetAPIProjectsIDRates(params *GetAPIProjectsIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsIDRatesOK, error)

GetAPIProjectsIDRates returns a collection of all rates for one project

func (*Client) PatchAPIProjectsID

func (a *Client) PatchAPIProjectsID(params *PatchAPIProjectsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIProjectsIDOK, error)

PatchAPIProjectsID updates an existing project

Update an existing project, you can pass all or just a subset of all attributes

func (*Client) PatchAPIProjectsIDMeta

func (a *Client) PatchAPIProjectsIDMeta(params *PatchAPIProjectsIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIProjectsIDMetaOK, error)

PatchAPIProjectsIDMeta sets the value of a meta field for an existing project

func (*Client) PostAPIProjects

func (a *Client) PostAPIProjects(params *PostAPIProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIProjectsOK, error)

PostAPIProjects creates a new project

Creates a new project and returns it afterwards

func (*Client) PostAPIProjectsIDRates

func (a *Client) PostAPIProjectsIDRates(params *PostAPIProjectsIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIProjectsIDRatesOK, error)

PostAPIProjectsIDRates adds a new rate to an project

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAPIProjectsIDRatesRateID(params *DeleteAPIProjectsIDRatesRateIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIProjectsIDRatesRateIDNoContent, error)

	GetAPIProjects(params *GetAPIProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsOK, error)

	GetAPIProjectsID(params *GetAPIProjectsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsIDOK, error)

	GetAPIProjectsIDRates(params *GetAPIProjectsIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIProjectsIDRatesOK, error)

	PatchAPIProjectsID(params *PatchAPIProjectsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIProjectsIDOK, error)

	PatchAPIProjectsIDMeta(params *PatchAPIProjectsIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIProjectsIDMetaOK, error)

	PostAPIProjects(params *PostAPIProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIProjectsOK, error)

	PostAPIProjectsIDRates(params *PostAPIProjectsIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIProjectsIDRatesOK, 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 project API client.

type DeleteAPIProjectsIDRatesRateIDNoContent

type DeleteAPIProjectsIDRatesRateIDNoContent struct {
}

DeleteAPIProjectsIDRatesRateIDNoContent describes a response with status code 204, with default header values.

Returns no content: 204 on successful delete

func NewDeleteAPIProjectsIDRatesRateIDNoContent

func NewDeleteAPIProjectsIDRatesRateIDNoContent() *DeleteAPIProjectsIDRatesRateIDNoContent

NewDeleteAPIProjectsIDRatesRateIDNoContent creates a DeleteAPIProjectsIDRatesRateIDNoContent with default headers values

func (*DeleteAPIProjectsIDRatesRateIDNoContent) Error

func (*DeleteAPIProjectsIDRatesRateIDNoContent) IsClientError

func (o *DeleteAPIProjectsIDRatesRateIDNoContent) IsClientError() bool

IsClientError returns true when this delete Api projects Id rates rate Id no content response has a 4xx status code

func (*DeleteAPIProjectsIDRatesRateIDNoContent) IsCode

IsCode returns true when this delete Api projects Id rates rate Id no content response a status code equal to that given

func (*DeleteAPIProjectsIDRatesRateIDNoContent) IsRedirect

IsRedirect returns true when this delete Api projects Id rates rate Id no content response has a 3xx status code

func (*DeleteAPIProjectsIDRatesRateIDNoContent) IsServerError

func (o *DeleteAPIProjectsIDRatesRateIDNoContent) IsServerError() bool

IsServerError returns true when this delete Api projects Id rates rate Id no content response has a 5xx status code

func (*DeleteAPIProjectsIDRatesRateIDNoContent) IsSuccess

IsSuccess returns true when this delete Api projects Id rates rate Id no content response has a 2xx status code

func (*DeleteAPIProjectsIDRatesRateIDNoContent) String

type DeleteAPIProjectsIDRatesRateIDParams

type DeleteAPIProjectsIDRatesRateIDParams struct {

	/* ID.

	   The project whose rate will be removed
	*/
	ID int64

	/* RateID.

	   The rate to remove
	*/
	RateID int64

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

DeleteAPIProjectsIDRatesRateIDParams contains all the parameters to send to the API endpoint

for the delete API projects ID rates rate ID operation.

Typically these are written to a http.Request.

func NewDeleteAPIProjectsIDRatesRateIDParams

func NewDeleteAPIProjectsIDRatesRateIDParams() *DeleteAPIProjectsIDRatesRateIDParams

NewDeleteAPIProjectsIDRatesRateIDParams creates a new DeleteAPIProjectsIDRatesRateIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteAPIProjectsIDRatesRateIDParamsWithContext

func NewDeleteAPIProjectsIDRatesRateIDParamsWithContext(ctx context.Context) *DeleteAPIProjectsIDRatesRateIDParams

NewDeleteAPIProjectsIDRatesRateIDParamsWithContext creates a new DeleteAPIProjectsIDRatesRateIDParams object with the ability to set a context for a request.

func NewDeleteAPIProjectsIDRatesRateIDParamsWithHTTPClient

func NewDeleteAPIProjectsIDRatesRateIDParamsWithHTTPClient(client *http.Client) *DeleteAPIProjectsIDRatesRateIDParams

NewDeleteAPIProjectsIDRatesRateIDParamsWithHTTPClient creates a new DeleteAPIProjectsIDRatesRateIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPIProjectsIDRatesRateIDParamsWithTimeout

func NewDeleteAPIProjectsIDRatesRateIDParamsWithTimeout(timeout time.Duration) *DeleteAPIProjectsIDRatesRateIDParams

NewDeleteAPIProjectsIDRatesRateIDParamsWithTimeout creates a new DeleteAPIProjectsIDRatesRateIDParams object with the ability to set a timeout on a request.

func (*DeleteAPIProjectsIDRatesRateIDParams) SetContext

SetContext adds the context to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) SetDefaults

func (o *DeleteAPIProjectsIDRatesRateIDParams) SetDefaults()

SetDefaults hydrates default values in the delete API projects ID rates rate ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPIProjectsIDRatesRateIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) SetID

SetID adds the id to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) SetRateID

func (o *DeleteAPIProjectsIDRatesRateIDParams) SetRateID(rateID int64)

SetRateID adds the rateId to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WithContext

WithContext adds the context to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WithDefaults

WithDefaults hydrates default values in the delete API projects ID rates rate ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPIProjectsIDRatesRateIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WithID

WithID adds the id to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WithRateID

WithRateID adds the rateID to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WithTimeout

WithTimeout adds the timeout to the delete API projects ID rates rate ID params

func (*DeleteAPIProjectsIDRatesRateIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAPIProjectsIDRatesRateIDReader

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

DeleteAPIProjectsIDRatesRateIDReader is a Reader for the DeleteAPIProjectsIDRatesRateID structure.

func (*DeleteAPIProjectsIDRatesRateIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIProjectsIDOK

type GetAPIProjectsIDOK struct {
	Payload *models.ProjectEntity
}

GetAPIProjectsIDOK describes a response with status code 200, with default header values.

Returns one project entity

func NewGetAPIProjectsIDOK

func NewGetAPIProjectsIDOK() *GetAPIProjectsIDOK

NewGetAPIProjectsIDOK creates a GetAPIProjectsIDOK with default headers values

func (*GetAPIProjectsIDOK) Error

func (o *GetAPIProjectsIDOK) Error() string

func (*GetAPIProjectsIDOK) GetPayload

func (o *GetAPIProjectsIDOK) GetPayload() *models.ProjectEntity

func (*GetAPIProjectsIDOK) IsClientError

func (o *GetAPIProjectsIDOK) IsClientError() bool

IsClientError returns true when this get Api projects Id o k response has a 4xx status code

func (*GetAPIProjectsIDOK) IsCode

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

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

func (*GetAPIProjectsIDOK) IsRedirect

func (o *GetAPIProjectsIDOK) IsRedirect() bool

IsRedirect returns true when this get Api projects Id o k response has a 3xx status code

func (*GetAPIProjectsIDOK) IsServerError

func (o *GetAPIProjectsIDOK) IsServerError() bool

IsServerError returns true when this get Api projects Id o k response has a 5xx status code

func (*GetAPIProjectsIDOK) IsSuccess

func (o *GetAPIProjectsIDOK) IsSuccess() bool

IsSuccess returns true when this get Api projects Id o k response has a 2xx status code

func (*GetAPIProjectsIDOK) String

func (o *GetAPIProjectsIDOK) String() string

type GetAPIProjectsIDParams

type GetAPIProjectsIDParams struct {

	// ID.
	ID string

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

GetAPIProjectsIDParams contains all the parameters to send to the API endpoint

for the get API projects ID operation.

Typically these are written to a http.Request.

func NewGetAPIProjectsIDParams

func NewGetAPIProjectsIDParams() *GetAPIProjectsIDParams

NewGetAPIProjectsIDParams creates a new GetAPIProjectsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIProjectsIDParamsWithContext

func NewGetAPIProjectsIDParamsWithContext(ctx context.Context) *GetAPIProjectsIDParams

NewGetAPIProjectsIDParamsWithContext creates a new GetAPIProjectsIDParams object with the ability to set a context for a request.

func NewGetAPIProjectsIDParamsWithHTTPClient

func NewGetAPIProjectsIDParamsWithHTTPClient(client *http.Client) *GetAPIProjectsIDParams

NewGetAPIProjectsIDParamsWithHTTPClient creates a new GetAPIProjectsIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIProjectsIDParamsWithTimeout

func NewGetAPIProjectsIDParamsWithTimeout(timeout time.Duration) *GetAPIProjectsIDParams

NewGetAPIProjectsIDParamsWithTimeout creates a new GetAPIProjectsIDParams object with the ability to set a timeout on a request.

func (*GetAPIProjectsIDParams) SetContext

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

SetContext adds the context to the get API projects ID params

func (*GetAPIProjectsIDParams) SetDefaults

func (o *GetAPIProjectsIDParams) SetDefaults()

SetDefaults hydrates default values in the get API projects ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API projects ID params

func (*GetAPIProjectsIDParams) SetID

func (o *GetAPIProjectsIDParams) SetID(id string)

SetID adds the id to the get API projects ID params

func (*GetAPIProjectsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get API projects ID params

func (*GetAPIProjectsIDParams) WithContext

WithContext adds the context to the get API projects ID params

func (*GetAPIProjectsIDParams) WithDefaults

WithDefaults hydrates default values in the get API projects ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API projects ID params

func (*GetAPIProjectsIDParams) WithID

WithID adds the id to the get API projects ID params

func (*GetAPIProjectsIDParams) WithTimeout

WithTimeout adds the timeout to the get API projects ID params

func (*GetAPIProjectsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIProjectsIDRatesOK

type GetAPIProjectsIDRatesOK struct {
	Payload []*models.ProjectRate
}

GetAPIProjectsIDRatesOK describes a response with status code 200, with default header values.

Returns a collection of project rate entities

func NewGetAPIProjectsIDRatesOK

func NewGetAPIProjectsIDRatesOK() *GetAPIProjectsIDRatesOK

NewGetAPIProjectsIDRatesOK creates a GetAPIProjectsIDRatesOK with default headers values

func (*GetAPIProjectsIDRatesOK) Error

func (o *GetAPIProjectsIDRatesOK) Error() string

func (*GetAPIProjectsIDRatesOK) GetPayload

func (o *GetAPIProjectsIDRatesOK) GetPayload() []*models.ProjectRate

func (*GetAPIProjectsIDRatesOK) IsClientError

func (o *GetAPIProjectsIDRatesOK) IsClientError() bool

IsClientError returns true when this get Api projects Id rates o k response has a 4xx status code

func (*GetAPIProjectsIDRatesOK) IsCode

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

IsCode returns true when this get Api projects Id rates o k response a status code equal to that given

func (*GetAPIProjectsIDRatesOK) IsRedirect

func (o *GetAPIProjectsIDRatesOK) IsRedirect() bool

IsRedirect returns true when this get Api projects Id rates o k response has a 3xx status code

func (*GetAPIProjectsIDRatesOK) IsServerError

func (o *GetAPIProjectsIDRatesOK) IsServerError() bool

IsServerError returns true when this get Api projects Id rates o k response has a 5xx status code

func (*GetAPIProjectsIDRatesOK) IsSuccess

func (o *GetAPIProjectsIDRatesOK) IsSuccess() bool

IsSuccess returns true when this get Api projects Id rates o k response has a 2xx status code

func (*GetAPIProjectsIDRatesOK) String

func (o *GetAPIProjectsIDRatesOK) String() string

type GetAPIProjectsIDRatesParams

type GetAPIProjectsIDRatesParams struct {

	/* ID.

	   The project whose rates will be returned
	*/
	ID int64

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

GetAPIProjectsIDRatesParams contains all the parameters to send to the API endpoint

for the get API projects ID rates operation.

Typically these are written to a http.Request.

func NewGetAPIProjectsIDRatesParams

func NewGetAPIProjectsIDRatesParams() *GetAPIProjectsIDRatesParams

NewGetAPIProjectsIDRatesParams creates a new GetAPIProjectsIDRatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIProjectsIDRatesParamsWithContext

func NewGetAPIProjectsIDRatesParamsWithContext(ctx context.Context) *GetAPIProjectsIDRatesParams

NewGetAPIProjectsIDRatesParamsWithContext creates a new GetAPIProjectsIDRatesParams object with the ability to set a context for a request.

func NewGetAPIProjectsIDRatesParamsWithHTTPClient

func NewGetAPIProjectsIDRatesParamsWithHTTPClient(client *http.Client) *GetAPIProjectsIDRatesParams

NewGetAPIProjectsIDRatesParamsWithHTTPClient creates a new GetAPIProjectsIDRatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIProjectsIDRatesParamsWithTimeout

func NewGetAPIProjectsIDRatesParamsWithTimeout(timeout time.Duration) *GetAPIProjectsIDRatesParams

NewGetAPIProjectsIDRatesParamsWithTimeout creates a new GetAPIProjectsIDRatesParams object with the ability to set a timeout on a request.

func (*GetAPIProjectsIDRatesParams) SetContext

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

SetContext adds the context to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) SetDefaults

func (o *GetAPIProjectsIDRatesParams) SetDefaults()

SetDefaults hydrates default values in the get API projects ID rates params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsIDRatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) SetID

func (o *GetAPIProjectsIDRatesParams) SetID(id int64)

SetID adds the id to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) SetTimeout

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

SetTimeout adds the timeout to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) WithContext

WithContext adds the context to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) WithDefaults

WithDefaults hydrates default values in the get API projects ID rates params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsIDRatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) WithID

WithID adds the id to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) WithTimeout

WithTimeout adds the timeout to the get API projects ID rates params

func (*GetAPIProjectsIDRatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIProjectsIDRatesReader

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

GetAPIProjectsIDRatesReader is a Reader for the GetAPIProjectsIDRates structure.

func (*GetAPIProjectsIDRatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIProjectsIDReader

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

GetAPIProjectsIDReader is a Reader for the GetAPIProjectsID structure.

func (*GetAPIProjectsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIProjectsOK

type GetAPIProjectsOK struct {
	Payload []*models.ProjectCollection
}

GetAPIProjectsOK describes a response with status code 200, with default header values.

Returns a collection of project entities

func NewGetAPIProjectsOK

func NewGetAPIProjectsOK() *GetAPIProjectsOK

NewGetAPIProjectsOK creates a GetAPIProjectsOK with default headers values

func (*GetAPIProjectsOK) Error

func (o *GetAPIProjectsOK) Error() string

func (*GetAPIProjectsOK) GetPayload

func (o *GetAPIProjectsOK) GetPayload() []*models.ProjectCollection

func (*GetAPIProjectsOK) IsClientError

func (o *GetAPIProjectsOK) IsClientError() bool

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

func (*GetAPIProjectsOK) IsCode

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

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

func (*GetAPIProjectsOK) IsRedirect

func (o *GetAPIProjectsOK) IsRedirect() bool

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

func (*GetAPIProjectsOK) IsServerError

func (o *GetAPIProjectsOK) IsServerError() bool

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

func (*GetAPIProjectsOK) IsSuccess

func (o *GetAPIProjectsOK) IsSuccess() bool

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

func (*GetAPIProjectsOK) String

func (o *GetAPIProjectsOK) String() string

type GetAPIProjectsParams

type GetAPIProjectsParams struct {

	/* Customer.

	   Customer ID to filter projects
	*/
	Customer string

	/* Customers.

	   Comma separated list of customer IDs to filter projects
	*/
	Customers string

	/* End.

	   Only projects that ended after this date will be included. Allowed format: HTML5 (default: now, if start is also empty)

	   Format: DateTime
	*/
	End string

	/* GlobalActivities.

	   If given, filters projects by their 'global activity' support. Allowed values: 1 (supports global activities) and 0 (without global activities) (default: all)
	*/
	GlobalActivities string

	/* IgnoreDates.

	   If set, start and end are completely ignored. Allowed values: 1 (default: off)
	*/
	IgnoreDates string

	/* Order.

	   The result order. Allowed values: ASC, DESC (default: ASC)
	*/
	Order string

	/* OrderBy.

	   The field by which results will be ordered. Allowed values: id, name, customer (default: name)
	*/
	OrderBy string

	/* Start.

	   Only projects that started before this date will be included. Allowed format: HTML5 (default: now, if end is also empty)

	   Format: DateTime
	*/
	Start string

	/* Term.

	   Free search term
	*/
	Term *string

	/* Visible.

	   Visibility status to filter projects. Allowed values: 1=visible, 2=hidden, 3=both (default: 1)
	*/
	Visible string

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

GetAPIProjectsParams contains all the parameters to send to the API endpoint

for the get API projects operation.

Typically these are written to a http.Request.

func NewGetAPIProjectsParams

func NewGetAPIProjectsParams() *GetAPIProjectsParams

NewGetAPIProjectsParams creates a new GetAPIProjectsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIProjectsParamsWithContext

func NewGetAPIProjectsParamsWithContext(ctx context.Context) *GetAPIProjectsParams

NewGetAPIProjectsParamsWithContext creates a new GetAPIProjectsParams object with the ability to set a context for a request.

func NewGetAPIProjectsParamsWithHTTPClient

func NewGetAPIProjectsParamsWithHTTPClient(client *http.Client) *GetAPIProjectsParams

NewGetAPIProjectsParamsWithHTTPClient creates a new GetAPIProjectsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIProjectsParamsWithTimeout

func NewGetAPIProjectsParamsWithTimeout(timeout time.Duration) *GetAPIProjectsParams

NewGetAPIProjectsParamsWithTimeout creates a new GetAPIProjectsParams object with the ability to set a timeout on a request.

func (*GetAPIProjectsParams) SetContext

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

SetContext adds the context to the get API projects params

func (*GetAPIProjectsParams) SetCustomer

func (o *GetAPIProjectsParams) SetCustomer(customer string)

SetCustomer adds the customer to the get API projects params

func (*GetAPIProjectsParams) SetCustomers

func (o *GetAPIProjectsParams) SetCustomers(customers string)

SetCustomers adds the customers to the get API projects params

func (*GetAPIProjectsParams) SetDefaults

func (o *GetAPIProjectsParams) SetDefaults()

SetDefaults hydrates default values in the get API projects params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsParams) SetEnd

func (o *GetAPIProjectsParams) SetEnd(end string)

SetEnd adds the end to the get API projects params

func (*GetAPIProjectsParams) SetGlobalActivities

func (o *GetAPIProjectsParams) SetGlobalActivities(globalActivities string)

SetGlobalActivities adds the globalActivities to the get API projects params

func (*GetAPIProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API projects params

func (*GetAPIProjectsParams) SetIgnoreDates

func (o *GetAPIProjectsParams) SetIgnoreDates(ignoreDates string)

SetIgnoreDates adds the ignoreDates to the get API projects params

func (*GetAPIProjectsParams) SetOrder

func (o *GetAPIProjectsParams) SetOrder(order string)

SetOrder adds the order to the get API projects params

func (*GetAPIProjectsParams) SetOrderBy

func (o *GetAPIProjectsParams) SetOrderBy(orderBy string)

SetOrderBy adds the orderBy to the get API projects params

func (*GetAPIProjectsParams) SetStart

func (o *GetAPIProjectsParams) SetStart(start string)

SetStart adds the start to the get API projects params

func (*GetAPIProjectsParams) SetTerm

func (o *GetAPIProjectsParams) SetTerm(term *string)

SetTerm adds the term to the get API projects params

func (*GetAPIProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the get API projects params

func (*GetAPIProjectsParams) SetVisible

func (o *GetAPIProjectsParams) SetVisible(visible string)

SetVisible adds the visible to the get API projects params

func (*GetAPIProjectsParams) WithContext

WithContext adds the context to the get API projects params

func (*GetAPIProjectsParams) WithCustomer

func (o *GetAPIProjectsParams) WithCustomer(customer string) *GetAPIProjectsParams

WithCustomer adds the customer to the get API projects params

func (*GetAPIProjectsParams) WithCustomers

func (o *GetAPIProjectsParams) WithCustomers(customers string) *GetAPIProjectsParams

WithCustomers adds the customers to the get API projects params

func (*GetAPIProjectsParams) WithDefaults

func (o *GetAPIProjectsParams) WithDefaults() *GetAPIProjectsParams

WithDefaults hydrates default values in the get API projects params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIProjectsParams) WithEnd

WithEnd adds the end to the get API projects params

func (*GetAPIProjectsParams) WithGlobalActivities

func (o *GetAPIProjectsParams) WithGlobalActivities(globalActivities string) *GetAPIProjectsParams

WithGlobalActivities adds the globalActivities to the get API projects params

func (*GetAPIProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API projects params

func (*GetAPIProjectsParams) WithIgnoreDates

func (o *GetAPIProjectsParams) WithIgnoreDates(ignoreDates string) *GetAPIProjectsParams

WithIgnoreDates adds the ignoreDates to the get API projects params

func (*GetAPIProjectsParams) WithOrder

func (o *GetAPIProjectsParams) WithOrder(order string) *GetAPIProjectsParams

WithOrder adds the order to the get API projects params

func (*GetAPIProjectsParams) WithOrderBy

func (o *GetAPIProjectsParams) WithOrderBy(orderBy string) *GetAPIProjectsParams

WithOrderBy adds the orderBy to the get API projects params

func (*GetAPIProjectsParams) WithStart

func (o *GetAPIProjectsParams) WithStart(start string) *GetAPIProjectsParams

WithStart adds the start to the get API projects params

func (*GetAPIProjectsParams) WithTerm

func (o *GetAPIProjectsParams) WithTerm(term *string) *GetAPIProjectsParams

WithTerm adds the term to the get API projects params

func (*GetAPIProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the get API projects params

func (*GetAPIProjectsParams) WithVisible

func (o *GetAPIProjectsParams) WithVisible(visible string) *GetAPIProjectsParams

WithVisible adds the visible to the get API projects params

func (*GetAPIProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPIProjectsReader

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

GetAPIProjectsReader is a Reader for the GetAPIProjects structure.

func (*GetAPIProjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPIProjectsIDMetaBody

type PatchAPIProjectsIDMetaBody struct {

	// The meta-field name
	// Required: true
	Name *string `json:"name"`

	// The meta-field value
	// Required: true
	Value *string `json:"value"`
}

PatchAPIProjectsIDMetaBody patch API projects ID meta body swagger:model PatchAPIProjectsIDMetaBody

func (*PatchAPIProjectsIDMetaBody) ContextValidate

func (o *PatchAPIProjectsIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch API projects ID meta body based on context it is used

func (*PatchAPIProjectsIDMetaBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PatchAPIProjectsIDMetaBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PatchAPIProjectsIDMetaBody) Validate

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

Validate validates this patch API projects ID meta body

type PatchAPIProjectsIDMetaOK

type PatchAPIProjectsIDMetaOK struct {
	Payload *models.ProjectEntity
}

PatchAPIProjectsIDMetaOK describes a response with status code 200, with default header values.

Sets the value of an existing/configured meta-field. You cannot create unknown meta-fields, if the given name is not a configured meta-field, this will return an exception.

func NewPatchAPIProjectsIDMetaOK

func NewPatchAPIProjectsIDMetaOK() *PatchAPIProjectsIDMetaOK

NewPatchAPIProjectsIDMetaOK creates a PatchAPIProjectsIDMetaOK with default headers values

func (*PatchAPIProjectsIDMetaOK) Error

func (o *PatchAPIProjectsIDMetaOK) Error() string

func (*PatchAPIProjectsIDMetaOK) GetPayload

func (*PatchAPIProjectsIDMetaOK) IsClientError

func (o *PatchAPIProjectsIDMetaOK) IsClientError() bool

IsClientError returns true when this patch Api projects Id meta o k response has a 4xx status code

func (*PatchAPIProjectsIDMetaOK) IsCode

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

IsCode returns true when this patch Api projects Id meta o k response a status code equal to that given

func (*PatchAPIProjectsIDMetaOK) IsRedirect

func (o *PatchAPIProjectsIDMetaOK) IsRedirect() bool

IsRedirect returns true when this patch Api projects Id meta o k response has a 3xx status code

func (*PatchAPIProjectsIDMetaOK) IsServerError

func (o *PatchAPIProjectsIDMetaOK) IsServerError() bool

IsServerError returns true when this patch Api projects Id meta o k response has a 5xx status code

func (*PatchAPIProjectsIDMetaOK) IsSuccess

func (o *PatchAPIProjectsIDMetaOK) IsSuccess() bool

IsSuccess returns true when this patch Api projects Id meta o k response has a 2xx status code

func (*PatchAPIProjectsIDMetaOK) String

func (o *PatchAPIProjectsIDMetaOK) String() string

type PatchAPIProjectsIDMetaParams

type PatchAPIProjectsIDMetaParams struct {

	// Body.
	Body PatchAPIProjectsIDMetaBody

	/* ID.

	   Project record ID to set the meta-field value for
	*/
	ID int64

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

PatchAPIProjectsIDMetaParams contains all the parameters to send to the API endpoint

for the patch API projects ID meta operation.

Typically these are written to a http.Request.

func NewPatchAPIProjectsIDMetaParams

func NewPatchAPIProjectsIDMetaParams() *PatchAPIProjectsIDMetaParams

NewPatchAPIProjectsIDMetaParams creates a new PatchAPIProjectsIDMetaParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPIProjectsIDMetaParamsWithContext

func NewPatchAPIProjectsIDMetaParamsWithContext(ctx context.Context) *PatchAPIProjectsIDMetaParams

NewPatchAPIProjectsIDMetaParamsWithContext creates a new PatchAPIProjectsIDMetaParams object with the ability to set a context for a request.

func NewPatchAPIProjectsIDMetaParamsWithHTTPClient

func NewPatchAPIProjectsIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPIProjectsIDMetaParams

NewPatchAPIProjectsIDMetaParamsWithHTTPClient creates a new PatchAPIProjectsIDMetaParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPIProjectsIDMetaParamsWithTimeout

func NewPatchAPIProjectsIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPIProjectsIDMetaParams

NewPatchAPIProjectsIDMetaParamsWithTimeout creates a new PatchAPIProjectsIDMetaParams object with the ability to set a timeout on a request.

func (*PatchAPIProjectsIDMetaParams) SetBody

SetBody adds the body to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) SetContext

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

SetContext adds the context to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) SetDefaults

func (o *PatchAPIProjectsIDMetaParams) SetDefaults()

SetDefaults hydrates default values in the patch API projects ID meta params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPIProjectsIDMetaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) SetID

func (o *PatchAPIProjectsIDMetaParams) SetID(id int64)

SetID adds the id to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) SetTimeout

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

SetTimeout adds the timeout to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WithBody

WithBody adds the body to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WithContext

WithContext adds the context to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WithDefaults

WithDefaults hydrates default values in the patch API projects ID meta params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPIProjectsIDMetaParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WithID

WithID adds the id to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WithTimeout

WithTimeout adds the timeout to the patch API projects ID meta params

func (*PatchAPIProjectsIDMetaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPIProjectsIDMetaReader

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

PatchAPIProjectsIDMetaReader is a Reader for the PatchAPIProjectsIDMeta structure.

func (*PatchAPIProjectsIDMetaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPIProjectsIDOK

type PatchAPIProjectsIDOK struct {
	Payload *models.ProjectEntity
}

PatchAPIProjectsIDOK describes a response with status code 200, with default header values.

Returns the updated project

func NewPatchAPIProjectsIDOK

func NewPatchAPIProjectsIDOK() *PatchAPIProjectsIDOK

NewPatchAPIProjectsIDOK creates a PatchAPIProjectsIDOK with default headers values

func (*PatchAPIProjectsIDOK) Error

func (o *PatchAPIProjectsIDOK) Error() string

func (*PatchAPIProjectsIDOK) GetPayload

func (o *PatchAPIProjectsIDOK) GetPayload() *models.ProjectEntity

func (*PatchAPIProjectsIDOK) IsClientError

func (o *PatchAPIProjectsIDOK) IsClientError() bool

IsClientError returns true when this patch Api projects Id o k response has a 4xx status code

func (*PatchAPIProjectsIDOK) IsCode

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

IsCode returns true when this patch Api projects Id o k response a status code equal to that given

func (*PatchAPIProjectsIDOK) IsRedirect

func (o *PatchAPIProjectsIDOK) IsRedirect() bool

IsRedirect returns true when this patch Api projects Id o k response has a 3xx status code

func (*PatchAPIProjectsIDOK) IsServerError

func (o *PatchAPIProjectsIDOK) IsServerError() bool

IsServerError returns true when this patch Api projects Id o k response has a 5xx status code

func (*PatchAPIProjectsIDOK) IsSuccess

func (o *PatchAPIProjectsIDOK) IsSuccess() bool

IsSuccess returns true when this patch Api projects Id o k response has a 2xx status code

func (*PatchAPIProjectsIDOK) String

func (o *PatchAPIProjectsIDOK) String() string

type PatchAPIProjectsIDParams

type PatchAPIProjectsIDParams struct {

	// Body.
	Body *models.ProjectEditForm

	/* ID.

	   Project ID to update
	*/
	ID int64

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

PatchAPIProjectsIDParams contains all the parameters to send to the API endpoint

for the patch API projects ID operation.

Typically these are written to a http.Request.

func NewPatchAPIProjectsIDParams

func NewPatchAPIProjectsIDParams() *PatchAPIProjectsIDParams

NewPatchAPIProjectsIDParams creates a new PatchAPIProjectsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPIProjectsIDParamsWithContext

func NewPatchAPIProjectsIDParamsWithContext(ctx context.Context) *PatchAPIProjectsIDParams

NewPatchAPIProjectsIDParamsWithContext creates a new PatchAPIProjectsIDParams object with the ability to set a context for a request.

func NewPatchAPIProjectsIDParamsWithHTTPClient

func NewPatchAPIProjectsIDParamsWithHTTPClient(client *http.Client) *PatchAPIProjectsIDParams

NewPatchAPIProjectsIDParamsWithHTTPClient creates a new PatchAPIProjectsIDParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPIProjectsIDParamsWithTimeout

func NewPatchAPIProjectsIDParamsWithTimeout(timeout time.Duration) *PatchAPIProjectsIDParams

NewPatchAPIProjectsIDParamsWithTimeout creates a new PatchAPIProjectsIDParams object with the ability to set a timeout on a request.

func (*PatchAPIProjectsIDParams) SetBody

SetBody adds the body to the patch API projects ID params

func (*PatchAPIProjectsIDParams) SetContext

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

SetContext adds the context to the patch API projects ID params

func (*PatchAPIProjectsIDParams) SetDefaults

func (o *PatchAPIProjectsIDParams) SetDefaults()

SetDefaults hydrates default values in the patch API projects ID params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPIProjectsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API projects ID params

func (*PatchAPIProjectsIDParams) SetID

func (o *PatchAPIProjectsIDParams) SetID(id int64)

SetID adds the id to the patch API projects ID params

func (*PatchAPIProjectsIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WithBody

WithBody adds the body to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WithContext

WithContext adds the context to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WithDefaults

WithDefaults hydrates default values in the patch API projects ID params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPIProjectsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WithID

WithID adds the id to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WithTimeout

WithTimeout adds the timeout to the patch API projects ID params

func (*PatchAPIProjectsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPIProjectsIDReader

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

PatchAPIProjectsIDReader is a Reader for the PatchAPIProjectsID structure.

func (*PatchAPIProjectsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPIProjectsIDRatesOK

type PostAPIProjectsIDRatesOK struct {
	Payload *models.ProjectRate
}

PostAPIProjectsIDRatesOK describes a response with status code 200, with default header values.

Returns the new created rate

func NewPostAPIProjectsIDRatesOK

func NewPostAPIProjectsIDRatesOK() *PostAPIProjectsIDRatesOK

NewPostAPIProjectsIDRatesOK creates a PostAPIProjectsIDRatesOK with default headers values

func (*PostAPIProjectsIDRatesOK) Error

func (o *PostAPIProjectsIDRatesOK) Error() string

func (*PostAPIProjectsIDRatesOK) GetPayload

func (o *PostAPIProjectsIDRatesOK) GetPayload() *models.ProjectRate

func (*PostAPIProjectsIDRatesOK) IsClientError

func (o *PostAPIProjectsIDRatesOK) IsClientError() bool

IsClientError returns true when this post Api projects Id rates o k response has a 4xx status code

func (*PostAPIProjectsIDRatesOK) IsCode

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

IsCode returns true when this post Api projects Id rates o k response a status code equal to that given

func (*PostAPIProjectsIDRatesOK) IsRedirect

func (o *PostAPIProjectsIDRatesOK) IsRedirect() bool

IsRedirect returns true when this post Api projects Id rates o k response has a 3xx status code

func (*PostAPIProjectsIDRatesOK) IsServerError

func (o *PostAPIProjectsIDRatesOK) IsServerError() bool

IsServerError returns true when this post Api projects Id rates o k response has a 5xx status code

func (*PostAPIProjectsIDRatesOK) IsSuccess

func (o *PostAPIProjectsIDRatesOK) IsSuccess() bool

IsSuccess returns true when this post Api projects Id rates o k response has a 2xx status code

func (*PostAPIProjectsIDRatesOK) String

func (o *PostAPIProjectsIDRatesOK) String() string

type PostAPIProjectsIDRatesParams

type PostAPIProjectsIDRatesParams struct {

	// Body.
	Body *models.ProjectRateForm

	/* ID.

	   The project to add the rate for
	*/
	ID int64

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

PostAPIProjectsIDRatesParams contains all the parameters to send to the API endpoint

for the post API projects ID rates operation.

Typically these are written to a http.Request.

func NewPostAPIProjectsIDRatesParams

func NewPostAPIProjectsIDRatesParams() *PostAPIProjectsIDRatesParams

NewPostAPIProjectsIDRatesParams creates a new PostAPIProjectsIDRatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPIProjectsIDRatesParamsWithContext

func NewPostAPIProjectsIDRatesParamsWithContext(ctx context.Context) *PostAPIProjectsIDRatesParams

NewPostAPIProjectsIDRatesParamsWithContext creates a new PostAPIProjectsIDRatesParams object with the ability to set a context for a request.

func NewPostAPIProjectsIDRatesParamsWithHTTPClient

func NewPostAPIProjectsIDRatesParamsWithHTTPClient(client *http.Client) *PostAPIProjectsIDRatesParams

NewPostAPIProjectsIDRatesParamsWithHTTPClient creates a new PostAPIProjectsIDRatesParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPIProjectsIDRatesParamsWithTimeout

func NewPostAPIProjectsIDRatesParamsWithTimeout(timeout time.Duration) *PostAPIProjectsIDRatesParams

NewPostAPIProjectsIDRatesParamsWithTimeout creates a new PostAPIProjectsIDRatesParams object with the ability to set a timeout on a request.

func (*PostAPIProjectsIDRatesParams) SetBody

SetBody adds the body to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) SetContext

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

SetContext adds the context to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) SetDefaults

func (o *PostAPIProjectsIDRatesParams) SetDefaults()

SetDefaults hydrates default values in the post API projects ID rates params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIProjectsIDRatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) SetID

func (o *PostAPIProjectsIDRatesParams) SetID(id int64)

SetID adds the id to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) SetTimeout

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

SetTimeout adds the timeout to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WithBody

WithBody adds the body to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WithContext

WithContext adds the context to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WithDefaults

WithDefaults hydrates default values in the post API projects ID rates params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIProjectsIDRatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WithID

WithID adds the id to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WithTimeout

WithTimeout adds the timeout to the post API projects ID rates params

func (*PostAPIProjectsIDRatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPIProjectsIDRatesReader

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

PostAPIProjectsIDRatesReader is a Reader for the PostAPIProjectsIDRates structure.

func (*PostAPIProjectsIDRatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPIProjectsOK

type PostAPIProjectsOK struct {
	Payload *models.ProjectEntity
}

PostAPIProjectsOK describes a response with status code 200, with default header values.

Returns the new created project

func NewPostAPIProjectsOK

func NewPostAPIProjectsOK() *PostAPIProjectsOK

NewPostAPIProjectsOK creates a PostAPIProjectsOK with default headers values

func (*PostAPIProjectsOK) Error

func (o *PostAPIProjectsOK) Error() string

func (*PostAPIProjectsOK) GetPayload

func (o *PostAPIProjectsOK) GetPayload() *models.ProjectEntity

func (*PostAPIProjectsOK) IsClientError

func (o *PostAPIProjectsOK) IsClientError() bool

IsClientError returns true when this post Api projects o k response has a 4xx status code

func (*PostAPIProjectsOK) IsCode

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

IsCode returns true when this post Api projects o k response a status code equal to that given

func (*PostAPIProjectsOK) IsRedirect

func (o *PostAPIProjectsOK) IsRedirect() bool

IsRedirect returns true when this post Api projects o k response has a 3xx status code

func (*PostAPIProjectsOK) IsServerError

func (o *PostAPIProjectsOK) IsServerError() bool

IsServerError returns true when this post Api projects o k response has a 5xx status code

func (*PostAPIProjectsOK) IsSuccess

func (o *PostAPIProjectsOK) IsSuccess() bool

IsSuccess returns true when this post Api projects o k response has a 2xx status code

func (*PostAPIProjectsOK) String

func (o *PostAPIProjectsOK) String() string

type PostAPIProjectsParams

type PostAPIProjectsParams struct {

	// Body.
	Body *models.ProjectEditForm

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

PostAPIProjectsParams contains all the parameters to send to the API endpoint

for the post API projects operation.

Typically these are written to a http.Request.

func NewPostAPIProjectsParams

func NewPostAPIProjectsParams() *PostAPIProjectsParams

NewPostAPIProjectsParams creates a new PostAPIProjectsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPIProjectsParamsWithContext

func NewPostAPIProjectsParamsWithContext(ctx context.Context) *PostAPIProjectsParams

NewPostAPIProjectsParamsWithContext creates a new PostAPIProjectsParams object with the ability to set a context for a request.

func NewPostAPIProjectsParamsWithHTTPClient

func NewPostAPIProjectsParamsWithHTTPClient(client *http.Client) *PostAPIProjectsParams

NewPostAPIProjectsParamsWithHTTPClient creates a new PostAPIProjectsParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPIProjectsParamsWithTimeout

func NewPostAPIProjectsParamsWithTimeout(timeout time.Duration) *PostAPIProjectsParams

NewPostAPIProjectsParamsWithTimeout creates a new PostAPIProjectsParams object with the ability to set a timeout on a request.

func (*PostAPIProjectsParams) SetBody

func (o *PostAPIProjectsParams) SetBody(body *models.ProjectEditForm)

SetBody adds the body to the post API projects params

func (*PostAPIProjectsParams) SetContext

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

SetContext adds the context to the post API projects params

func (*PostAPIProjectsParams) SetDefaults

func (o *PostAPIProjectsParams) SetDefaults()

SetDefaults hydrates default values in the post API projects params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API projects params

func (*PostAPIProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the post API projects params

func (*PostAPIProjectsParams) WithBody

WithBody adds the body to the post API projects params

func (*PostAPIProjectsParams) WithContext

WithContext adds the context to the post API projects params

func (*PostAPIProjectsParams) WithDefaults

func (o *PostAPIProjectsParams) WithDefaults() *PostAPIProjectsParams

WithDefaults hydrates default values in the post API projects params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post API projects params

func (*PostAPIProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the post API projects params

func (*PostAPIProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAPIProjectsReader

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

PostAPIProjectsReader is a Reader for the PostAPIProjects structure.

func (*PostAPIProjectsReader) ReadResponse

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