reports

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (*BulkCreateOrUpdateAnnotationsOK) GetPayload

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

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

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

WithBody adds the body to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithCommit

WithCommit adds the commit to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithContext

WithContext adds the context to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithReportID

WithReportID adds the reportID to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithTimeout

WithTimeout adds the timeout to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WithUsername

WithUsername adds the username to the bulk create or update annotations params

func (*BulkCreateOrUpdateAnnotationsParams) WriteToRequest

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

type CreateOrUpdateAnnotationBadRequest struct {
	Payload *models.Error
}

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 (*CreateOrUpdateAnnotationBadRequest) GetPayload

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 (*CreateOrUpdateAnnotationOK) GetPayload

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

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

WithBody adds the body to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithCommit

WithCommit adds the commit to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithContext

WithContext adds the context to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithReportID

WithReportID adds the reportID to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithTimeout

WithTimeout adds the timeout to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WithUsername

WithUsername adds the username to the create or update annotation params

func (*CreateOrUpdateAnnotationParams) WriteToRequest

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

type CreateOrUpdateReportBadRequest struct {
	Payload *models.Error
}

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 (*CreateOrUpdateReportBadRequest) GetPayload

func (o *CreateOrUpdateReportBadRequest) GetPayload() *models.Error

type CreateOrUpdateReportOK

type CreateOrUpdateReportOK struct {
	Payload *models.Report
}

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

WithBody adds the body to the create or update report params

func (*CreateOrUpdateReportParams) WithCommit

WithCommit adds the commit to the create or update report params

func (*CreateOrUpdateReportParams) WithContext

WithContext adds the context to the create or update report params

func (*CreateOrUpdateReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create or update report params

func (*CreateOrUpdateReportParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the create or update report params

func (*CreateOrUpdateReportParams) WithReportID

WithReportID adds the reportID to the create or update report params

func (*CreateOrUpdateReportParams) WithTimeout

WithTimeout adds the timeout to the create or update report params

func (*CreateOrUpdateReportParams) WithUsername

WithUsername adds the username to the create or update report params

func (*CreateOrUpdateReportParams) WriteToRequest

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

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

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

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

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

type GetAnnotationNotFound struct {
	Payload *models.Error
}

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

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

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

WithCommit adds the commit to the get annotations for report params

func (*GetAnnotationsForReportParams) WithContext

WithContext adds the context to the get annotations for report params

func (*GetAnnotationsForReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get annotations for report params

func (*GetAnnotationsForReportParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get annotations for report params

func (*GetAnnotationsForReportParams) WithReportID

WithReportID adds the reportID to the get annotations for report params

func (*GetAnnotationsForReportParams) WithTimeout

WithTimeout adds the timeout to the get annotations for report params

func (*GetAnnotationsForReportParams) WithUsername

WithUsername adds the username to the get annotations for report params

func (*GetAnnotationsForReportParams) WriteToRequest

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

type GetReportNotFound struct {
	Payload *models.Error
}

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

type GetReportOK struct {
	Payload *models.Report
}

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

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

WithCommit adds the commit to the get reports for commit params

func (*GetReportsForCommitParams) WithContext

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL