bitbucket

package
v0.0.0-...-a707781 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 22 Imported by: 0

README

Bitbucket OpenAPI

This is trimmed version of generated bitbucket OpenAPI client, which contains Reports API only which is needed to use the Code Insights feature for khulnasoft/codebase.

Bitbucket API swagger definitions can be found here Bitbucket API.

Problems with official OpenAPI definitions

Unfortunately officially provided OpenAPI definition is not completely valid , see this issues:

  1. ktrysmt/go-bitbucket Issue #96

  2. JIRA Bitbucket Cloud/BCLOUD-17601 - api.bitbucket.org/swagger.json is broken

However, we were able to generate needed models via OpenAPI Generator CLI with --skip-validate-spec ignoring the errors.

Also, to make it work, in generated code URLs {workspace} need to be replaced with {username}, because BitBucket OpenAPI definition is not correct 🤷:

Resource URL is /2.0/repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}

but Path actual parameters are username, repo_slug, commit, reportId

Attempts to generate code

  • Go Swagger:

    $ swagger validate https://bitbucket.org/api/swagger.json
    json: cannot unmarshal bool into Go struct field SwaggerProps.definitions of type []string
    
  • OpenAPI Generator CLI:

    $ docker run --rm -v "${PWD}:/local" \
        openapitools/openapi-generator-cli generate \
             -i https://api.bitbucket.org/swagger.json
             -g go \
             -o /local/out/go
    ...
    Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
    | Error count: 53, Warning count: 17
    ...
    

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {

	// API Services
	// NOTE : all services except ReportsApi were removed
	ReportsApi *ReportsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Bitbucket API API v2.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type ApiBulkCreateOrUpdateAnnotationsRequest

type ApiBulkCreateOrUpdateAnnotationsRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiBulkCreateOrUpdateAnnotationsRequest) Body

func (ApiBulkCreateOrUpdateAnnotationsRequest) Execute

type ApiCreateOrUpdateAnnotationRequest

type ApiCreateOrUpdateAnnotationRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiCreateOrUpdateAnnotationRequest) Body

func (ApiCreateOrUpdateAnnotationRequest) Execute

type ApiCreateOrUpdateReportRequest

type ApiCreateOrUpdateReportRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiCreateOrUpdateReportRequest) Body

func (ApiCreateOrUpdateReportRequest) Execute

type ApiDeleteAnnotationRequest

type ApiDeleteAnnotationRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteAnnotationRequest) Execute

type ApiDeleteReportRequest

type ApiDeleteReportRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteReportRequest) Execute

type ApiGetAnnotationRequest

type ApiGetAnnotationRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiGetAnnotationRequest) Execute

type ApiGetAnnotationsForReportRequest

type ApiGetAnnotationsForReportRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiGetAnnotationsForReportRequest) Execute

type ApiGetReportRequest

type ApiGetReportRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiGetReportRequest) Execute

type ApiGetReportsForCommitRequest

type ApiGetReportsForCommitRequest struct {
	ApiService *ReportsApiService
	// contains filtered or unexported fields
}

func (ApiGetReportsForCommitRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ErrorError

type ErrorError struct {
	Message string  `json:"message"`
	Detail  *string `json:"detail,omitempty"`
	// Optional structured data that is endpoint-specific.
	Data *map[string]interface{} `json:"data,omitempty"`
}

ErrorError struct for ErrorError

func NewErrorError

func NewErrorError(message string) *ErrorError

NewErrorError instantiates a new ErrorError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorErrorWithDefaults

func NewErrorErrorWithDefaults() *ErrorError

NewErrorErrorWithDefaults instantiates a new ErrorError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorError) GetData

func (o *ErrorError) GetData() map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*ErrorError) GetDataOk

func (o *ErrorError) GetDataOk() (*map[string]interface{}, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorError) GetDetail

func (o *ErrorError) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*ErrorError) GetDetailOk

func (o *ErrorError) GetDetailOk() (*string, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorError) GetMessage

func (o *ErrorError) GetMessage() string

GetMessage returns the Message field value

func (*ErrorError) GetMessageOk

func (o *ErrorError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ErrorError) HasData

func (o *ErrorError) HasData() bool

HasData returns a boolean if a field has been set.

func (*ErrorError) HasDetail

func (o *ErrorError) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (ErrorError) MarshalJSON

func (o ErrorError) MarshalJSON() ([]byte, error)

func (*ErrorError) SetData

func (o *ErrorError) SetData(v map[string]interface{})

SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.

func (*ErrorError) SetDetail

func (o *ErrorError) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*ErrorError) SetMessage

func (o *ErrorError) SetMessage(v string)

SetMessage sets field value

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type ModelError

type ModelError struct {
	Type  string      `json:"type"`
	Error *ErrorError `json:"error,omitempty"`
}

ModelError Base type for most resource objects. It defines the common `type` element that identifies an object's type. It also identifies the element as Swagger's `discriminator`.

func NewModelError

func NewModelError(type_ string) *ModelError

NewModelError instantiates a new ModelError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModelErrorWithDefaults

func NewModelErrorWithDefaults() *ModelError

NewModelErrorWithDefaults instantiates a new ModelError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ModelError) GetError

func (o *ModelError) GetError() ErrorError

GetError returns the Error field value if set, zero value otherwise.

func (*ModelError) GetErrorOk

func (o *ModelError) GetErrorOk() (*ErrorError, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelError) GetType

func (o *ModelError) GetType() string

GetType returns the Type field value

func (*ModelError) GetTypeOk

func (o *ModelError) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*ModelError) HasError

func (o *ModelError) HasError() bool

HasError returns a boolean if a field has been set.

func (ModelError) MarshalJSON

func (o ModelError) MarshalJSON() ([]byte, error)

func (*ModelError) SetError

func (o *ModelError) SetError(v ErrorError)

SetError gets a reference to the given ErrorError and assigns it to the Error field.

func (*ModelError) SetType

func (o *ModelError) SetType(v string)

SetType sets field value

type NullableErrorError

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

func NewNullableErrorError

func NewNullableErrorError(val *ErrorError) *NullableErrorError

func (NullableErrorError) Get

func (v NullableErrorError) Get() *ErrorError

func (NullableErrorError) IsSet

func (v NullableErrorError) IsSet() bool

func (NullableErrorError) MarshalJSON

func (v NullableErrorError) MarshalJSON() ([]byte, error)

func (*NullableErrorError) Set

func (v *NullableErrorError) Set(val *ErrorError)

func (*NullableErrorError) UnmarshalJSON

func (v *NullableErrorError) UnmarshalJSON(src []byte) error

func (*NullableErrorError) Unset

func (v *NullableErrorError) Unset()

type NullableModelError

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

func NewNullableModelError

func NewNullableModelError(val *ModelError) *NullableModelError

func (NullableModelError) Get

func (v NullableModelError) Get() *ModelError

func (NullableModelError) IsSet

func (v NullableModelError) IsSet() bool

func (NullableModelError) MarshalJSON

func (v NullableModelError) MarshalJSON() ([]byte, error)

func (*NullableModelError) Set

func (v *NullableModelError) Set(val *ModelError)

func (*NullableModelError) UnmarshalJSON

func (v *NullableModelError) UnmarshalJSON(src []byte) error

