project

package
v0.22.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 11 Imported by: 4

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) CreateProject added in v0.8.2

func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectCreated, error)

CreateProject creates a project if the given ID already exists a conflict is returned

func (*Client) DeleteProject added in v0.8.2

func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectOK, error)

DeleteProject deletes a project and returns the deleted entity

func (*Client) FindProject

func (a *Client) FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindProjectOK, error)

FindProject gets project by id

func (*Client) FindProjects

func (a *Client) FindProjects(params *FindProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindProjectsOK, error)

FindProjects gets all projects that match given properties

func (*Client) ListProjects

func (a *Client) ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectsOK, error)

ListProjects gets all projects

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateProject added in v0.8.2

func (a *Client) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProjectOK, error)

UpdateProject updates a project optimistic lock error can occur

type ClientOption added in v0.13.1

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.11.0

type ClientService interface {
	CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectCreated, error)

	DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectOK, error)

	FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindProjectOK, error)

	FindProjects(params *FindProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindProjectsOK, error)

	ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectsOK, error)

	UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProjectOK, 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 CreateProjectConflict added in v0.8.2

type CreateProjectConflict struct {
	Payload *httperrors.HTTPErrorResponse
}

CreateProjectConflict describes a response with status code 409, with default header values.

Conflict

func NewCreateProjectConflict added in v0.8.2

func NewCreateProjectConflict() *CreateProjectConflict

NewCreateProjectConflict creates a CreateProjectConflict with default headers values

func (*CreateProjectConflict) Code added in v0.22.1

func (o *CreateProjectConflict) Code() int

Code gets the status code for the create project conflict response

func (*CreateProjectConflict) Error added in v0.8.2

func (o *CreateProjectConflict) Error() string

func (*CreateProjectConflict) GetPayload added in v0.11.0

func (*CreateProjectConflict) IsClientError added in v0.19.3

func (o *CreateProjectConflict) IsClientError() bool

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

func (*CreateProjectConflict) IsCode added in v0.19.3

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

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

func (*CreateProjectConflict) IsRedirect added in v0.19.3

func (o *CreateProjectConflict) IsRedirect() bool

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

func (*CreateProjectConflict) IsServerError added in v0.19.3

func (o *CreateProjectConflict) IsServerError() bool

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

func (*CreateProjectConflict) IsSuccess added in v0.19.3

func (o *CreateProjectConflict) IsSuccess() bool

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

func (*CreateProjectConflict) String added in v0.19.3

func (o *CreateProjectConflict) String() string

type CreateProjectCreated added in v0.8.2

type CreateProjectCreated struct {
	Payload *models.V1ProjectResponse
}

CreateProjectCreated describes a response with status code 201, with default header values.

Created

func NewCreateProjectCreated added in v0.8.2

func NewCreateProjectCreated() *CreateProjectCreated

NewCreateProjectCreated creates a CreateProjectCreated with default headers values

func (*CreateProjectCreated) Code added in v0.22.1

func (o *CreateProjectCreated) Code() int

Code gets the status code for the create project created response

func (*CreateProjectCreated) Error added in v0.8.2

func (o *CreateProjectCreated) Error() string

func (*CreateProjectCreated) GetPayload added in v0.11.0

func (*CreateProjectCreated) IsClientError added in v0.19.3

func (o *CreateProjectCreated) IsClientError() bool

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

func (*CreateProjectCreated) IsCode added in v0.19.3

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

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

func (*CreateProjectCreated) IsRedirect added in v0.19.3

func (o *CreateProjectCreated) IsRedirect() bool

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

func (*CreateProjectCreated) IsServerError added in v0.19.3

func (o *CreateProjectCreated) IsServerError() bool

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

func (*CreateProjectCreated) IsSuccess added in v0.19.3

func (o *CreateProjectCreated) IsSuccess() bool

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

func (*CreateProjectCreated) String added in v0.19.3

func (o *CreateProjectCreated) String() string

type CreateProjectDefault added in v0.8.2

type CreateProjectDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

CreateProjectDefault describes a response with status code -1, with default header values.

Error

func NewCreateProjectDefault added in v0.8.2

func NewCreateProjectDefault(code int) *CreateProjectDefault

NewCreateProjectDefault creates a CreateProjectDefault with default headers values

func (*CreateProjectDefault) Code added in v0.8.2

func (o *CreateProjectDefault) Code() int

Code gets the status code for the create project default response

func (*CreateProjectDefault) Error added in v0.8.2

func (o *CreateProjectDefault) Error() string

func (*CreateProjectDefault) GetPayload added in v0.11.0

func (*CreateProjectDefault) IsClientError added in v0.19.3

func (o *CreateProjectDefault) IsClientError() bool

