Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*CreateProjectCreated, error)
- func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteProjectOK, error)
- func (a *Client) FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter) (*FindProjectOK, error)
- func (a *Client) ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateProjectOK, error)
- type ClientService
- type CreateProjectConflict
- type CreateProjectCreated
- type CreateProjectDefault
- type CreateProjectParams
- func (o *CreateProjectParams) SetBody(body *models.V1ProjectCreateRequest)
- func (o *CreateProjectParams) SetContext(ctx context.Context)
- func (o *CreateProjectParams) SetDefaults()
- func (o *CreateProjectParams) SetHTTPClient(client *http.Client)
- func (o *CreateProjectParams) SetTimeout(timeout time.Duration)
- func (o *CreateProjectParams) WithBody(body *models.V1ProjectCreateRequest) *CreateProjectParams
- func (o *CreateProjectParams) WithContext(ctx context.Context) *CreateProjectParams
- func (o *CreateProjectParams) WithDefaults() *CreateProjectParams
- func (o *CreateProjectParams) WithHTTPClient(client *http.Client) *CreateProjectParams
- func (o *CreateProjectParams) WithTimeout(timeout time.Duration) *CreateProjectParams
- func (o *CreateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProjectReader
- type DeleteProjectDefault
- type DeleteProjectOK
- type DeleteProjectParams
- func (o *DeleteProjectParams) SetContext(ctx context.Context)
- func (o *DeleteProjectParams) SetDefaults()
- func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectParams) SetID(id string)
- func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
- func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams
- func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
- func (o *DeleteProjectParams) WithID(id string) *DeleteProjectParams
- func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
- func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectReader
- type FindProjectDefault
- type FindProjectOK
- type FindProjectParams
- func (o *FindProjectParams) SetContext(ctx context.Context)
- func (o *FindProjectParams) SetDefaults()
- func (o *FindProjectParams) SetHTTPClient(client *http.Client)
- func (o *FindProjectParams) SetID(id string)
- func (o *FindProjectParams) SetTimeout(timeout time.Duration)
- func (o *FindProjectParams) WithContext(ctx context.Context) *FindProjectParams
- func (o *FindProjectParams) WithDefaults() *FindProjectParams
- func (o *FindProjectParams) WithHTTPClient(client *http.Client) *FindProjectParams
- func (o *FindProjectParams) WithID(id string) *FindProjectParams
- func (o *FindProjectParams) WithTimeout(timeout time.Duration) *FindProjectParams
- func (o *FindProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindProjectReader
- type ListProjectsDefault
- type ListProjectsOK
- type ListProjectsParams
- func (o *ListProjectsParams) SetContext(ctx context.Context)
- func (o *ListProjectsParams) SetDefaults()
- func (o *ListProjectsParams) SetHTTPClient(client *http.Client)
- func (o *ListProjectsParams) SetTimeout(timeout time.Duration)
- func (o *ListProjectsParams) WithContext(ctx context.Context) *ListProjectsParams
- func (o *ListProjectsParams) WithDefaults() *ListProjectsParams
- func (o *ListProjectsParams) WithHTTPClient(client *http.Client) *ListProjectsParams
- func (o *ListProjectsParams) WithTimeout(timeout time.Duration) *ListProjectsParams
- func (o *ListProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProjectsReader
- type UpdateProjectDefault
- type UpdateProjectOK
- type UpdateProjectParams
- func (o *UpdateProjectParams) SetBody(body *models.V1ProjectUpdateRequest)
- func (o *UpdateProjectParams) SetContext(ctx context.Context)
- func (o *UpdateProjectParams) SetDefaults()
- func (o *UpdateProjectParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProjectParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProjectParams) WithBody(body *models.V1ProjectUpdateRequest) *UpdateProjectParams
- func (o *UpdateProjectParams) WithContext(ctx context.Context) *UpdateProjectParams
- func (o *UpdateProjectParams) WithDefaults() *UpdateProjectParams
- func (o *UpdateProjectParams) WithHTTPClient(client *http.Client) *UpdateProjectParams
- func (o *UpdateProjectParams) WithTimeout(timeout time.Duration) *UpdateProjectParams
- func (o *UpdateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProjectPreconditionFailed
- type UpdateProjectReader
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 ¶
func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*CreateProjectCreated, error)
CreateProject creates a project if the given ID already exists a conflict is returned
func (*Client) DeleteProject ¶
func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteProjectOK, error)
DeleteProject deletes a project and returns the deleted entity
func (*Client) FindProject ¶
func (a *Client) FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter) (*FindProjectOK, error)
FindProject gets project by id
func (*Client) ListProjects ¶
func (a *Client) ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*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 ¶
func (a *Client) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateProjectOK, error)
UpdateProject updates a project optimistic lock error can occur
type ClientService ¶ added in v0.9.1
type ClientService interface { CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*CreateProjectCreated, error) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteProjectOK, error) FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter) (*FindProjectOK, error) ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProjectsOK, error) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter) (*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 ¶
type CreateProjectConflict struct {
Payload *httperrors.HTTPErrorResponse
}
CreateProjectConflict describes a response with status code 409, with default header values.
Conflict
func NewCreateProjectConflict ¶
func NewCreateProjectConflict() *CreateProjectConflict
NewCreateProjectConflict creates a CreateProjectConflict with default headers values
func (*CreateProjectConflict) Error ¶
func (o *CreateProjectConflict) Error() string
func (*CreateProjectConflict) GetPayload ¶ added in v0.9.1
func (o *CreateProjectConflict) GetPayload() *httperrors.HTTPErrorResponse
type CreateProjectCreated ¶
type CreateProjectCreated struct {
Payload *models.V1ProjectResponse
}
CreateProjectCreated describes a response with status code 201, with default header values.
Created
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates a CreateProjectCreated with default headers values
func (*CreateProjectCreated) Error ¶
func (o *CreateProjectCreated) Error() string
func (*CreateProjectCreated) GetPayload ¶ added in v0.9.1
func (o *CreateProjectCreated) GetPayload() *models.V1ProjectResponse
type CreateProjectDefault ¶
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 ¶
func NewCreateProjectDefault(code int) *CreateProjectDefault
NewCreateProjectDefault creates a CreateProjectDefault with default headers values
func (*CreateProjectDefault) Code ¶
func (o *CreateProjectDefault) Code() int
Code gets the status code for the create project default response
func (*CreateProjectDefault) Error ¶
func (o *CreateProjectDefault) Error() string
func (*CreateProjectDefault) GetPayload ¶ added in v0.9.1
func (o *CreateProjectDefault) GetPayload() *httperrors.HTTPErrorResponse
type CreateProjectParams ¶
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 ¶
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 ¶
func NewCreateProjectParamsWithContext(ctx context.Context) *CreateProjectParams
NewCreateProjectParamsWithContext creates a new CreateProjectParams object with the ability to set a context for a request.
func NewCreateProjectParamsWithHTTPClient ¶
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 ¶
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 ¶
func (o *CreateProjectParams) SetBody(body *models.V1ProjectCreateRequest)
SetBody adds the body to the create project params
func (*CreateProjectParams) SetContext ¶
func (o *CreateProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the create project params
func (*CreateProjectParams) SetDefaults ¶ added in v0.12.0
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 ¶
func (o *CreateProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create project params
func (*CreateProjectParams) SetTimeout ¶
func (o *CreateProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create project params
func (*CreateProjectParams) WithBody ¶
func (o *CreateProjectParams) WithBody(body *models.V1ProjectCreateRequest) *CreateProjectParams
WithBody adds the body to the create project params
func (*CreateProjectParams) WithContext ¶
func (o *CreateProjectParams) WithContext(ctx context.Context) *CreateProjectParams
WithContext adds the context to the create project params
func (*CreateProjectParams) WithDefaults ¶ added in v0.12.0
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 ¶
func (o *CreateProjectParams) WithHTTPClient(client *http.Client) *CreateProjectParams
WithHTTPClient adds the HTTPClient to the create project params
func (*CreateProjectParams) WithTimeout ¶
func (o *CreateProjectParams) WithTimeout(timeout time.Duration) *CreateProjectParams
WithTimeout adds the timeout to the create project params
func (*CreateProjectParams) WriteToRequest ¶
func (o *CreateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateProjectReader ¶
type CreateProjectReader struct {
// contains filtered or unexported fields
}
CreateProjectReader is a Reader for the CreateProject structure.
func (*CreateProjectReader) ReadResponse ¶
func (o *CreateProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteProjectDefault ¶
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 ¶
func NewDeleteProjectDefault(code int) *DeleteProjectDefault
NewDeleteProjectDefault creates a DeleteProjectDefault with default headers values
func (*DeleteProjectDefault) Code ¶
func (o *DeleteProjectDefault) Code() int
Code gets the status code for the delete project default response
func (*DeleteProjectDefault) Error ¶
func (o *DeleteProjectDefault) Error() string
func (*DeleteProjectDefault) GetPayload ¶ added in v0.9.1
func (o *DeleteProjectDefault) GetPayload() *httperrors.HTTPErrorResponse
type DeleteProjectOK ¶
type DeleteProjectOK struct {
Payload *models.V1ProjectResponse
}
DeleteProjectOK describes a response with status code 200, with default header values.
OK
func NewDeleteProjectOK ¶
func NewDeleteProjectOK() *DeleteProjectOK
NewDeleteProjectOK creates a DeleteProjectOK with default headers values
func (*DeleteProjectOK) Error ¶
func (o *DeleteProjectOK) Error() string
func (*DeleteProjectOK) GetPayload ¶ added in v0.9.1
func (o *DeleteProjectOK) GetPayload() *models.V1ProjectResponse
type DeleteProjectParams ¶
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 ¶
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 ¶
func NewDeleteProjectParamsWithContext(ctx context.Context) *DeleteProjectParams
NewDeleteProjectParamsWithContext creates a new DeleteProjectParams object with the ability to set a context for a request.
func NewDeleteProjectParamsWithHTTPClient ¶
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 ¶
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 ¶
func (o *DeleteProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the delete project params
func (*DeleteProjectParams) SetDefaults ¶ added in v0.12.0
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 ¶
func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete project params
func (*DeleteProjectParams) SetID ¶
func (o *DeleteProjectParams) SetID(id string)
SetID adds the id to the delete project params
func (*DeleteProjectParams) SetTimeout ¶
func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) WithContext ¶
func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
WithContext adds the context to the delete project params
func (*DeleteProjectParams) WithDefaults ¶ added in v0.12.0
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 ¶
func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
WithHTTPClient adds the HTTPClient to the delete project params
func (*DeleteProjectParams) WithID ¶
func (o *DeleteProjectParams) WithID(id string) *DeleteProjectParams
WithID adds the id to the delete project params
func (*DeleteProjectParams) WithTimeout ¶
func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
WithTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) WriteToRequest ¶
func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProjectReader ¶
type DeleteProjectReader struct {
// contains filtered or unexported fields
}
DeleteProjectReader is a Reader for the DeleteProject structure.
func (*DeleteProjectReader) ReadResponse ¶
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.9.1
func (o *FindProjectDefault) GetPayload() *httperrors.HTTPErrorResponse
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) Error ¶
func (o *FindProjectOK) Error() string
func (*FindProjectOK) GetPayload ¶ added in v0.9.1
func (o *FindProjectOK) GetPayload() *models.V1ProjectResponse
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.0
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.0
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 ¶
func (o *FindProjectParams) WithID(id string) *FindProjectParams
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 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.9.1
func (o *ListProjectsDefault) GetPayload() *httperrors.HTTPErrorResponse
type ListProjectsOK ¶
type ListProjectsOK struct {
Payload *models.V1ProjectListResponse
}
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) Error ¶
func (o *ListProjectsOK) Error() string
func (*ListProjectsOK) GetPayload ¶ added in v0.9.1
func (o *ListProjectsOK) GetPayload() *models.V1ProjectListResponse
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.0
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 ¶
func (o *ListProjectsParams) WithContext(ctx context.Context) *ListProjectsParams
WithContext adds the context to the list projects params
func (*ListProjectsParams) WithDefaults ¶ added in v0.12.0
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 ¶
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 ¶
func NewUpdateProjectDefault(code int) *UpdateProjectDefault
NewUpdateProjectDefault creates a UpdateProjectDefault with default headers values
func (*UpdateProjectDefault) Code ¶
func (o *UpdateProjectDefault) Code() int
Code gets the status code for the update project default response
func (*UpdateProjectDefault) Error ¶
func (o *UpdateProjectDefault) Error() string
func (*UpdateProjectDefault) GetPayload ¶ added in v0.9.1
func (o *UpdateProjectDefault) GetPayload() *httperrors.HTTPErrorResponse
type UpdateProjectOK ¶
type UpdateProjectOK struct {
Payload *models.V1ProjectResponse
}
UpdateProjectOK describes a response with status code 200, with default header values.
Updated
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates a UpdateProjectOK with default headers values
func (*UpdateProjectOK) Error ¶
func (o *UpdateProjectOK) Error() string
func (*UpdateProjectOK) GetPayload ¶ added in v0.9.1
func (o *UpdateProjectOK) GetPayload() *models.V1ProjectResponse
type UpdateProjectParams ¶
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 ¶
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 ¶
func NewUpdateProjectParamsWithContext(ctx context.Context) *UpdateProjectParams
NewUpdateProjectParamsWithContext creates a new UpdateProjectParams object with the ability to set a context for a request.
func NewUpdateProjectParamsWithHTTPClient ¶
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 ¶
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 ¶
func (o *UpdateProjectParams) SetBody(body *models.V1ProjectUpdateRequest)
SetBody adds the body to the update project params
func (*UpdateProjectParams) SetContext ¶
func (o *UpdateProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the update project params
func (*UpdateProjectParams) SetDefaults ¶ added in v0.12.0
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 ¶
func (o *UpdateProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update project params
func (*UpdateProjectParams) SetTimeout ¶
func (o *UpdateProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update project params
func (*UpdateProjectParams) WithBody ¶
func (o *UpdateProjectParams) WithBody(body *models.V1ProjectUpdateRequest) *UpdateProjectParams
WithBody adds the body to the update project params
func (*UpdateProjectParams) WithContext ¶
func (o *UpdateProjectParams) WithContext(ctx context.Context) *UpdateProjectParams
WithContext adds the context to the update project params
func (*UpdateProjectParams) WithDefaults ¶ added in v0.12.0
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 ¶
func (o *UpdateProjectParams) WithHTTPClient(client *http.Client) *UpdateProjectParams
WithHTTPClient adds the HTTPClient to the update project params
func (*UpdateProjectParams) WithTimeout ¶
func (o *UpdateProjectParams) WithTimeout(timeout time.Duration) *UpdateProjectParams
WithTimeout adds the timeout to the update project params
func (*UpdateProjectParams) WriteToRequest ¶
func (o *UpdateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProjectPreconditionFailed ¶
type UpdateProjectPreconditionFailed struct {
Payload *httperrors.HTTPErrorResponse
}
UpdateProjectPreconditionFailed describes a response with status code 412, with default header values.
OptimisticLock
func NewUpdateProjectPreconditionFailed ¶
func NewUpdateProjectPreconditionFailed() *UpdateProjectPreconditionFailed
NewUpdateProjectPreconditionFailed creates a UpdateProjectPreconditionFailed with default headers values
func (*UpdateProjectPreconditionFailed) Error ¶
func (o *UpdateProjectPreconditionFailed) Error() string
func (*UpdateProjectPreconditionFailed) GetPayload ¶ added in v0.9.1
func (o *UpdateProjectPreconditionFailed) GetPayload() *httperrors.HTTPErrorResponse
type UpdateProjectReader ¶
type UpdateProjectReader struct {
// contains filtered or unexported fields
}
UpdateProjectReader is a Reader for the UpdateProject structure.
func (*UpdateProjectReader) ReadResponse ¶
func (o *UpdateProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.