func (*NullableModelError) Unset

func (v *NullableModelError) Unset()

type NullableObject

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

func NewNullableObject

func NewNullableObject(val *Object) *NullableObject

func (NullableObject) Get

func (v NullableObject) Get() *Object

func (NullableObject) IsSet

func (v NullableObject) IsSet() bool

func (NullableObject) MarshalJSON

func (v NullableObject) MarshalJSON() ([]byte, error)

func (*NullableObject) Set

func (v *NullableObject) Set(val *Object)

func (*NullableObject) UnmarshalJSON

func (v *NullableObject) UnmarshalJSON(src []byte) error

func (*NullableObject) Unset

func (v *NullableObject) Unset()

type NullablePaginatedAnnotations

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

func NewNullablePaginatedAnnotations

func NewNullablePaginatedAnnotations(val *PaginatedAnnotations) *NullablePaginatedAnnotations

func (NullablePaginatedAnnotations) Get

func (NullablePaginatedAnnotations) IsSet

func (NullablePaginatedAnnotations) MarshalJSON

func (v NullablePaginatedAnnotations) MarshalJSON() ([]byte, error)

func (*NullablePaginatedAnnotations) Set

func (*NullablePaginatedAnnotations) UnmarshalJSON

func (v *NullablePaginatedAnnotations) UnmarshalJSON(src []byte) error

func (*NullablePaginatedAnnotations) Unset

func (v *NullablePaginatedAnnotations) Unset()

type NullablePaginatedReports

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

func NewNullablePaginatedReports

func NewNullablePaginatedReports(val *PaginatedReports) *NullablePaginatedReports

func (NullablePaginatedReports) Get

func (NullablePaginatedReports) IsSet

func (v NullablePaginatedReports) IsSet() bool

func (NullablePaginatedReports) MarshalJSON

func (v NullablePaginatedReports) MarshalJSON() ([]byte, error)

func (*NullablePaginatedReports) Set

func (*NullablePaginatedReports) UnmarshalJSON

func (v *NullablePaginatedReports) UnmarshalJSON(src []byte) error

func (*NullablePaginatedReports) Unset

func (v *NullablePaginatedReports) Unset()

type NullableReport

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

func NewNullableReport

func NewNullableReport(val *Report) *NullableReport

func (NullableReport) Get

func (v NullableReport) Get() *Report

func (NullableReport) IsSet

func (v NullableReport) IsSet() bool

func (NullableReport) MarshalJSON

func (v NullableReport) MarshalJSON() ([]byte, error)

func (*NullableReport) Set

func (v *NullableReport) Set(val *Report)

func (*NullableReport) UnmarshalJSON

func (v *NullableReport) UnmarshalJSON(src []byte) error

func (*NullableReport) Unset

func (v *NullableReport) Unset()

type NullableReportAllOf

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

func NewNullableReportAllOf

func NewNullableReportAllOf(val *ReportAllOf) *NullableReportAllOf

func (NullableReportAllOf) Get

func (NullableReportAllOf) IsSet

func (v NullableReportAllOf) IsSet() bool

func (NullableReportAllOf) MarshalJSON

func (v NullableReportAllOf) MarshalJSON() ([]byte, error)

func (*NullableReportAllOf) Set

func (v *NullableReportAllOf) Set(val *ReportAllOf)

func (*NullableReportAllOf) UnmarshalJSON

func (v *NullableReportAllOf) UnmarshalJSON(src []byte) error

func (*NullableReportAllOf) Unset

func (v *NullableReportAllOf) Unset()

type NullableReportAnnotation

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

func NewNullableReportAnnotation

func NewNullableReportAnnotation(val *ReportAnnotation) *NullableReportAnnotation

func (NullableReportAnnotation) Get

func (NullableReportAnnotation) IsSet

func (v NullableReportAnnotation) IsSet() bool

func (NullableReportAnnotation) MarshalJSON

func (v NullableReportAnnotation) MarshalJSON() ([]byte, error)

func (*NullableReportAnnotation) Set

func (*NullableReportAnnotation) UnmarshalJSON

func (v *NullableReportAnnotation) UnmarshalJSON(src []byte) error

func (*NullableReportAnnotation) Unset

func (v *NullableReportAnnotation) Unset()

type NullableReportAnnotationAllOf

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

func (NullableReportAnnotationAllOf) Get

func (NullableReportAnnotationAllOf) IsSet

func (NullableReportAnnotationAllOf) MarshalJSON

func (v NullableReportAnnotationAllOf) MarshalJSON() ([]byte, error)

func (*NullableReportAnnotationAllOf) Set

func (*NullableReportAnnotationAllOf) UnmarshalJSON

func (v *NullableReportAnnotationAllOf) UnmarshalJSON(src []byte) error

func (*NullableReportAnnotationAllOf) Unset

func (v *NullableReportAnnotationAllOf) Unset()

type NullableReportData

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

func NewNullableReportData

func NewNullableReportData(val *ReportData) *NullableReportData

func (NullableReportData) Get

func (v NullableReportData) Get() *ReportData

func (NullableReportData) IsSet

func (v NullableReportData) IsSet() bool

func (NullableReportData) MarshalJSON

func (v NullableReportData) MarshalJSON() ([]byte, error)

func (*NullableReportData) Set

func (v *NullableReportData) Set(val *ReportData)

func (*NullableReportData) UnmarshalJSON

func (v *NullableReportData) UnmarshalJSON(src []byte) error

func (*NullableReportData) Unset

func (v *NullableReportData) Unset()

type Object

type Object struct {
	Type string `json:"type"`
}

Object Base type for most resource objects. It defines the common `type` element that identifies an object's type. It also identifies the element as Swagger's `discriminator`.

func NewObject

func NewObject(type_ string) *Object

NewObject instantiates a new Object object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewObjectWithDefaults

func NewObjectWithDefaults() *Object

NewObjectWithDefaults instantiates a new Object object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Object) GetType

func (o *Object) GetType() string

GetType returns the Type field value

func (*Object) GetTypeOk

func (o *Object) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (Object) MarshalJSON

func (o Object) MarshalJSON() ([]byte, error)

func (*Object) SetType

func (o *Object) SetType(v string)

SetType sets field value

type PaginatedAnnotations

type PaginatedAnnotations struct {
	// Page number of the current results. This is an optional element that is not provided in all responses.
	Page *int32 `json:"page,omitempty"`
	// The values of the current page.
	Values *[]ReportAnnotation `json:"values,omitempty"`
	// Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
	Size *int32 `json:"size,omitempty"`
	// Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
	Pagelen *int32 `json:"pagelen,omitempty"`
	// Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
	Next *string `json:"next,omitempty"`
	// Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.
	Previous *string `json:"previous,omitempty"`
}

PaginatedAnnotations A paginated list of annotations.

func NewPaginatedAnnotations

func NewPaginatedAnnotations() *PaginatedAnnotations

NewPaginatedAnnotations instantiates a new PaginatedAnnotations object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginatedAnnotationsWithDefaults

func NewPaginatedAnnotationsWithDefaults() *PaginatedAnnotations

NewPaginatedAnnotationsWithDefaults instantiates a new PaginatedAnnotations object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginatedAnnotations) GetNext

func (o *PaginatedAnnotations) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetNextOk

