Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProjectCreated, error)
- func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectOK, error)
- func (a *Client) GetProject1(params *GetProject1Params, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProject1OK, error)
- func (a *Client) GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateProjectOK, error)
- type ClientOption
- type ClientService
- type CreateProjectConflict
- type CreateProjectCreated
- type CreateProjectParams
- func (o *CreateProjectParams) SetBody(body *models.Project)
- 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.Project) *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 CreateProjectUnauthorized
- type DeleteProjectForbidden
- type DeleteProjectNotFound
- type DeleteProjectParams
- func (o *DeleteProjectParams) SetContext(ctx context.Context)
- func (o *DeleteProjectParams) SetDefaults()
- func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectParams) SetUUID(uuid string)
- func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
- func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams
- func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
- func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
- func (o *DeleteProjectParams) WithUUID(uuid string) *DeleteProjectParams
- func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectReader
- type DeleteProjectUnauthorized
- type GetProject1Forbidden
- type GetProject1NotFound
- type GetProject1OK
- type GetProject1Params
- func (o *GetProject1Params) SetContext(ctx context.Context)
- func (o *GetProject1Params) SetDefaults()
- func (o *GetProject1Params) SetHTTPClient(client *http.Client)
- func (o *GetProject1Params) SetName(name string)
- func (o *GetProject1Params) SetTimeout(timeout time.Duration)
- func (o *GetProject1Params) SetVersion(version string)
- func (o *GetProject1Params) WithContext(ctx context.Context) *GetProject1Params
- func (o *GetProject1Params) WithDefaults() *GetProject1Params
- func (o *GetProject1Params) WithHTTPClient(client *http.Client) *GetProject1Params
- func (o *GetProject1Params) WithName(name string) *GetProject1Params
- func (o *GetProject1Params) WithTimeout(timeout time.Duration) *GetProject1Params
- func (o *GetProject1Params) WithVersion(version string) *GetProject1Params
- func (o *GetProject1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProject1Reader
- type GetProject1Unauthorized
- type GetProjectForbidden
- type GetProjectNotFound
- type GetProjectOK
- type GetProjectParams
- func (o *GetProjectParams) SetContext(ctx context.Context)
- func (o *GetProjectParams) SetDefaults()
- func (o *GetProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectParams) SetUUID(uuid string)
- func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
- func (o *GetProjectParams) WithDefaults() *GetProjectParams
- func (o *GetProjectParams) WithHTTPClient(client *http.Client) *GetProjectParams
- func (o *GetProjectParams) WithTimeout(timeout time.Duration) *GetProjectParams
- func (o *GetProjectParams) WithUUID(uuid string) *GetProjectParams
- func (o *GetProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectReader
- type GetProjectUnauthorized
- type GetProjectsOK
- type GetProjectsParams
- func (o *GetProjectsParams) SetContext(ctx context.Context)
- func (o *GetProjectsParams) SetDefaults()
- func (o *GetProjectsParams) SetExcludeInactive(excludeInactive *bool)
- func (o *GetProjectsParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectsParams) SetName(name *string)
- func (o *GetProjectsParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
- func (o *GetProjectsParams) WithDefaults() *GetProjectsParams
- func (o *GetProjectsParams) WithExcludeInactive(excludeInactive *bool) *GetProjectsParams
- func (o *GetProjectsParams) WithHTTPClient(client *http.Client) *GetProjectsParams
- func (o *GetProjectsParams) WithName(name *string) *GetProjectsParams
- func (o *GetProjectsParams) WithTimeout(timeout time.Duration) *GetProjectsParams
- func (o *GetProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectsReader
- type GetProjectsUnauthorized
- type UpdateProjectConflict
- type UpdateProjectNotFound
- type UpdateProjectOK
- type UpdateProjectParams
- func (o *UpdateProjectParams) SetBody(body *models.Project)
- 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.Project) *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 UpdateProjectReader
- type UpdateProjectUnauthorized
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, opts ...ClientOption) (*CreateProjectCreated, error)
CreateProject creates a new project
If a parent project exists, the UUID of the parent project is required
func (*Client) DeleteProject ¶
func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteProject deletes a project
func (*Client) GetProject ¶
func (a *Client) GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectOK, error)
GetProject returns a specific project
func (*Client) GetProject1 ¶
func (a *Client) GetProject1(params *GetProject1Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProject1OK, error)
GetProject1 returns a specific project by its name and version
func (*Client) GetProjects ¶
func (a *Client) GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectsOK, error)
GetProjects returns a list of 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, opts ...ClientOption) (*UpdateProjectOK, error)
UpdateProject updates a project
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectCreated, error) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectOK, error) GetProject1(params *GetProject1Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProject1OK, error) GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectsOK, 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 ¶
type CreateProjectConflict struct { }
CreateProjectConflict describes a response with status code 409, with default header values.
A project with the specified name already exists
func NewCreateProjectConflict ¶
func NewCreateProjectConflict() *CreateProjectConflict
NewCreateProjectConflict creates a CreateProjectConflict with default headers values
func (*CreateProjectConflict) Error ¶
func (o *CreateProjectConflict) Error() string
type CreateProjectCreated ¶
CreateProjectCreated describes a response with status code 201, with default header values.
successful operation
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates a CreateProjectCreated with default headers values
func (*CreateProjectCreated) Error ¶
func (o *CreateProjectCreated) Error() string
func (*CreateProjectCreated) GetPayload ¶
func (o *CreateProjectCreated) GetPayload() *models.Project
type CreateProjectParams ¶
type CreateProjectParams struct { // Body. Body *models.Project 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.Project)
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 ¶
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.Project) *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 ¶
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 CreateProjectUnauthorized ¶
type CreateProjectUnauthorized struct { }
CreateProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateProjectUnauthorized ¶
func NewCreateProjectUnauthorized() *CreateProjectUnauthorized
NewCreateProjectUnauthorized creates a CreateProjectUnauthorized with default headers values
func (*CreateProjectUnauthorized) Error ¶
func (o *CreateProjectUnauthorized) Error() string
type DeleteProjectForbidden ¶
type DeleteProjectForbidden struct { }
DeleteProjectForbidden describes a response with status code 403, with default header values.
Access to the specified project is forbidden
func NewDeleteProjectForbidden ¶
func NewDeleteProjectForbidden() *DeleteProjectForbidden
NewDeleteProjectForbidden creates a DeleteProjectForbidden with default headers values
func (*DeleteProjectForbidden) Error ¶
func (o *DeleteProjectForbidden) Error() string
type DeleteProjectNotFound ¶
type DeleteProjectNotFound struct { }
DeleteProjectNotFound describes a response with status code 404, with default header values.
The UUID of the project could not be found
func NewDeleteProjectNotFound ¶
func NewDeleteProjectNotFound() *DeleteProjectNotFound
NewDeleteProjectNotFound creates a DeleteProjectNotFound with default headers values
func (*DeleteProjectNotFound) Error ¶
func (o *DeleteProjectNotFound) Error() string
type DeleteProjectParams ¶
type DeleteProjectParams struct { /* UUID. The UUID of the project to delete */ UUID 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 ¶
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) SetTimeout ¶
func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) SetUUID ¶
func (o *DeleteProjectParams) SetUUID(uuid string)
SetUUID adds the uuid 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 ¶
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) WithTimeout ¶
func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
WithTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) WithUUID ¶
func (o *DeleteProjectParams) WithUUID(uuid string) *DeleteProjectParams
WithUUID adds the uuid 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 DeleteProjectUnauthorized ¶
type DeleteProjectUnauthorized struct { }
DeleteProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteProjectUnauthorized ¶
func NewDeleteProjectUnauthorized() *DeleteProjectUnauthorized
NewDeleteProjectUnauthorized creates a DeleteProjectUnauthorized with default headers values
func (*DeleteProjectUnauthorized) Error ¶
func (o *DeleteProjectUnauthorized) Error() string
type GetProject1Forbidden ¶
type GetProject1Forbidden struct { }
GetProject1Forbidden describes a response with status code 403, with default header values.
Access to the specified project is forbidden
func NewGetProject1Forbidden ¶
func NewGetProject1Forbidden() *GetProject1Forbidden
NewGetProject1Forbidden creates a GetProject1Forbidden with default headers values
func (*GetProject1Forbidden) Error ¶
func (o *GetProject1Forbidden) Error() string
type GetProject1NotFound ¶
type GetProject1NotFound struct { }
GetProject1NotFound describes a response with status code 404, with default header values.
The project could not be found
func NewGetProject1NotFound ¶
func NewGetProject1NotFound() *GetProject1NotFound
NewGetProject1NotFound creates a GetProject1NotFound with default headers values
func (*GetProject1NotFound) Error ¶
func (o *GetProject1NotFound) Error() string
type GetProject1OK ¶
GetProject1OK describes a response with status code 200, with default header values.
successful operation
func NewGetProject1OK ¶
func NewGetProject1OK() *GetProject1OK
NewGetProject1OK creates a GetProject1OK with default headers values
func (*GetProject1OK) Error ¶
func (o *GetProject1OK) Error() string
func (*GetProject1OK) GetPayload ¶
func (o *GetProject1OK) GetPayload() *models.Project
type GetProject1Params ¶
type GetProject1Params struct { /* Name. The name of the project to query on */ Name string /* Version. The version of the project to query on */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProject1Params contains all the parameters to send to the API endpoint
for the get project 1 operation. Typically these are written to a http.Request.
func NewGetProject1Params ¶
func NewGetProject1Params() *GetProject1Params
NewGetProject1Params creates a new GetProject1Params 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 NewGetProject1ParamsWithContext ¶
func NewGetProject1ParamsWithContext(ctx context.Context) *GetProject1Params
NewGetProject1ParamsWithContext creates a new GetProject1Params object with the ability to set a context for a request.
func NewGetProject1ParamsWithHTTPClient ¶
func NewGetProject1ParamsWithHTTPClient(client *http.Client) *GetProject1Params
NewGetProject1ParamsWithHTTPClient creates a new GetProject1Params object with the ability to set a custom HTTPClient for a request.
func NewGetProject1ParamsWithTimeout ¶
func NewGetProject1ParamsWithTimeout(timeout time.Duration) *GetProject1Params
NewGetProject1ParamsWithTimeout creates a new GetProject1Params object with the ability to set a timeout on a request.
func (*GetProject1Params) SetContext ¶
func (o *GetProject1Params) SetContext(ctx context.Context)
SetContext adds the context to the get project 1 params
func (*GetProject1Params) SetDefaults ¶
func (o *GetProject1Params) SetDefaults()
SetDefaults hydrates default values in the get project 1 params (not the query body).
All values with no default are reset to their zero value.
func (*GetProject1Params) SetHTTPClient ¶
func (o *GetProject1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project 1 params
func (*GetProject1Params) SetName ¶
func (o *GetProject1Params) SetName(name string)
SetName adds the name to the get project 1 params
func (*GetProject1Params) SetTimeout ¶
func (o *GetProject1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project 1 params
func (*GetProject1Params) SetVersion ¶
func (o *GetProject1Params) SetVersion(version string)
SetVersion adds the version to the get project 1 params
func (*GetProject1Params) WithContext ¶
func (o *GetProject1Params) WithContext(ctx context.Context) *GetProject1Params
WithContext adds the context to the get project 1 params
func (*GetProject1Params) WithDefaults ¶
func (o *GetProject1Params) WithDefaults() *GetProject1Params
WithDefaults hydrates default values in the get project 1 params (not the query body).
All values with no default are reset to their zero value.
func (*GetProject1Params) WithHTTPClient ¶
func (o *GetProject1Params) WithHTTPClient(client *http.Client) *GetProject1Params
WithHTTPClient adds the HTTPClient to the get project 1 params
func (*GetProject1Params) WithName ¶
func (o *GetProject1Params) WithName(name string) *GetProject1Params
WithName adds the name to the get project 1 params
func (*GetProject1Params) WithTimeout ¶
func (o *GetProject1Params) WithTimeout(timeout time.Duration) *GetProject1Params
WithTimeout adds the timeout to the get project 1 params
func (*GetProject1Params) WithVersion ¶
func (o *GetProject1Params) WithVersion(version string) *GetProject1Params
WithVersion adds the version to the get project 1 params
func (*GetProject1Params) WriteToRequest ¶
func (o *GetProject1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProject1Reader ¶
type GetProject1Reader struct {
// contains filtered or unexported fields
}
GetProject1Reader is a Reader for the GetProject1 structure.
func (*GetProject1Reader) ReadResponse ¶
func (o *GetProject1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProject1Unauthorized ¶
type GetProject1Unauthorized struct { }
GetProject1Unauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetProject1Unauthorized ¶
func NewGetProject1Unauthorized() *GetProject1Unauthorized
NewGetProject1Unauthorized creates a GetProject1Unauthorized with default headers values
func (*GetProject1Unauthorized) Error ¶
func (o *GetProject1Unauthorized) Error() string
type GetProjectForbidden ¶
type GetProjectForbidden struct { }
GetProjectForbidden describes a response with status code 403, with default header values.
Access to the specified project is forbidden
func NewGetProjectForbidden ¶
func NewGetProjectForbidden() *GetProjectForbidden
NewGetProjectForbidden creates a GetProjectForbidden with default headers values
func (*GetProjectForbidden) Error ¶
func (o *GetProjectForbidden) Error() string
type GetProjectNotFound ¶
type GetProjectNotFound struct { }
GetProjectNotFound describes a response with status code 404, with default header values.
The project could not be found
func NewGetProjectNotFound ¶
func NewGetProjectNotFound() *GetProjectNotFound
NewGetProjectNotFound creates a GetProjectNotFound with default headers values
func (*GetProjectNotFound) Error ¶
func (o *GetProjectNotFound) Error() string
type GetProjectOK ¶
GetProjectOK describes a response with status code 200, with default header values.
successful operation
func NewGetProjectOK ¶
func NewGetProjectOK() *GetProjectOK
NewGetProjectOK creates a GetProjectOK with default headers values
func (*GetProjectOK) Error ¶
func (o *GetProjectOK) Error() string
func (*GetProjectOK) GetPayload ¶
func (o *GetProjectOK) GetPayload() *models.Project
type GetProjectParams ¶
type GetProjectParams struct { /* UUID. The UUID of the project to retrieve */ UUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectParams contains all the parameters to send to the API endpoint
for the get project operation. Typically these are written to a http.Request.
func NewGetProjectParams ¶
func NewGetProjectParams() *GetProjectParams
NewGetProjectParams creates a new GetProjectParams 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 NewGetProjectParamsWithContext ¶
func NewGetProjectParamsWithContext(ctx context.Context) *GetProjectParams
NewGetProjectParamsWithContext creates a new GetProjectParams object with the ability to set a context for a request.
func NewGetProjectParamsWithHTTPClient ¶
func NewGetProjectParamsWithHTTPClient(client *http.Client) *GetProjectParams
NewGetProjectParamsWithHTTPClient creates a new GetProjectParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectParamsWithTimeout ¶
func NewGetProjectParamsWithTimeout(timeout time.Duration) *GetProjectParams
NewGetProjectParamsWithTimeout creates a new GetProjectParams object with the ability to set a timeout on a request.
func (*GetProjectParams) SetContext ¶
func (o *GetProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get project params
func (*GetProjectParams) SetDefaults ¶
func (o *GetProjectParams) SetDefaults()
SetDefaults hydrates default values in the get project params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectParams) SetHTTPClient ¶
func (o *GetProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project params
func (*GetProjectParams) SetTimeout ¶
func (o *GetProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project params
func (*GetProjectParams) SetUUID ¶
func (o *GetProjectParams) SetUUID(uuid string)
SetUUID adds the uuid to the get project params
func (*GetProjectParams) WithContext ¶
func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
WithContext adds the context to the get project params
func (*GetProjectParams) WithDefaults ¶
func (o *GetProjectParams) WithDefaults() *GetProjectParams
WithDefaults hydrates default values in the get project params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectParams) WithHTTPClient ¶
func (o *GetProjectParams) WithHTTPClient(client *http.Client) *GetProjectParams
WithHTTPClient adds the HTTPClient to the get project params
func (*GetProjectParams) WithTimeout ¶
func (o *GetProjectParams) WithTimeout(timeout time.Duration) *GetProjectParams
WithTimeout adds the timeout to the get project params
func (*GetProjectParams) WithUUID ¶
func (o *GetProjectParams) WithUUID(uuid string) *GetProjectParams
WithUUID adds the uuid to the get project params
func (*GetProjectParams) WriteToRequest ¶
func (o *GetProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectReader ¶
type GetProjectReader struct {
// contains filtered or unexported fields
}
GetProjectReader is a Reader for the GetProject structure.
func (*GetProjectReader) ReadResponse ¶
func (o *GetProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectUnauthorized ¶
type GetProjectUnauthorized struct { }
GetProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetProjectUnauthorized ¶
func NewGetProjectUnauthorized() *GetProjectUnauthorized
NewGetProjectUnauthorized creates a GetProjectUnauthorized with default headers values
func (*GetProjectUnauthorized) Error ¶
func (o *GetProjectUnauthorized) Error() string
type GetProjectsOK ¶
type GetProjectsOK struct { /* The total number of projects Format: int64 */ XTotalCount int64 Payload []*models.Project }
GetProjectsOK describes a response with status code 200, with default header values.
successful operation
func NewGetProjectsOK ¶
func NewGetProjectsOK() *GetProjectsOK
NewGetProjectsOK creates a GetProjectsOK with default headers values
func (*GetProjectsOK) Error ¶
func (o *GetProjectsOK) Error() string
func (*GetProjectsOK) GetPayload ¶
func (o *GetProjectsOK) GetPayload() []*models.Project
type GetProjectsParams ¶
type GetProjectsParams struct { /* ExcludeInactive. Optionally excludes inactive projects from being returned */ ExcludeInactive *bool /* Name. The optional name of the project to query on */ Name *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectsParams contains all the parameters to send to the API endpoint
for the get projects operation. Typically these are written to a http.Request.
func NewGetProjectsParams ¶
func NewGetProjectsParams() *GetProjectsParams
NewGetProjectsParams creates a new GetProjectsParams 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 NewGetProjectsParamsWithContext ¶
func NewGetProjectsParamsWithContext(ctx context.Context) *GetProjectsParams
NewGetProjectsParamsWithContext creates a new GetProjectsParams object with the ability to set a context for a request.
func NewGetProjectsParamsWithHTTPClient ¶
func NewGetProjectsParamsWithHTTPClient(client *http.Client) *GetProjectsParams
NewGetProjectsParamsWithHTTPClient creates a new GetProjectsParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectsParamsWithTimeout ¶
func NewGetProjectsParamsWithTimeout(timeout time.Duration) *GetProjectsParams
NewGetProjectsParamsWithTimeout creates a new GetProjectsParams object with the ability to set a timeout on a request.
func (*GetProjectsParams) SetContext ¶
func (o *GetProjectsParams) SetContext(ctx context.Context)
SetContext adds the context to the get projects params
func (*GetProjectsParams) SetDefaults ¶
func (o *GetProjectsParams) SetDefaults()
SetDefaults hydrates default values in the get projects params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectsParams) SetExcludeInactive ¶
func (o *GetProjectsParams) SetExcludeInactive(excludeInactive *bool)
SetExcludeInactive adds the excludeInactive to the get projects params
func (*GetProjectsParams) SetHTTPClient ¶
func (o *GetProjectsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get projects params
func (*GetProjectsParams) SetName ¶
func (o *GetProjectsParams) SetName(name *string)
SetName adds the name to the get projects params
func (*GetProjectsParams) SetTimeout ¶
func (o *GetProjectsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get projects params
func (*GetProjectsParams) WithContext ¶
func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
WithContext adds the context to the get projects params
func (*GetProjectsParams) WithDefaults ¶
func (o *GetProjectsParams) WithDefaults() *GetProjectsParams
WithDefaults hydrates default values in the get projects params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectsParams) WithExcludeInactive ¶
func (o *GetProjectsParams) WithExcludeInactive(excludeInactive *bool) *GetProjectsParams
WithExcludeInactive adds the excludeInactive to the get projects params
func (*GetProjectsParams) WithHTTPClient ¶
func (o *GetProjectsParams) WithHTTPClient(client *http.Client) *GetProjectsParams
WithHTTPClient adds the HTTPClient to the get projects params
func (*GetProjectsParams) WithName ¶
func (o *GetProjectsParams) WithName(name *string) *GetProjectsParams
WithName adds the name to the get projects params
func (*GetProjectsParams) WithTimeout ¶
func (o *GetProjectsParams) WithTimeout(timeout time.Duration) *GetProjectsParams
WithTimeout adds the timeout to the get projects params
func (*GetProjectsParams) WriteToRequest ¶
func (o *GetProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectsReader ¶
type GetProjectsReader struct {
// contains filtered or unexported fields
}
GetProjectsReader is a Reader for the GetProjects structure.
func (*GetProjectsReader) ReadResponse ¶
func (o *GetProjectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectsUnauthorized ¶
type GetProjectsUnauthorized struct { }
GetProjectsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetProjectsUnauthorized ¶
func NewGetProjectsUnauthorized() *GetProjectsUnauthorized
NewGetProjectsUnauthorized creates a GetProjectsUnauthorized with default headers values
func (*GetProjectsUnauthorized) Error ¶
func (o *GetProjectsUnauthorized) Error() string
type UpdateProjectConflict ¶
type UpdateProjectConflict struct { }
UpdateProjectConflict describes a response with status code 409, with default header values.
A project with the specified name already exists
func NewUpdateProjectConflict ¶
func NewUpdateProjectConflict() *UpdateProjectConflict
NewUpdateProjectConflict creates a UpdateProjectConflict with default headers values
func (*UpdateProjectConflict) Error ¶
func (o *UpdateProjectConflict) Error() string
type UpdateProjectNotFound ¶
type UpdateProjectNotFound struct { }
UpdateProjectNotFound describes a response with status code 404, with default header values.
The UUID of the project could not be found
func NewUpdateProjectNotFound ¶
func NewUpdateProjectNotFound() *UpdateProjectNotFound
NewUpdateProjectNotFound creates a UpdateProjectNotFound with default headers values
func (*UpdateProjectNotFound) Error ¶
func (o *UpdateProjectNotFound) Error() string
type UpdateProjectOK ¶
UpdateProjectOK describes a response with status code 200, with default header values.
successful operation
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates a UpdateProjectOK with default headers values
func (*UpdateProjectOK) Error ¶
func (o *UpdateProjectOK) Error() string
func (*UpdateProjectOK) GetPayload ¶
func (o *UpdateProjectOK) GetPayload() *models.Project
type UpdateProjectParams ¶
type UpdateProjectParams struct { // Body. Body *models.Project 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.Project)
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 ¶
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.Project) *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 ¶
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 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.
type UpdateProjectUnauthorized ¶
type UpdateProjectUnauthorized struct { }
UpdateProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateProjectUnauthorized ¶
func NewUpdateProjectUnauthorized() *UpdateProjectUnauthorized
NewUpdateProjectUnauthorized creates a UpdateProjectUnauthorized with default headers values
func (*UpdateProjectUnauthorized) Error ¶
func (o *UpdateProjectUnauthorized) Error() string
Source Files ¶
- create_project_parameters.go
- create_project_responses.go
- delete_project_parameters.go
- delete_project_responses.go
- get_project1_parameters.go
- get_project1_responses.go
- get_project_parameters.go
- get_project_responses.go
- get_projects_parameters.go
- get_projects_responses.go
- project_client.go
- update_project_parameters.go
- update_project_responses.go