Documentation
¶
Index ¶
- type BulkCreateOrUpdateAnnotationsOK
- type BulkCreateOrUpdateAnnotationsParams
- func NewBulkCreateOrUpdateAnnotationsParams() *BulkCreateOrUpdateAnnotationsParams
- func NewBulkCreateOrUpdateAnnotationsParamsWithContext(ctx context.Context) *BulkCreateOrUpdateAnnotationsParams
- func NewBulkCreateOrUpdateAnnotationsParamsWithHTTPClient(client *http.Client) *BulkCreateOrUpdateAnnotationsParams
- func NewBulkCreateOrUpdateAnnotationsParamsWithTimeout(timeout time.Duration) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) SetBody(body []*models.ReportAnnotation)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetCommit(commit string)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetContext(ctx context.Context)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetHTTPClient(client *http.Client)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetRepoSlug(repoSlug string)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetReportID(reportID string)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetTimeout(timeout time.Duration)
- func (o *BulkCreateOrUpdateAnnotationsParams) SetUsername(username string)
- func (o *BulkCreateOrUpdateAnnotationsParams) WithBody(body []*models.ReportAnnotation) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithCommit(commit string) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithContext(ctx context.Context) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithHTTPClient(client *http.Client) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithRepoSlug(repoSlug string) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithReportID(reportID string) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithTimeout(timeout time.Duration) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WithUsername(username string) *BulkCreateOrUpdateAnnotationsParams
- func (o *BulkCreateOrUpdateAnnotationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BulkCreateOrUpdateAnnotationsReader
- type Client
- func (a *Client) BulkCreateOrUpdateAnnotations(params *BulkCreateOrUpdateAnnotationsParams) (*BulkCreateOrUpdateAnnotationsOK, error)
- func (a *Client) CreateOrUpdateAnnotation(params *CreateOrUpdateAnnotationParams) (*CreateOrUpdateAnnotationOK, error)
- func (a *Client) CreateOrUpdateReport(params *CreateOrUpdateReportParams) (*CreateOrUpdateReportOK, error)
- func (a *Client) DeleteAnnotation(params *DeleteAnnotationParams) (*DeleteAnnotationNoContent, error)
- func (a *Client) DeleteReport(params *DeleteReportParams) (*DeleteReportNoContent, error)
- func (a *Client) GetAnnotation(params *GetAnnotationParams) (*GetAnnotationOK, error)
- func (a *Client) GetAnnotationsForReport(params *GetAnnotationsForReportParams) (*GetAnnotationsForReportOK, error)
- func (a *Client) GetReport(params *GetReportParams) (*GetReportOK, error)
- func (a *Client) GetReportsForCommit(params *GetReportsForCommitParams) (*GetReportsForCommitOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateOrUpdateAnnotationBadRequest
- type CreateOrUpdateAnnotationOK
- type CreateOrUpdateAnnotationParams
- func NewCreateOrUpdateAnnotationParams() *CreateOrUpdateAnnotationParams
- func NewCreateOrUpdateAnnotationParamsWithContext(ctx context.Context) *CreateOrUpdateAnnotationParams
- func NewCreateOrUpdateAnnotationParamsWithHTTPClient(client *http.Client) *CreateOrUpdateAnnotationParams
- func NewCreateOrUpdateAnnotationParamsWithTimeout(timeout time.Duration) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) SetAnnotationID(annotationID string)
- func (o *CreateOrUpdateAnnotationParams) SetBody(body *models.ReportAnnotation)
- func (o *CreateOrUpdateAnnotationParams) SetCommit(commit string)
- func (o *CreateOrUpdateAnnotationParams) SetContext(ctx context.Context)
- func (o *CreateOrUpdateAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *CreateOrUpdateAnnotationParams) SetRepoSlug(repoSlug string)
- func (o *CreateOrUpdateAnnotationParams) SetReportID(reportID string)
- func (o *CreateOrUpdateAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *CreateOrUpdateAnnotationParams) SetUsername(username string)
- func (o *CreateOrUpdateAnnotationParams) WithAnnotationID(annotationID string) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithBody(body *models.ReportAnnotation) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithCommit(commit string) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithContext(ctx context.Context) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithHTTPClient(client *http.Client) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithRepoSlug(repoSlug string) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithReportID(reportID string) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithTimeout(timeout time.Duration) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WithUsername(username string) *CreateOrUpdateAnnotationParams
- func (o *CreateOrUpdateAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateOrUpdateAnnotationReader
- type CreateOrUpdateReportBadRequest
- type CreateOrUpdateReportOK
- type CreateOrUpdateReportParams
- func NewCreateOrUpdateReportParams() *CreateOrUpdateReportParams
- func NewCreateOrUpdateReportParamsWithContext(ctx context.Context) *CreateOrUpdateReportParams
- func NewCreateOrUpdateReportParamsWithHTTPClient(client *http.Client) *CreateOrUpdateReportParams
- func NewCreateOrUpdateReportParamsWithTimeout(timeout time.Duration) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) SetBody(body *models.Report)
- func (o *CreateOrUpdateReportParams) SetCommit(commit string)
- func (o *CreateOrUpdateReportParams) SetContext(ctx context.Context)
- func (o *CreateOrUpdateReportParams) SetHTTPClient(client *http.Client)
- func (o *CreateOrUpdateReportParams) SetRepoSlug(repoSlug string)
- func (o *CreateOrUpdateReportParams) SetReportID(reportID string)
- func (o *CreateOrUpdateReportParams) SetTimeout(timeout time.Duration)
- func (o *CreateOrUpdateReportParams) SetUsername(username string)
- func (o *CreateOrUpdateReportParams) WithBody(body *models.Report) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithCommit(commit string) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithContext(ctx context.Context) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithHTTPClient(client *http.Client) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithRepoSlug(repoSlug string) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithReportID(reportID string) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithTimeout(timeout time.Duration) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WithUsername(username string) *CreateOrUpdateReportParams
- func (o *CreateOrUpdateReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateOrUpdateReportReader
- type DeleteAnnotationNoContent
- type DeleteAnnotationParams
- func NewDeleteAnnotationParams() *DeleteAnnotationParams
- func NewDeleteAnnotationParamsWithContext(ctx context.Context) *DeleteAnnotationParams
- func NewDeleteAnnotationParamsWithHTTPClient(client *http.Client) *DeleteAnnotationParams
- func NewDeleteAnnotationParamsWithTimeout(timeout time.Duration) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) SetAnnotationID(annotationID string)
- func (o *DeleteAnnotationParams) SetCommit(commit string)
- func (o *DeleteAnnotationParams) SetContext(ctx context.Context)
- func (o *DeleteAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAnnotationParams) SetRepoSlug(repoSlug string)
- func (o *DeleteAnnotationParams) SetReportID(reportID string)
- func (o *DeleteAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAnnotationParams) SetUsername(username string)
- func (o *DeleteAnnotationParams) WithAnnotationID(annotationID string) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithCommit(commit string) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithContext(ctx context.Context) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithHTTPClient(client *http.Client) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithRepoSlug(repoSlug string) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithReportID(reportID string) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithTimeout(timeout time.Duration) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WithUsername(username string) *DeleteAnnotationParams
- func (o *DeleteAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAnnotationReader
- type DeleteReportNoContent
- type DeleteReportParams
- func (o *DeleteReportParams) SetCommit(commit string)
- func (o *DeleteReportParams) SetContext(ctx context.Context)
- func (o *DeleteReportParams) SetHTTPClient(client *http.Client)
- func (o *DeleteReportParams) SetRepoSlug(repoSlug string)
- func (o *DeleteReportParams) SetReportID(reportID string)
- func (o *DeleteReportParams) SetTimeout(timeout time.Duration)
- func (o *DeleteReportParams) SetUsername(username string)
- func (o *DeleteReportParams) WithCommit(commit string) *DeleteReportParams
- func (o *DeleteReportParams) WithContext(ctx context.Context) *DeleteReportParams
- func (o *DeleteReportParams) WithHTTPClient(client *http.Client) *DeleteReportParams
- func (o *DeleteReportParams) WithRepoSlug(repoSlug string) *DeleteReportParams
- func (o *DeleteReportParams) WithReportID(reportID string) *DeleteReportParams
- func (o *DeleteReportParams) WithTimeout(timeout time.Duration) *DeleteReportParams
- func (o *DeleteReportParams) WithUsername(username string) *DeleteReportParams
- func (o *DeleteReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteReportReader
- type GetAnnotationNotFound
- type GetAnnotationOK
- type GetAnnotationParams
- func (o *GetAnnotationParams) SetAnnotationID(annotationID string)
- func (o *GetAnnotationParams) SetCommit(commit string)
- func (o *GetAnnotationParams) SetContext(ctx context.Context)
- func (o *GetAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *GetAnnotationParams) SetRepoSlug(repoSlug string)
- func (o *GetAnnotationParams) SetReportID(reportID string)
- func (o *GetAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *GetAnnotationParams) SetUsername(username string)
- func (o *GetAnnotationParams) WithAnnotationID(annotationID string) *GetAnnotationParams
- func (o *GetAnnotationParams) WithCommit(commit string) *GetAnnotationParams
- func (o *GetAnnotationParams) WithContext(ctx context.Context) *GetAnnotationParams
- func (o *GetAnnotationParams) WithHTTPClient(client *http.Client) *GetAnnotationParams
- func (o *GetAnnotationParams) WithRepoSlug(repoSlug string) *GetAnnotationParams
- func (o *GetAnnotationParams) WithReportID(reportID string) *GetAnnotationParams
- func (o *GetAnnotationParams) WithTimeout(timeout time.Duration) *GetAnnotationParams
- func (o *GetAnnotationParams) WithUsername(username string) *GetAnnotationParams
- func (o *GetAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnnotationReader
- type GetAnnotationsForReportOK
- type GetAnnotationsForReportParams
- func NewGetAnnotationsForReportParams() *GetAnnotationsForReportParams
- func NewGetAnnotationsForReportParamsWithContext(ctx context.Context) *GetAnnotationsForReportParams
- func NewGetAnnotationsForReportParamsWithHTTPClient(client *http.Client) *GetAnnotationsForReportParams
- func NewGetAnnotationsForReportParamsWithTimeout(timeout time.Duration) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) SetCommit(commit string)
- func (o *GetAnnotationsForReportParams) SetContext(ctx context.Context)
- func (o *GetAnnotationsForReportParams) SetHTTPClient(client *http.Client)
- func (o *GetAnnotationsForReportParams) SetRepoSlug(repoSlug string)
- func (o *GetAnnotationsForReportParams) SetReportID(reportID string)
- func (o *GetAnnotationsForReportParams) SetTimeout(timeout time.Duration)
- func (o *GetAnnotationsForReportParams) SetUsername(username string)
- func (o *GetAnnotationsForReportParams) WithCommit(commit string) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithContext(ctx context.Context) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithHTTPClient(client *http.Client) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithRepoSlug(repoSlug string) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithReportID(reportID string) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithTimeout(timeout time.Duration) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WithUsername(username string) *GetAnnotationsForReportParams
- func (o *GetAnnotationsForReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnnotationsForReportReader
- type GetReportNotFound
- type GetReportOK
- type GetReportParams
- func (o *GetReportParams) SetCommit(commit string)
- func (o *GetReportParams) SetContext(ctx context.Context)
- func (o *GetReportParams) SetHTTPClient(client *http.Client)
- func (o *GetReportParams) SetRepoSlug(repoSlug string)
- func (o *GetReportParams) SetReportID(reportID string)
- func (o *GetReportParams) SetTimeout(timeout time.Duration)
- func (o *GetReportParams) SetUsername(username string)
- func (o *GetReportParams) WithCommit(commit string) *GetReportParams
- func (o *GetReportParams) WithContext(ctx context.Context) *GetReportParams
- func (o *GetReportParams) WithHTTPClient(client *http.Client) *GetReportParams
- func (o *GetReportParams) WithRepoSlug(repoSlug string) *GetReportParams
- func (o *GetReportParams) WithReportID(reportID string) *GetReportParams
- func (o *GetReportParams) WithTimeout(timeout time.Duration) *GetReportParams
- func (o *GetReportParams) WithUsername(username string) *GetReportParams
- func (o *GetReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReportReader
- type GetReportsForCommitOK
- type GetReportsForCommitParams
- func NewGetReportsForCommitParams() *GetReportsForCommitParams
- func NewGetReportsForCommitParamsWithContext(ctx context.Context) *GetReportsForCommitParams
- func NewGetReportsForCommitParamsWithHTTPClient(client *http.Client) *GetReportsForCommitParams
- func NewGetReportsForCommitParamsWithTimeout(timeout time.Duration) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) SetCommit(commit string)
- func (o *GetReportsForCommitParams) SetContext(ctx context.Context)
- func (o *GetReportsForCommitParams) SetHTTPClient(client *http.Client)
- func (o *GetReportsForCommitParams) SetRepoSlug(repoSlug string)
- func (o *GetReportsForCommitParams) SetTimeout(timeout time.Duration)
- func (o *GetReportsForCommitParams) SetUsername(username string)
- func (o *GetReportsForCommitParams) WithCommit(commit string) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WithContext(ctx context.Context) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WithHTTPClient(client *http.Client) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WithRepoSlug(repoSlug string) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WithTimeout(timeout time.Duration) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WithUsername(username string) *GetReportsForCommitParams
- func (o *GetReportsForCommitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReportsForCommitReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkCreateOrUpdateAnnotationsOK ¶
type BulkCreateOrUpdateAnnotationsOK struct {
Payload []*models.ReportAnnotation
}
BulkCreateOrUpdateAnnotationsOK handles this case with default header values.
OK
func NewBulkCreateOrUpdateAnnotationsOK ¶
func NewBulkCreateOrUpdateAnnotationsOK() *BulkCreateOrUpdateAnnotationsOK
NewBulkCreateOrUpdateAnnotationsOK creates a BulkCreateOrUpdateAnnotationsOK with default headers values
func (*BulkCreateOrUpdateAnnotationsOK) Error ¶
func (o *BulkCreateOrUpdateAnnotationsOK) Error() string
func (*BulkCreateOrUpdateAnnotationsOK) GetPayload ¶
func (o *BulkCreateOrUpdateAnnotationsOK) GetPayload() []*models.ReportAnnotation
type BulkCreateOrUpdateAnnotationsParams ¶
type BulkCreateOrUpdateAnnotationsParams struct {
/*Body
The annotations to create or update
*/
Body []*models.ReportAnnotation
/*Commit
The commit for which to retrieve reports.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Uuid or external-if of the report for which to get annotations for.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
BulkCreateOrUpdateAnnotationsParams contains all the parameters to send to the API endpoint for the bulk create or update annotations operation typically these are written to a http.Request
func NewBulkCreateOrUpdateAnnotationsParams ¶
func NewBulkCreateOrUpdateAnnotationsParams() *BulkCreateOrUpdateAnnotationsParams
NewBulkCreateOrUpdateAnnotationsParams creates a new BulkCreateOrUpdateAnnotationsParams object with the default values initialized.
func NewBulkCreateOrUpdateAnnotationsParamsWithContext ¶
func NewBulkCreateOrUpdateAnnotationsParamsWithContext(ctx context.Context) *BulkCreateOrUpdateAnnotationsParams
NewBulkCreateOrUpdateAnnotationsParamsWithContext creates a new BulkCreateOrUpdateAnnotationsParams object with the default values initialized, and the ability to set a context for a request
func NewBulkCreateOrUpdateAnnotationsParamsWithHTTPClient ¶
func NewBulkCreateOrUpdateAnnotationsParamsWithHTTPClient(client *http.Client) *BulkCreateOrUpdateAnnotationsParams
NewBulkCreateOrUpdateAnnotationsParamsWithHTTPClient creates a new BulkCreateOrUpdateAnnotationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBulkCreateOrUpdateAnnotationsParamsWithTimeout ¶
func NewBulkCreateOrUpdateAnnotationsParamsWithTimeout(timeout time.Duration) *BulkCreateOrUpdateAnnotationsParams
NewBulkCreateOrUpdateAnnotationsParamsWithTimeout creates a new BulkCreateOrUpdateAnnotationsParams object with the default values initialized, and the ability to set a timeout on a request
func (*BulkCreateOrUpdateAnnotationsParams) SetBody ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetBody(body []*models.ReportAnnotation)
SetBody adds the body to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetCommit ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetCommit(commit string)
SetCommit adds the commit to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetContext ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetContext(ctx context.Context)
SetContext adds the context to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetHTTPClient ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetRepoSlug ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetReportID ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetReportID(reportID string)
SetReportID adds the reportId to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetTimeout ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) SetUsername ¶
func (o *BulkCreateOrUpdateAnnotationsParams) SetUsername(username string)
SetUsername adds the username to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithBody ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithBody(body []*models.ReportAnnotation) *BulkCreateOrUpdateAnnotationsParams
WithBody adds the body to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithCommit ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithCommit(commit string) *BulkCreateOrUpdateAnnotationsParams
WithCommit adds the commit to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithContext ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithContext(ctx context.Context) *BulkCreateOrUpdateAnnotationsParams
WithContext adds the context to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithHTTPClient ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithHTTPClient(client *http.Client) *BulkCreateOrUpdateAnnotationsParams
WithHTTPClient adds the HTTPClient to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithRepoSlug ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithRepoSlug(repoSlug string) *BulkCreateOrUpdateAnnotationsParams
WithRepoSlug adds the repoSlug to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithReportID ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithReportID(reportID string) *BulkCreateOrUpdateAnnotationsParams
WithReportID adds the reportID to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithTimeout ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithTimeout(timeout time.Duration) *BulkCreateOrUpdateAnnotationsParams
WithTimeout adds the timeout to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WithUsername ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WithUsername(username string) *BulkCreateOrUpdateAnnotationsParams
WithUsername adds the username to the bulk create or update annotations params
func (*BulkCreateOrUpdateAnnotationsParams) WriteToRequest ¶
func (o *BulkCreateOrUpdateAnnotationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BulkCreateOrUpdateAnnotationsReader ¶
type BulkCreateOrUpdateAnnotationsReader struct {
// contains filtered or unexported fields
}
BulkCreateOrUpdateAnnotationsReader is a Reader for the BulkCreateOrUpdateAnnotations structure.
func (*BulkCreateOrUpdateAnnotationsReader) ReadResponse ¶
func (o *BulkCreateOrUpdateAnnotationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for reports API
func (*Client) BulkCreateOrUpdateAnnotations ¶
func (a *Client) BulkCreateOrUpdateAnnotations(params *BulkCreateOrUpdateAnnotationsParams) (*BulkCreateOrUpdateAnnotationsOK, error)
BulkCreateOrUpdateAnnotations Bulk upload of annotations.
Annotations are individual findings that have been identified as part of a report, for example, a line of code that represents a vulnerability. These annotations can be attached to a specific file and even a specific line in that file, however, that is optional. Annotations are not mandatory and a report can contain up to 1000 annotations.
Add the annotations you want to upload as objects in a JSON array and make sure each annotation has the external_id field set to a unique value. If you want to use an existing id from your own system, we recommend prefixing it with your system's name to avoid collisions, for example, mySystem-annotation001. The external id can later be used to identify the report as an alternative to the generated [UUID](https://developer.atlassian.com/bitbucket/api/2/reference/meta/uri-uuid#uuid). You can upload up to 100 annotations per POST request.
### Sample cURL request: ``` curl --location 'https://api.bitbucket.org/2.0/repositories/<username>/<reposity-name>/commit/<commit-hash>/reports/mysystem-001/annotations' \ --header 'Content-Type: application/json' \ --data-raw '[
{
"external_id": "mysystem-annotation001",
"title": "Security scan report",
"annotation_type": "VULNERABILITY",
"summary": "This line represents a security threat.",
"severity": "HIGH",
"path": "my-service/src/main/java/com/myCompany/mysystem/logic/Main.java",
"line": 42
},
{
"external_id": "mySystem-annotation002",
"title": "Bug report",
"annotation_type": "BUG",
"result": "FAILED",
"summary": "This line might introduce a bug.",
"severity": "MEDIUM",
"path": "my-service/src/main/java/com/myCompany/mysystem/logic/Helper.java",
"line": 13
}
]' ```
### Possible field values: annotation_type: VULNERABILITY, CODE_SMELL, BUG result: PASSED, FAILED, IGNORED, SKIPPED severity: HIGH, MEDIUM, LOW, CRITICAL
Please refer to the [Code Insights documentation](https://confluence.atlassian.com/bitbucket/code-insights-994316785.html) for more information.
func (*Client) CreateOrUpdateAnnotation ¶
func (a *Client) CreateOrUpdateAnnotation(params *CreateOrUpdateAnnotationParams) (*CreateOrUpdateAnnotationOK, error)
CreateOrUpdateAnnotation Creates or updates an individual annotation for the specified report.
Annotations are individual findings that have been identified as part of a report, for example, a line of code that represents a vulnerability. These annotations can be attached to a specific file and even a specific line in that file, however, that is optional. Annotations are not mandatory and a report can contain up to 1000 annotations.
Just as reports, annotation needs to be uploaded with a unique ID that can later be used to identify the report as an alternative to the generated [UUID](https://developer.atlassian.com/bitbucket/api/2/reference/meta/uri-uuid#uuid). If you want to use an existing id from your own system, we recommend prefixing it with your system's name to avoid collisions, for example, mySystem-annotation001.
### Sample cURL request: ``` curl --request PUT 'https://api.bitbucket.org/2.0/repositories/<username>/<reposity-name>/commit/<commit-hash>/reports/mySystem-001/annotations/mysystem-annotation001' \ --header 'Content-Type: application/json' \
--data-raw '{
"title": "Security scan report",
"annotation_type": "VULNERABILITY",
"summary": "This line represents a security thread.",
"severity": "HIGH",
"path": "my-service/src/main/java/com/myCompany/mysystem/logic/Main.java",
"line": 42
}'
```
### Possible field values: annotation_type: VULNERABILITY, CODE_SMELL, BUG result: PASSED, FAILED, IGNORED, SKIPPED severity: HIGH, MEDIUM, LOW, CRITICAL
Please refer to the [Code Insights documentation](https://confluence.atlassian.com/bitbucket/code-insights-994316785.html) for more information.
func (*Client) CreateOrUpdateReport ¶
func (a *Client) CreateOrUpdateReport(params *CreateOrUpdateReportParams) (*CreateOrUpdateReportOK, error)
CreateOrUpdateReport Creates or updates a report for the specified commit.
To upload a report, make sure to generate an ID that is unique across all reports for that commit. If you want to use an existing id from your own system, we recommend prefixing it with your system's name to avoid collisions, for example, mySystem-001.
### Sample cURL request: ``` curl --request PUT 'https://api.bitbucket.org/2.0/repositories/<username>/<reposity-name>/commit/<commit-hash>/reports/mysystem-001' \ --header 'Content-Type: application/json' \
--data-raw '{
"title": "Security scan report",
"details": "This pull request introduces 10 new dependency vulnerabilities.",
"report_type": "SECURITY",
"reporter": "mySystem",
"link": "http://www.mysystem.com/reports/001",
"result": "FAILED",
"data": [
{
"title": "Duration (seconds)",
"type": "DURATION",
"value": 14
},
{
"title": "Safe to merge?",
"type": "BOOLEAN",
"value": false
}
]
}'
```
### Possible field values: report_type: SECURITY, COVERAGE, TEST, BUG result: PASSED, FAILED, PENDING data.type: BOOLEAN, DATE, DURATION, LINK, NUMBER, PERCENTAGE, TEXT
Please refer to the [Code Insights documentation](https://confluence.atlassian.com/bitbucket/code-insights-994316785.html) for more information.
func (*Client) DeleteAnnotation ¶
func (a *Client) DeleteAnnotation(params *DeleteAnnotationParams) (*DeleteAnnotationNoContent, error)
DeleteAnnotation Deletes a single Annotation matching the provided ID.
func (*Client) DeleteReport ¶
func (a *Client) DeleteReport(params *DeleteReportParams) (*DeleteReportNoContent, error)
DeleteReport Deletes a single Report matching the provided ID.
func (*Client) GetAnnotation ¶
func (a *Client) GetAnnotation(params *GetAnnotationParams) (*GetAnnotationOK, error)
GetAnnotation Returns a single Annotation matching the provided ID.
func (*Client) GetAnnotationsForReport ¶
func (a *Client) GetAnnotationsForReport(params *GetAnnotationsForReportParams) (*GetAnnotationsForReportOK, error)
GetAnnotationsForReport Returns a paginated list of Annotations for a specified report.
func (*Client) GetReport ¶
func (a *Client) GetReport(params *GetReportParams) (*GetReportOK, error)
GetReport Returns a single Report matching the provided ID.
func (*Client) GetReportsForCommit ¶
func (a *Client) GetReportsForCommit(params *GetReportsForCommitParams) (*GetReportsForCommitOK, error)
GetReportsForCommit Returns a paginated list of Reports linked to this commit.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
BulkCreateOrUpdateAnnotations(params *BulkCreateOrUpdateAnnotationsParams) (*BulkCreateOrUpdateAnnotationsOK, error)
CreateOrUpdateAnnotation(params *CreateOrUpdateAnnotationParams) (*CreateOrUpdateAnnotationOK, error)
CreateOrUpdateReport(params *CreateOrUpdateReportParams) (*CreateOrUpdateReportOK, error)
DeleteAnnotation(params *DeleteAnnotationParams) (*DeleteAnnotationNoContent, error)
DeleteReport(params *DeleteReportParams) (*DeleteReportNoContent, error)
GetAnnotation(params *GetAnnotationParams) (*GetAnnotationOK, error)
GetAnnotationsForReport(params *GetAnnotationsForReportParams) (*GetAnnotationsForReportOK, error)
GetReport(params *GetReportParams) (*GetReportOK, error)
GetReportsForCommit(params *GetReportsForCommitParams) (*GetReportsForCommitOK, 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 reports API client.
type CreateOrUpdateAnnotationBadRequest ¶
CreateOrUpdateAnnotationBadRequest handles this case with default header values.
The provided Annotation object is malformed or incomplete.
func NewCreateOrUpdateAnnotationBadRequest ¶
func NewCreateOrUpdateAnnotationBadRequest() *CreateOrUpdateAnnotationBadRequest
NewCreateOrUpdateAnnotationBadRequest creates a CreateOrUpdateAnnotationBadRequest with default headers values
func (*CreateOrUpdateAnnotationBadRequest) Error ¶
func (o *CreateOrUpdateAnnotationBadRequest) Error() string
func (*CreateOrUpdateAnnotationBadRequest) GetPayload ¶
func (o *CreateOrUpdateAnnotationBadRequest) GetPayload() *models.Error
type CreateOrUpdateAnnotationOK ¶
type CreateOrUpdateAnnotationOK struct {
Payload *models.ReportAnnotation
}
CreateOrUpdateAnnotationOK handles this case with default header values.
OK
func NewCreateOrUpdateAnnotationOK ¶
func NewCreateOrUpdateAnnotationOK() *CreateOrUpdateAnnotationOK
NewCreateOrUpdateAnnotationOK creates a CreateOrUpdateAnnotationOK with default headers values
func (*CreateOrUpdateAnnotationOK) Error ¶
func (o *CreateOrUpdateAnnotationOK) Error() string
func (*CreateOrUpdateAnnotationOK) GetPayload ¶
func (o *CreateOrUpdateAnnotationOK) GetPayload() *models.ReportAnnotation
type CreateOrUpdateAnnotationParams ¶
type CreateOrUpdateAnnotationParams struct {
/*Body
The annotation to create or update
*/
Body *models.ReportAnnotation
/*AnnotationID
Either the uuid or external-id of the annotation.
*/
AnnotationID string
/*Commit
The commit the report belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the report.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateOrUpdateAnnotationParams contains all the parameters to send to the API endpoint for the create or update annotation operation typically these are written to a http.Request
func NewCreateOrUpdateAnnotationParams ¶
func NewCreateOrUpdateAnnotationParams() *CreateOrUpdateAnnotationParams
NewCreateOrUpdateAnnotationParams creates a new CreateOrUpdateAnnotationParams object with the default values initialized.
func NewCreateOrUpdateAnnotationParamsWithContext ¶
func NewCreateOrUpdateAnnotationParamsWithContext(ctx context.Context) *CreateOrUpdateAnnotationParams
NewCreateOrUpdateAnnotationParamsWithContext creates a new CreateOrUpdateAnnotationParams object with the default values initialized, and the ability to set a context for a request
func NewCreateOrUpdateAnnotationParamsWithHTTPClient ¶
func NewCreateOrUpdateAnnotationParamsWithHTTPClient(client *http.Client) *CreateOrUpdateAnnotationParams
NewCreateOrUpdateAnnotationParamsWithHTTPClient creates a new CreateOrUpdateAnnotationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateOrUpdateAnnotationParamsWithTimeout ¶
func NewCreateOrUpdateAnnotationParamsWithTimeout(timeout time.Duration) *CreateOrUpdateAnnotationParams
NewCreateOrUpdateAnnotationParamsWithTimeout creates a new CreateOrUpdateAnnotationParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateOrUpdateAnnotationParams) SetAnnotationID ¶
func (o *CreateOrUpdateAnnotationParams) SetAnnotationID(annotationID string)
SetAnnotationID adds the annotationId to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetBody ¶
func (o *CreateOrUpdateAnnotationParams) SetBody(body *models.ReportAnnotation)
SetBody adds the body to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetCommit ¶
func (o *CreateOrUpdateAnnotationParams) SetCommit(commit string)
SetCommit adds the commit to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetContext ¶
func (o *CreateOrUpdateAnnotationParams) SetContext(ctx context.Context)
SetContext adds the context to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetHTTPClient ¶
func (o *CreateOrUpdateAnnotationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetRepoSlug ¶
func (o *CreateOrUpdateAnnotationParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetReportID ¶
func (o *CreateOrUpdateAnnotationParams) SetReportID(reportID string)
SetReportID adds the reportId to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetTimeout ¶
func (o *CreateOrUpdateAnnotationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) SetUsername ¶
func (o *CreateOrUpdateAnnotationParams) SetUsername(username string)
SetUsername adds the username to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithAnnotationID ¶
func (o *CreateOrUpdateAnnotationParams) WithAnnotationID(annotationID string) *CreateOrUpdateAnnotationParams
WithAnnotationID adds the annotationID to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithBody ¶
func (o *CreateOrUpdateAnnotationParams) WithBody(body *models.ReportAnnotation) *CreateOrUpdateAnnotationParams
WithBody adds the body to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithCommit ¶
func (o *CreateOrUpdateAnnotationParams) WithCommit(commit string) *CreateOrUpdateAnnotationParams
WithCommit adds the commit to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithContext ¶
func (o *CreateOrUpdateAnnotationParams) WithContext(ctx context.Context) *CreateOrUpdateAnnotationParams
WithContext adds the context to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithHTTPClient ¶
func (o *CreateOrUpdateAnnotationParams) WithHTTPClient(client *http.Client) *CreateOrUpdateAnnotationParams
WithHTTPClient adds the HTTPClient to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithRepoSlug ¶
func (o *CreateOrUpdateAnnotationParams) WithRepoSlug(repoSlug string) *CreateOrUpdateAnnotationParams
WithRepoSlug adds the repoSlug to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithReportID ¶
func (o *CreateOrUpdateAnnotationParams) WithReportID(reportID string) *CreateOrUpdateAnnotationParams
WithReportID adds the reportID to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithTimeout ¶
func (o *CreateOrUpdateAnnotationParams) WithTimeout(timeout time.Duration) *CreateOrUpdateAnnotationParams
WithTimeout adds the timeout to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WithUsername ¶
func (o *CreateOrUpdateAnnotationParams) WithUsername(username string) *CreateOrUpdateAnnotationParams
WithUsername adds the username to the create or update annotation params
func (*CreateOrUpdateAnnotationParams) WriteToRequest ¶
func (o *CreateOrUpdateAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateOrUpdateAnnotationReader ¶
type CreateOrUpdateAnnotationReader struct {
// contains filtered or unexported fields
}
CreateOrUpdateAnnotationReader is a Reader for the CreateOrUpdateAnnotation structure.
func (*CreateOrUpdateAnnotationReader) ReadResponse ¶
func (o *CreateOrUpdateAnnotationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateOrUpdateReportBadRequest ¶
CreateOrUpdateReportBadRequest handles this case with default header values.
The provided Report object is malformed or incomplete.
func NewCreateOrUpdateReportBadRequest ¶
func NewCreateOrUpdateReportBadRequest() *CreateOrUpdateReportBadRequest
NewCreateOrUpdateReportBadRequest creates a CreateOrUpdateReportBadRequest with default headers values
func (*CreateOrUpdateReportBadRequest) Error ¶
func (o *CreateOrUpdateReportBadRequest) Error() string
func (*CreateOrUpdateReportBadRequest) GetPayload ¶
func (o *CreateOrUpdateReportBadRequest) GetPayload() *models.Error
type CreateOrUpdateReportOK ¶
CreateOrUpdateReportOK handles this case with default header values.
OK
func NewCreateOrUpdateReportOK ¶
func NewCreateOrUpdateReportOK() *CreateOrUpdateReportOK
NewCreateOrUpdateReportOK creates a CreateOrUpdateReportOK with default headers values
func (*CreateOrUpdateReportOK) Error ¶
func (o *CreateOrUpdateReportOK) Error() string
func (*CreateOrUpdateReportOK) GetPayload ¶
func (o *CreateOrUpdateReportOK) GetPayload() *models.Report
type CreateOrUpdateReportParams ¶
type CreateOrUpdateReportParams struct {
/*Body
The report to create or update
*/
Body *models.Report
/*Commit
The commit the report belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the report.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateOrUpdateReportParams contains all the parameters to send to the API endpoint for the create or update report operation typically these are written to a http.Request
func NewCreateOrUpdateReportParams ¶
func NewCreateOrUpdateReportParams() *CreateOrUpdateReportParams
NewCreateOrUpdateReportParams creates a new CreateOrUpdateReportParams object with the default values initialized.
func NewCreateOrUpdateReportParamsWithContext ¶
func NewCreateOrUpdateReportParamsWithContext(ctx context.Context) *CreateOrUpdateReportParams
NewCreateOrUpdateReportParamsWithContext creates a new CreateOrUpdateReportParams object with the default values initialized, and the ability to set a context for a request
func NewCreateOrUpdateReportParamsWithHTTPClient ¶
func NewCreateOrUpdateReportParamsWithHTTPClient(client *http.Client) *CreateOrUpdateReportParams
NewCreateOrUpdateReportParamsWithHTTPClient creates a new CreateOrUpdateReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateOrUpdateReportParamsWithTimeout ¶
func NewCreateOrUpdateReportParamsWithTimeout(timeout time.Duration) *CreateOrUpdateReportParams
NewCreateOrUpdateReportParamsWithTimeout creates a new CreateOrUpdateReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateOrUpdateReportParams) SetBody ¶
func (o *CreateOrUpdateReportParams) SetBody(body *models.Report)
SetBody adds the body to the create or update report params
func (*CreateOrUpdateReportParams) SetCommit ¶
func (o *CreateOrUpdateReportParams) SetCommit(commit string)
SetCommit adds the commit to the create or update report params
func (*CreateOrUpdateReportParams) SetContext ¶
func (o *CreateOrUpdateReportParams) SetContext(ctx context.Context)
SetContext adds the context to the create or update report params
func (*CreateOrUpdateReportParams) SetHTTPClient ¶
func (o *CreateOrUpdateReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create or update report params
func (*CreateOrUpdateReportParams) SetRepoSlug ¶
func (o *CreateOrUpdateReportParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the create or update report params
func (*CreateOrUpdateReportParams) SetReportID ¶
func (o *CreateOrUpdateReportParams) SetReportID(reportID string)
SetReportID adds the reportId to the create or update report params
func (*CreateOrUpdateReportParams) SetTimeout ¶
func (o *CreateOrUpdateReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create or update report params
func (*CreateOrUpdateReportParams) SetUsername ¶
func (o *CreateOrUpdateReportParams) SetUsername(username string)
SetUsername adds the username to the create or update report params
func (*CreateOrUpdateReportParams) WithBody ¶
func (o *CreateOrUpdateReportParams) WithBody(body *models.Report) *CreateOrUpdateReportParams
WithBody adds the body to the create or update report params
func (*CreateOrUpdateReportParams) WithCommit ¶
func (o *CreateOrUpdateReportParams) WithCommit(commit string) *CreateOrUpdateReportParams
WithCommit adds the commit to the create or update report params
func (*CreateOrUpdateReportParams) WithContext ¶
func (o *CreateOrUpdateReportParams) WithContext(ctx context.Context) *CreateOrUpdateReportParams
WithContext adds the context to the create or update report params
func (*CreateOrUpdateReportParams) WithHTTPClient ¶
func (o *CreateOrUpdateReportParams) WithHTTPClient(client *http.Client) *CreateOrUpdateReportParams
WithHTTPClient adds the HTTPClient to the create or update report params
func (*CreateOrUpdateReportParams) WithRepoSlug ¶
func (o *CreateOrUpdateReportParams) WithRepoSlug(repoSlug string) *CreateOrUpdateReportParams
WithRepoSlug adds the repoSlug to the create or update report params
func (*CreateOrUpdateReportParams) WithReportID ¶
func (o *CreateOrUpdateReportParams) WithReportID(reportID string) *CreateOrUpdateReportParams
WithReportID adds the reportID to the create or update report params
func (*CreateOrUpdateReportParams) WithTimeout ¶
func (o *CreateOrUpdateReportParams) WithTimeout(timeout time.Duration) *CreateOrUpdateReportParams
WithTimeout adds the timeout to the create or update report params
func (*CreateOrUpdateReportParams) WithUsername ¶
func (o *CreateOrUpdateReportParams) WithUsername(username string) *CreateOrUpdateReportParams
WithUsername adds the username to the create or update report params
func (*CreateOrUpdateReportParams) WriteToRequest ¶
func (o *CreateOrUpdateReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateOrUpdateReportReader ¶
type CreateOrUpdateReportReader struct {
// contains filtered or unexported fields
}
CreateOrUpdateReportReader is a Reader for the CreateOrUpdateReport structure.
func (*CreateOrUpdateReportReader) ReadResponse ¶
func (o *CreateOrUpdateReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteAnnotationNoContent ¶
type DeleteAnnotationNoContent struct {
}
DeleteAnnotationNoContent handles this case with default header values.
No content
func NewDeleteAnnotationNoContent ¶
func NewDeleteAnnotationNoContent() *DeleteAnnotationNoContent
NewDeleteAnnotationNoContent creates a DeleteAnnotationNoContent with default headers values
func (*DeleteAnnotationNoContent) Error ¶
func (o *DeleteAnnotationNoContent) Error() string
type DeleteAnnotationParams ¶
type DeleteAnnotationParams struct {
/*AnnotationID
Either the uuid or external-id of the annotation.
*/
AnnotationID string
/*Commit
The commit the annotation belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the annotation.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteAnnotationParams contains all the parameters to send to the API endpoint for the delete annotation operation typically these are written to a http.Request
func NewDeleteAnnotationParams ¶
func NewDeleteAnnotationParams() *DeleteAnnotationParams
NewDeleteAnnotationParams creates a new DeleteAnnotationParams object with the default values initialized.
func NewDeleteAnnotationParamsWithContext ¶
func NewDeleteAnnotationParamsWithContext(ctx context.Context) *DeleteAnnotationParams
NewDeleteAnnotationParamsWithContext creates a new DeleteAnnotationParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteAnnotationParamsWithHTTPClient ¶
func NewDeleteAnnotationParamsWithHTTPClient(client *http.Client) *DeleteAnnotationParams
NewDeleteAnnotationParamsWithHTTPClient creates a new DeleteAnnotationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteAnnotationParamsWithTimeout ¶
func NewDeleteAnnotationParamsWithTimeout(timeout time.Duration) *DeleteAnnotationParams
NewDeleteAnnotationParamsWithTimeout creates a new DeleteAnnotationParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteAnnotationParams) SetAnnotationID ¶
func (o *DeleteAnnotationParams) SetAnnotationID(annotationID string)
SetAnnotationID adds the annotationId to the delete annotation params
func (*DeleteAnnotationParams) SetCommit ¶
func (o *DeleteAnnotationParams) SetCommit(commit string)
SetCommit adds the commit to the delete annotation params
func (*DeleteAnnotationParams) SetContext ¶
func (o *DeleteAnnotationParams) SetContext(ctx context.Context)
SetContext adds the context to the delete annotation params
func (*DeleteAnnotationParams) SetHTTPClient ¶
func (o *DeleteAnnotationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete annotation params
func (*DeleteAnnotationParams) SetRepoSlug ¶
func (o *DeleteAnnotationParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the delete annotation params
func (*DeleteAnnotationParams) SetReportID ¶
func (o *DeleteAnnotationParams) SetReportID(reportID string)
SetReportID adds the reportId to the delete annotation params
func (*DeleteAnnotationParams) SetTimeout ¶
func (o *DeleteAnnotationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete annotation params
func (*DeleteAnnotationParams) SetUsername ¶
func (o *DeleteAnnotationParams) SetUsername(username string)
SetUsername adds the username to the delete annotation params
func (*DeleteAnnotationParams) WithAnnotationID ¶
func (o *DeleteAnnotationParams) WithAnnotationID(annotationID string) *DeleteAnnotationParams
WithAnnotationID adds the annotationID to the delete annotation params
func (*DeleteAnnotationParams) WithCommit ¶
func (o *DeleteAnnotationParams) WithCommit(commit string) *DeleteAnnotationParams
WithCommit adds the commit to the delete annotation params
func (*DeleteAnnotationParams) WithContext ¶
func (o *DeleteAnnotationParams) WithContext(ctx context.Context) *DeleteAnnotationParams
WithContext adds the context to the delete annotation params
func (*DeleteAnnotationParams) WithHTTPClient ¶
func (o *DeleteAnnotationParams) WithHTTPClient(client *http.Client) *DeleteAnnotationParams
WithHTTPClient adds the HTTPClient to the delete annotation params
func (*DeleteAnnotationParams) WithRepoSlug ¶
func (o *DeleteAnnotationParams) WithRepoSlug(repoSlug string) *DeleteAnnotationParams
WithRepoSlug adds the repoSlug to the delete annotation params
func (*DeleteAnnotationParams) WithReportID ¶
func (o *DeleteAnnotationParams) WithReportID(reportID string) *DeleteAnnotationParams
WithReportID adds the reportID to the delete annotation params
func (*DeleteAnnotationParams) WithTimeout ¶
func (o *DeleteAnnotationParams) WithTimeout(timeout time.Duration) *DeleteAnnotationParams
WithTimeout adds the timeout to the delete annotation params
func (*DeleteAnnotationParams) WithUsername ¶
func (o *DeleteAnnotationParams) WithUsername(username string) *DeleteAnnotationParams
WithUsername adds the username to the delete annotation params
func (*DeleteAnnotationParams) WriteToRequest ¶
func (o *DeleteAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAnnotationReader ¶
type DeleteAnnotationReader struct {
// contains filtered or unexported fields
}
DeleteAnnotationReader is a Reader for the DeleteAnnotation structure.
func (*DeleteAnnotationReader) ReadResponse ¶
func (o *DeleteAnnotationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteReportNoContent ¶
type DeleteReportNoContent struct {
}
DeleteReportNoContent handles this case with default header values.
No content
func NewDeleteReportNoContent ¶
func NewDeleteReportNoContent() *DeleteReportNoContent
NewDeleteReportNoContent creates a DeleteReportNoContent with default headers values
func (*DeleteReportNoContent) Error ¶
func (o *DeleteReportNoContent) Error() string
type DeleteReportParams ¶
type DeleteReportParams struct {
/*Commit
The commit the report belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the report.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteReportParams contains all the parameters to send to the API endpoint for the delete report operation typically these are written to a http.Request
func NewDeleteReportParams ¶
func NewDeleteReportParams() *DeleteReportParams
NewDeleteReportParams creates a new DeleteReportParams object with the default values initialized.
func NewDeleteReportParamsWithContext ¶
func NewDeleteReportParamsWithContext(ctx context.Context) *DeleteReportParams
NewDeleteReportParamsWithContext creates a new DeleteReportParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteReportParamsWithHTTPClient ¶
func NewDeleteReportParamsWithHTTPClient(client *http.Client) *DeleteReportParams
NewDeleteReportParamsWithHTTPClient creates a new DeleteReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteReportParamsWithTimeout ¶
func NewDeleteReportParamsWithTimeout(timeout time.Duration) *DeleteReportParams
NewDeleteReportParamsWithTimeout creates a new DeleteReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteReportParams) SetCommit ¶
func (o *DeleteReportParams) SetCommit(commit string)
SetCommit adds the commit to the delete report params
func (*DeleteReportParams) SetContext ¶
func (o *DeleteReportParams) SetContext(ctx context.Context)
SetContext adds the context to the delete report params
func (*DeleteReportParams) SetHTTPClient ¶
func (o *DeleteReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete report params
func (*DeleteReportParams) SetRepoSlug ¶
func (o *DeleteReportParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the delete report params
func (*DeleteReportParams) SetReportID ¶
func (o *DeleteReportParams) SetReportID(reportID string)
SetReportID adds the reportId to the delete report params
func (*DeleteReportParams) SetTimeout ¶
func (o *DeleteReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete report params
func (*DeleteReportParams) SetUsername ¶
func (o *DeleteReportParams) SetUsername(username string)
SetUsername adds the username to the delete report params
func (*DeleteReportParams) WithCommit ¶
func (o *DeleteReportParams) WithCommit(commit string) *DeleteReportParams
WithCommit adds the commit to the delete report params
func (*DeleteReportParams) WithContext ¶
func (o *DeleteReportParams) WithContext(ctx context.Context) *DeleteReportParams
WithContext adds the context to the delete report params
func (*DeleteReportParams) WithHTTPClient ¶
func (o *DeleteReportParams) WithHTTPClient(client *http.Client) *DeleteReportParams
WithHTTPClient adds the HTTPClient to the delete report params
func (*DeleteReportParams) WithRepoSlug ¶
func (o *DeleteReportParams) WithRepoSlug(repoSlug string) *DeleteReportParams
WithRepoSlug adds the repoSlug to the delete report params
func (*DeleteReportParams) WithReportID ¶
func (o *DeleteReportParams) WithReportID(reportID string) *DeleteReportParams
WithReportID adds the reportID to the delete report params
func (*DeleteReportParams) WithTimeout ¶
func (o *DeleteReportParams) WithTimeout(timeout time.Duration) *DeleteReportParams
WithTimeout adds the timeout to the delete report params
func (*DeleteReportParams) WithUsername ¶
func (o *DeleteReportParams) WithUsername(username string) *DeleteReportParams
WithUsername adds the username to the delete report params
func (*DeleteReportParams) WriteToRequest ¶
func (o *DeleteReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteReportReader ¶
type DeleteReportReader struct {
// contains filtered or unexported fields
}
DeleteReportReader is a Reader for the DeleteReport structure.
func (*DeleteReportReader) ReadResponse ¶
func (o *DeleteReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAnnotationNotFound ¶
GetAnnotationNotFound handles this case with default header values.
The annotation with the given ID was not found.
func NewGetAnnotationNotFound ¶
func NewGetAnnotationNotFound() *GetAnnotationNotFound
NewGetAnnotationNotFound creates a GetAnnotationNotFound with default headers values
func (*GetAnnotationNotFound) Error ¶
func (o *GetAnnotationNotFound) Error() string
func (*GetAnnotationNotFound) GetPayload ¶
func (o *GetAnnotationNotFound) GetPayload() *models.Error
type GetAnnotationOK ¶
type GetAnnotationOK struct {
Payload *models.ReportAnnotation
}
GetAnnotationOK handles this case with default header values.
OK
func NewGetAnnotationOK ¶
func NewGetAnnotationOK() *GetAnnotationOK
NewGetAnnotationOK creates a GetAnnotationOK with default headers values
func (*GetAnnotationOK) Error ¶
func (o *GetAnnotationOK) Error() string
func (*GetAnnotationOK) GetPayload ¶
func (o *GetAnnotationOK) GetPayload() *models.ReportAnnotation
type GetAnnotationParams ¶
type GetAnnotationParams struct {
/*AnnotationID
Either the uuid or external-id of the annotation.
*/
AnnotationID string
/*Commit
The commit the report belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the report.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAnnotationParams contains all the parameters to send to the API endpoint for the get annotation operation typically these are written to a http.Request
func NewGetAnnotationParams ¶
func NewGetAnnotationParams() *GetAnnotationParams
NewGetAnnotationParams creates a new GetAnnotationParams object with the default values initialized.
func NewGetAnnotationParamsWithContext ¶
func NewGetAnnotationParamsWithContext(ctx context.Context) *GetAnnotationParams
NewGetAnnotationParamsWithContext creates a new GetAnnotationParams object with the default values initialized, and the ability to set a context for a request
func NewGetAnnotationParamsWithHTTPClient ¶
func NewGetAnnotationParamsWithHTTPClient(client *http.Client) *GetAnnotationParams
NewGetAnnotationParamsWithHTTPClient creates a new GetAnnotationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAnnotationParamsWithTimeout ¶
func NewGetAnnotationParamsWithTimeout(timeout time.Duration) *GetAnnotationParams
NewGetAnnotationParamsWithTimeout creates a new GetAnnotationParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAnnotationParams) SetAnnotationID ¶
func (o *GetAnnotationParams) SetAnnotationID(annotationID string)
SetAnnotationID adds the annotationId to the get annotation params
func (*GetAnnotationParams) SetCommit ¶
func (o *GetAnnotationParams) SetCommit(commit string)
SetCommit adds the commit to the get annotation params
func (*GetAnnotationParams) SetContext ¶
func (o *GetAnnotationParams) SetContext(ctx context.Context)
SetContext adds the context to the get annotation params
func (*GetAnnotationParams) SetHTTPClient ¶
func (o *GetAnnotationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get annotation params
func (*GetAnnotationParams) SetRepoSlug ¶
func (o *GetAnnotationParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get annotation params
func (*GetAnnotationParams) SetReportID ¶
func (o *GetAnnotationParams) SetReportID(reportID string)
SetReportID adds the reportId to the get annotation params
func (*GetAnnotationParams) SetTimeout ¶
func (o *GetAnnotationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get annotation params
func (*GetAnnotationParams) SetUsername ¶
func (o *GetAnnotationParams) SetUsername(username string)
SetUsername adds the username to the get annotation params
func (*GetAnnotationParams) WithAnnotationID ¶
func (o *GetAnnotationParams) WithAnnotationID(annotationID string) *GetAnnotationParams
WithAnnotationID adds the annotationID to the get annotation params
func (*GetAnnotationParams) WithCommit ¶
func (o *GetAnnotationParams) WithCommit(commit string) *GetAnnotationParams
WithCommit adds the commit to the get annotation params
func (*GetAnnotationParams) WithContext ¶
func (o *GetAnnotationParams) WithContext(ctx context.Context) *GetAnnotationParams
WithContext adds the context to the get annotation params
func (*GetAnnotationParams) WithHTTPClient ¶
func (o *GetAnnotationParams) WithHTTPClient(client *http.Client) *GetAnnotationParams
WithHTTPClient adds the HTTPClient to the get annotation params
func (*GetAnnotationParams) WithRepoSlug ¶
func (o *GetAnnotationParams) WithRepoSlug(repoSlug string) *GetAnnotationParams
WithRepoSlug adds the repoSlug to the get annotation params
func (*GetAnnotationParams) WithReportID ¶
func (o *GetAnnotationParams) WithReportID(reportID string) *GetAnnotationParams
WithReportID adds the reportID to the get annotation params
func (*GetAnnotationParams) WithTimeout ¶
func (o *GetAnnotationParams) WithTimeout(timeout time.Duration) *GetAnnotationParams
WithTimeout adds the timeout to the get annotation params
func (*GetAnnotationParams) WithUsername ¶
func (o *GetAnnotationParams) WithUsername(username string) *GetAnnotationParams
WithUsername adds the username to the get annotation params
func (*GetAnnotationParams) WriteToRequest ¶
func (o *GetAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAnnotationReader ¶
type GetAnnotationReader struct {
// contains filtered or unexported fields
}
GetAnnotationReader is a Reader for the GetAnnotation structure.
func (*GetAnnotationReader) ReadResponse ¶
func (o *GetAnnotationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAnnotationsForReportOK ¶
type GetAnnotationsForReportOK struct {
Payload *models.PaginatedAnnotations
}
GetAnnotationsForReportOK handles this case with default header values.
OK
func NewGetAnnotationsForReportOK ¶
func NewGetAnnotationsForReportOK() *GetAnnotationsForReportOK
NewGetAnnotationsForReportOK creates a GetAnnotationsForReportOK with default headers values
func (*GetAnnotationsForReportOK) Error ¶
func (o *GetAnnotationsForReportOK) Error() string
func (*GetAnnotationsForReportOK) GetPayload ¶
func (o *GetAnnotationsForReportOK) GetPayload() *models.PaginatedAnnotations
type GetAnnotationsForReportParams ¶
type GetAnnotationsForReportParams struct {
/*Commit
The commit for which to retrieve reports.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Uuid or external-if of the report for which to get annotations for.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAnnotationsForReportParams contains all the parameters to send to the API endpoint for the get annotations for report operation typically these are written to a http.Request
func NewGetAnnotationsForReportParams ¶
func NewGetAnnotationsForReportParams() *GetAnnotationsForReportParams
NewGetAnnotationsForReportParams creates a new GetAnnotationsForReportParams object with the default values initialized.
func NewGetAnnotationsForReportParamsWithContext ¶
func NewGetAnnotationsForReportParamsWithContext(ctx context.Context) *GetAnnotationsForReportParams
NewGetAnnotationsForReportParamsWithContext creates a new GetAnnotationsForReportParams object with the default values initialized, and the ability to set a context for a request
func NewGetAnnotationsForReportParamsWithHTTPClient ¶
func NewGetAnnotationsForReportParamsWithHTTPClient(client *http.Client) *GetAnnotationsForReportParams
NewGetAnnotationsForReportParamsWithHTTPClient creates a new GetAnnotationsForReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAnnotationsForReportParamsWithTimeout ¶
func NewGetAnnotationsForReportParamsWithTimeout(timeout time.Duration) *GetAnnotationsForReportParams
NewGetAnnotationsForReportParamsWithTimeout creates a new GetAnnotationsForReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAnnotationsForReportParams) SetCommit ¶
func (o *GetAnnotationsForReportParams) SetCommit(commit string)
SetCommit adds the commit to the get annotations for report params
func (*GetAnnotationsForReportParams) SetContext ¶
func (o *GetAnnotationsForReportParams) SetContext(ctx context.Context)
SetContext adds the context to the get annotations for report params
func (*GetAnnotationsForReportParams) SetHTTPClient ¶
func (o *GetAnnotationsForReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get annotations for report params
func (*GetAnnotationsForReportParams) SetRepoSlug ¶
func (o *GetAnnotationsForReportParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get annotations for report params
func (*GetAnnotationsForReportParams) SetReportID ¶
func (o *GetAnnotationsForReportParams) SetReportID(reportID string)
SetReportID adds the reportId to the get annotations for report params
func (*GetAnnotationsForReportParams) SetTimeout ¶
func (o *GetAnnotationsForReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get annotations for report params
func (*GetAnnotationsForReportParams) SetUsername ¶
func (o *GetAnnotationsForReportParams) SetUsername(username string)
SetUsername adds the username to the get annotations for report params
func (*GetAnnotationsForReportParams) WithCommit ¶
func (o *GetAnnotationsForReportParams) WithCommit(commit string) *GetAnnotationsForReportParams
WithCommit adds the commit to the get annotations for report params
func (*GetAnnotationsForReportParams) WithContext ¶
func (o *GetAnnotationsForReportParams) WithContext(ctx context.Context) *GetAnnotationsForReportParams
WithContext adds the context to the get annotations for report params
func (*GetAnnotationsForReportParams) WithHTTPClient ¶
func (o *GetAnnotationsForReportParams) WithHTTPClient(client *http.Client) *GetAnnotationsForReportParams
WithHTTPClient adds the HTTPClient to the get annotations for report params
func (*GetAnnotationsForReportParams) WithRepoSlug ¶
func (o *GetAnnotationsForReportParams) WithRepoSlug(repoSlug string) *GetAnnotationsForReportParams
WithRepoSlug adds the repoSlug to the get annotations for report params
func (*GetAnnotationsForReportParams) WithReportID ¶
func (o *GetAnnotationsForReportParams) WithReportID(reportID string) *GetAnnotationsForReportParams
WithReportID adds the reportID to the get annotations for report params
func (*GetAnnotationsForReportParams) WithTimeout ¶
func (o *GetAnnotationsForReportParams) WithTimeout(timeout time.Duration) *GetAnnotationsForReportParams
WithTimeout adds the timeout to the get annotations for report params
func (*GetAnnotationsForReportParams) WithUsername ¶
func (o *GetAnnotationsForReportParams) WithUsername(username string) *GetAnnotationsForReportParams
WithUsername adds the username to the get annotations for report params
func (*GetAnnotationsForReportParams) WriteToRequest ¶
func (o *GetAnnotationsForReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAnnotationsForReportReader ¶
type GetAnnotationsForReportReader struct {
// contains filtered or unexported fields
}
GetAnnotationsForReportReader is a Reader for the GetAnnotationsForReport structure.
func (*GetAnnotationsForReportReader) ReadResponse ¶
func (o *GetAnnotationsForReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetReportNotFound ¶
GetReportNotFound handles this case with default header values.
The report with the given ID was not found.
func NewGetReportNotFound ¶
func NewGetReportNotFound() *GetReportNotFound
NewGetReportNotFound creates a GetReportNotFound with default headers values
func (*GetReportNotFound) Error ¶
func (o *GetReportNotFound) Error() string
func (*GetReportNotFound) GetPayload ¶
func (o *GetReportNotFound) GetPayload() *models.Error
type GetReportOK ¶
GetReportOK handles this case with default header values.
OK
func NewGetReportOK ¶
func NewGetReportOK() *GetReportOK
NewGetReportOK creates a GetReportOK with default headers values
func (*GetReportOK) Error ¶
func (o *GetReportOK) Error() string
func (*GetReportOK) GetPayload ¶
func (o *GetReportOK) GetPayload() *models.Report
type GetReportParams ¶
type GetReportParams struct {
/*Commit
The commit the report belongs to.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*ReportID
Either the uuid or external-id of the report.
*/
ReportID string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetReportParams contains all the parameters to send to the API endpoint for the get report operation typically these are written to a http.Request
func NewGetReportParams ¶
func NewGetReportParams() *GetReportParams
NewGetReportParams creates a new GetReportParams object with the default values initialized.
func NewGetReportParamsWithContext ¶
func NewGetReportParamsWithContext(ctx context.Context) *GetReportParams
NewGetReportParamsWithContext creates a new GetReportParams object with the default values initialized, and the ability to set a context for a request
func NewGetReportParamsWithHTTPClient ¶
func NewGetReportParamsWithHTTPClient(client *http.Client) *GetReportParams
NewGetReportParamsWithHTTPClient creates a new GetReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetReportParamsWithTimeout ¶
func NewGetReportParamsWithTimeout(timeout time.Duration) *GetReportParams
NewGetReportParamsWithTimeout creates a new GetReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetReportParams) SetCommit ¶
func (o *GetReportParams) SetCommit(commit string)
SetCommit adds the commit to the get report params
func (*GetReportParams) SetContext ¶
func (o *GetReportParams) SetContext(ctx context.Context)
SetContext adds the context to the get report params
func (*GetReportParams) SetHTTPClient ¶
func (o *GetReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get report params
func (*GetReportParams) SetRepoSlug ¶
func (o *GetReportParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get report params
func (*GetReportParams) SetReportID ¶
func (o *GetReportParams) SetReportID(reportID string)
SetReportID adds the reportId to the get report params
func (*GetReportParams) SetTimeout ¶
func (o *GetReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get report params
func (*GetReportParams) SetUsername ¶
func (o *GetReportParams) SetUsername(username string)
SetUsername adds the username to the get report params
func (*GetReportParams) WithCommit ¶
func (o *GetReportParams) WithCommit(commit string) *GetReportParams
WithCommit adds the commit to the get report params
func (*GetReportParams) WithContext ¶
func (o *GetReportParams) WithContext(ctx context.Context) *GetReportParams
WithContext adds the context to the get report params
func (*GetReportParams) WithHTTPClient ¶
func (o *GetReportParams) WithHTTPClient(client *http.Client) *GetReportParams
WithHTTPClient adds the HTTPClient to the get report params
func (*GetReportParams) WithRepoSlug ¶
func (o *GetReportParams) WithRepoSlug(repoSlug string) *GetReportParams
WithRepoSlug adds the repoSlug to the get report params
func (*GetReportParams) WithReportID ¶
func (o *GetReportParams) WithReportID(reportID string) *GetReportParams
WithReportID adds the reportID to the get report params
func (*GetReportParams) WithTimeout ¶
func (o *GetReportParams) WithTimeout(timeout time.Duration) *GetReportParams
WithTimeout adds the timeout to the get report params
func (*GetReportParams) WithUsername ¶
func (o *GetReportParams) WithUsername(username string) *GetReportParams
WithUsername adds the username to the get report params
func (*GetReportParams) WriteToRequest ¶
func (o *GetReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReportReader ¶
type GetReportReader struct {
// contains filtered or unexported fields
}
GetReportReader is a Reader for the GetReport structure.
func (*GetReportReader) ReadResponse ¶
func (o *GetReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetReportsForCommitOK ¶
type GetReportsForCommitOK struct {
Payload *models.PaginatedReports
}
GetReportsForCommitOK handles this case with default header values.
OK
func NewGetReportsForCommitOK ¶
func NewGetReportsForCommitOK() *GetReportsForCommitOK
NewGetReportsForCommitOK creates a GetReportsForCommitOK with default headers values
func (*GetReportsForCommitOK) Error ¶
func (o *GetReportsForCommitOK) Error() string
func (*GetReportsForCommitOK) GetPayload ¶
func (o *GetReportsForCommitOK) GetPayload() *models.PaginatedReports
type GetReportsForCommitParams ¶
type GetReportsForCommitParams struct {
/*Commit
The commit for which to retrieve reports.
*/
Commit string
/*RepoSlug
The repository.
*/
RepoSlug string
/*Username
The account.
*/
Username string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetReportsForCommitParams contains all the parameters to send to the API endpoint for the get reports for commit operation typically these are written to a http.Request
func NewGetReportsForCommitParams ¶
func NewGetReportsForCommitParams() *GetReportsForCommitParams
NewGetReportsForCommitParams creates a new GetReportsForCommitParams object with the default values initialized.
func NewGetReportsForCommitParamsWithContext ¶
func NewGetReportsForCommitParamsWithContext(ctx context.Context) *GetReportsForCommitParams
NewGetReportsForCommitParamsWithContext creates a new GetReportsForCommitParams object with the default values initialized, and the ability to set a context for a request
func NewGetReportsForCommitParamsWithHTTPClient ¶
func NewGetReportsForCommitParamsWithHTTPClient(client *http.Client) *GetReportsForCommitParams
NewGetReportsForCommitParamsWithHTTPClient creates a new GetReportsForCommitParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetReportsForCommitParamsWithTimeout ¶
func NewGetReportsForCommitParamsWithTimeout(timeout time.Duration) *GetReportsForCommitParams
NewGetReportsForCommitParamsWithTimeout creates a new GetReportsForCommitParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetReportsForCommitParams) SetCommit ¶
func (o *GetReportsForCommitParams) SetCommit(commit string)
SetCommit adds the commit to the get reports for commit params
func (*GetReportsForCommitParams) SetContext ¶
func (o *GetReportsForCommitParams) SetContext(ctx context.Context)
SetContext adds the context to the get reports for commit params
func (*GetReportsForCommitParams) SetHTTPClient ¶
func (o *GetReportsForCommitParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get reports for commit params
func (*GetReportsForCommitParams) SetRepoSlug ¶
func (o *GetReportsForCommitParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get reports for commit params
func (*GetReportsForCommitParams) SetTimeout ¶
func (o *GetReportsForCommitParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get reports for commit params
func (*GetReportsForCommitParams) SetUsername ¶
func (o *GetReportsForCommitParams) SetUsername(username string)
SetUsername adds the username to the get reports for commit params
func (*GetReportsForCommitParams) WithCommit ¶
func (o *GetReportsForCommitParams) WithCommit(commit string) *GetReportsForCommitParams
WithCommit adds the commit to the get reports for commit params
func (*GetReportsForCommitParams) WithContext ¶
func (o *GetReportsForCommitParams) WithContext(ctx context.Context) *GetReportsForCommitParams
WithContext adds the context to the get reports for commit params
func (*GetReportsForCommitParams) WithHTTPClient ¶
func (o *GetReportsForCommitParams) WithHTTPClient(client *http.Client) *GetReportsForCommitParams
WithHTTPClient adds the HTTPClient to the get reports for commit params
func (*GetReportsForCommitParams) WithRepoSlug ¶
func (o *GetReportsForCommitParams) WithRepoSlug(repoSlug string) *GetReportsForCommitParams
WithRepoSlug adds the repoSlug to the get reports for commit params
func (*GetReportsForCommitParams) WithTimeout ¶
func (o *GetReportsForCommitParams) WithTimeout(timeout time.Duration) *GetReportsForCommitParams
WithTimeout adds the timeout to the get reports for commit params
func (*GetReportsForCommitParams) WithUsername ¶
func (o *GetReportsForCommitParams) WithUsername(username string) *GetReportsForCommitParams
WithUsername adds the username to the get reports for commit params
func (*GetReportsForCommitParams) WriteToRequest ¶
func (o *GetReportsForCommitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReportsForCommitReader ¶
type GetReportsForCommitReader struct {
// contains filtered or unexported fields
}
GetReportsForCommitReader is a Reader for the GetReportsForCommit structure.
func (*GetReportsForCommitReader) ReadResponse ¶
func (o *GetReportsForCommitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- bulk_create_or_update_annotations_parameters.go
- bulk_create_or_update_annotations_responses.go
- create_or_update_annotation_parameters.go
- create_or_update_annotation_responses.go
- create_or_update_report_parameters.go
- create_or_update_report_responses.go
- delete_annotation_parameters.go
- delete_annotation_responses.go
- delete_report_parameters.go
- delete_report_responses.go
- get_annotation_parameters.go
- get_annotation_responses.go
- get_annotations_for_report_parameters.go
- get_annotations_for_report_responses.go
- get_report_parameters.go
- get_report_responses.go
- get_reports_for_commit_parameters.go
- get_reports_for_commit_responses.go
- reports_client.go