func (o *PaginatedAnnotations) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) GetPage

func (o *PaginatedAnnotations) GetPage() int32

GetPage returns the Page field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetPageOk

func (o *PaginatedAnnotations) GetPageOk() (*int32, bool)

GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) GetPagelen

func (o *PaginatedAnnotations) GetPagelen() int32

GetPagelen returns the Pagelen field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetPagelenOk

func (o *PaginatedAnnotations) GetPagelenOk() (*int32, bool)

GetPagelenOk returns a tuple with the Pagelen field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) GetPrevious

func (o *PaginatedAnnotations) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetPreviousOk

func (o *PaginatedAnnotations) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) GetSize

func (o *PaginatedAnnotations) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetSizeOk

func (o *PaginatedAnnotations) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) GetValues

func (o *PaginatedAnnotations) GetValues() []ReportAnnotation

GetValues returns the Values field value if set, zero value otherwise.

func (*PaginatedAnnotations) GetValuesOk

func (o *PaginatedAnnotations) GetValuesOk() (*[]ReportAnnotation, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedAnnotations) HasNext

func (o *PaginatedAnnotations) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginatedAnnotations) HasPage

func (o *PaginatedAnnotations) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*PaginatedAnnotations) HasPagelen

func (o *PaginatedAnnotations) HasPagelen() bool

HasPagelen returns a boolean if a field has been set.

func (*PaginatedAnnotations) HasPrevious

func (o *PaginatedAnnotations) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedAnnotations) HasSize

func (o *PaginatedAnnotations) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*PaginatedAnnotations) HasValues

func (o *PaginatedAnnotations) HasValues() bool

HasValues returns a boolean if a field has been set.

func (PaginatedAnnotations) MarshalJSON

func (o PaginatedAnnotations) MarshalJSON() ([]byte, error)

func (*PaginatedAnnotations) SetNext

func (o *PaginatedAnnotations) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*PaginatedAnnotations) SetPage

func (o *PaginatedAnnotations) SetPage(v int32)

SetPage gets a reference to the given int32 and assigns it to the Page field.

func (*PaginatedAnnotations) SetPagelen

func (o *PaginatedAnnotations) SetPagelen(v int32)

SetPagelen gets a reference to the given int32 and assigns it to the Pagelen field.

func (*PaginatedAnnotations) SetPrevious

func (o *PaginatedAnnotations) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

func (*PaginatedAnnotations) SetSize

func (o *PaginatedAnnotations) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (*PaginatedAnnotations) SetValues

func (o *PaginatedAnnotations) SetValues(v []ReportAnnotation)

SetValues gets a reference to the given []ReportAnnotation and assigns it to the Values field.

type PaginatedReports

type PaginatedReports struct {
	// Page number of the current results. This is an optional element that is not provided in all responses.
	Page *int32 `json:"page,omitempty"`
	// The values of the current page.
	Values *[]Report `json:"values,omitempty"`
	// Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
	Size *int32 `json:"size,omitempty"`
	// Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
	Pagelen *int32 `json:"pagelen,omitempty"`
	// Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
	Next *string `json:"next,omitempty"`
	// Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.
	Previous *string `json:"previous,omitempty"`
}

PaginatedReports A paginated list of reports.

func NewPaginatedReports

func NewPaginatedReports() *PaginatedReports

NewPaginatedReports instantiates a new PaginatedReports object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginatedReportsWithDefaults

func NewPaginatedReportsWithDefaults() *PaginatedReports

NewPaginatedReportsWithDefaults instantiates a new PaginatedReports object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginatedReports) GetNext

func (o *PaginatedReports) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*PaginatedReports) GetNextOk

func (o *PaginatedReports) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) GetPage

func (o *PaginatedReports) GetPage() int32

GetPage returns the Page field value if set, zero value otherwise.

func (*PaginatedReports) GetPageOk

func (o *PaginatedReports) GetPageOk() (*int32, bool)

GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) GetPagelen

func (o *PaginatedReports) GetPagelen() int32

GetPagelen returns the Pagelen field value if set, zero value otherwise.

func (*PaginatedReports) GetPagelenOk

func (o *PaginatedReports) GetPagelenOk() (*int32, bool)

GetPagelenOk returns a tuple with the Pagelen field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) GetPrevious

func (o *PaginatedReports) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*PaginatedReports) GetPreviousOk

func (o *PaginatedReports) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) GetSize

func (o *PaginatedReports) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*PaginatedReports) GetSizeOk

func (o *PaginatedReports) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) GetValues

func (o *PaginatedReports) GetValues() []Report

GetValues returns the Values field value if set, zero value otherwise.

func (*PaginatedReports) GetValuesOk

func (o *PaginatedReports) GetValuesOk() (*[]Report, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedReports) HasNext

func (o *PaginatedReports) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginatedReports) HasPage

func (o *PaginatedReports) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*PaginatedReports) HasPagelen

func (o *PaginatedReports) HasPagelen() bool

HasPagelen returns a boolean if a field has been set.

func (*PaginatedReports) HasPrevious

func (o *PaginatedReports) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedReports) HasSize

func (o *PaginatedReports) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*PaginatedReports) HasValues

func (o *PaginatedReports) HasValues() bool

HasValues returns a boolean if a field has been set.

func (PaginatedReports) MarshalJSON

func (o PaginatedReports) MarshalJSON() ([]byte, error)

func (*PaginatedReports) SetNext

func (o *PaginatedReports) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*PaginatedReports) SetPage

func (o *PaginatedReports) SetPage(v int32)

SetPage gets a reference to the given int32 and assigns it to the Page field.

func (*PaginatedReports) SetPagelen

func (o *PaginatedReports) SetPagelen(v int32)

SetPagelen gets a reference to the given int32 and assigns it to the Pagelen field.

func (*PaginatedReports) SetPrevious

func (o *PaginatedReports) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

func (*PaginatedReports) SetSize

func (o *PaginatedReports) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (*PaginatedReports) SetValues

func (o *PaginatedReports) SetValues(v []Report)

SetValues gets a reference to the given []Report and assigns it to the Values field.

type Report

type Report struct {
	Object
	// The UUID that can be used to identify the report.
	Uuid *string `json:"uuid,omitempty"`
	// The title of the report.
	Title *string `json:"title,omitempty"`
	// A string to describe the purpose of the report.
	Details *string `json:"details,omitempty"`
	// ID of the report provided by the report creator. It can be used to identify the report as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the report creator for updating or deleting this specific report. Needs to be unique.
	ExternalId *string `json:"external_id,omitempty"`
	// A string to describe the tool or company who created the report.
	Reporter *string `json:"reporter,omitempty"`
	// A URL linking to the results of the report in an external tool.
	Link *string `json:"link,omitempty"`
	// If enabled, a remote link is created in Jira for the issue associated with the commit the report belongs to.
	RemoteLinkEnabled *bool `json:"remote_link_enabled,omitempty"`
	// A URL to the report logo. If none is provided, the default insights logo will be used.
	LogoUrl *string `json:"logo_url,omitempty"`
	// The type of the report.
	ReportType *string `json:"report_type,omitempty"`
	// The state of the report. May be set to PENDING and later updated.
	Result *string `json:"result,omitempty"`
	// An array of data fields to display information on the report. Maximum 10.
	Data *[]ReportData `json:"data,omitempty"`
	// The timestamp when the report was created.
	CreatedOn *time.Time `json:"created_on,omitempty"`
	// The timestamp when the report was updated.
	UpdatedOn *time.Time `json:"updated_on,omitempty"`
}