IsClientError returns true when this create project default response has a 4xx status code

func (*CreateProjectDefault) IsCode added in v0.19.3

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

IsCode returns true when this create project default response a status code equal to that given

func (*CreateProjectDefault) IsRedirect added in v0.19.3

func (o *CreateProjectDefault) IsRedirect() bool

IsRedirect returns true when this create project default response has a 3xx status code

func (*CreateProjectDefault) IsServerError added in v0.19.3

func (o *CreateProjectDefault) IsServerError() bool

IsServerError returns true when this create project default response has a 5xx status code

func (*CreateProjectDefault) IsSuccess added in v0.19.3

func (o *CreateProjectDefault) IsSuccess() bool

IsSuccess returns true when this create project default response has a 2xx status code

func (*CreateProjectDefault) String added in v0.19.3

func (o *CreateProjectDefault) String() string

type CreateProjectParams added in v0.8.2

type CreateProjectParams struct {

	// Body.
	Body *models.V1ProjectCreateRequest

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

CreateProjectParams contains all the parameters to send to the API endpoint

for the create project operation.

Typically these are written to a http.Request.

func NewCreateProjectParams added in v0.8.2

func NewCreateProjectParams() *CreateProjectParams

NewCreateProjectParams creates a new CreateProjectParams 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 NewCreateProjectParamsWithContext added in v0.8.2

func NewCreateProjectParamsWithContext(ctx context.Context) *CreateProjectParams

NewCreateProjectParamsWithContext creates a new CreateProjectParams object with the ability to set a context for a request.

func NewCreateProjectParamsWithHTTPClient added in v0.8.2

func NewCreateProjectParamsWithHTTPClient(client *http.Client) *CreateProjectParams

NewCreateProjectParamsWithHTTPClient creates a new CreateProjectParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProjectParamsWithTimeout added in v0.8.2

func NewCreateProjectParamsWithTimeout(timeout time.Duration) *CreateProjectParams

NewCreateProjectParamsWithTimeout creates a new CreateProjectParams object with the ability to set a timeout on a request.

func (*CreateProjectParams) SetBody added in v0.8.2

SetBody adds the body to the create project params

func (*CreateProjectParams) SetContext added in v0.8.2

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

SetContext adds the context to the create project params

func (*CreateProjectParams) SetDefaults added in v0.12.1

func (o *CreateProjectParams) SetDefaults()

SetDefaults hydrates default values in the create project params (not the query body).

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

func (*CreateProjectParams) SetHTTPClient added in v0.8.2

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

SetHTTPClient adds the HTTPClient to the create project params

func (*CreateProjectParams) SetTimeout added in v0.8.2

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

SetTimeout adds the timeout to the create project params

func (*CreateProjectParams) WithBody added in v0.8.2

WithBody adds the body to the create project params

func (*CreateProjectParams) WithContext added in v0.8.2

WithContext adds the context to the create project params

func (*CreateProjectParams) WithDefaults added in v0.12.1

func (o *CreateProjectParams) WithDefaults() *CreateProjectParams

WithDefaults hydrates default values in the create project params (not the query body).

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

func (*CreateProjectParams) WithHTTPClient added in v0.8.2

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

WithHTTPClient adds the HTTPClient to the create project params

func (*CreateProjectParams) WithTimeout added in v0.8.2

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

WithTimeout adds the timeout to the create project params

func (*CreateProjectParams) WriteToRequest added in v0.8.2

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

WriteToRequest writes these params to a swagger request

type CreateProjectReader added in v0.8.2

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

CreateProjectReader is a Reader for the CreateProject structure.

func (*CreateProjectReader) ReadResponse added in v0.8.2

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

ReadResponse reads a server response into the received o.

type DeleteProjectDefault added in v0.8.2

type DeleteProjectDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

DeleteProjectDefault describes a response with status code -1, with default header values.

Error

func NewDeleteProjectDefault added in v0.8.2

func NewDeleteProjectDefault(code int) *DeleteProjectDefault

NewDeleteProjectDefault creates a DeleteProjectDefault with default headers values

func (*DeleteProjectDefault) Code added in v0.8.2

func (o *DeleteProjectDefault) Code() int

Code gets the status code for the delete project default response

func (*DeleteProjectDefault) Error added in v0.8.2

func (o *DeleteProjectDefault) Error() string

func (*DeleteProjectDefault) GetPayload added in v0.11.0

func (*DeleteProjectDefault) IsClientError added in v0.19.3

func (o *DeleteProjectDefault) IsClientError() bool

IsClientError returns true when this delete project default response has a 4xx status code

func (*DeleteProjectDefault) IsCode added in v0.19.3

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

IsCode returns true when this delete project default response a status code equal to that given

func (*DeleteProjectDefault) IsRedirect added in v0.19.3

func (o *DeleteProjectDefault) IsRedirect() bool

IsRedirect returns true when this delete project default response has a 3xx status code

func (*DeleteProjectDefault) IsServerError added in v0.19.3

func (o *DeleteProjectDefault) IsServerError() bool

IsServerError returns true when this delete project default response has a 5xx status code

func (*DeleteProjectDefault) IsSuccess added in v0.19.3

func (o *DeleteProjectDefault) IsSuccess() bool

IsSuccess returns true when this delete project default response has a 2xx status code

func (*DeleteProjectDefault) String added in v0.19.3

func (o *DeleteProjectDefault) String() string

type DeleteProjectOK added in v0.8.2

type DeleteProjectOK struct {
	Payload *models.V1ProjectResponse
}

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

OK

func NewDeleteProjectOK added in v0.8.2

func NewDeleteProjectOK() *DeleteProjectOK

NewDeleteProjectOK creates a DeleteProjectOK with default headers values

func (*DeleteProjectOK) Code added in v0.22.1

func (o *DeleteProjectOK) Code() int

Code gets the status code for the delete project o k response

func (*DeleteProjectOK) Error added in v0.8.2

func (o *DeleteProjectOK) Error() string

func (*DeleteProjectOK) GetPayload added in v0.11.0

func (o *DeleteProjectOK) GetPayload() *models.V1ProjectResponse

func (*DeleteProjectOK) IsClientError added in v0.19.3

func (o *DeleteProjectOK) IsClientError() bool

IsClientError returns true when this delete project o k response has a 4xx status code

func (*DeleteProjectOK) IsCode added in v0.19.3

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

IsCode returns true when this delete project o k response a status code equal to that given

func (*DeleteProjectOK) IsRedirect added in v0.19.3

func (o *DeleteProjectOK) IsRedirect() bool

IsRedirect returns true when this delete project o k response has a 3xx status code

func (*DeleteProjectOK) IsServerError added in v0.19.3

func (o *DeleteProjectOK) IsServerError() bool

IsServerError returns true when this delete project o k response has a 5xx status code

func (*DeleteProjectOK) IsSuccess added in v0.19.3

func (o *DeleteProjectOK) IsSuccess() bool

IsSuccess returns true when this delete project o k response has a 2xx status code

func (*DeleteProjectOK) String added in v0.19.3

func (o *DeleteProjectOK) String() string

type DeleteProjectParams added in v0.8.2

type DeleteProjectParams struct {

	/* ID.

	   identifier of the project
	*/
	ID string

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

DeleteProjectParams contains all the parameters to send to the API endpoint

for the delete project operation.

Typically these are written to a http.Request.

func NewDeleteProjectParams added in v0.8.2

func NewDeleteProjectParams() *DeleteProjectParams

NewDeleteProjectParams creates a new DeleteProjectParams 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 NewDeleteProjectParamsWithContext added in v0.8.2

func NewDeleteProjectParamsWithContext(ctx context.Context) *DeleteProjectParams

NewDeleteProjectParamsWithContext creates a new DeleteProjectParams object with the ability to set a context for a request.

func NewDeleteProjectParamsWithHTTPClient added in v0.8.2

func NewDeleteProjectParamsWithHTTPClient(client *http.Client) *DeleteProjectParams

NewDeleteProjectParamsWithHTTPClient creates a new DeleteProjectParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProjectParamsWithTimeout added in v0.8.2

func NewDeleteProjectParamsWithTimeout(timeout time.Duration) *DeleteProjectParams

NewDeleteProjectParamsWithTimeout creates a new DeleteProjectParams object with the ability to set a timeout on a request.

func (*DeleteProjectParams) SetContext added in v0.8.2

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

SetContext adds the context to the delete project params

func (*DeleteProjectParams) SetDefaults added in v0.12.1

func (o *DeleteProjectParams) SetDefaults()

SetDefaults hydrates default values in the delete project params (not the query body).

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

func (*DeleteProjectParams) SetHTTPClient added in v0.8.2

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

SetHTTPClient adds the HTTPClient to the delete project params

func (*DeleteProjectParams) SetID added in v0.8.2

func (o *DeleteProjectParams) SetID(id string)

SetID adds the id to the delete project params

func (*DeleteProjectParams) SetTimeout added in v0.8.2

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

SetTimeout adds the timeout to the delete project params

func (*DeleteProjectParams) WithContext added in v0.8.2

WithContext adds the context to the delete project params

func (*DeleteProjectParams) WithDefaults added in v0.12.1

func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams

WithDefaults hydrates default values in the delete project params (not the query body).

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

func (*DeleteProjectParams) WithHTTPClient added in v0.8.2

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

WithHTTPClient adds the HTTPClient to the delete project params

func (*DeleteProjectParams) WithID added in v0.8.2

WithID adds the id to the delete project params

func (*DeleteProjectParams) WithTimeout added in v0.8.2

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

WithTimeout adds the timeout to the delete project params

func (*DeleteProjectParams) WriteToRequest added in v0.8.2

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

WriteToRequest writes these params to a swagger request

type DeleteProjectReader added in v0.8.2

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

DeleteProjectReader is a Reader for the DeleteProject structure.

func (*DeleteProjectReader) ReadResponse added in v0.8.2

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

ReadResponse reads a server response into the received o.

type FindProjectDefault

type FindProjectDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

FindProjectDefault describes a response with status code -1, with default header values.

Error

func NewFindProjectDefault

func NewFindProjectDefault(code int) *FindProjectDefault

NewFindProjectDefault creates a FindProjectDefault with default headers values

func (*FindProjectDefault) Code

func (o *FindProjectDefault) Code() int

Code gets the status code for the find project default response

func (*FindProjectDefault) Error

func (o *FindProjectDefault) Error() string

func (*FindProjectDefault) GetPayload added in v0.11.0

func (*FindProjectDefault) IsClientError added in v0.19.3

func (o *FindProjectDefault) IsClientError() bool

IsClientError returns true when this find project default response has a 4xx status code

func (*FindProjectDefault) IsCode added in v0.19.3

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

IsCode returns true when this find project default response a status code equal to that given

func (*FindProjectDefault) IsRedirect added in v0.19.3

func (o *FindProjectDefault) IsRedirect() bool

IsRedirect returns true when this find project default response has a 3xx status code

func (*FindProjectDefault) IsServerError added in v0.19.3

func (o *FindProjectDefault) IsServerError() bool

IsServerError returns true when this find project default response has a 5xx status code

func (*FindProjectDefault) IsSuccess added in v0.19.3

func (o *FindProjectDefault) IsSuccess() bool

IsSuccess returns true when this find project default response has a 2xx status code

func (*FindProjectDefault) String added in v0.19.3

func (o *FindProjectDefault) String() string

type FindProjectOK

type FindProjectOK struct {
	Payload *models.V1ProjectResponse
}

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

OK

func NewFindProjectOK

func NewFindProjectOK() *FindProjectOK

NewFindProjectOK creates a FindProjectOK with default headers values

func (*FindProjectOK) Code added in v0.22.1

func (o *FindProjectOK) Code() int

Code gets the status code for the find project o k response

func (*FindProjectOK) Error

func (o *FindProjectOK) Error() string

func (*FindProjectOK) GetPayload added in v0.11.0

func (o *FindProjectOK) GetPayload() *models.V1ProjectResponse

func (*FindProjectOK) IsClientError added in v0.19.3

func (o *FindProjectOK) IsClientError() bool

IsClientError returns true when this find project o k response has a 4xx status code

func (*FindProjectOK) IsCode added in v0.19.3

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

IsCode returns true when this find project o k response a status code equal to that given

func (*FindProjectOK) IsRedirect added in v0.19.3

func (o *FindProjectOK) IsRedirect() bool

IsRedirect returns true when this find project o k response has a 3xx status code

func (*FindProjectOK) IsServerError added in v0.19.3

func (o *FindProjectOK) IsServerError() bool

IsServerError returns true when this find project o k response has a 5xx status code

func (*FindProjectOK) IsSuccess added in v0.19.3

func (o *FindProjectOK) IsSuccess() bool

IsSuccess returns true when this find project o k response has a 2xx status code

func (*FindProjectOK) String added in v0.19.3

func (o *FindProjectOK) String() string

type FindProjectParams

type FindProjectParams struct {

	/* ID.

	   identifier of the project
	*/
	ID string

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

FindProjectParams contains all the parameters to send to the API endpoint

for the find project operation.

Typically these are written to a http.Request.

func NewFindProjectParams

func NewFindProjectParams() *FindProjectParams

NewFindProjectParams creates a new FindProjectParams 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 NewFindProjectParamsWithContext

func NewFindProjectParamsWithContext(ctx context.Context) *FindProjectParams

NewFindProjectParamsWithContext creates a new FindProjectParams object with the ability to set a context for a request.

func NewFindProjectParamsWithHTTPClient

func NewFindProjectParamsWithHTTPClient(client *http.Client) *FindProjectParams

NewFindProjectParamsWithHTTPClient creates a new FindProjectParams object with the ability to set a custom HTTPClient for a request.

func NewFindProjectParamsWithTimeout

func NewFindProjectParamsWithTimeout(timeout time.Duration) *FindProjectParams

NewFindProjectParamsWithTimeout creates a new FindProjectParams object with the ability to set a timeout on a request.

func (*FindProjectParams) SetContext

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

SetContext adds the context to the find project params

func (*FindProjectParams) SetDefaults added in v0.12.1

func (o *FindProjectParams) SetDefaults()

SetDefaults hydrates default values in the find project params (not the query body).

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

func (*FindProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find project params

func (*FindProjectParams) SetID

func (o *FindProjectParams) SetID(id string)

SetID adds the id to the find project params

func (*FindProjectParams) SetTimeout

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

SetTimeout adds the timeout to the find project params

func (*FindProjectParams) WithContext

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

WithContext adds the context to the find project params

func (*FindProjectParams) WithDefaults added in v0.12.1

func (o *FindProjectParams) WithDefaults() *FindProjectParams

WithDefaults hydrates default values in the find project params (not the query body).

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

func (*FindProjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find project params

func (*FindProjectParams) WithID

WithID adds the id to the find project params

func (*FindProjectParams) WithTimeout

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

WithTimeout adds the timeout to the find project params

func (*FindProjectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindProjectReader

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

FindProjectReader is a Reader for the FindProject structure.

func (*FindProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindProjectsDefault

type FindProjectsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

FindProjectsDefault describes a response with status code -1, with default header values.

Error

func NewFindProjectsDefault

func NewFindProjectsDefault(code int) *FindProjectsDefault

NewFindProjectsDefault creates a FindProjectsDefault with default headers values

func (*FindProjectsDefault) Code

func (o *FindProjectsDefault) Code() int

Code gets the status code for the find projects default response

func (*FindProjectsDefault) Error

func (o *FindProjectsDefault) Error() string

func (*FindProjectsDefault) GetPayload added in v0.11.0

func (*FindProjectsDefault) IsClientError added in v0.19.3

func (o *FindProjectsDefault) IsClientError() bool

IsClientError returns true when this find projects default response has a 4xx status code

func (*FindProjectsDefault) IsCode added in v0.19.3

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

IsCode returns true when this find projects default response a status code equal to that given

func (*FindProjectsDefault) IsRedirect added in v0.19.3

func (o *FindProjectsDefault) IsRedirect() bool

IsRedirect returns true when this find projects default response has a 3xx status code

func (*FindProjectsDefault) IsServerError added in v0.19.3

func (o *FindProjectsDefault) IsServerError() bool

IsServerError returns true when this find projects default response has a 5xx status code

func (*FindProjectsDefault) IsSuccess added in v0.19.3

func (o *FindProjectsDefault) IsSuccess() bool

IsSuccess returns true when this find projects default response has a 2xx status code

func (*FindProjectsDefault) String added in v0.19.3

func (o *FindProjectsDefault) String() string

type FindProjectsOK

type FindProjectsOK struct {
	Payload []*models.V1ProjectResponse
}

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

OK

func NewFindProjectsOK

func NewFindProjectsOK() *FindProjectsOK

NewFindProjectsOK creates a FindProjectsOK with default headers values

func (*FindProjectsOK) Code added in v0.22.1

func (o *FindProjectsOK) Code() int

Code gets the status code for the find projects o k response

func (*FindProjectsOK) Error

func (o *FindProjectsOK) Error() string

func (*FindProjectsOK) GetPayload added in v0.11.0

func (o *FindProjectsOK) GetPayload() []*models.V1ProjectResponse

func (*FindProjectsOK) IsClientError added in v0.19.3

func (o *FindProjectsOK) IsClientError() bool

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

func (*FindProjectsOK) IsCode added in v0.19.3

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

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

func (*FindProjectsOK) IsRedirect added in v0.19.3

func (o *FindProjectsOK) IsRedirect() bool

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

func (*FindProjectsOK) IsServerError added in v0.19.3

func (o *FindProjectsOK) IsServerError() bool

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

func (*FindProjectsOK) IsSuccess added in v0.19.3

func (o *FindProjectsOK) IsSuccess() bool

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

func (*FindProjectsOK) String added in v0.19.3

func (o *FindProjectsOK) String() string

type FindProjectsParams

type FindProjectsParams struct {

	// Body.
	Body *models.V1ProjectFindRequest

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

FindProjectsParams contains all the parameters to send to the API endpoint

for the find projects operation.

Typically these are written to a http.Request.

func NewFindProjectsParams

func NewFindProjectsParams() *FindProjectsParams

NewFindProjectsParams creates a new FindProjectsParams 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 NewFindProjectsParamsWithContext

func NewFindProjectsParamsWithContext(ctx context.Context) *FindProjectsParams

NewFindProjectsParamsWithContext creates a new FindProjectsParams object with the ability to set a context for a request.

func NewFindProjectsParamsWithHTTPClient

func NewFindProjectsParamsWithHTTPClient(client *http.Client) *FindProjectsParams

NewFindProjectsParamsWithHTTPClient creates a new FindProjectsParams object with the ability to set a custom HTTPClient for a request.

func NewFindProjectsParamsWithTimeout

func NewFindProjectsParamsWithTimeout(timeout time.Duration) *FindProjectsParams

NewFindProjectsParamsWithTimeout creates a new FindProjectsParams object with the ability to set a timeout on a request.

func (*FindProjectsParams) SetBody

SetBody adds the body to the find projects params

func (*FindProjectsParams) SetContext

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

SetContext adds the context to the find projects params

func (*FindProjectsParams) SetDefaults added in v0.12.1

func (o *FindProjectsParams) SetDefaults()

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

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

func (*FindProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find projects params

func (*FindProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the find projects params

func (*FindProjectsParams) WithBody

WithBody adds the body to the find projects params

func (*FindProjectsParams) WithContext

WithContext adds the context to the find projects params

func (*FindProjectsParams) WithDefaults added in v0.12.1

func (o *FindProjectsParams) WithDefaults() *FindProjectsParams

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

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

func (*FindProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find projects params

func (*FindProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the find projects params

func (*FindProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindProjectsReader

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

FindProjectsReader is a Reader for the FindProjects structure.

func (*FindProjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectsDefault

type ListProjectsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

ListProjectsDefault describes a response with status code -1, with default header values.

Error

func NewListProjectsDefault

func NewListProjectsDefault(code int) *ListProjectsDefault

NewListProjectsDefault creates a ListProjectsDefault with default headers values

func (*ListProjectsDefault) Code

func (o *ListProjectsDefault) Code() int

Code gets the status code for the list projects default response

func (*ListProjectsDefault) Error

func (o *ListProjectsDefault) Error() string

func (*ListProjectsDefault) GetPayload added in v0.11.0

func (*ListProjectsDefault) IsClientError added in v0.19.3

func (o *ListProjectsDefault) IsClientError() bool

IsClientError returns true when this list projects default response has a 4xx status code

func (*ListProjectsDefault) IsCode added in v0.19.3

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

IsCode returns true when this list projects default response a status code equal to that given

func (*ListProjectsDefault) IsRedirect added in v0.19.3

func (o *ListProjectsDefault) IsRedirect() bool

IsRedirect returns true when this list projects default response has a 3xx status code

func (*ListProjectsDefault) IsServerError added in v0.19.3

func (o *ListProjectsDefault) IsServerError() bool

IsServerError returns true when this list projects default response has a 5xx status code

func (*ListProjectsDefault) IsSuccess added in v0.19.3

func (o *ListProjectsDefault) IsSuccess() bool

IsSuccess returns true when this list projects default response has a 2xx status code

func (*ListProjectsDefault) String added in v0.19.3

func (o *ListProjectsDefault) String() string

type ListProjectsOK

type ListProjectsOK struct {
	Payload []*models.V1ProjectResponse
}

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

OK

func NewListProjectsOK

func NewListProjectsOK() *ListProjectsOK

NewListProjectsOK creates a ListProjectsOK with default headers values

func (*ListProjectsOK) Code added in v0.22.1

func (o *ListProjectsOK) Code() int

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

func (*ListProjectsOK) Error

func (o *ListProjectsOK) Error() string

func (*ListProjectsOK) GetPayload added in v0.11.0

func (o *ListProjectsOK) GetPayload() []*models.V1ProjectResponse

func (*ListProjectsOK) IsClientError added in v0.19.3

func (o *ListProjectsOK) IsClientError() bool

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

func (*ListProjectsOK) IsCode added in v0.19.3

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

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

func (*ListProjectsOK) IsRedirect added in v0.19.3

func (o *ListProjectsOK) IsRedirect() bool

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

func (*ListProjectsOK) IsServerError added in v0.19.3

func (o *ListProjectsOK) IsServerError() bool

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

func (*ListProjectsOK) IsSuccess added in v0.19.3

func (o *ListProjectsOK) IsSuccess() bool

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

func (*ListProjectsOK) String added in v0.19.3

func (o *ListProjectsOK) String() string

type ListProjectsParams

type ListProjectsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListProjectsParams contains all the parameters to send to the API endpoint

for the list projects operation.

Typically these are written to a http.Request.

func NewListProjectsParams

func NewListProjectsParams() *ListProjectsParams

NewListProjectsParams creates a new ListProjectsParams 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 NewListProjectsParamsWithContext

func NewListProjectsParamsWithContext(ctx context.Context) *ListProjectsParams

NewListProjectsParamsWithContext creates a new ListProjectsParams object with the ability to set a context for a request.

func NewListProjectsParamsWithHTTPClient

func NewListProjectsParamsWithHTTPClient(client *http.Client) *ListProjectsParams

NewListProjectsParamsWithHTTPClient creates a new ListProjectsParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectsParamsWithTimeout

func NewListProjectsParamsWithTimeout(timeout time.Duration) *ListProjectsParams

NewListProjectsParamsWithTimeout creates a new ListProjectsParams object with the ability to set a timeout on a request.

func (*ListProjectsParams) SetContext

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

SetContext adds the context to the list projects params

func (*ListProjectsParams) SetDefaults added in v0.12.1

func (o *ListProjectsParams) SetDefaults()

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

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

func (*ListProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list projects params

func (*ListProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the list projects params

func (*ListProjectsParams) WithContext

WithContext adds the context to the list projects params

func (*ListProjectsParams) WithDefaults added in v0.12.1

func (o *ListProjectsParams) WithDefaults() *ListProjectsParams

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

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

func (*ListProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list projects params

func (*ListProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the list projects params

func (*ListProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListProjectsReader

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

ListProjectsReader is a Reader for the ListProjects structure.

func (*ListProjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateProjectDefault added in v0.8.2

type UpdateProjectDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

UpdateProjectDefault describes a response with status code -1, with default header values.

Error

func NewUpdateProjectDefault added in v0.8.2

func NewUpdateProjectDefault(code int) *UpdateProjectDefault

NewUpdateProjectDefault creates a UpdateProjectDefault with default headers values

func (*UpdateProjectDefault) Code added in v0.8.2

func (o *UpdateProjectDefault) Code() int

Code gets the status code for the update project default response

func (*UpdateProjectDefault) Error added in v0.8.2

func (o *UpdateProjectDefault) Error() string

func (*UpdateProjectDefault) GetPayload added in v0.11.0

func (*UpdateProjectDefault) IsClientError added in v0.19.3

func (o *UpdateProjectDefault) IsClientError() bool

IsClientError returns true when this update project default response has a 4xx status code

func (*UpdateProjectDefault) IsCode added in v0.19.3

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

IsCode returns true when this update project default response a status code equal to that given

func (*UpdateProjectDefault) IsRedirect added in v0.19.3

func (o *UpdateProjectDefault) IsRedirect() bool

IsRedirect returns true when this update project default response has a 3xx status code

func (*UpdateProjectDefault) IsServerError added in v0.19.3

func (o *UpdateProjectDefault) IsServerError() bool

IsServerError returns true when this update project default response has a 5xx status code

func (*UpdateProjectDefault) IsSuccess added in v0.19.3

func (o *UpdateProjectDefault) IsSuccess() bool

IsSuccess returns true when this update project default response has a 2xx status code

func (*UpdateProjectDefault) String added in v0.19.3

func (o *UpdateProjectDefault) String() string

type UpdateProjectOK added in v0.8.2

type UpdateProjectOK struct {
	Payload *models.V1ProjectResponse
}

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

Updated

func NewUpdateProjectOK added in v0.8.2

func NewUpdateProjectOK() *UpdateProjectOK

NewUpdateProjectOK creates a UpdateProjectOK with default headers values

func (*UpdateProjectOK) Code added in v0.22.1

func (o *UpdateProjectOK) Code() int

Code gets the status code for the update project o k response

func (*UpdateProjectOK) Error added in v0.8.2

func (o *UpdateProjectOK) Error() string

func (*UpdateProjectOK) GetPayload added in v0.11.0

func (o *UpdateProjectOK) GetPayload() *models.V1ProjectResponse

func (*UpdateProjectOK) IsClientError added in v0.19.3

func (o *UpdateProjectOK) IsClientError() bool

IsClientError returns true when this update project o k response has a 4xx status code

func (*UpdateProjectOK) IsCode added in v0.19.3

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

IsCode returns true when this update project o k response a status code equal to that given

func (*UpdateProjectOK) IsRedirect added in v0.19.3

func (o *UpdateProjectOK) IsRedirect() bool

IsRedirect returns true when this update project o k response has a 3xx status code

func (*UpdateProjectOK) IsServerError added in v0.19.3

func (o *UpdateProjectOK) IsServerError() bool

IsServerError returns true when this update project o k response has a 5xx status code

func (*UpdateProjectOK) IsSuccess added in v0.19.3

func (o *UpdateProjectOK) IsSuccess() bool

IsSuccess returns true when this update project o k response has a 2xx status code

func (*UpdateProjectOK) String added in v0.19.3

func (o *UpdateProjectOK) String() string

type UpdateProjectParams added in v0.8.2

type UpdateProjectParams struct {

	// Body.
	Body *models.V1ProjectUpdateRequest

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

UpdateProjectParams contains all the parameters to send to the API endpoint

for the update project operation.

Typically these are written to a http.Request.

func NewUpdateProjectParams added in v0.8.2

func NewUpdateProjectParams() *UpdateProjectParams

NewUpdateProjectParams creates a new UpdateProjectParams 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 NewUpdateProjectParamsWithContext added in v0.8.2

func NewUpdateProjectParamsWithContext(ctx context.Context) *UpdateProjectParams

NewUpdateProjectParamsWithContext creates a new UpdateProjectParams object with the ability to set a context for a request.

func NewUpdateProjectParamsWithHTTPClient added in v0.8.2

func NewUpdateProjectParamsWithHTTPClient(client *http.Client) *UpdateProjectParams

NewUpdateProjectParamsWithHTTPClient creates a new UpdateProjectParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateProjectParamsWithTimeout added in v0.8.2

func NewUpdateProjectParamsWithTimeout(timeout time.Duration) *UpdateProjectParams

NewUpdateProjectParamsWithTimeout creates a new UpdateProjectParams object with the ability to set a timeout on a request.

func (*UpdateProjectParams) SetBody added in v0.8.2

SetBody adds the body to the update project params

func (*UpdateProjectParams) SetContext added in v0.8.2

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

SetContext adds the context to the update project params

func (*UpdateProjectParams) SetDefaults added in v0.12.1

func (o *UpdateProjectParams) SetDefaults()

SetDefaults hydrates default values in the update project params (not the query body).

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

func (*UpdateProjectParams) SetHTTPClient added in v0.8.2

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

SetHTTPClient adds the HTTPClient to the update project params

func (*UpdateProjectParams) SetTimeout added in v0.8.2

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

SetTimeout adds the timeout to the update project params

func (*UpdateProjectParams) WithBody added in v0.8.2

WithBody adds the body to the update project params

func (*UpdateProjectParams) WithContext added in v0.8.2

WithContext adds the context to the update project params

func (*UpdateProjectParams) WithDefaults added in v0.12.1

func (o *UpdateProjectParams) WithDefaults() *UpdateProjectParams

WithDefaults hydrates default values in the update project params (not the query body).

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

func (*UpdateProjectParams) WithHTTPClient added in v0.8.2

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

WithHTTPClient adds the HTTPClient to the update project params

func (*UpdateProjectParams) WithTimeout added in v0.8.2

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

WithTimeout adds the timeout to the update project params

func (*UpdateProjectParams) WriteToRequest added in v0.8.2

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

WriteToRequest writes these params to a swagger request

type UpdateProjectPreconditionFailed added in v0.8.2

type UpdateProjectPreconditionFailed struct {
	Payload *httperrors.HTTPErrorResponse
}

UpdateProjectPreconditionFailed describes a response with status code 412, with default header values.

OptimisticLock

func NewUpdateProjectPreconditionFailed added in v0.8.2

func NewUpdateProjectPreconditionFailed() *UpdateProjectPreconditionFailed

NewUpdateProjectPreconditionFailed creates a UpdateProjectPreconditionFailed with default headers values

func (*UpdateProjectPreconditionFailed) Code added in v0.22.1

Code gets the status code for the update project precondition failed response

func (*UpdateProjectPreconditionFailed) Error added in v0.8.2

func (*UpdateProjectPreconditionFailed) GetPayload added in v0.11.0

func (*UpdateProjectPreconditionFailed) IsClientError added in v0.19.3

func (o *UpdateProjectPreconditionFailed) IsClientError() bool

IsClientError returns true when this update project precondition failed response has a 4xx status code

func (*UpdateProjectPreconditionFailed) IsCode added in v0.19.3

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

IsCode returns true when this update project precondition failed response a status code equal to that given

func (*UpdateProjectPreconditionFailed) IsRedirect added in v0.19.3

func (o *UpdateProjectPreconditionFailed) IsRedirect() bool

IsRedirect returns true when this update project precondition failed response has a 3xx status code

func (*UpdateProjectPreconditionFailed) IsServerError added in v0.19.3

func (o *UpdateProjectPreconditionFailed) IsServerError() bool

IsServerError returns true when this update project precondition failed response has a 5xx status code

func (*UpdateProjectPreconditionFailed) IsSuccess added in v0.19.3

func (o *UpdateProjectPreconditionFailed) IsSuccess() bool

IsSuccess returns true when this update project precondition failed response has a 2xx status code

func (*UpdateProjectPreconditionFailed) String added in v0.19.3

type UpdateProjectReader added in v0.8.2

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

UpdateProjectReader is a Reader for the UpdateProject structure.

func (*UpdateProjectReader) ReadResponse added in v0.8.2

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