Report struct for Report

func NewReport

func NewReport() *Report

NewReport instantiates a new Report object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportWithDefaults

func NewReportWithDefaults() *Report

NewReportWithDefaults instantiates a new Report object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Report) GetCreatedOn

func (o *Report) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*Report) GetCreatedOnOk

func (o *Report) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetData

func (o *Report) GetData() []ReportData

GetData returns the Data field value if set, zero value otherwise.

func (*Report) GetDataOk

func (o *Report) GetDataOk() (*[]ReportData, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetDetails

func (o *Report) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*Report) GetDetailsOk

func (o *Report) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetExternalId

func (o *Report) GetExternalId() string

GetExternalId returns the ExternalId field value if set, zero value otherwise.

func (*Report) GetExternalIdOk

func (o *Report) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *Report) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*Report) GetLinkOk

func (o *Report) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetLogoUrl

func (o *Report) GetLogoUrl() string

GetLogoUrl returns the LogoUrl field value if set, zero value otherwise.

func (*Report) GetLogoUrlOk

func (o *Report) GetLogoUrlOk() (*string, bool)

GetLogoUrlOk returns a tuple with the LogoUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetRemoteLinkEnabled

func (o *Report) GetRemoteLinkEnabled() bool

GetRemoteLinkEnabled returns the RemoteLinkEnabled field value if set, zero value otherwise.

func (*Report) GetRemoteLinkEnabledOk

func (o *Report) GetRemoteLinkEnabledOk() (*bool, bool)

GetRemoteLinkEnabledOk returns a tuple with the RemoteLinkEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetReportType

func (o *Report) GetReportType() string

GetReportType returns the ReportType field value if set, zero value otherwise.

func (*Report) GetReportTypeOk

func (o *Report) GetReportTypeOk() (*string, bool)

GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetReporter

func (o *Report) GetReporter() string

GetReporter returns the Reporter field value if set, zero value otherwise.

func (*Report) GetReporterOk

func (o *Report) GetReporterOk() (*string, bool)

GetReporterOk returns a tuple with the Reporter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetResult

func (o *Report) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*Report) GetResultOk

func (o *Report) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetTitle

func (o *Report) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*Report) GetTitleOk

func (o *Report) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetUpdatedOn

func (o *Report) GetUpdatedOn() time.Time

GetUpdatedOn returns the UpdatedOn field value if set, zero value otherwise.

func (*Report) GetUpdatedOnOk

func (o *Report) GetUpdatedOnOk() (*time.Time, bool)

GetUpdatedOnOk returns a tuple with the UpdatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) GetUuid

func (o *Report) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*Report) GetUuidOk

func (o *Report) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Report) HasCreatedOn

func (o *Report) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*Report) HasData

func (o *Report) HasData() bool

HasData returns a boolean if a field has been set.

func (*Report) HasDetails

func (o *Report) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*Report) HasExternalId

func (o *Report) HasExternalId() bool

HasExternalId returns a boolean if a field has been set.

func (o *Report) HasLink() bool

HasLink returns a boolean if a field has been set.

func (*Report) HasLogoUrl

func (o *Report) HasLogoUrl() bool

HasLogoUrl returns a boolean if a field has been set.

func (*Report) HasRemoteLinkEnabled

func (o *Report) HasRemoteLinkEnabled() bool

HasRemoteLinkEnabled returns a boolean if a field has been set.

func (*Report) HasReportType

func (o *Report) HasReportType() bool

HasReportType returns a boolean if a field has been set.

func (*Report) HasReporter

func (o *Report) HasReporter() bool

HasReporter returns a boolean if a field has been set.

func (*Report) HasResult

func (o *Report) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*Report) HasTitle

func (o *Report) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Report) HasUpdatedOn

func (o *Report) HasUpdatedOn() bool

HasUpdatedOn returns a boolean if a field has been set.

func (*Report) HasUuid

func (o *Report) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (Report) MarshalJSON

func (o Report) MarshalJSON() ([]byte, error)

func (*Report) SetCreatedOn

func (o *Report) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*Report) SetData

func (o *Report) SetData(v []ReportData)

SetData gets a reference to the given []ReportData and assigns it to the Data field.

func (*Report) SetDetails

func (o *Report) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*Report) SetExternalId

func (o *Report) SetExternalId(v string)

SetExternalId gets a reference to the given string and assigns it to the ExternalId field.

func (o *Report) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

func (*Report) SetLogoUrl

func (o *Report) SetLogoUrl(v string)

SetLogoUrl gets a reference to the given string and assigns it to the LogoUrl field.

func (*Report) SetRemoteLinkEnabled

func (o *Report) SetRemoteLinkEnabled(v bool)

SetRemoteLinkEnabled gets a reference to the given bool and assigns it to the RemoteLinkEnabled field.

func (*Report) SetReportType

func (o *Report) SetReportType(v string)

SetReportType gets a reference to the given string and assigns it to the ReportType field.

func (*Report) SetReporter

func (o *Report) SetReporter(v string)

SetReporter gets a reference to the given string and assigns it to the Reporter field.

func (*Report) SetResult

func (o *Report) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*Report) SetTitle

func (o *Report) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*Report) SetUpdatedOn

func (o *Report) SetUpdatedOn(v time.Time)

SetUpdatedOn gets a reference to the given time.Time and assigns it to the UpdatedOn field.

func (*Report) SetUuid

func (o *Report) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type ReportAllOf

type ReportAllOf struct {
	// The UUID that can be used to identify the report.
	Uuid *string `json:"uuid,omitempty"`
	// The title of the report.
	Title *string `json:"title,omitempty"`
	// A string to describe the purpose of the report.
	Details *string `json:"details,omitempty"`
	// ID of the report provided by the report creator. It can be used to identify the report as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the report creator for updating or deleting this specific report. Needs to be unique.
	ExternalId *string `json:"external_id,omitempty"`
	// A string to describe the tool or company who created the report.
	Reporter *string `json:"reporter,omitempty"`
	// A URL linking to the results of the report in an external tool.
	Link *string `json:"link,omitempty"`
	// If enabled, a remote link is created in Jira for the issue associated with the commit the report belongs to.
	RemoteLinkEnabled *bool `json:"remote_link_enabled,omitempty"`
	// A URL to the report logo. If none is provided, the default insights logo will be used.
	LogoUrl *string `json:"logo_url,omitempty"`
	// The type of the report.
	ReportType *string `json:"report_type,omitempty"`
	// The state of the report. May be set to PENDING and later updated.
	Result *string `json:"result,omitempty"`
	// An array of data fields to display information on the report. Maximum 10.
	Data *[]ReportData `json:"data,omitempty"`
	// The timestamp when the report was created.
	CreatedOn *time.Time `json:"created_on,omitempty"`
	// The timestamp when the report was updated.
	UpdatedOn *time.Time `json:"updated_on,omitempty"`
}

ReportAllOf A report for a commit.

func NewReportAllOf

func NewReportAllOf() *ReportAllOf

NewReportAllOf instantiates a new ReportAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportAllOfWithDefaults

func NewReportAllOfWithDefaults() *ReportAllOf

NewReportAllOfWithDefaults instantiates a new ReportAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportAllOf) GetCreatedOn

func (o *ReportAllOf) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*ReportAllOf) GetCreatedOnOk

func (o *ReportAllOf) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetData

func (o *ReportAllOf) GetData() []ReportData

GetData returns the Data field value if set, zero value otherwise.

func (*ReportAllOf) GetDataOk

func (o *ReportAllOf) GetDataOk() (*[]ReportData, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetDetails

func (o *ReportAllOf) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*ReportAllOf) GetDetailsOk

func (o *ReportAllOf) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetExternalId

func (o *ReportAllOf) GetExternalId() string

GetExternalId returns the ExternalId field value if set, zero value otherwise.

func (*ReportAllOf) GetExternalIdOk

func (o *ReportAllOf) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *ReportAllOf) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*ReportAllOf) GetLinkOk

func (o *ReportAllOf) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetLogoUrl

func (o *ReportAllOf) GetLogoUrl() string

GetLogoUrl returns the LogoUrl field value if set, zero value otherwise.

func (*ReportAllOf) GetLogoUrlOk

func (o *ReportAllOf) GetLogoUrlOk() (*string, bool)

GetLogoUrlOk returns a tuple with the LogoUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetRemoteLinkEnabled

func (o *ReportAllOf) GetRemoteLinkEnabled() bool

GetRemoteLinkEnabled returns the RemoteLinkEnabled field value if set, zero value otherwise.

func (*ReportAllOf) GetRemoteLinkEnabledOk

func (o *ReportAllOf) GetRemoteLinkEnabledOk() (*bool, bool)

GetRemoteLinkEnabledOk returns a tuple with the RemoteLinkEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetReportType

func (o *ReportAllOf) GetReportType() string

GetReportType returns the ReportType field value if set, zero value otherwise.

func (*ReportAllOf) GetReportTypeOk

func (o *ReportAllOf) GetReportTypeOk() (*string, bool)

GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetReporter

func (o *ReportAllOf) GetReporter() string

GetReporter returns the Reporter field value if set, zero value otherwise.

func (*ReportAllOf) GetReporterOk

func (o *ReportAllOf) GetReporterOk() (*string, bool)

GetReporterOk returns a tuple with the Reporter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetResult

func (o *ReportAllOf) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*ReportAllOf) GetResultOk

func (o *ReportAllOf) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetTitle

func (o *ReportAllOf) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*ReportAllOf) GetTitleOk

func (o *ReportAllOf) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetUpdatedOn

func (o *ReportAllOf) GetUpdatedOn() time.Time

GetUpdatedOn returns the UpdatedOn field value if set, zero value otherwise.

func (*ReportAllOf) GetUpdatedOnOk

func (o *ReportAllOf) GetUpdatedOnOk() (*time.Time, bool)

GetUpdatedOnOk returns a tuple with the UpdatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) GetUuid

func (o *ReportAllOf) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*ReportAllOf) GetUuidOk

func (o *ReportAllOf) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAllOf) HasCreatedOn

func (o *ReportAllOf) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*ReportAllOf) HasData

func (o *ReportAllOf) HasData() bool

HasData returns a boolean if a field has been set.

func (*ReportAllOf) HasDetails

func (o *ReportAllOf) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*ReportAllOf) HasExternalId

func (o *ReportAllOf) HasExternalId() bool

HasExternalId returns a boolean if a field has been set.

func (o *ReportAllOf) HasLink() bool

HasLink returns a boolean if a field has been set.

func (*ReportAllOf) HasLogoUrl

func (o *ReportAllOf) HasLogoUrl() bool

HasLogoUrl returns a boolean if a field has been set.

func (*ReportAllOf) HasRemoteLinkEnabled

func (o *ReportAllOf) HasRemoteLinkEnabled() bool

HasRemoteLinkEnabled returns a boolean if a field has been set.

func (*ReportAllOf) HasReportType

func (o *ReportAllOf) HasReportType() bool

HasReportType returns a boolean if a field has been set.

func (*ReportAllOf) HasReporter

func (o *ReportAllOf) HasReporter() bool

HasReporter returns a boolean if a field has been set.

func (*ReportAllOf) HasResult

func (o *ReportAllOf) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*ReportAllOf) HasTitle

func (o *ReportAllOf) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ReportAllOf) HasUpdatedOn

func (o *ReportAllOf) HasUpdatedOn() bool

HasUpdatedOn returns a boolean if a field has been set.

func (*ReportAllOf) HasUuid

func (o *ReportAllOf) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (ReportAllOf) MarshalJSON

func (o ReportAllOf) MarshalJSON() ([]byte, error)

func (*ReportAllOf) SetCreatedOn

func (o *ReportAllOf) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*ReportAllOf) SetData

func (o *ReportAllOf) SetData(v []ReportData)

SetData gets a reference to the given []ReportData and assigns it to the Data field.

func (*ReportAllOf) SetDetails

func (o *ReportAllOf) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*ReportAllOf) SetExternalId

func (o *ReportAllOf) SetExternalId(v string)

SetExternalId gets a reference to the given string and assigns it to the ExternalId field.

func (o *ReportAllOf) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

func (*ReportAllOf) SetLogoUrl

func (o *ReportAllOf) SetLogoUrl(v string)

SetLogoUrl gets a reference to the given string and assigns it to the LogoUrl field.

func (*ReportAllOf) SetRemoteLinkEnabled

func (o *ReportAllOf) SetRemoteLinkEnabled(v bool)

SetRemoteLinkEnabled gets a reference to the given bool and assigns it to the RemoteLinkEnabled field.

func (*ReportAllOf) SetReportType

func (o *ReportAllOf) SetReportType(v string)

SetReportType gets a reference to the given string and assigns it to the ReportType field.

func (*ReportAllOf) SetReporter

func (o *ReportAllOf) SetReporter(v string)

SetReporter gets a reference to the given string and assigns it to the Reporter field.

func (*ReportAllOf) SetResult

func (o *ReportAllOf) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*ReportAllOf) SetTitle

func (o *ReportAllOf) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*ReportAllOf) SetUpdatedOn

func (o *ReportAllOf) SetUpdatedOn(v time.Time)

SetUpdatedOn gets a reference to the given time.Time and assigns it to the UpdatedOn field.

func (*ReportAllOf) SetUuid

func (o *ReportAllOf) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type ReportAnnotation

type ReportAnnotation struct {
	Object
	// ID of the annotation provided by the annotation creator. It can be used to identify the annotation as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the annotation creator for updating or deleting this specific annotation. Needs to be unique.
	ExternalId *string `json:"external_id,omitempty"`
	// The UUID that can be used to identify the annotation.
	Uuid *string `json:"uuid,omitempty"`
	// The type of the report.
	AnnotationType *string `json:"annotation_type,omitempty"`
	// The path of the file on which this annotation should be placed. This is the path of the file relative to the git repository. If no path is provided, then it will appear in the overview modal on all pull requests where the tip of the branch is the given commit, regardless of which files were modified.
	Path *string `json:"path,omitempty"`
	// The line number that the annotation should belong to. If no line number is provided, then it will default to 0 and in a pull request it will appear at the top of the file specified by the path field.
	Line *int32 `json:"line,omitempty"`
	// The message to display to users.
	Summary *string `json:"summary,omitempty"`
	// The details to show to users when clicking on the annotation.
	Details *string `json:"details,omitempty"`
	// The state of the report. May be set to PENDING and later updated.
	Result *string `json:"result,omitempty"`
	// The severity of the annotation.
	Severity *string `json:"severity,omitempty"`
	// A URL linking to the annotation in an external tool.
	Link *string `json:"link,omitempty"`
	// The timestamp when the report was created.
	CreatedOn *time.Time `json:"created_on,omitempty"`
	// The timestamp when the report was updated.
	UpdatedOn *time.Time `json:"updated_on,omitempty"`
}

ReportAnnotation struct for ReportAnnotation

func NewReportAnnotation

func NewReportAnnotation() *ReportAnnotation

NewReportAnnotation instantiates a new ReportAnnotation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportAnnotationWithDefaults

func NewReportAnnotationWithDefaults() *ReportAnnotation

NewReportAnnotationWithDefaults instantiates a new ReportAnnotation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportAnnotation) GetAnnotationType

func (o *ReportAnnotation) GetAnnotationType() string

GetAnnotationType returns the AnnotationType field value if set, zero value otherwise.

func (*ReportAnnotation) GetAnnotationTypeOk

func (o *ReportAnnotation) GetAnnotationTypeOk() (*string, bool)

GetAnnotationTypeOk returns a tuple with the AnnotationType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetCreatedOn

func (o *ReportAnnotation) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*ReportAnnotation) GetCreatedOnOk

func (o *ReportAnnotation) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetDetails

func (o *ReportAnnotation) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*ReportAnnotation) GetDetailsOk

func (o *ReportAnnotation) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetExternalId

func (o *ReportAnnotation) GetExternalId() string

GetExternalId returns the ExternalId field value if set, zero value otherwise.

func (*ReportAnnotation) GetExternalIdOk

func (o *ReportAnnotation) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetLine

func (o *ReportAnnotation) GetLine() int32

GetLine returns the Line field value if set, zero value otherwise.

func (*ReportAnnotation) GetLineOk

func (o *ReportAnnotation) GetLineOk() (*int32, bool)

GetLineOk returns a tuple with the Line field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *ReportAnnotation) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*ReportAnnotation) GetLinkOk

func (o *ReportAnnotation) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetPath

func (o *ReportAnnotation) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*ReportAnnotation) GetPathOk

func (o *ReportAnnotation) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetResult

func (o *ReportAnnotation) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*ReportAnnotation) GetResultOk

func (o *ReportAnnotation) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetSeverity

func (o *ReportAnnotation) GetSeverity() string

GetSeverity returns the Severity field value if set, zero value otherwise.

func (*ReportAnnotation) GetSeverityOk

func (o *ReportAnnotation) GetSeverityOk() (*string, bool)

GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetSummary

func (o *ReportAnnotation) GetSummary() string

GetSummary returns the Summary field value if set, zero value otherwise.

func (*ReportAnnotation) GetSummaryOk

func (o *ReportAnnotation) GetSummaryOk() (*string, bool)

GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetUpdatedOn

func (o *ReportAnnotation) GetUpdatedOn() time.Time

GetUpdatedOn returns the UpdatedOn field value if set, zero value otherwise.

func (*ReportAnnotation) GetUpdatedOnOk

func (o *ReportAnnotation) GetUpdatedOnOk() (*time.Time, bool)

GetUpdatedOnOk returns a tuple with the UpdatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) GetUuid

func (o *ReportAnnotation) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*ReportAnnotation) GetUuidOk

func (o *ReportAnnotation) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotation) HasAnnotationType

func (o *ReportAnnotation) HasAnnotationType() bool

HasAnnotationType returns a boolean if a field has been set.

func (*ReportAnnotation) HasCreatedOn

func (o *ReportAnnotation) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*ReportAnnotation) HasDetails

func (o *ReportAnnotation) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*ReportAnnotation) HasExternalId

func (o *ReportAnnotation) HasExternalId() bool

HasExternalId returns a boolean if a field has been set.

func (*ReportAnnotation) HasLine

func (o *ReportAnnotation) HasLine() bool

HasLine returns a boolean if a field has been set.

func (o *ReportAnnotation) HasLink() bool

HasLink returns a boolean if a field has been set.

func (*ReportAnnotation) HasPath

func (o *ReportAnnotation) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*ReportAnnotation) HasResult

func (o *ReportAnnotation) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*ReportAnnotation) HasSeverity

func (o *ReportAnnotation) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

func (*ReportAnnotation) HasSummary

func (o *ReportAnnotation) HasSummary() bool

HasSummary returns a boolean if a field has been set.

func (*ReportAnnotation) HasUpdatedOn

func (o *ReportAnnotation) HasUpdatedOn() bool

HasUpdatedOn returns a boolean if a field has been set.

func (*ReportAnnotation) HasUuid

func (o *ReportAnnotation) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (ReportAnnotation) MarshalJSON

func (o ReportAnnotation) MarshalJSON() ([]byte, error)

func (*ReportAnnotation) SetAnnotationType

func (o *ReportAnnotation) SetAnnotationType(v string)

SetAnnotationType gets a reference to the given string and assigns it to the AnnotationType field.

func (*ReportAnnotation) SetCreatedOn

func (o *ReportAnnotation) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*ReportAnnotation) SetDetails

func (o *ReportAnnotation) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*ReportAnnotation) SetExternalId

func (o *ReportAnnotation) SetExternalId(v string)

SetExternalId gets a reference to the given string and assigns it to the ExternalId field.

func (*ReportAnnotation) SetLine

func (o *ReportAnnotation) SetLine(v int32)

SetLine gets a reference to the given int32 and assigns it to the Line field.

func (o *ReportAnnotation) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

func (*ReportAnnotation) SetPath

func (o *ReportAnnotation) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*ReportAnnotation) SetResult

func (o *ReportAnnotation) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*ReportAnnotation) SetSeverity

func (o *ReportAnnotation) SetSeverity(v string)

SetSeverity gets a reference to the given string and assigns it to the Severity field.

func (*ReportAnnotation) SetSummary

func (o *ReportAnnotation) SetSummary(v string)

SetSummary gets a reference to the given string and assigns it to the Summary field.

func (*ReportAnnotation) SetUpdatedOn

func (o *ReportAnnotation) SetUpdatedOn(v time.Time)

SetUpdatedOn gets a reference to the given time.Time and assigns it to the UpdatedOn field.

func (*ReportAnnotation) SetUuid

func (o *ReportAnnotation) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type ReportAnnotationAllOf

type ReportAnnotationAllOf struct {
	// ID of the annotation provided by the annotation creator. It can be used to identify the annotation as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the annotation creator for updating or deleting this specific annotation. Needs to be unique.
	ExternalId *string `json:"external_id,omitempty"`
	// The UUID that can be used to identify the annotation.
	Uuid *string `json:"uuid,omitempty"`
	// The type of the report.
	AnnotationType *string `json:"annotation_type,omitempty"`
	// The path of the file on which this annotation should be placed. This is the path of the file relative to the git repository. If no path is provided, then it will appear in the overview modal on all pull requests where the tip of the branch is the given commit, regardless of which files were modified.
	Path *string `json:"path,omitempty"`
	// The line number that the annotation should belong to. If no line number is provided, then it will default to 0 and in a pull request it will appear at the top of the file specified by the path field.
	Line *int32 `json:"line,omitempty"`
	// The message to display to users.
	Summary *string `json:"summary,omitempty"`
	// The details to show to users when clicking on the annotation.
	Details *string `json:"details,omitempty"`
	// The state of the report. May be set to PENDING and later updated.
	Result *string `json:"result,omitempty"`
	// The severity of the annotation.
	Severity *string `json:"severity,omitempty"`
	// A URL linking to the annotation in an external tool.
	Link *string `json:"link,omitempty"`
	// The timestamp when the report was created.
	CreatedOn *time.Time `json:"created_on,omitempty"`
	// The timestamp when the report was updated.
	UpdatedOn *time.Time `json:"updated_on,omitempty"`
}

ReportAnnotationAllOf A report for a commit.

func NewReportAnnotationAllOf

func NewReportAnnotationAllOf() *ReportAnnotationAllOf

NewReportAnnotationAllOf instantiates a new ReportAnnotationAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportAnnotationAllOfWithDefaults

func NewReportAnnotationAllOfWithDefaults() *ReportAnnotationAllOf

NewReportAnnotationAllOfWithDefaults instantiates a new ReportAnnotationAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportAnnotationAllOf) GetAnnotationType

func (o *ReportAnnotationAllOf) GetAnnotationType() string

GetAnnotationType returns the AnnotationType field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetAnnotationTypeOk

func (o *ReportAnnotationAllOf) GetAnnotationTypeOk() (*string, bool)

GetAnnotationTypeOk returns a tuple with the AnnotationType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetCreatedOn

func (o *ReportAnnotationAllOf) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetCreatedOnOk

func (o *ReportAnnotationAllOf) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetDetails

func (o *ReportAnnotationAllOf) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetDetailsOk

func (o *ReportAnnotationAllOf) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetExternalId

func (o *ReportAnnotationAllOf) GetExternalId() string

GetExternalId returns the ExternalId field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetExternalIdOk

func (o *ReportAnnotationAllOf) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetLine

func (o *ReportAnnotationAllOf) GetLine() int32

GetLine returns the Line field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetLineOk

func (o *ReportAnnotationAllOf) GetLineOk() (*int32, bool)

GetLineOk returns a tuple with the Line field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *ReportAnnotationAllOf) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetLinkOk

func (o *ReportAnnotationAllOf) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetPath

func (o *ReportAnnotationAllOf) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetPathOk

func (o *ReportAnnotationAllOf) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetResult

func (o *ReportAnnotationAllOf) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetResultOk

func (o *ReportAnnotationAllOf) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetSeverity

func (o *ReportAnnotationAllOf) GetSeverity() string

GetSeverity returns the Severity field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetSeverityOk

func (o *ReportAnnotationAllOf) GetSeverityOk() (*string, bool)

GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetSummary

func (o *ReportAnnotationAllOf) GetSummary() string

GetSummary returns the Summary field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetSummaryOk

func (o *ReportAnnotationAllOf) GetSummaryOk() (*string, bool)

GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetUpdatedOn

func (o *ReportAnnotationAllOf) GetUpdatedOn() time.Time

GetUpdatedOn returns the UpdatedOn field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetUpdatedOnOk

func (o *ReportAnnotationAllOf) GetUpdatedOnOk() (*time.Time, bool)

GetUpdatedOnOk returns a tuple with the UpdatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) GetUuid

func (o *ReportAnnotationAllOf) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*ReportAnnotationAllOf) GetUuidOk

func (o *ReportAnnotationAllOf) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportAnnotationAllOf) HasAnnotationType

func (o *ReportAnnotationAllOf) HasAnnotationType() bool

HasAnnotationType returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasCreatedOn

func (o *ReportAnnotationAllOf) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasDetails

func (o *ReportAnnotationAllOf) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasExternalId

func (o *ReportAnnotationAllOf) HasExternalId() bool

HasExternalId returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasLine

func (o *ReportAnnotationAllOf) HasLine() bool

HasLine returns a boolean if a field has been set.

func (o *ReportAnnotationAllOf) HasLink() bool

HasLink returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasPath

func (o *ReportAnnotationAllOf) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasResult

func (o *ReportAnnotationAllOf) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasSeverity

func (o *ReportAnnotationAllOf) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasSummary

func (o *ReportAnnotationAllOf) HasSummary() bool

HasSummary returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasUpdatedOn

func (o *ReportAnnotationAllOf) HasUpdatedOn() bool

HasUpdatedOn returns a boolean if a field has been set.

func (*ReportAnnotationAllOf) HasUuid

func (o *ReportAnnotationAllOf) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (ReportAnnotationAllOf) MarshalJSON

func (o ReportAnnotationAllOf) MarshalJSON() ([]byte, error)

func (*ReportAnnotationAllOf) SetAnnotationType

func (o *ReportAnnotationAllOf) SetAnnotationType(v string)

SetAnnotationType gets a reference to the given string and assigns it to the AnnotationType field.

func (*ReportAnnotationAllOf) SetCreatedOn

func (o *ReportAnnotationAllOf) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*ReportAnnotationAllOf) SetDetails

func (o *ReportAnnotationAllOf) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*ReportAnnotationAllOf) SetExternalId

func (o *ReportAnnotationAllOf) SetExternalId(v string)

SetExternalId gets a reference to the given string and assigns it to the ExternalId field.

func (*ReportAnnotationAllOf) SetLine

func (o *ReportAnnotationAllOf) SetLine(v int32)

SetLine gets a reference to the given int32 and assigns it to the Line field.

func (o *ReportAnnotationAllOf) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

func (*ReportAnnotationAllOf) SetPath

func (o *ReportAnnotationAllOf) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*ReportAnnotationAllOf) SetResult

func (o *ReportAnnotationAllOf) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*ReportAnnotationAllOf) SetSeverity

func (o *ReportAnnotationAllOf) SetSeverity(v string)

SetSeverity gets a reference to the given string and assigns it to the Severity field.

func (*ReportAnnotationAllOf) SetSummary

func (o *ReportAnnotationAllOf) SetSummary(v string)

SetSummary gets a reference to the given string and assigns it to the Summary field.

func (*ReportAnnotationAllOf) SetUpdatedOn

func (o *ReportAnnotationAllOf) SetUpdatedOn(v time.Time)

SetUpdatedOn gets a reference to the given time.Time and assigns it to the UpdatedOn field.

func (*ReportAnnotationAllOf) SetUuid

func (o *ReportAnnotationAllOf) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type ReportData

type ReportData struct {
	// The type of data contained in the value field. If not provided, then the value will be detected as a boolean, number or string.
	Type *string `json:"type,omitempty"`
	// A string describing what this data field represents.
	Title *string `json:"title,omitempty"`
	// The value of the data element.
	Value *map[string]interface{} `json:"value,omitempty"`
}

ReportData A key-value element that will be displayed along with the report.

func NewReportData

func NewReportData() *ReportData

NewReportData instantiates a new ReportData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportDataWithDefaults

func NewReportDataWithDefaults() *ReportData

NewReportDataWithDefaults instantiates a new ReportData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportData) GetTitle

func (o *ReportData) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*ReportData) GetTitleOk

func (o *ReportData) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportData) GetType

func (o *ReportData) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ReportData) GetTypeOk

func (o *ReportData) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportData) GetValue

func (o *ReportData) GetValue() map[string]interface{}

GetValue returns the Value field value if set, zero value otherwise.

func (*ReportData) GetValueOk

func (o *ReportData) GetValueOk() (*map[string]interface{}, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportData) HasTitle

func (o *ReportData) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ReportData) HasType

func (o *ReportData) HasType() bool

HasType returns a boolean if a field has been set.

func (*ReportData) HasValue

func (o *ReportData) HasValue() bool

HasValue returns a boolean if a field has been set.

func (ReportData) MarshalJSON

func (o ReportData) MarshalJSON() ([]byte, error)

func (*ReportData) SetTitle

func (o *ReportData) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*ReportData) SetType

func (o *ReportData) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*ReportData) SetValue

func (o *ReportData) SetValue(v map[string]interface{})

SetValue gets a reference to the given map[string]interface{} and assigns it to the Value field.

type ReportsApiService

type ReportsApiService service

ReportsApiService ReportsApi service

func (*ReportsApiService) BulkCreateOrUpdateAnnotations

func (a *ReportsApiService) BulkCreateOrUpdateAnnotations(ctx _context.Context, username string, repoSlug string, commit string, reportId string) ApiBulkCreateOrUpdateAnnotationsRequest
  • BulkCreateOrUpdateAnnotations Method for 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.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The account.
  • @param repoSlug The repository.
  • @param commit The commit for which to retrieve reports.
  • @param reportId Uuid or external-if of the report for which to get annotations for.
  • @return ApiBulkCreateOrUpdateAnnotationsRequest

func (*ReportsApiService) BulkCreateOrUpdateAnnotationsExecute

func (a *ReportsApiService) BulkCreateOrUpdateAnnotationsExecute(r ApiBulkCreateOrUpdateAnnotationsRequest) ([]ReportAnnotation, *_nethttp.Response, error)

* Execute executes the request * @return []ReportAnnotation

func (*ReportsApiService) CreateOrUpdateAnnotation

func (a *ReportsApiService) CreateOrUpdateAnnotation(ctx _context.Context, username string, repoSlug string, commit string, reportId string, annotationId string) ApiCreateOrUpdateAnnotationRequest
  • CreateOrUpdateAnnotation Method for 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.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The account.
  • @param repoSlug The repository.
  • @param commit The commit the report belongs to.
  • @param reportId Either the uuid or external-id of the report.
  • @param annotationId Either the uuid or external-id of the annotation.
  • @return ApiCreateOrUpdateAnnotationRequest

func (*ReportsApiService) CreateOrUpdateAnnotationExecute

* Execute executes the request * @return ReportAnnotation

func (*ReportsApiService) CreateOrUpdateReport

func (a *ReportsApiService) CreateOrUpdateReport(ctx _context.Context, username string, repoSlug string, commit string, reportId string) ApiCreateOrUpdateReportRequest
  • CreateOrUpdateReport Method for 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.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The account.
  • @param repoSlug The repository.
  • @param commit The commit the report belongs to.
  • @param reportId Either the uuid or external-id of the report.
  • @return ApiCreateOrUpdateReportRequest

func (*ReportsApiService) CreateOrUpdateReportExecute

func (a *ReportsApiService) CreateOrUpdateReportExecute(r ApiCreateOrUpdateReportRequest) (Report, *_nethttp.Response, error)

* Execute executes the request * @return Report

func (*ReportsApiService) DeleteAnnotation

func (a *ReportsApiService) DeleteAnnotation(ctx _context.Context, username string, repoSlug string, commit string, reportId string, annotationId string) ApiDeleteAnnotationRequest

* DeleteAnnotation Method for DeleteAnnotation * Deletes a single Annotation matching the provided ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit the annotation belongs to. * @param reportId Either the uuid or external-id of the annotation. * @param annotationId Either the uuid or external-id of the annotation. * @return ApiDeleteAnnotationRequest

func (*ReportsApiService) DeleteAnnotationExecute

func (a *ReportsApiService) DeleteAnnotationExecute(r ApiDeleteAnnotationRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*ReportsApiService) DeleteReport

func (a *ReportsApiService) DeleteReport(ctx _context.Context, username string, repoSlug string, commit string, reportId string) ApiDeleteReportRequest

* DeleteReport Method for DeleteReport * Deletes a single Report matching the provided ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit the report belongs to. * @param reportId Either the uuid or external-id of the report. * @return ApiDeleteReportRequest

func (*ReportsApiService) DeleteReportExecute

func (a *ReportsApiService) DeleteReportExecute(r ApiDeleteReportRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*ReportsApiService) GetAnnotation

func (a *ReportsApiService) GetAnnotation(ctx _context.Context, username string, repoSlug string, commit string, reportId string, annotationId string) ApiGetAnnotationRequest

* GetAnnotation Method for GetAnnotation * Returns a single Annotation matching the provided ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit the report belongs to. * @param reportId Either the uuid or external-id of the report. * @param annotationId Either the uuid or external-id of the annotation. * @return ApiGetAnnotationRequest

func (*ReportsApiService) GetAnnotationExecute

* Execute executes the request * @return ReportAnnotation

func (*ReportsApiService) GetAnnotationsForReport

func (a *ReportsApiService) GetAnnotationsForReport(ctx _context.Context, username string, repoSlug string, commit string, reportId string) ApiGetAnnotationsForReportRequest

* GetAnnotationsForReport Method for GetAnnotationsForReport * Returns a paginated list of Annotations for a specified report. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit for which to retrieve reports. * @param reportId Uuid or external-if of the report for which to get annotations for. * @return ApiGetAnnotationsForReportRequest

func (*ReportsApiService) GetAnnotationsForReportExecute

* Execute executes the request * @return PaginatedAnnotations

func (*ReportsApiService) GetReport

func (a *ReportsApiService) GetReport(ctx _context.Context, username string, repoSlug string, commit string, reportId string) ApiGetReportRequest

* GetReport Method for GetReport * Returns a single Report matching the provided ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit the report belongs to. * @param reportId Either the uuid or external-id of the report. * @return ApiGetReportRequest

func (*ReportsApiService) GetReportExecute

func (a *ReportsApiService) GetReportExecute(r ApiGetReportRequest) (Report, *_nethttp.Response, error)

* Execute executes the request * @return Report

func (*ReportsApiService) GetReportsForCommit

func (a *ReportsApiService) GetReportsForCommit(ctx _context.Context, username string, repoSlug string, commit string) ApiGetReportsForCommitRequest

* GetReportsForCommit Method for GetReportsForCommit * Returns a paginated list of Reports linked to this commit. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username The account. * @param repoSlug The repository. * @param commit The commit for which to retrieve reports. * @return ApiGetReportsForCommitRequest

func (*ReportsApiService) GetReportsForCommitExecute

* Execute executes the request * @return PaginatedReports

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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