api

package
v0.128.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type ArtifactDownloadURL

type ArtifactDownloadURL struct {
	// The UNIX timestamp when the URL expires.
	ExpiresAt int `json:"expires_at"`
	// The URL to download the artifact.
	URL string `json:"url"`
}

The URL to download an artifact. Ref: #/components/schemas/ArtifactDownloadURL

func (*ArtifactDownloadURL) Decode

func (s *ArtifactDownloadURL) Decode(d *jx.Decoder) error

Decode decodes ArtifactDownloadURL from json.

func (*ArtifactDownloadURL) Encode

func (s *ArtifactDownloadURL) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactDownloadURL) GetExpiresAt

func (s *ArtifactDownloadURL) GetExpiresAt() int

GetExpiresAt returns the value of ExpiresAt.

func (*ArtifactDownloadURL) GetURL

func (s *ArtifactDownloadURL) GetURL() string

GetURL returns the value of URL.

func (*ArtifactDownloadURL) MarshalJSON

func (s *ArtifactDownloadURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactDownloadURL) SetExpiresAt

func (s *ArtifactDownloadURL) SetExpiresAt(val int)

SetExpiresAt sets the value of ExpiresAt.

func (*ArtifactDownloadURL) SetURL

func (s *ArtifactDownloadURL) SetURL(val string)

SetURL sets the value of URL.

func (*ArtifactDownloadURL) UnmarshalJSON

func (s *ArtifactDownloadURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArtifactMultipartUploadPart

type ArtifactMultipartUploadPart jx.Raw

func (*ArtifactMultipartUploadPart) Decode

Decode decodes ArtifactMultipartUploadPart from json.

func (ArtifactMultipartUploadPart) Encode

func (s ArtifactMultipartUploadPart) Encode(e *jx.Encoder)

Encode encodes ArtifactMultipartUploadPart as json.

func (ArtifactMultipartUploadPart) MarshalJSON

func (s ArtifactMultipartUploadPart) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactMultipartUploadPart) UnmarshalJSON

func (s *ArtifactMultipartUploadPart) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArtifactMultipartUploadParts

type ArtifactMultipartUploadParts struct {
	Parts []ArtifactMultipartUploadPartsPartsItem `json:"parts"`
	// The upload ID.
	UploadID string `json:"upload_id"`
}

It represents a part that has been uploaded using multipart uploads. The part is identified by its number and the etag. Ref: #/components/schemas/ArtifactMultipartUploadParts

func (*ArtifactMultipartUploadParts) Decode

Decode decodes ArtifactMultipartUploadParts from json.

func (*ArtifactMultipartUploadParts) Encode

func (s *ArtifactMultipartUploadParts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactMultipartUploadParts) GetParts

GetParts returns the value of Parts.

func (*ArtifactMultipartUploadParts) GetUploadID

func (s *ArtifactMultipartUploadParts) GetUploadID() string

GetUploadID returns the value of UploadID.

func (*ArtifactMultipartUploadParts) MarshalJSON

func (s *ArtifactMultipartUploadParts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactMultipartUploadParts) SetParts

SetParts sets the value of Parts.

func (*ArtifactMultipartUploadParts) SetUploadID

func (s *ArtifactMultipartUploadParts) SetUploadID(val string)

SetUploadID sets the value of UploadID.

func (*ArtifactMultipartUploadParts) UnmarshalJSON

func (s *ArtifactMultipartUploadParts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ArtifactMultipartUploadParts) Validate

func (s *ArtifactMultipartUploadParts) Validate() error

type ArtifactMultipartUploadPartsPartsItem

type ArtifactMultipartUploadPartsPartsItem struct {
	// The ETag of the part.
	Etag string `json:"etag"`
	// The part number.
	PartNumber int `json:"part_number"`
}

func (*ArtifactMultipartUploadPartsPartsItem) Decode

Decode decodes ArtifactMultipartUploadPartsPartsItem from json.

func (*ArtifactMultipartUploadPartsPartsItem) Encode

Encode implements json.Marshaler.

func (*ArtifactMultipartUploadPartsPartsItem) GetEtag

GetEtag returns the value of Etag.

func (*ArtifactMultipartUploadPartsPartsItem) GetPartNumber

func (s *ArtifactMultipartUploadPartsPartsItem) GetPartNumber() int

GetPartNumber returns the value of PartNumber.

func (*ArtifactMultipartUploadPartsPartsItem) MarshalJSON

func (s *ArtifactMultipartUploadPartsPartsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactMultipartUploadPartsPartsItem) SetEtag

SetEtag sets the value of Etag.

func (*ArtifactMultipartUploadPartsPartsItem) SetPartNumber

func (s *ArtifactMultipartUploadPartsPartsItem) SetPartNumber(val int)

SetPartNumber sets the value of PartNumber.

func (*ArtifactMultipartUploadPartsPartsItem) UnmarshalJSON

func (s *ArtifactMultipartUploadPartsPartsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArtifactMultipartUploadURL

type ArtifactMultipartUploadURL struct {
	Data   ArtifactMultipartUploadURLData   `json:"data"`
	Status ArtifactMultipartUploadURLStatus `json:"status"`
}

The URL to upload a multipart part. Ref: #/components/schemas/ArtifactMultipartUploadURL

func (*ArtifactMultipartUploadURL) Decode

Decode decodes ArtifactMultipartUploadURL from json.

func (*ArtifactMultipartUploadURL) Encode

func (s *ArtifactMultipartUploadURL) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactMultipartUploadURL) GetData

GetData returns the value of Data.

func (*ArtifactMultipartUploadURL) GetStatus

GetStatus returns the value of Status.

func (*ArtifactMultipartUploadURL) MarshalJSON

func (s *ArtifactMultipartUploadURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactMultipartUploadURL) SetData

SetData sets the value of Data.

func (*ArtifactMultipartUploadURL) SetStatus

SetStatus sets the value of Status.

func (*ArtifactMultipartUploadURL) UnmarshalJSON

func (s *ArtifactMultipartUploadURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ArtifactMultipartUploadURL) Validate

func (s *ArtifactMultipartUploadURL) Validate() error

type ArtifactMultipartUploadURLData

type ArtifactMultipartUploadURLData struct {
	// The URL to upload the part.
	URL string `json:"url"`
}

func (*ArtifactMultipartUploadURLData) Decode

Decode decodes ArtifactMultipartUploadURLData from json.

func (*ArtifactMultipartUploadURLData) Encode

Encode implements json.Marshaler.

func (*ArtifactMultipartUploadURLData) GetURL

GetURL returns the value of URL.

func (*ArtifactMultipartUploadURLData) MarshalJSON

func (s *ArtifactMultipartUploadURLData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactMultipartUploadURLData) SetURL

func (s *ArtifactMultipartUploadURLData) SetURL(val string)

SetURL sets the value of URL.

func (*ArtifactMultipartUploadURLData) UnmarshalJSON

func (s *ArtifactMultipartUploadURLData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArtifactMultipartUploadURLStatus

type ArtifactMultipartUploadURLStatus string
const (
	ArtifactMultipartUploadURLStatusSuccess ArtifactMultipartUploadURLStatus = "success"
)

func (ArtifactMultipartUploadURLStatus) AllValues

AllValues returns all ArtifactMultipartUploadURLStatus values.

func (*ArtifactMultipartUploadURLStatus) Decode

Decode decodes ArtifactMultipartUploadURLStatus from json.

func (ArtifactMultipartUploadURLStatus) Encode

Encode encodes ArtifactMultipartUploadURLStatus as json.

func (ArtifactMultipartUploadURLStatus) MarshalJSON

func (s ArtifactMultipartUploadURLStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ArtifactMultipartUploadURLStatus) MarshalText

func (s ArtifactMultipartUploadURLStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ArtifactMultipartUploadURLStatus) UnmarshalJSON

func (s *ArtifactMultipartUploadURLStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ArtifactMultipartUploadURLStatus) UnmarshalText

func (s *ArtifactMultipartUploadURLStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ArtifactMultipartUploadURLStatus) Validate

type ArtifactUploadID

type ArtifactUploadID struct {
	// Data that contains ID that's associated with the multipart upload to use when uploading parts.
	Data   ArtifactUploadIDData   `json:"data"`
	Status ArtifactUploadIDStatus `json:"status"`
}

The upload has been initiated and a ID is returned to upload the various parts using multi-part uploads. Ref: #/components/schemas/ArtifactUploadID

func (*ArtifactUploadID) Decode

func (s *ArtifactUploadID) Decode(d *jx.Decoder) error

Decode decodes ArtifactUploadID from json.

func (*ArtifactUploadID) Encode

func (s *ArtifactUploadID) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactUploadID) GetData

GetData returns the value of Data.

func (*ArtifactUploadID) GetStatus

GetStatus returns the value of Status.

func (*ArtifactUploadID) MarshalJSON

func (s *ArtifactUploadID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactUploadID) SetData

func (s *ArtifactUploadID) SetData(val ArtifactUploadIDData)

SetData sets the value of Data.

func (*ArtifactUploadID) SetStatus

func (s *ArtifactUploadID) SetStatus(val ArtifactUploadIDStatus)

SetStatus sets the value of Status.

func (*ArtifactUploadID) UnmarshalJSON

func (s *ArtifactUploadID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ArtifactUploadID) Validate

func (s *ArtifactUploadID) Validate() error

type ArtifactUploadIDData

type ArtifactUploadIDData struct {
	// The upload ID.
	UploadID string `json:"upload_id"`
}

Data that contains ID that's associated with the multipart upload to use when uploading parts.

func (*ArtifactUploadIDData) Decode

func (s *ArtifactUploadIDData) Decode(d *jx.Decoder) error

Decode decodes ArtifactUploadIDData from json.

func (*ArtifactUploadIDData) Encode

func (s *ArtifactUploadIDData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactUploadIDData) GetUploadID

func (s *ArtifactUploadIDData) GetUploadID() string

GetUploadID returns the value of UploadID.

func (*ArtifactUploadIDData) MarshalJSON

func (s *ArtifactUploadIDData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactUploadIDData) SetUploadID

func (s *ArtifactUploadIDData) SetUploadID(val string)

SetUploadID sets the value of UploadID.

func (*ArtifactUploadIDData) UnmarshalJSON

func (s *ArtifactUploadIDData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArtifactUploadIDStatus

type ArtifactUploadIDStatus string
const (
	ArtifactUploadIDStatusSuccess ArtifactUploadIDStatus = "success"
)

func (ArtifactUploadIDStatus) AllValues

AllValues returns all ArtifactUploadIDStatus values.

func (*ArtifactUploadIDStatus) Decode

func (s *ArtifactUploadIDStatus) Decode(d *jx.Decoder) error

Decode decodes ArtifactUploadIDStatus from json.

func (ArtifactUploadIDStatus) Encode

func (s ArtifactUploadIDStatus) Encode(e *jx.Encoder)

Encode encodes ArtifactUploadIDStatus as json.

func (ArtifactUploadIDStatus) MarshalJSON

func (s ArtifactUploadIDStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ArtifactUploadIDStatus) MarshalText

func (s ArtifactUploadIDStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ArtifactUploadIDStatus) UnmarshalJSON

func (s *ArtifactUploadIDStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ArtifactUploadIDStatus) UnmarshalText

func (s *ArtifactUploadIDStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ArtifactUploadIDStatus) Validate

func (s ArtifactUploadIDStatus) Validate() error

type AuthenticateReq

type AuthenticateReq struct {
	// The email to authenticate with.
	Email string `json:"email"`
	// The password to authenticate with.
	Password string `json:"password"`
}

func (*AuthenticateReq) Decode

func (s *AuthenticateReq) Decode(d *jx.Decoder) error

Decode decodes AuthenticateReq from json.

func (*AuthenticateReq) Encode

func (s *AuthenticateReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuthenticateReq) GetEmail

func (s *AuthenticateReq) GetEmail() string

GetEmail returns the value of Email.

func (*AuthenticateReq) GetPassword

func (s *AuthenticateReq) GetPassword() string

GetPassword returns the value of Password.

func (*AuthenticateReq) MarshalJSON

func (s *AuthenticateReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuthenticateReq) SetEmail

func (s *AuthenticateReq) SetEmail(val string)

SetEmail sets the value of Email.

func (*AuthenticateReq) SetPassword

func (s *AuthenticateReq) SetPassword(val string)

SetPassword sets the value of Password.

func (*AuthenticateReq) UnmarshalJSON

func (s *AuthenticateReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AuthenticateRes

type AuthenticateRes interface {
	// contains filtered or unexported methods
}

type AuthenticationTokens

type AuthenticationTokens struct {
	// API access token.
	AccessToken string `json:"access_token"`
	// A token to generate new API access tokens when they expire.
	RefreshToken string `json:"refresh_token"`
}

A pair of access token to authenticate requests and refresh token to generate new access tokens when they expire. Ref: #/components/schemas/AuthenticationTokens

func (*AuthenticationTokens) Decode

func (s *AuthenticationTokens) Decode(d *jx.Decoder) error

Decode decodes AuthenticationTokens from json.

func (*AuthenticationTokens) Encode

func (s *AuthenticationTokens) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuthenticationTokens) GetAccessToken

func (s *AuthenticationTokens) GetAccessToken() string

GetAccessToken returns the value of AccessToken.

func (*AuthenticationTokens) GetRefreshToken

func (s *AuthenticationTokens) GetRefreshToken() string

GetRefreshToken returns the value of RefreshToken.

func (*AuthenticationTokens) MarshalJSON

func (s *AuthenticationTokens) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuthenticationTokens) SetAccessToken

func (s *AuthenticationTokens) SetAccessToken(val string)

SetAccessToken sets the value of AccessToken.

func (*AuthenticationTokens) SetRefreshToken

func (s *AuthenticationTokens) SetRefreshToken(val string)

SetRefreshToken sets the value of RefreshToken.

func (*AuthenticationTokens) UnmarshalJSON

func (s *AuthenticationTokens) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Authorization

type Authorization struct {
	Token string
}

func (*Authorization) GetToken

func (s *Authorization) GetToken() string

GetToken returns the value of Token.

func (*Authorization) SetToken

func (s *Authorization) SetToken(val string)

SetToken sets the value of Token.

type CacheActionItem

type CacheActionItem struct {
	// The hash that uniquely identifies the artifact in the cache.
	Hash string `json:"hash"`
}

Represents an action item stored in the cache. Ref: #/components/schemas/CacheActionItem

func (*CacheActionItem) Decode

func (s *CacheActionItem) Decode(d *jx.Decoder) error

Decode decodes CacheActionItem from json.

func (*CacheActionItem) Encode

func (s *CacheActionItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheActionItem) GetHash

func (s *CacheActionItem) GetHash() string

GetHash returns the value of Hash.

func (*CacheActionItem) MarshalJSON

func (s *CacheActionItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheActionItem) SetHash

func (s *CacheActionItem) SetHash(val string)

SetHash sets the value of Hash.

func (*CacheActionItem) UnmarshalJSON

func (s *CacheActionItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactDownloadURL

type CacheArtifactDownloadURL struct {
	Data   CacheArtifactDownloadURLData   `json:"data"`
	Status CacheArtifactDownloadURLStatus `json:"status"`
}

The URL to download the artifact from the cache. Ref: #/components/schemas/CacheArtifactDownloadURL

func (*CacheArtifactDownloadURL) Decode

func (s *CacheArtifactDownloadURL) Decode(d *jx.Decoder) error

Decode decodes CacheArtifactDownloadURL from json.

func (*CacheArtifactDownloadURL) Encode

func (s *CacheArtifactDownloadURL) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheArtifactDownloadURL) GetData

GetData returns the value of Data.

func (*CacheArtifactDownloadURL) GetStatus

GetStatus returns the value of Status.

func (*CacheArtifactDownloadURL) MarshalJSON

func (s *CacheArtifactDownloadURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactDownloadURL) SetData

SetData sets the value of Data.

func (*CacheArtifactDownloadURL) SetStatus

SetStatus sets the value of Status.

func (*CacheArtifactDownloadURL) UnmarshalJSON

func (s *CacheArtifactDownloadURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CacheArtifactDownloadURL) Validate

func (s *CacheArtifactDownloadURL) Validate() error

type CacheArtifactDownloadURLData

type CacheArtifactDownloadURLData struct {
	// The UNIX timestamp when the URL expires.
	ExpiresAt int `json:"expires_at"`
	// The URL to download the artifact from the cache.
	URL string `json:"url"`
}

func (*CacheArtifactDownloadURLData) Decode

Decode decodes CacheArtifactDownloadURLData from json.

func (*CacheArtifactDownloadURLData) Encode

func (s *CacheArtifactDownloadURLData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheArtifactDownloadURLData) GetExpiresAt

func (s *CacheArtifactDownloadURLData) GetExpiresAt() int

GetExpiresAt returns the value of ExpiresAt.

func (*CacheArtifactDownloadURLData) GetURL

GetURL returns the value of URL.

func (*CacheArtifactDownloadURLData) MarshalJSON

func (s *CacheArtifactDownloadURLData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactDownloadURLData) SetExpiresAt

func (s *CacheArtifactDownloadURLData) SetExpiresAt(val int)

SetExpiresAt sets the value of ExpiresAt.

func (*CacheArtifactDownloadURLData) SetURL

func (s *CacheArtifactDownloadURLData) SetURL(val string)

SetURL sets the value of URL.

func (*CacheArtifactDownloadURLData) UnmarshalJSON

func (s *CacheArtifactDownloadURLData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactDownloadURLStatus

type CacheArtifactDownloadURLStatus string
const (
	CacheArtifactDownloadURLStatusSuccess CacheArtifactDownloadURLStatus = "success"
)

func (CacheArtifactDownloadURLStatus) AllValues

AllValues returns all CacheArtifactDownloadURLStatus values.

func (*CacheArtifactDownloadURLStatus) Decode

Decode decodes CacheArtifactDownloadURLStatus from json.

func (CacheArtifactDownloadURLStatus) Encode

Encode encodes CacheArtifactDownloadURLStatus as json.

func (CacheArtifactDownloadURLStatus) MarshalJSON

func (s CacheArtifactDownloadURLStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CacheArtifactDownloadURLStatus) MarshalText

func (s CacheArtifactDownloadURLStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CacheArtifactDownloadURLStatus) UnmarshalJSON

func (s *CacheArtifactDownloadURLStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CacheArtifactDownloadURLStatus) UnmarshalText

func (s *CacheArtifactDownloadURLStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CacheArtifactDownloadURLStatus) Validate

type CacheArtifactExistsForbidden

type CacheArtifactExistsForbidden Error

func (*CacheArtifactExistsForbidden) Decode

Decode decodes CacheArtifactExistsForbidden from json.

func (*CacheArtifactExistsForbidden) Encode

func (s *CacheArtifactExistsForbidden) Encode(e *jx.Encoder)

Encode encodes CacheArtifactExistsForbidden as json.

func (*CacheArtifactExistsForbidden) MarshalJSON

func (s *CacheArtifactExistsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsForbidden) UnmarshalJSON

func (s *CacheArtifactExistsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactExistsNotFound

type CacheArtifactExistsNotFound struct {
	Error []CacheArtifactExistsNotFoundErrorItem `json:"error"`
}

func (*CacheArtifactExistsNotFound) Decode

Decode decodes CacheArtifactExistsNotFound from json.

func (*CacheArtifactExistsNotFound) Encode

func (s *CacheArtifactExistsNotFound) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheArtifactExistsNotFound) GetError

GetError returns the value of Error.

func (*CacheArtifactExistsNotFound) MarshalJSON

func (s *CacheArtifactExistsNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsNotFound) SetError

SetError sets the value of Error.

func (*CacheArtifactExistsNotFound) UnmarshalJSON

func (s *CacheArtifactExistsNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactExistsNotFoundErrorItem

type CacheArtifactExistsNotFoundErrorItem struct {
	Code    OptString `json:"code"`
	Message OptString `json:"message"`
}

func (*CacheArtifactExistsNotFoundErrorItem) Decode

Decode decodes CacheArtifactExistsNotFoundErrorItem from json.

func (*CacheArtifactExistsNotFoundErrorItem) Encode

Encode implements json.Marshaler.

func (*CacheArtifactExistsNotFoundErrorItem) GetCode

GetCode returns the value of Code.

func (*CacheArtifactExistsNotFoundErrorItem) GetMessage

GetMessage returns the value of Message.

func (*CacheArtifactExistsNotFoundErrorItem) MarshalJSON

func (s *CacheArtifactExistsNotFoundErrorItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsNotFoundErrorItem) SetCode

SetCode sets the value of Code.

func (*CacheArtifactExistsNotFoundErrorItem) SetMessage

SetMessage sets the value of Message.

func (*CacheArtifactExistsNotFoundErrorItem) UnmarshalJSON

func (s *CacheArtifactExistsNotFoundErrorItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactExistsOK

type CacheArtifactExistsOK struct {
	Data   *CacheArtifactExistsOKData     `json:"data"`
	Status OptCacheArtifactExistsOKStatus `json:"status"`
}

The artifact exists in the cache and can be downloaded.

func (*CacheArtifactExistsOK) Decode

func (s *CacheArtifactExistsOK) Decode(d *jx.Decoder) error

Decode decodes CacheArtifactExistsOK from json.

func (*CacheArtifactExistsOK) Encode

func (s *CacheArtifactExistsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheArtifactExistsOK) GetData

GetData returns the value of Data.

func (*CacheArtifactExistsOK) GetStatus

GetStatus returns the value of Status.

func (*CacheArtifactExistsOK) MarshalJSON

func (s *CacheArtifactExistsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsOK) SetData

SetData sets the value of Data.

func (*CacheArtifactExistsOK) SetStatus

SetStatus sets the value of Status.

func (*CacheArtifactExistsOK) UnmarshalJSON

func (s *CacheArtifactExistsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CacheArtifactExistsOK) Validate

func (s *CacheArtifactExistsOK) Validate() error

type CacheArtifactExistsOKData

type CacheArtifactExistsOKData struct{}

func (*CacheArtifactExistsOKData) Decode

func (s *CacheArtifactExistsOKData) Decode(d *jx.Decoder) error

Decode decodes CacheArtifactExistsOKData from json.

func (*CacheArtifactExistsOKData) Encode

func (s *CacheArtifactExistsOKData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CacheArtifactExistsOKData) MarshalJSON

func (s *CacheArtifactExistsOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsOKData) UnmarshalJSON

func (s *CacheArtifactExistsOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactExistsOKStatus

type CacheArtifactExistsOKStatus string
const (
	CacheArtifactExistsOKStatusSuccess CacheArtifactExistsOKStatus = "success"
)

func (CacheArtifactExistsOKStatus) AllValues

AllValues returns all CacheArtifactExistsOKStatus values.

func (*CacheArtifactExistsOKStatus) Decode

Decode decodes CacheArtifactExistsOKStatus from json.

func (CacheArtifactExistsOKStatus) Encode

func (s CacheArtifactExistsOKStatus) Encode(e *jx.Encoder)

Encode encodes CacheArtifactExistsOKStatus as json.

func (CacheArtifactExistsOKStatus) MarshalJSON

func (s CacheArtifactExistsOKStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CacheArtifactExistsOKStatus) MarshalText

func (s CacheArtifactExistsOKStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CacheArtifactExistsOKStatus) UnmarshalJSON

func (s *CacheArtifactExistsOKStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CacheArtifactExistsOKStatus) UnmarshalText

func (s *CacheArtifactExistsOKStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CacheArtifactExistsOKStatus) Validate

func (s CacheArtifactExistsOKStatus) Validate() error

type CacheArtifactExistsParams

type CacheArtifactExistsParams struct {
	// The category of the cache. It's used to differentiate between different types of caches.
	CacheCategory OptCacheCategory
	// The project identifier '{account_name}/{project_name}'.
	ProjectID string
	// The hash that uniquely identifies the artifact in the cache.
	Hash string
	// The name of the artifact.
	Name string
}

CacheArtifactExistsParams is parameters of cacheArtifactExists operation.

type CacheArtifactExistsPaymentRequired

type CacheArtifactExistsPaymentRequired Error

func (*CacheArtifactExistsPaymentRequired) Decode

Decode decodes CacheArtifactExistsPaymentRequired from json.

func (*CacheArtifactExistsPaymentRequired) Encode

Encode encodes CacheArtifactExistsPaymentRequired as json.

func (*CacheArtifactExistsPaymentRequired) MarshalJSON

func (s *CacheArtifactExistsPaymentRequired) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsPaymentRequired) UnmarshalJSON

func (s *CacheArtifactExistsPaymentRequired) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheArtifactExistsRes

type CacheArtifactExistsRes interface {
	// contains filtered or unexported methods
}

type CacheArtifactExistsUnauthorized

type CacheArtifactExistsUnauthorized Error

func (*CacheArtifactExistsUnauthorized) Decode

Decode decodes CacheArtifactExistsUnauthorized from json.

func (*CacheArtifactExistsUnauthorized) Encode

Encode encodes CacheArtifactExistsUnauthorized as json.

func (*CacheArtifactExistsUnauthorized) MarshalJSON

func (s *CacheArtifactExistsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CacheArtifactExistsUnauthorized) UnmarshalJSON

func (s *CacheArtifactExistsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CacheCategory

type CacheCategory string

The category of the cache. Ref: #/components/schemas/CacheCategory

const (
	CacheCategoryTests  CacheCategory = "tests"
	CacheCategoryBuilds CacheCategory = "builds"
)

func (CacheCategory) AllValues

func (CacheCategory) AllValues() []CacheCategory

AllValues returns all CacheCategory values.

func (CacheCategory) MarshalText

func (s CacheCategory) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CacheCategory) UnmarshalText

func (s *CacheCategory) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CacheCategory) Validate

func (s CacheCategory) Validate() error

type CleanCacheForbidden

type CleanCacheForbidden Error

func (*CleanCacheForbidden) Decode

func (s *CleanCacheForbidden) Decode(d *jx.Decoder) error

Decode decodes CleanCacheForbidden from json.

func (*CleanCacheForbidden) Encode

func (s *CleanCacheForbidden) Encode(e *jx.Encoder)

Encode encodes CleanCacheForbidden as json.

func (*CleanCacheForbidden) MarshalJSON

func (s *CleanCacheForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CleanCacheForbidden) UnmarshalJSON

func (s *CleanCacheForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CleanCacheNoContent

type CleanCacheNoContent struct{}

CleanCacheNoContent is response for CleanCache operation.

type CleanCacheNotFound

type CleanCacheNotFound Error

func (*CleanCacheNotFound) Decode

func (s *CleanCacheNotFound) Decode(d *jx.Decoder) error

Decode decodes CleanCacheNotFound from json.

func (*CleanCacheNotFound) Encode

func (s *CleanCacheNotFound) Encode(e *jx.Encoder)

Encode encodes CleanCacheNotFound as json.

func (*CleanCacheNotFound) MarshalJSON

func (s *CleanCacheNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CleanCacheNotFound) UnmarshalJSON

func (s *CleanCacheNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CleanCacheParams

type CleanCacheParams struct {
	// The name of the account that the project belongs to.
	AccountHandle string
	// The name of the project to clean cache for.
	ProjectHandle string
}

CleanCacheParams is parameters of cleanCache operation.

type CleanCacheRes

type CleanCacheRes interface {
	// contains filtered or unexported methods
}

type CleanCacheUnauthorized

type CleanCacheUnauthorized Error

func (*CleanCacheUnauthorized) Decode

func (s *CleanCacheUnauthorized) Decode(d *jx.Decoder) error

Decode decodes CleanCacheUnauthorized from json.

func (*CleanCacheUnauthorized) Encode

func (s *CleanCacheUnauthorized) Encode(e *jx.Encoder)

Encode encodes CleanCacheUnauthorized as json.

func (*CleanCacheUnauthorized) MarshalJSON

func (s *CleanCacheUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CleanCacheUnauthorized) UnmarshalJSON

func (s *CleanCacheUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) Authenticate

func (c *Client) Authenticate(ctx context.Context, request OptAuthenticateReq) (AuthenticateRes, error)

Authenticate invokes authenticate operation.

This endpoint returns API tokens for a given email and password.

POST /api/auth

func (*Client) CacheArtifactExists deprecated

func (c *Client) CacheArtifactExists(ctx context.Context, params CacheArtifactExistsParams) (CacheArtifactExistsRes, error)

CacheArtifactExists invokes cacheArtifactExists operation.

This endpoint checks if an artifact exists in the cache. It returns a 404 status code if the artifact does not exist.

Deprecated: schema marks this operation as deprecated.

GET /api/cache/exists

func (*Client) CleanCache

func (c *Client) CleanCache(ctx context.Context, params CleanCacheParams) (CleanCacheRes, error)

CleanCache invokes cleanCache operation.

Cleans cache for a given project.

PUT /api/projects/{account_handle}/{project_handle}/cache/clean

func (*Client) CompleteAnalyticsArtifactMultipartUpload

CompleteAnalyticsArtifactMultipartUpload invokes completeAnalyticsArtifactMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload.

POST /api/runs/{run_id}/complete

func (*Client) CompleteAnalyticsArtifactsUploads

CompleteAnalyticsArtifactsUploads invokes completeAnalyticsArtifactsUploads operation.

Given a command event, it marks all artifact uploads as finished and does extra processing of a given command run, such as test flakiness detection.

PUT /api/runs/{run_id}/complete_artifacts_uploads

func (*Client) CompleteCacheArtifactMultipartUpload

CompleteCacheArtifactMultipartUpload invokes completeCacheArtifactMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. The cache will then be able to serve the artifact.

POST /api/cache/multipart/complete

func (*Client) CompletePreviewsMultipartUpload

CompletePreviewsMultipartUpload invokes completePreviewsMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload.

POST /api/projects/{account_handle}/{project_handle}/previews/complete

func (*Client) CreateCommandEvent

CreateCommandEvent invokes createCommandEvent operation.

Create a a new command analytics event.

POST /api/analytics

func (*Client) CreateInvitation

func (c *Client) CreateInvitation(ctx context.Context, request OptCreateInvitationReq, params CreateInvitationParams) (CreateInvitationRes, error)

CreateInvitation invokes createInvitation operation.

Invites a user with a given email to a given organization.

POST /api/organizations/{organization_name}/invitations

func (*Client) CreateOrganization

func (c *Client) CreateOrganization(ctx context.Context, request OptCreateOrganizationReq) (CreateOrganizationRes, error)

CreateOrganization invokes createOrganization operation.

Creates an organization with the given name.

POST /api/organizations

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, request OptCreateProjectReq) (CreateProjectRes, error)

CreateProject invokes createProject operation.

Create a new project.

POST /api/projects

func (*Client) CreateProjectToken

func (c *Client) CreateProjectToken(ctx context.Context, params CreateProjectTokenParams) (CreateProjectTokenRes, error)

CreateProjectToken invokes createProjectToken operation.

This endpoint returns a new project token.

POST /api/projects/{account_handle}/{project_handle}/tokens

func (*Client) DeleteOrganization

func (c *Client) DeleteOrganization(ctx context.Context, params DeleteOrganizationParams) (DeleteOrganizationRes, error)

DeleteOrganization invokes deleteOrganization operation.

Deletes the organization with the given name.

DELETE /api/organizations/{organization_name}

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)

DeleteProject invokes deleteProject operation.

Deletes a project with a given id.

DELETE /api/projects/{id}

func (*Client) DownloadCacheArtifact

func (c *Client) DownloadCacheArtifact(ctx context.Context, params DownloadCacheArtifactParams) (DownloadCacheArtifactRes, error)

DownloadCacheArtifact invokes downloadCacheArtifact operation.

This endpoint returns a signed URL that can be used to download an artifact from the cache.

GET /api/cache

func (*Client) DownloadPreview

func (c *Client) DownloadPreview(ctx context.Context, params DownloadPreviewParams) (DownloadPreviewRes, error)

DownloadPreview invokes downloadPreview operation.

This endpoint returns a signed URL that can be used to download a preview.

GET /api/projects/{account_handle}/{project_handle}/previews/{preview_id}

func (*Client) GenerateAnalyticsArtifactMultipartUploadURL

GenerateAnalyticsArtifactMultipartUploadURL invokes generateAnalyticsArtifactMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/runs/{run_id}/generate-url

func (*Client) GenerateCacheArtifactMultipartUploadURL

GenerateCacheArtifactMultipartUploadURL invokes generateCacheArtifactMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/cache/multipart/generate-url

func (*Client) GeneratePreviewsMultipartUploadURL

GeneratePreviewsMultipartUploadURL invokes generatePreviewsMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/projects/{account_handle}/{project_handle}/previews/generate-url

func (*Client) GetCacheActionItem

func (c *Client) GetCacheActionItem(ctx context.Context, params GetCacheActionItemParams) (GetCacheActionItemRes, error)

GetCacheActionItem invokes getCacheActionItem operation.

This endpoint gets an item from the action cache.

GET /api/projects/{account_handle}/{project_handle}/cache/ac/{hash}

func (*Client) GetDeviceCode

func (c *Client) GetDeviceCode(ctx context.Context, params GetDeviceCodeParams) (GetDeviceCodeRes, error)

GetDeviceCode invokes getDeviceCode operation.

This endpoint returns a token for a given device code if the device code is authenticated.

GET /api/auth/device_code/{device_code}

func (*Client) ListOrganizations

func (c *Client) ListOrganizations(ctx context.Context) (ListOrganizationsRes, error)

ListOrganizations invokes listOrganizations operation.

Returns all the organizations the authenticated subject is part of.

GET /api/organizations

func (*Client) ListProjectTokens

func (c *Client) ListProjectTokens(ctx context.Context, params ListProjectTokensParams) (ListProjectTokensRes, error)

ListProjectTokens invokes listProjectTokens operation.

This endpoint returns all tokens for a given project.

GET /api/projects/{account_handle}/{project_handle}/tokens

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context) (ListProjectsRes, error)

ListProjects invokes listProjects operation.

List projects the authenticated user has access to.

GET /api/projects

func (*Client) RefreshToken

func (c *Client) RefreshToken(ctx context.Context, request OptRefreshTokenReq) (RefreshTokenRes, error)

RefreshToken invokes refreshToken operation.

This endpoint returns new tokens for a given refresh token if the refresh token is valid.

POST /api/auth/refresh_token

func (*Client) RevokeProjectToken

func (c *Client) RevokeProjectToken(ctx context.Context, params RevokeProjectTokenParams) (RevokeProjectTokenRes, error)

RevokeProjectToken invokes revokeProjectToken operation.

Revokes a project token.

DELETE /api/projects/{account_handle}/{project_handle}/tokens/{id}

func (*Client) ShowOrganization

func (c *Client) ShowOrganization(ctx context.Context, params ShowOrganizationParams) (ShowOrganizationRes, error)

ShowOrganization invokes showOrganization operation.

Returns the organization with the given identifier.

GET /api/organizations/{organization_name}

func (*Client) ShowOrganizationUsage

func (c *Client) ShowOrganizationUsage(ctx context.Context, params ShowOrganizationUsageParams) (ShowOrganizationUsageRes, error)

ShowOrganizationUsage invokes showOrganizationUsage operation.

Returns the usage of the organization with the given identifier. (e.g. number of remote cache hits).

GET /api/organizations/{organization_name}/usage

func (*Client) ShowProject

func (c *Client) ShowProject(ctx context.Context, params ShowProjectParams) (ShowProjectRes, error)

ShowProject invokes showProject operation.

Returns a project based on the handle.

GET /api/projects/{account_handle}/{project_handle}

func (*Client) StartAnalyticsArtifactMultipartUpload

StartAnalyticsArtifactMultipartUpload invokes startAnalyticsArtifactMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/runs/{run_id}/start

func (*Client) StartCacheArtifactMultipartUpload

func (c *Client) StartCacheArtifactMultipartUpload(ctx context.Context, params StartCacheArtifactMultipartUploadParams) (StartCacheArtifactMultipartUploadRes, error)

StartCacheArtifactMultipartUpload invokes startCacheArtifactMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/cache/multipart/start

func (*Client) StartPreviewsMultipartUpload

StartPreviewsMultipartUpload invokes startPreviewsMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/projects/{account_handle}/{project_handle}/previews/start

func (*Client) UpdateOrganization

UpdateOrganization invokes updateOrganization operation.

Updates an organization with given parameters.

PUT /api/organizations/{organization_name}

func (*Client) UpdateOrganization2

UpdateOrganization2 invokes updateOrganization (2) operation.

Updates an organization with given parameters.

PATCH /api/organizations/{organization_name}

func (*Client) UpdateOrganizationMember

UpdateOrganizationMember invokes updateOrganizationMember operation.

Updates a member in a given organization.

PUT /api/organizations/{organization_name}/members/{user_name}

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, request OptUpdateProjectReq, params UpdateProjectParams) (UpdateProjectRes, error)

UpdateProject invokes updateProject operation.

Updates a project with given parameters.

PUT /api/projects/{account_handle}/{project_handle}

func (*Client) UploadCacheActionItem

UploadCacheActionItem invokes uploadCacheActionItem operation.

The endpoint caches a given action item without uploading a file. To upload files, use the multipart upload instead.

POST /api/projects/{account_handle}/{project_handle}/cache/ac

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CommandEvent

type CommandEvent struct {
	// ID of the command event.
	ID float64 `json:"id"`
	// Name of the command.
	Name string `json:"name"`
	// URL to the command event.
	URL string `json:"url"`
}

The schema for the command analytics event. Ref: #/components/schemas/CommandEvent

func (*CommandEvent) Decode

func (s *CommandEvent) Decode(d *jx.Decoder) error

Decode decodes CommandEvent from json.

func (*CommandEvent) Encode

func (s *CommandEvent) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CommandEvent) GetID

func (s *CommandEvent) GetID() float64

GetID returns the value of ID.

func (*CommandEvent) GetName

func (s *CommandEvent) GetName() string

GetName returns the value of Name.

func (*CommandEvent) GetURL

func (s *CommandEvent) GetURL() string

GetURL returns the value of URL.

func (*CommandEvent) MarshalJSON

func (s *CommandEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CommandEvent) SetID

func (s *CommandEvent) SetID(val float64)

SetID sets the value of ID.

func (*CommandEvent) SetName

func (s *CommandEvent) SetName(val string)

SetName sets the value of Name.

func (*CommandEvent) SetURL

func (s *CommandEvent) SetURL(val string)

SetURL sets the value of URL.

func (*CommandEvent) UnmarshalJSON

func (s *CommandEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommandEvent) Validate

func (s *CommandEvent) Validate() error

type CommandEventArtifact

type CommandEventArtifact jx.Raw

func (*CommandEventArtifact) Decode

func (s *CommandEventArtifact) Decode(d *jx.Decoder) error

Decode decodes CommandEventArtifact from json.

func (CommandEventArtifact) Encode

func (s CommandEventArtifact) Encode(e *jx.Encoder)

Encode encodes CommandEventArtifact as json.

func (CommandEventArtifact) MarshalJSON

func (s CommandEventArtifact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CommandEventArtifact) UnmarshalJSON

func (s *CommandEventArtifact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactMultipartUploadForbidden

type CompleteAnalyticsArtifactMultipartUploadForbidden Error

func (*CompleteAnalyticsArtifactMultipartUploadForbidden) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadForbidden from json.

func (*CompleteAnalyticsArtifactMultipartUploadForbidden) Encode

Encode encodes CompleteAnalyticsArtifactMultipartUploadForbidden as json.

func (*CompleteAnalyticsArtifactMultipartUploadForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadForbidden) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactMultipartUploadInternalServerError

type CompleteAnalyticsArtifactMultipartUploadInternalServerError Error

func (*CompleteAnalyticsArtifactMultipartUploadInternalServerError) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadInternalServerError from json.

func (*CompleteAnalyticsArtifactMultipartUploadInternalServerError) Encode

Encode encodes CompleteAnalyticsArtifactMultipartUploadInternalServerError as json.

func (*CompleteAnalyticsArtifactMultipartUploadInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadInternalServerError) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactMultipartUploadNoContent

type CompleteAnalyticsArtifactMultipartUploadNoContent struct{}

CompleteAnalyticsArtifactMultipartUploadNoContent is response for CompleteAnalyticsArtifactMultipartUpload operation.

type CompleteAnalyticsArtifactMultipartUploadNotFound

type CompleteAnalyticsArtifactMultipartUploadNotFound Error

func (*CompleteAnalyticsArtifactMultipartUploadNotFound) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadNotFound from json.

func (*CompleteAnalyticsArtifactMultipartUploadNotFound) Encode

Encode encodes CompleteAnalyticsArtifactMultipartUploadNotFound as json.

func (*CompleteAnalyticsArtifactMultipartUploadNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadNotFound) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactMultipartUploadParams

type CompleteAnalyticsArtifactMultipartUploadParams struct {
	// The id of the command event.
	RunID int
}

CompleteAnalyticsArtifactMultipartUploadParams is parameters of completeAnalyticsArtifactMultipartUpload operation.

type CompleteAnalyticsArtifactMultipartUploadReq

type CompleteAnalyticsArtifactMultipartUploadReq struct {
	CommandEventArtifact CommandEventArtifact         `json:"command_event_artifact"`
	MultipartUploadParts ArtifactMultipartUploadParts `json:"multipart_upload_parts"`
}

func (*CompleteAnalyticsArtifactMultipartUploadReq) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadReq from json.

func (*CompleteAnalyticsArtifactMultipartUploadReq) Encode

Encode implements json.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadReq) GetCommandEventArtifact

GetCommandEventArtifact returns the value of CommandEventArtifact.

func (*CompleteAnalyticsArtifactMultipartUploadReq) GetMultipartUploadParts

GetMultipartUploadParts returns the value of MultipartUploadParts.

func (*CompleteAnalyticsArtifactMultipartUploadReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadReq) SetCommandEventArtifact

func (s *CompleteAnalyticsArtifactMultipartUploadReq) SetCommandEventArtifact(val CommandEventArtifact)

SetCommandEventArtifact sets the value of CommandEventArtifact.

func (*CompleteAnalyticsArtifactMultipartUploadReq) SetMultipartUploadParts

SetMultipartUploadParts sets the value of MultipartUploadParts.

func (*CompleteAnalyticsArtifactMultipartUploadReq) UnmarshalJSON

func (s *CompleteAnalyticsArtifactMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteAnalyticsArtifactMultipartUploadReq) Validate

type CompleteAnalyticsArtifactMultipartUploadRes

type CompleteAnalyticsArtifactMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type CompleteAnalyticsArtifactMultipartUploadUnauthorized

type CompleteAnalyticsArtifactMultipartUploadUnauthorized Error

func (*CompleteAnalyticsArtifactMultipartUploadUnauthorized) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadUnauthorized from json.

func (*CompleteAnalyticsArtifactMultipartUploadUnauthorized) Encode

Encode encodes CompleteAnalyticsArtifactMultipartUploadUnauthorized as json.

func (*CompleteAnalyticsArtifactMultipartUploadUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactMultipartUploadUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactsUploadsForbidden

type CompleteAnalyticsArtifactsUploadsForbidden Error

func (*CompleteAnalyticsArtifactsUploadsForbidden) Decode

Decode decodes CompleteAnalyticsArtifactsUploadsForbidden from json.

func (*CompleteAnalyticsArtifactsUploadsForbidden) Encode

Encode encodes CompleteAnalyticsArtifactsUploadsForbidden as json.

func (*CompleteAnalyticsArtifactsUploadsForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactsUploadsForbidden) UnmarshalJSON

func (s *CompleteAnalyticsArtifactsUploadsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactsUploadsNoContent

type CompleteAnalyticsArtifactsUploadsNoContent struct{}

CompleteAnalyticsArtifactsUploadsNoContent is response for CompleteAnalyticsArtifactsUploads operation.

type CompleteAnalyticsArtifactsUploadsNotFound

type CompleteAnalyticsArtifactsUploadsNotFound Error

func (*CompleteAnalyticsArtifactsUploadsNotFound) Decode

Decode decodes CompleteAnalyticsArtifactsUploadsNotFound from json.

func (*CompleteAnalyticsArtifactsUploadsNotFound) Encode

Encode encodes CompleteAnalyticsArtifactsUploadsNotFound as json.

func (*CompleteAnalyticsArtifactsUploadsNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactsUploadsNotFound) UnmarshalJSON

func (s *CompleteAnalyticsArtifactsUploadsNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteAnalyticsArtifactsUploadsParams

type CompleteAnalyticsArtifactsUploadsParams struct {
	// The id of the command event.
	RunID int
}

CompleteAnalyticsArtifactsUploadsParams is parameters of completeAnalyticsArtifactsUploads operation.

type CompleteAnalyticsArtifactsUploadsReq

type CompleteAnalyticsArtifactsUploadsReq struct {
	// A list of modules with their metadata.
	Modules []Module `json:"modules"`
}

func (*CompleteAnalyticsArtifactsUploadsReq) Decode

Decode decodes CompleteAnalyticsArtifactsUploadsReq from json.

func (*CompleteAnalyticsArtifactsUploadsReq) Encode

Encode implements json.Marshaler.

func (*CompleteAnalyticsArtifactsUploadsReq) GetModules

func (s *CompleteAnalyticsArtifactsUploadsReq) GetModules() []Module

GetModules returns the value of Modules.

func (*CompleteAnalyticsArtifactsUploadsReq) MarshalJSON

func (s *CompleteAnalyticsArtifactsUploadsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactsUploadsReq) SetModules

func (s *CompleteAnalyticsArtifactsUploadsReq) SetModules(val []Module)

SetModules sets the value of Modules.

func (*CompleteAnalyticsArtifactsUploadsReq) UnmarshalJSON

func (s *CompleteAnalyticsArtifactsUploadsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteAnalyticsArtifactsUploadsReq) Validate

type CompleteAnalyticsArtifactsUploadsRes

type CompleteAnalyticsArtifactsUploadsRes interface {
	// contains filtered or unexported methods
}

type CompleteAnalyticsArtifactsUploadsUnauthorized

type CompleteAnalyticsArtifactsUploadsUnauthorized Error

func (*CompleteAnalyticsArtifactsUploadsUnauthorized) Decode

Decode decodes CompleteAnalyticsArtifactsUploadsUnauthorized from json.

func (*CompleteAnalyticsArtifactsUploadsUnauthorized) Encode

Encode encodes CompleteAnalyticsArtifactsUploadsUnauthorized as json.

func (*CompleteAnalyticsArtifactsUploadsUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteAnalyticsArtifactsUploadsUnauthorized) UnmarshalJSON

func (s *CompleteAnalyticsArtifactsUploadsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadForbidden

type CompleteCacheArtifactMultipartUploadForbidden Error

func (*CompleteCacheArtifactMultipartUploadForbidden) Decode

Decode decodes CompleteCacheArtifactMultipartUploadForbidden from json.

func (*CompleteCacheArtifactMultipartUploadForbidden) Encode

Encode encodes CompleteCacheArtifactMultipartUploadForbidden as json.

func (*CompleteCacheArtifactMultipartUploadForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadForbidden) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadNotFound

type CompleteCacheArtifactMultipartUploadNotFound Error

func (*CompleteCacheArtifactMultipartUploadNotFound) Decode

Decode decodes CompleteCacheArtifactMultipartUploadNotFound from json.

func (*CompleteCacheArtifactMultipartUploadNotFound) Encode

Encode encodes CompleteCacheArtifactMultipartUploadNotFound as json.

func (*CompleteCacheArtifactMultipartUploadNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadNotFound) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadOK

type CompleteCacheArtifactMultipartUploadOK struct {
	Data   *CompleteCacheArtifactMultipartUploadOKData     `json:"data"`
	Status OptCompleteCacheArtifactMultipartUploadOKStatus `json:"status"`
}

This response confirms that the upload has been completed successfully. The cache will now be able to serve the artifact.

func (*CompleteCacheArtifactMultipartUploadOK) Decode

Decode decodes CompleteCacheArtifactMultipartUploadOK from json.

func (*CompleteCacheArtifactMultipartUploadOK) Encode

Encode implements json.Marshaler.

func (*CompleteCacheArtifactMultipartUploadOK) GetData

GetData returns the value of Data.

func (*CompleteCacheArtifactMultipartUploadOK) GetStatus

GetStatus returns the value of Status.

func (*CompleteCacheArtifactMultipartUploadOK) MarshalJSON

func (s *CompleteCacheArtifactMultipartUploadOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadOK) SetData

SetData sets the value of Data.

func (*CompleteCacheArtifactMultipartUploadOK) SetStatus

SetStatus sets the value of Status.

func (*CompleteCacheArtifactMultipartUploadOK) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteCacheArtifactMultipartUploadOK) Validate

type CompleteCacheArtifactMultipartUploadOKData

type CompleteCacheArtifactMultipartUploadOKData struct{}

func (*CompleteCacheArtifactMultipartUploadOKData) Decode

Decode decodes CompleteCacheArtifactMultipartUploadOKData from json.

func (*CompleteCacheArtifactMultipartUploadOKData) Encode

Encode implements json.Marshaler.

func (*CompleteCacheArtifactMultipartUploadOKData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadOKData) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadOKStatus

type CompleteCacheArtifactMultipartUploadOKStatus string
const (
	CompleteCacheArtifactMultipartUploadOKStatusSuccess CompleteCacheArtifactMultipartUploadOKStatus = "success"
)

func (CompleteCacheArtifactMultipartUploadOKStatus) AllValues

AllValues returns all CompleteCacheArtifactMultipartUploadOKStatus values.

func (*CompleteCacheArtifactMultipartUploadOKStatus) Decode

Decode decodes CompleteCacheArtifactMultipartUploadOKStatus from json.

func (CompleteCacheArtifactMultipartUploadOKStatus) Encode

Encode encodes CompleteCacheArtifactMultipartUploadOKStatus as json.

func (CompleteCacheArtifactMultipartUploadOKStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CompleteCacheArtifactMultipartUploadOKStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CompleteCacheArtifactMultipartUploadOKStatus) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadOKStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteCacheArtifactMultipartUploadOKStatus) UnmarshalText

func (s *CompleteCacheArtifactMultipartUploadOKStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CompleteCacheArtifactMultipartUploadOKStatus) Validate

type CompleteCacheArtifactMultipartUploadParams

type CompleteCacheArtifactMultipartUploadParams struct {
	// The category of the cache. It's used to differentiate between different types of caches.
	CacheCategory OptCacheCategory
	// The project identifier '{account_name}/{project_name}'.
	ProjectID string
	// The hash that uniquely identifies the artifact in the cache.
	Hash string
	// The upload ID.
	UploadID string
	// The name of the artifact.
	Name string
}

CompleteCacheArtifactMultipartUploadParams is parameters of completeCacheArtifactMultipartUpload operation.

type CompleteCacheArtifactMultipartUploadPaymentRequired

type CompleteCacheArtifactMultipartUploadPaymentRequired Error

func (*CompleteCacheArtifactMultipartUploadPaymentRequired) Decode

Decode decodes CompleteCacheArtifactMultipartUploadPaymentRequired from json.

func (*CompleteCacheArtifactMultipartUploadPaymentRequired) Encode

Encode encodes CompleteCacheArtifactMultipartUploadPaymentRequired as json.

func (*CompleteCacheArtifactMultipartUploadPaymentRequired) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadPaymentRequired) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadReq

type CompleteCacheArtifactMultipartUploadReq struct {
	Parts []CompleteCacheArtifactMultipartUploadReqPartsItem `json:"parts"`
}

func (*CompleteCacheArtifactMultipartUploadReq) Decode

Decode decodes CompleteCacheArtifactMultipartUploadReq from json.

func (*CompleteCacheArtifactMultipartUploadReq) Encode

Encode implements json.Marshaler.

func (*CompleteCacheArtifactMultipartUploadReq) GetParts

GetParts returns the value of Parts.

func (*CompleteCacheArtifactMultipartUploadReq) MarshalJSON

func (s *CompleteCacheArtifactMultipartUploadReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadReq) SetParts

SetParts sets the value of Parts.

func (*CompleteCacheArtifactMultipartUploadReq) UnmarshalJSON

func (s *CompleteCacheArtifactMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadReqPartsItem

type CompleteCacheArtifactMultipartUploadReqPartsItem struct {
	// The ETag of the part.
	Etag OptString `json:"etag"`
	// The part number.
	PartNumber OptInt `json:"part_number"`
}

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) Decode

Decode decodes CompleteCacheArtifactMultipartUploadReqPartsItem from json.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) Encode

Encode implements json.Marshaler.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) GetEtag

GetEtag returns the value of Etag.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) GetPartNumber

GetPartNumber returns the value of PartNumber.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) SetEtag

SetEtag sets the value of Etag.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) SetPartNumber

SetPartNumber sets the value of PartNumber.

func (*CompleteCacheArtifactMultipartUploadReqPartsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteCacheArtifactMultipartUploadRes

type CompleteCacheArtifactMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type CompleteCacheArtifactMultipartUploadUnauthorized

type CompleteCacheArtifactMultipartUploadUnauthorized Error

func (*CompleteCacheArtifactMultipartUploadUnauthorized) Decode

Decode decodes CompleteCacheArtifactMultipartUploadUnauthorized from json.

func (*CompleteCacheArtifactMultipartUploadUnauthorized) Encode

Encode encodes CompleteCacheArtifactMultipartUploadUnauthorized as json.

func (*CompleteCacheArtifactMultipartUploadUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompleteCacheArtifactMultipartUploadUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CompletePreviewsMultipartUploadForbidden

type CompletePreviewsMultipartUploadForbidden Error

func (*CompletePreviewsMultipartUploadForbidden) Decode

Decode decodes CompletePreviewsMultipartUploadForbidden from json.

func (*CompletePreviewsMultipartUploadForbidden) Encode

Encode encodes CompletePreviewsMultipartUploadForbidden as json.

func (*CompletePreviewsMultipartUploadForbidden) MarshalJSON

func (s *CompletePreviewsMultipartUploadForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletePreviewsMultipartUploadForbidden) UnmarshalJSON

func (s *CompletePreviewsMultipartUploadForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompletePreviewsMultipartUploadNotFound

type CompletePreviewsMultipartUploadNotFound Error

func (*CompletePreviewsMultipartUploadNotFound) Decode

Decode decodes CompletePreviewsMultipartUploadNotFound from json.

func (*CompletePreviewsMultipartUploadNotFound) Encode

Encode encodes CompletePreviewsMultipartUploadNotFound as json.

func (*CompletePreviewsMultipartUploadNotFound) MarshalJSON

func (s *CompletePreviewsMultipartUploadNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletePreviewsMultipartUploadNotFound) UnmarshalJSON

func (s *CompletePreviewsMultipartUploadNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompletePreviewsMultipartUploadOK

type CompletePreviewsMultipartUploadOK struct {
	// The URL to download the preview.
	URL string `json:"url"`
}

The preview multipart upload has been completed.

func (*CompletePreviewsMultipartUploadOK) Decode

Decode decodes CompletePreviewsMultipartUploadOK from json.

func (*CompletePreviewsMultipartUploadOK) Encode

Encode implements json.Marshaler.

func (*CompletePreviewsMultipartUploadOK) GetURL

GetURL returns the value of URL.

func (*CompletePreviewsMultipartUploadOK) MarshalJSON

func (s *CompletePreviewsMultipartUploadOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletePreviewsMultipartUploadOK) SetURL

SetURL sets the value of URL.

func (*CompletePreviewsMultipartUploadOK) UnmarshalJSON

func (s *CompletePreviewsMultipartUploadOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompletePreviewsMultipartUploadParams

type CompletePreviewsMultipartUploadParams struct {
	// The handle of the account.
	AccountHandle string
	// The handle of the project.
	ProjectHandle string
}

CompletePreviewsMultipartUploadParams is parameters of completePreviewsMultipartUpload operation.

type CompletePreviewsMultipartUploadReq

type CompletePreviewsMultipartUploadReq struct {
	MultipartUploadParts ArtifactMultipartUploadParts `json:"multipart_upload_parts"`
	// The id of the preview.
	PreviewID string `json:"preview_id"`
}

The request body to complete the multipart upload of a preview.

func (*CompletePreviewsMultipartUploadReq) Decode

Decode decodes CompletePreviewsMultipartUploadReq from json.

func (*CompletePreviewsMultipartUploadReq) Encode

Encode implements json.Marshaler.

func (*CompletePreviewsMultipartUploadReq) GetMultipartUploadParts

GetMultipartUploadParts returns the value of MultipartUploadParts.

func (*CompletePreviewsMultipartUploadReq) GetPreviewID

func (s *CompletePreviewsMultipartUploadReq) GetPreviewID() string

GetPreviewID returns the value of PreviewID.

func (*CompletePreviewsMultipartUploadReq) MarshalJSON

func (s *CompletePreviewsMultipartUploadReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletePreviewsMultipartUploadReq) SetMultipartUploadParts

func (s *CompletePreviewsMultipartUploadReq) SetMultipartUploadParts(val ArtifactMultipartUploadParts)

SetMultipartUploadParts sets the value of MultipartUploadParts.

func (*CompletePreviewsMultipartUploadReq) SetPreviewID

func (s *CompletePreviewsMultipartUploadReq) SetPreviewID(val string)

SetPreviewID sets the value of PreviewID.

func (*CompletePreviewsMultipartUploadReq) UnmarshalJSON

func (s *CompletePreviewsMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompletePreviewsMultipartUploadReq) Validate

type CompletePreviewsMultipartUploadRes

type CompletePreviewsMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type CompletePreviewsMultipartUploadUnauthorized

type CompletePreviewsMultipartUploadUnauthorized Error

func (*CompletePreviewsMultipartUploadUnauthorized) Decode

Decode decodes CompletePreviewsMultipartUploadUnauthorized from json.

func (*CompletePreviewsMultipartUploadUnauthorized) Encode

Encode encodes CompletePreviewsMultipartUploadUnauthorized as json.

func (*CompletePreviewsMultipartUploadUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CompletePreviewsMultipartUploadUnauthorized) UnmarshalJSON

func (s *CompletePreviewsMultipartUploadUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Cookie struct {
	APIKey string
}

func (*Cookie) GetAPIKey

func (s *Cookie) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*Cookie) SetAPIKey

func (s *Cookie) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

type CreateCommandEventForbidden

type CreateCommandEventForbidden Error

func (*CreateCommandEventForbidden) Decode

Decode decodes CreateCommandEventForbidden from json.

func (*CreateCommandEventForbidden) Encode

func (s *CreateCommandEventForbidden) Encode(e *jx.Encoder)

Encode encodes CreateCommandEventForbidden as json.

func (*CreateCommandEventForbidden) MarshalJSON

func (s *CreateCommandEventForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateCommandEventForbidden) UnmarshalJSON

func (s *CreateCommandEventForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateCommandEventParams

type CreateCommandEventParams struct {
	// The project id.
	ProjectID string
}

CreateCommandEventParams is parameters of createCommandEvent operation.

type CreateCommandEventReq

type CreateCommandEventReq struct {
	// The client id of the command.
	ClientID string `json:"client_id"`
	// The arguments of the command.
	CommandArguments []string `json:"command_arguments"`
	// The duration of the command.
	Duration float64 `json:"duration"`
	// The error message of the command.
	ErrorMessage OptString `json:"error_message"`
	// The commit SHA.
	GitCommitSha OptString `json:"git_commit_sha"`
	// The git ref. When on CI, the value can be equal to remote reference such as `refs/pull/1234/merge`.
	GitRef OptString `json:"git_ref"`
	// The git remote URL origin.
	GitRemoteURLOrigin OptString `json:"git_remote_url_origin"`
	// Whether the command was run in a CI environment.
	IsCi bool `json:"is_ci"`
	// The version of macOS that ran the command.
	MacosVersion string `json:"macos_version"`
	// The name of the command.
	Name string `json:"name"`
	// Extra parameters.
	Params OptCreateCommandEventReqParams `json:"params"`
	// The preview identifier.
	PreviewID OptString `json:"preview_id"`
	// The status of the command.
	Status OptCreateCommandEventReqStatus `json:"status"`
	// The subcommand of the command.
	Subcommand OptString `json:"subcommand"`
	// The version of Swift that ran the command.
	SwiftVersion string `json:"swift_version"`
	// The version of Tuist that ran the command.
	TuistVersion string `json:"tuist_version"`
}

func (*CreateCommandEventReq) Decode

func (s *CreateCommandEventReq) Decode(d *jx.Decoder) error

Decode decodes CreateCommandEventReq from json.

func (*CreateCommandEventReq) Encode

func (s *CreateCommandEventReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateCommandEventReq) GetClientID

func (s *CreateCommandEventReq) GetClientID() string

GetClientID returns the value of ClientID.

func (*CreateCommandEventReq) GetCommandArguments

func (s *CreateCommandEventReq) GetCommandArguments() []string

GetCommandArguments returns the value of CommandArguments.

func (*CreateCommandEventReq) GetDuration

func (s *CreateCommandEventReq) GetDuration() float64

GetDuration returns the value of Duration.

func (*CreateCommandEventReq) GetErrorMessage

func (s *CreateCommandEventReq) GetErrorMessage() OptString

GetErrorMessage returns the value of ErrorMessage.

func (*CreateCommandEventReq) GetGitCommitSha

func (s *CreateCommandEventReq) GetGitCommitSha() OptString

GetGitCommitSha returns the value of GitCommitSha.

func (*CreateCommandEventReq) GetGitRef

func (s *CreateCommandEventReq) GetGitRef() OptString

GetGitRef returns the value of GitRef.

func (*CreateCommandEventReq) GetGitRemoteURLOrigin

func (s *CreateCommandEventReq) GetGitRemoteURLOrigin() OptString

GetGitRemoteURLOrigin returns the value of GitRemoteURLOrigin.

func (*CreateCommandEventReq) GetIsCi

func (s *CreateCommandEventReq) GetIsCi() bool

GetIsCi returns the value of IsCi.

func (*CreateCommandEventReq) GetMacosVersion

func (s *CreateCommandEventReq) GetMacosVersion() string

GetMacosVersion returns the value of MacosVersion.

func (*CreateCommandEventReq) GetName

func (s *CreateCommandEventReq) GetName() string

GetName returns the value of Name.

func (*CreateCommandEventReq) GetParams

GetParams returns the value of Params.

func (*CreateCommandEventReq) GetPreviewID

func (s *CreateCommandEventReq) GetPreviewID() OptString

GetPreviewID returns the value of PreviewID.

func (*CreateCommandEventReq) GetStatus

GetStatus returns the value of Status.

func (*CreateCommandEventReq) GetSubcommand

func (s *CreateCommandEventReq) GetSubcommand() OptString

GetSubcommand returns the value of Subcommand.

func (*CreateCommandEventReq) GetSwiftVersion

func (s *CreateCommandEventReq) GetSwiftVersion() string

GetSwiftVersion returns the value of SwiftVersion.

func (*CreateCommandEventReq) GetTuistVersion

func (s *CreateCommandEventReq) GetTuistVersion() string

GetTuistVersion returns the value of TuistVersion.

func (*CreateCommandEventReq) MarshalJSON

func (s *CreateCommandEventReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateCommandEventReq) SetClientID

func (s *CreateCommandEventReq) SetClientID(val string)

SetClientID sets the value of ClientID.

func (*CreateCommandEventReq) SetCommandArguments

func (s *CreateCommandEventReq) SetCommandArguments(val []string)

SetCommandArguments sets the value of CommandArguments.

func (*CreateCommandEventReq) SetDuration

func (s *CreateCommandEventReq) SetDuration(val float64)

SetDuration sets the value of Duration.

func (*CreateCommandEventReq) SetErrorMessage

func (s *CreateCommandEventReq) SetErrorMessage(val OptString)

SetErrorMessage sets the value of ErrorMessage.

func (*CreateCommandEventReq) SetGitCommitSha

func (s *CreateCommandEventReq) SetGitCommitSha(val OptString)

SetGitCommitSha sets the value of GitCommitSha.

func (*CreateCommandEventReq) SetGitRef

func (s *CreateCommandEventReq) SetGitRef(val OptString)

SetGitRef sets the value of GitRef.

func (*CreateCommandEventReq) SetGitRemoteURLOrigin

func (s *CreateCommandEventReq) SetGitRemoteURLOrigin(val OptString)

SetGitRemoteURLOrigin sets the value of GitRemoteURLOrigin.

func (*CreateCommandEventReq) SetIsCi

func (s *CreateCommandEventReq) SetIsCi(val bool)

SetIsCi sets the value of IsCi.

func (*CreateCommandEventReq) SetMacosVersion

func (s *CreateCommandEventReq) SetMacosVersion(val string)

SetMacosVersion sets the value of MacosVersion.

func (*CreateCommandEventReq) SetName

func (s *CreateCommandEventReq) SetName(val string)

SetName sets the value of Name.

func (*CreateCommandEventReq) SetParams

SetParams sets the value of Params.

func (*CreateCommandEventReq) SetPreviewID

func (s *CreateCommandEventReq) SetPreviewID(val OptString)

SetPreviewID sets the value of PreviewID.

func (*CreateCommandEventReq) SetStatus

SetStatus sets the value of Status.

func (*CreateCommandEventReq) SetSubcommand

func (s *CreateCommandEventReq) SetSubcommand(val OptString)

SetSubcommand sets the value of Subcommand.

func (*CreateCommandEventReq) SetSwiftVersion

func (s *CreateCommandEventReq) SetSwiftVersion(val string)

SetSwiftVersion sets the value of SwiftVersion.

func (*CreateCommandEventReq) SetTuistVersion

func (s *CreateCommandEventReq) SetTuistVersion(val string)

SetTuistVersion sets the value of TuistVersion.

func (*CreateCommandEventReq) UnmarshalJSON

func (s *CreateCommandEventReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCommandEventReq) Validate

func (s *CreateCommandEventReq) Validate() error

type CreateCommandEventReqParams

type CreateCommandEventReqParams struct {
	// A list of cacheable targets.
	CacheableTargets []string `json:"cacheable_targets"`
	// A list of local cache target hits.
	LocalCacheTargetHits []string `json:"local_cache_target_hits"`
	// A list of local targets whose tests were skipped.
	LocalTestTargetHits []string `json:"local_test_target_hits"`
	// A list of remote cache target hits.
	RemoteCacheTargetHits []string `json:"remote_cache_target_hits"`
	// A list of remote targets whose tests were skipped.
	RemoteTestTargetHits []string `json:"remote_test_target_hits"`
	// The list of targets that were tested.
	TestTargets []string `json:"test_targets"`
}

Extra parameters.

func (*CreateCommandEventReqParams) Decode

Decode decodes CreateCommandEventReqParams from json.

func (*CreateCommandEventReqParams) Encode

func (s *CreateCommandEventReqParams) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateCommandEventReqParams) GetCacheableTargets

func (s *CreateCommandEventReqParams) GetCacheableTargets() []string

GetCacheableTargets returns the value of CacheableTargets.

func (*CreateCommandEventReqParams) GetLocalCacheTargetHits

func (s *CreateCommandEventReqParams) GetLocalCacheTargetHits() []string

GetLocalCacheTargetHits returns the value of LocalCacheTargetHits.

func (*CreateCommandEventReqParams) GetLocalTestTargetHits

func (s *CreateCommandEventReqParams) GetLocalTestTargetHits() []string

GetLocalTestTargetHits returns the value of LocalTestTargetHits.

func (*CreateCommandEventReqParams) GetRemoteCacheTargetHits

func (s *CreateCommandEventReqParams) GetRemoteCacheTargetHits() []string

GetRemoteCacheTargetHits returns the value of RemoteCacheTargetHits.

func (*CreateCommandEventReqParams) GetRemoteTestTargetHits

func (s *CreateCommandEventReqParams) GetRemoteTestTargetHits() []string

GetRemoteTestTargetHits returns the value of RemoteTestTargetHits.

func (*CreateCommandEventReqParams) GetTestTargets

func (s *CreateCommandEventReqParams) GetTestTargets() []string

GetTestTargets returns the value of TestTargets.

func (*CreateCommandEventReqParams) MarshalJSON

func (s *CreateCommandEventReqParams) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateCommandEventReqParams) SetCacheableTargets

func (s *CreateCommandEventReqParams) SetCacheableTargets(val []string)

SetCacheableTargets sets the value of CacheableTargets.

func (*CreateCommandEventReqParams) SetLocalCacheTargetHits

func (s *CreateCommandEventReqParams) SetLocalCacheTargetHits(val []string)

SetLocalCacheTargetHits sets the value of LocalCacheTargetHits.

func (*CreateCommandEventReqParams) SetLocalTestTargetHits

func (s *CreateCommandEventReqParams) SetLocalTestTargetHits(val []string)

SetLocalTestTargetHits sets the value of LocalTestTargetHits.

func (*CreateCommandEventReqParams) SetRemoteCacheTargetHits

func (s *CreateCommandEventReqParams) SetRemoteCacheTargetHits(val []string)

SetRemoteCacheTargetHits sets the value of RemoteCacheTargetHits.

func (*CreateCommandEventReqParams) SetRemoteTestTargetHits

func (s *CreateCommandEventReqParams) SetRemoteTestTargetHits(val []string)

SetRemoteTestTargetHits sets the value of RemoteTestTargetHits.

func (*CreateCommandEventReqParams) SetTestTargets

func (s *CreateCommandEventReqParams) SetTestTargets(val []string)

SetTestTargets sets the value of TestTargets.

func (*CreateCommandEventReqParams) UnmarshalJSON

func (s *CreateCommandEventReqParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateCommandEventReqStatus

type CreateCommandEventReqStatus string

The status of the command.

const (
	CreateCommandEventReqStatusSuccess CreateCommandEventReqStatus = "success"
	CreateCommandEventReqStatusFailure CreateCommandEventReqStatus = "failure"
)

func (CreateCommandEventReqStatus) AllValues

AllValues returns all CreateCommandEventReqStatus values.

func (*CreateCommandEventReqStatus) Decode

Decode decodes CreateCommandEventReqStatus from json.

func (CreateCommandEventReqStatus) Encode

func (s CreateCommandEventReqStatus) Encode(e *jx.Encoder)

Encode encodes CreateCommandEventReqStatus as json.

func (CreateCommandEventReqStatus) MarshalJSON

func (s CreateCommandEventReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateCommandEventReqStatus) MarshalText

func (s CreateCommandEventReqStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateCommandEventReqStatus) UnmarshalJSON

func (s *CreateCommandEventReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCommandEventReqStatus) UnmarshalText

func (s *CreateCommandEventReqStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateCommandEventReqStatus) Validate

func (s CreateCommandEventReqStatus) Validate() error

type CreateCommandEventRes

type CreateCommandEventRes interface {
	// contains filtered or unexported methods
}

type CreateCommandEventUnauthorized

type CreateCommandEventUnauthorized Error

func (*CreateCommandEventUnauthorized) Decode

Decode decodes CreateCommandEventUnauthorized from json.

func (*CreateCommandEventUnauthorized) Encode

Encode encodes CreateCommandEventUnauthorized as json.

func (*CreateCommandEventUnauthorized) MarshalJSON

func (s *CreateCommandEventUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateCommandEventUnauthorized) UnmarshalJSON

func (s *CreateCommandEventUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateInvitationBadRequest

type CreateInvitationBadRequest Error

func (*CreateInvitationBadRequest) Decode

Decode decodes CreateInvitationBadRequest from json.

func (*CreateInvitationBadRequest) Encode

func (s *CreateInvitationBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateInvitationBadRequest as json.

func (*CreateInvitationBadRequest) MarshalJSON

func (s *CreateInvitationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateInvitationBadRequest) UnmarshalJSON

func (s *CreateInvitationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateInvitationForbidden

type CreateInvitationForbidden Error

func (*CreateInvitationForbidden) Decode

func (s *CreateInvitationForbidden) Decode(d *jx.Decoder) error

Decode decodes CreateInvitationForbidden from json.

func (*CreateInvitationForbidden) Encode

func (s *CreateInvitationForbidden) Encode(e *jx.Encoder)

Encode encodes CreateInvitationForbidden as json.

func (*CreateInvitationForbidden) MarshalJSON

func (s *CreateInvitationForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateInvitationForbidden) UnmarshalJSON

func (s *CreateInvitationForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateInvitationNotFound

type CreateInvitationNotFound Error

func (*CreateInvitationNotFound) Decode

func (s *CreateInvitationNotFound) Decode(d *jx.Decoder) error

Decode decodes CreateInvitationNotFound from json.

func (*CreateInvitationNotFound) Encode

func (s *CreateInvitationNotFound) Encode(e *jx.Encoder)

Encode encodes CreateInvitationNotFound as json.

func (*CreateInvitationNotFound) MarshalJSON

func (s *CreateInvitationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateInvitationNotFound) UnmarshalJSON

func (s *CreateInvitationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateInvitationParams

type CreateInvitationParams struct {
	// The name of the organization.
	OrganizationName string
}

CreateInvitationParams is parameters of createInvitation operation.

type CreateInvitationReq

type CreateInvitationReq struct {
	// The email of the invitee.
	InviteeEmail string `json:"invitee_email"`
}

func (*CreateInvitationReq) Decode

func (s *CreateInvitationReq) Decode(d *jx.Decoder) error

Decode decodes CreateInvitationReq from json.

func (*CreateInvitationReq) Encode

func (s *CreateInvitationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateInvitationReq) GetInviteeEmail

func (s *CreateInvitationReq) GetInviteeEmail() string

GetInviteeEmail returns the value of InviteeEmail.

func (*CreateInvitationReq) MarshalJSON

func (s *CreateInvitationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateInvitationReq) SetInviteeEmail

func (s *CreateInvitationReq) SetInviteeEmail(val string)

SetInviteeEmail sets the value of InviteeEmail.

func (*CreateInvitationReq) UnmarshalJSON

func (s *CreateInvitationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateInvitationRes

type CreateInvitationRes interface {
	// contains filtered or unexported methods
}

type CreateInvitationUnauthorized

type CreateInvitationUnauthorized Error

func (*CreateInvitationUnauthorized) Decode

Decode decodes CreateInvitationUnauthorized from json.

func (*CreateInvitationUnauthorized) Encode

func (s *CreateInvitationUnauthorized) Encode(e *jx.Encoder)

Encode encodes CreateInvitationUnauthorized as json.

func (*CreateInvitationUnauthorized) MarshalJSON

func (s *CreateInvitationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateInvitationUnauthorized) UnmarshalJSON

func (s *CreateInvitationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateOrganizationReq

type CreateOrganizationReq struct {
	// The name of the organization that should be created.
	Name string `json:"name"`
}

func (*CreateOrganizationReq) Decode

func (s *CreateOrganizationReq) Decode(d *jx.Decoder) error

Decode decodes CreateOrganizationReq from json.

func (*CreateOrganizationReq) Encode

func (s *CreateOrganizationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateOrganizationReq) GetName

func (s *CreateOrganizationReq) GetName() string

GetName returns the value of Name.

func (*CreateOrganizationReq) MarshalJSON

func (s *CreateOrganizationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateOrganizationReq) SetName

func (s *CreateOrganizationReq) SetName(val string)

SetName sets the value of Name.

func (*CreateOrganizationReq) UnmarshalJSON

func (s *CreateOrganizationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateOrganizationRes

type CreateOrganizationRes interface {
	// contains filtered or unexported methods
}

type CreateProjectBadRequest

type CreateProjectBadRequest Error

func (*CreateProjectBadRequest) Decode

func (s *CreateProjectBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateProjectBadRequest from json.

func (*CreateProjectBadRequest) Encode

func (s *CreateProjectBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateProjectBadRequest as json.

func (*CreateProjectBadRequest) MarshalJSON

func (s *CreateProjectBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectBadRequest) UnmarshalJSON

func (s *CreateProjectBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectForbidden

type CreateProjectForbidden Error

func (*CreateProjectForbidden) Decode

func (s *CreateProjectForbidden) Decode(d *jx.Decoder) error

Decode decodes CreateProjectForbidden from json.

func (*CreateProjectForbidden) Encode

func (s *CreateProjectForbidden) Encode(e *jx.Encoder)

Encode encodes CreateProjectForbidden as json.

func (*CreateProjectForbidden) MarshalJSON

func (s *CreateProjectForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectForbidden) UnmarshalJSON

func (s *CreateProjectForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectReq

type CreateProjectReq struct {
	// The full handle of the project that should be created.
	FullHandle OptString `json:"full_handle"`
	// The name of the project that should be created.
	//
	// Deprecated: schema marks this property as deprecated.
	Name OptString `json:"name"`
	// Organization to create the project with. If not specified, the project will be created with the
	// current user's personal account.
	//
	// Deprecated: schema marks this property as deprecated.
	Organization OptString `json:"organization"`
}

func (*CreateProjectReq) Decode

func (s *CreateProjectReq) Decode(d *jx.Decoder) error

Decode decodes CreateProjectReq from json.

func (*CreateProjectReq) Encode

func (s *CreateProjectReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectReq) GetFullHandle

func (s *CreateProjectReq) GetFullHandle() OptString

GetFullHandle returns the value of FullHandle.

func (*CreateProjectReq) GetName

func (s *CreateProjectReq) GetName() OptString

GetName returns the value of Name.

func (*CreateProjectReq) GetOrganization

func (s *CreateProjectReq) GetOrganization() OptString

GetOrganization returns the value of Organization.

func (*CreateProjectReq) MarshalJSON

func (s *CreateProjectReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectReq) SetFullHandle

func (s *CreateProjectReq) SetFullHandle(val OptString)

SetFullHandle sets the value of FullHandle.

func (*CreateProjectReq) SetName

func (s *CreateProjectReq) SetName(val OptString)

SetName sets the value of Name.

func (*CreateProjectReq) SetOrganization

func (s *CreateProjectReq) SetOrganization(val OptString)

SetOrganization sets the value of Organization.

func (*CreateProjectReq) UnmarshalJSON

func (s *CreateProjectReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectRes

type CreateProjectRes interface {
	// contains filtered or unexported methods
}

type CreateProjectTokenForbidden

type CreateProjectTokenForbidden Error

func (*CreateProjectTokenForbidden) Decode

Decode decodes CreateProjectTokenForbidden from json.

func (*CreateProjectTokenForbidden) Encode

func (s *CreateProjectTokenForbidden) Encode(e *jx.Encoder)

Encode encodes CreateProjectTokenForbidden as json.

func (*CreateProjectTokenForbidden) MarshalJSON

func (s *CreateProjectTokenForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectTokenForbidden) UnmarshalJSON

func (s *CreateProjectTokenForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectTokenNotFound

type CreateProjectTokenNotFound Error

func (*CreateProjectTokenNotFound) Decode

Decode decodes CreateProjectTokenNotFound from json.

func (*CreateProjectTokenNotFound) Encode

func (s *CreateProjectTokenNotFound) Encode(e *jx.Encoder)

Encode encodes CreateProjectTokenNotFound as json.

func (*CreateProjectTokenNotFound) MarshalJSON

func (s *CreateProjectTokenNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectTokenNotFound) UnmarshalJSON

func (s *CreateProjectTokenNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectTokenOK

type CreateProjectTokenOK struct {
	// The generated project token.
	Token string `json:"token"`
}

A new project token.

func (*CreateProjectTokenOK) Decode

func (s *CreateProjectTokenOK) Decode(d *jx.Decoder) error

Decode decodes CreateProjectTokenOK from json.

func (*CreateProjectTokenOK) Encode

func (s *CreateProjectTokenOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectTokenOK) GetToken

func (s *CreateProjectTokenOK) GetToken() string

GetToken returns the value of Token.

func (*CreateProjectTokenOK) MarshalJSON

func (s *CreateProjectTokenOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectTokenOK) SetToken

func (s *CreateProjectTokenOK) SetToken(val string)

SetToken sets the value of Token.

func (*CreateProjectTokenOK) UnmarshalJSON

func (s *CreateProjectTokenOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectTokenParams

type CreateProjectTokenParams struct {
	// The account handle.
	AccountHandle string
	// The project handle.
	ProjectHandle string
}

CreateProjectTokenParams is parameters of createProjectToken operation.

type CreateProjectTokenRes

type CreateProjectTokenRes interface {
	// contains filtered or unexported methods
}

type CreateProjectTokenUnauthorized

type CreateProjectTokenUnauthorized Error

func (*CreateProjectTokenUnauthorized) Decode

Decode decodes CreateProjectTokenUnauthorized from json.

func (*CreateProjectTokenUnauthorized) Encode

Encode encodes CreateProjectTokenUnauthorized as json.

func (*CreateProjectTokenUnauthorized) MarshalJSON

func (s *CreateProjectTokenUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectTokenUnauthorized) UnmarshalJSON

func (s *CreateProjectTokenUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectUnauthorized

type CreateProjectUnauthorized Error

func (*CreateProjectUnauthorized) Decode

func (s *CreateProjectUnauthorized) Decode(d *jx.Decoder) error

Decode decodes CreateProjectUnauthorized from json.

func (*CreateProjectUnauthorized) Encode

func (s *CreateProjectUnauthorized) Encode(e *jx.Encoder)

Encode encodes CreateProjectUnauthorized as json.

func (*CreateProjectUnauthorized) MarshalJSON

func (s *CreateProjectUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectUnauthorized) UnmarshalJSON

func (s *CreateProjectUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteOrganizationForbidden

type DeleteOrganizationForbidden Error

func (*DeleteOrganizationForbidden) Decode

Decode decodes DeleteOrganizationForbidden from json.

func (*DeleteOrganizationForbidden) Encode

func (s *DeleteOrganizationForbidden) Encode(e *jx.Encoder)

Encode encodes DeleteOrganizationForbidden as json.

func (*DeleteOrganizationForbidden) MarshalJSON

func (s *DeleteOrganizationForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteOrganizationForbidden) UnmarshalJSON

func (s *DeleteOrganizationForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteOrganizationNoContent

type DeleteOrganizationNoContent struct{}

DeleteOrganizationNoContent is response for DeleteOrganization operation.

type DeleteOrganizationNotFound

type DeleteOrganizationNotFound Error

func (*DeleteOrganizationNotFound) Decode

Decode decodes DeleteOrganizationNotFound from json.

func (*DeleteOrganizationNotFound) Encode

func (s *DeleteOrganizationNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteOrganizationNotFound as json.

func (*DeleteOrganizationNotFound) MarshalJSON

func (s *DeleteOrganizationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteOrganizationNotFound) UnmarshalJSON

func (s *DeleteOrganizationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteOrganizationParams

type DeleteOrganizationParams struct {
	// The name of the organization to delete.
	OrganizationName string
}

DeleteOrganizationParams is parameters of deleteOrganization operation.

type DeleteOrganizationRes

type DeleteOrganizationRes interface {
	// contains filtered or unexported methods
}

type DeleteOrganizationUnauthorized

type DeleteOrganizationUnauthorized Error

func (*DeleteOrganizationUnauthorized) Decode

Decode decodes DeleteOrganizationUnauthorized from json.

func (*DeleteOrganizationUnauthorized) Encode

Encode encodes DeleteOrganizationUnauthorized as json.

func (*DeleteOrganizationUnauthorized) MarshalJSON

func (s *DeleteOrganizationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteOrganizationUnauthorized) UnmarshalJSON

func (s *DeleteOrganizationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteProjectForbidden

type DeleteProjectForbidden Error

func (*DeleteProjectForbidden) Decode

func (s *DeleteProjectForbidden) Decode(d *jx.Decoder) error

Decode decodes DeleteProjectForbidden from json.

func (*DeleteProjectForbidden) Encode

func (s *DeleteProjectForbidden) Encode(e *jx.Encoder)

Encode encodes DeleteProjectForbidden as json.

func (*DeleteProjectForbidden) MarshalJSON

func (s *DeleteProjectForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteProjectForbidden) UnmarshalJSON

func (s *DeleteProjectForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteProjectNoContent

type DeleteProjectNoContent struct{}

DeleteProjectNoContent is response for DeleteProject operation.

type DeleteProjectNotFound

type DeleteProjectNotFound Error

func (*DeleteProjectNotFound) Decode

func (s *DeleteProjectNotFound) Decode(d *jx.Decoder) error

Decode decodes DeleteProjectNotFound from json.

func (*DeleteProjectNotFound) Encode

func (s *DeleteProjectNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteProjectNotFound as json.

func (*DeleteProjectNotFound) MarshalJSON

func (s *DeleteProjectNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteProjectNotFound) UnmarshalJSON

func (s *DeleteProjectNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteProjectParams

type DeleteProjectParams struct {
	// The id of the project to delete.
	ID int
}

DeleteProjectParams is parameters of deleteProject operation.

type DeleteProjectRes

type DeleteProjectRes interface {
	// contains filtered or unexported methods
}

type DeleteProjectUnauthorized

type DeleteProjectUnauthorized Error

func (*DeleteProjectUnauthorized) Decode

func (s *DeleteProjectUnauthorized) Decode(d *jx.Decoder) error

Decode decodes DeleteProjectUnauthorized from json.

func (*DeleteProjectUnauthorized) Encode

func (s *DeleteProjectUnauthorized) Encode(e *jx.Encoder)

Encode encodes DeleteProjectUnauthorized as json.

func (*DeleteProjectUnauthorized) MarshalJSON

func (s *DeleteProjectUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteProjectUnauthorized) UnmarshalJSON

func (s *DeleteProjectUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadCacheArtifactForbidden

type DownloadCacheArtifactForbidden Error

func (*DownloadCacheArtifactForbidden) Decode

Decode decodes DownloadCacheArtifactForbidden from json.

func (*DownloadCacheArtifactForbidden) Encode

Encode encodes DownloadCacheArtifactForbidden as json.

func (*DownloadCacheArtifactForbidden) MarshalJSON

func (s *DownloadCacheArtifactForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadCacheArtifactForbidden) UnmarshalJSON

func (s *DownloadCacheArtifactForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadCacheArtifactNotFound

type DownloadCacheArtifactNotFound Error

func (*DownloadCacheArtifactNotFound) Decode

Decode decodes DownloadCacheArtifactNotFound from json.

func (*DownloadCacheArtifactNotFound) Encode

Encode encodes DownloadCacheArtifactNotFound as json.

func (*DownloadCacheArtifactNotFound) MarshalJSON

func (s *DownloadCacheArtifactNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadCacheArtifactNotFound) UnmarshalJSON

func (s *DownloadCacheArtifactNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadCacheArtifactParams

type DownloadCacheArtifactParams struct {
	// The category of the cache. It's used to differentiate between different types of caches.
	CacheCategory OptCacheCategory
	// The project identifier '{account_name}/{project_name}'.
	ProjectID string
	// The hash that uniquely identifies the artifact in the cache.
	Hash string
	// The name of the artifact.
	Name string
}

DownloadCacheArtifactParams is parameters of downloadCacheArtifact operation.

type DownloadCacheArtifactPaymentRequired

type DownloadCacheArtifactPaymentRequired Error

func (*DownloadCacheArtifactPaymentRequired) Decode

Decode decodes DownloadCacheArtifactPaymentRequired from json.

func (*DownloadCacheArtifactPaymentRequired) Encode

Encode encodes DownloadCacheArtifactPaymentRequired as json.

func (*DownloadCacheArtifactPaymentRequired) MarshalJSON

func (s *DownloadCacheArtifactPaymentRequired) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadCacheArtifactPaymentRequired) UnmarshalJSON

func (s *DownloadCacheArtifactPaymentRequired) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadCacheArtifactRes

type DownloadCacheArtifactRes interface {
	// contains filtered or unexported methods
}

type DownloadCacheArtifactUnauthorized

type DownloadCacheArtifactUnauthorized Error

func (*DownloadCacheArtifactUnauthorized) Decode

Decode decodes DownloadCacheArtifactUnauthorized from json.

func (*DownloadCacheArtifactUnauthorized) Encode

Encode encodes DownloadCacheArtifactUnauthorized as json.

func (*DownloadCacheArtifactUnauthorized) MarshalJSON

func (s *DownloadCacheArtifactUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadCacheArtifactUnauthorized) UnmarshalJSON

func (s *DownloadCacheArtifactUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadPreviewForbidden

type DownloadPreviewForbidden Error

func (*DownloadPreviewForbidden) Decode

func (s *DownloadPreviewForbidden) Decode(d *jx.Decoder) error

Decode decodes DownloadPreviewForbidden from json.

func (*DownloadPreviewForbidden) Encode

func (s *DownloadPreviewForbidden) Encode(e *jx.Encoder)

Encode encodes DownloadPreviewForbidden as json.

func (*DownloadPreviewForbidden) MarshalJSON

func (s *DownloadPreviewForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadPreviewForbidden) UnmarshalJSON

func (s *DownloadPreviewForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadPreviewNotFound

type DownloadPreviewNotFound Error

func (*DownloadPreviewNotFound) Decode

func (s *DownloadPreviewNotFound) Decode(d *jx.Decoder) error

Decode decodes DownloadPreviewNotFound from json.

func (*DownloadPreviewNotFound) Encode

func (s *DownloadPreviewNotFound) Encode(e *jx.Encoder)

Encode encodes DownloadPreviewNotFound as json.

func (*DownloadPreviewNotFound) MarshalJSON

func (s *DownloadPreviewNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadPreviewNotFound) UnmarshalJSON

func (s *DownloadPreviewNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DownloadPreviewParams

type DownloadPreviewParams struct {
	// The handle of the account.
	AccountHandle string
	// The handle of the project.
	ProjectHandle string
	// The id of the preview.
	PreviewID string
}

DownloadPreviewParams is parameters of downloadPreview operation.

type DownloadPreviewRes

type DownloadPreviewRes interface {
	// contains filtered or unexported methods
}

type DownloadPreviewUnauthorized

type DownloadPreviewUnauthorized Error

func (*DownloadPreviewUnauthorized) Decode

Decode decodes DownloadPreviewUnauthorized from json.

func (*DownloadPreviewUnauthorized) Encode

func (s *DownloadPreviewUnauthorized) Encode(e *jx.Encoder)

Encode encodes DownloadPreviewUnauthorized as json.

func (*DownloadPreviewUnauthorized) MarshalJSON

func (s *DownloadPreviewUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadPreviewUnauthorized) UnmarshalJSON

func (s *DownloadPreviewUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	// The error message.
	Message string `json:"message"`
}

Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetMessage

func (s *Error) GetMessage() string

GetMessage returns the value of Message.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetMessage

func (s *Error) SetMessage(val string)

SetMessage sets the value of Message.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type GenerateAnalyticsArtifactMultipartUploadURLForbidden

type GenerateAnalyticsArtifactMultipartUploadURLForbidden Error

func (*GenerateAnalyticsArtifactMultipartUploadURLForbidden) Decode

Decode decodes GenerateAnalyticsArtifactMultipartUploadURLForbidden from json.

func (*GenerateAnalyticsArtifactMultipartUploadURLForbidden) Encode

Encode encodes GenerateAnalyticsArtifactMultipartUploadURLForbidden as json.

func (*GenerateAnalyticsArtifactMultipartUploadURLForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateAnalyticsArtifactMultipartUploadURLForbidden) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateAnalyticsArtifactMultipartUploadURLNotFound

type GenerateAnalyticsArtifactMultipartUploadURLNotFound Error

func (*GenerateAnalyticsArtifactMultipartUploadURLNotFound) Decode

Decode decodes GenerateAnalyticsArtifactMultipartUploadURLNotFound from json.

func (*GenerateAnalyticsArtifactMultipartUploadURLNotFound) Encode

Encode encodes GenerateAnalyticsArtifactMultipartUploadURLNotFound as json.

func (*GenerateAnalyticsArtifactMultipartUploadURLNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateAnalyticsArtifactMultipartUploadURLNotFound) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateAnalyticsArtifactMultipartUploadURLParams

type GenerateAnalyticsArtifactMultipartUploadURLParams struct {
	// The id of the command event.
	RunID int
}

GenerateAnalyticsArtifactMultipartUploadURLParams is parameters of generateAnalyticsArtifactMultipartUploadURL operation.

type GenerateAnalyticsArtifactMultipartUploadURLReq

type GenerateAnalyticsArtifactMultipartUploadURLReq struct {
	CommandEventArtifact CommandEventArtifact        `json:"command_event_artifact"`
	MultipartUploadPart  ArtifactMultipartUploadPart `json:"multipart_upload_part"`
}

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) Decode

Decode decodes GenerateAnalyticsArtifactMultipartUploadURLReq from json.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) Encode

Encode implements json.Marshaler.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) GetCommandEventArtifact

GetCommandEventArtifact returns the value of CommandEventArtifact.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) GetMultipartUploadPart

GetMultipartUploadPart returns the value of MultipartUploadPart.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) SetCommandEventArtifact

SetCommandEventArtifact sets the value of CommandEventArtifact.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) SetMultipartUploadPart

SetMultipartUploadPart sets the value of MultipartUploadPart.

func (*GenerateAnalyticsArtifactMultipartUploadURLReq) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateAnalyticsArtifactMultipartUploadURLRes

type GenerateAnalyticsArtifactMultipartUploadURLRes interface {
	// contains filtered or unexported methods
}

type GenerateAnalyticsArtifactMultipartUploadURLUnauthorized

type GenerateAnalyticsArtifactMultipartUploadURLUnauthorized Error

func (*GenerateAnalyticsArtifactMultipartUploadURLUnauthorized) Decode

Decode decodes GenerateAnalyticsArtifactMultipartUploadURLUnauthorized from json.

func (*GenerateAnalyticsArtifactMultipartUploadURLUnauthorized) Encode

Encode encodes GenerateAnalyticsArtifactMultipartUploadURLUnauthorized as json.

func (*GenerateAnalyticsArtifactMultipartUploadURLUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateAnalyticsArtifactMultipartUploadURLUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateCacheArtifactMultipartUploadURLForbidden

type GenerateCacheArtifactMultipartUploadURLForbidden Error

func (*GenerateCacheArtifactMultipartUploadURLForbidden) Decode

Decode decodes GenerateCacheArtifactMultipartUploadURLForbidden from json.

func (*GenerateCacheArtifactMultipartUploadURLForbidden) Encode

Encode encodes GenerateCacheArtifactMultipartUploadURLForbidden as json.

func (*GenerateCacheArtifactMultipartUploadURLForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateCacheArtifactMultipartUploadURLForbidden) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateCacheArtifactMultipartUploadURLNotFound

type GenerateCacheArtifactMultipartUploadURLNotFound Error

func (*GenerateCacheArtifactMultipartUploadURLNotFound) Decode

Decode decodes GenerateCacheArtifactMultipartUploadURLNotFound from json.

func (*GenerateCacheArtifactMultipartUploadURLNotFound) Encode

Encode encodes GenerateCacheArtifactMultipartUploadURLNotFound as json.

func (*GenerateCacheArtifactMultipartUploadURLNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateCacheArtifactMultipartUploadURLNotFound) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateCacheArtifactMultipartUploadURLParams

type GenerateCacheArtifactMultipartUploadURLParams struct {
	// The category of the cache. It's used to differentiate between different types of caches.
	CacheCategory OptCacheCategory
	// The project identifier '{account_name}/{project_name}'.
	ProjectID string
	// The hash that uniquely identifies the artifact in the cache.
	Hash string
	// The part number of the multipart upload.
	PartNumber int
	// The upload ID.
	UploadID string
	// The name of the artifact.
	Name string
}

GenerateCacheArtifactMultipartUploadURLParams is parameters of generateCacheArtifactMultipartUploadURL operation.

type GenerateCacheArtifactMultipartUploadURLPaymentRequired

type GenerateCacheArtifactMultipartUploadURLPaymentRequired Error

func (*GenerateCacheArtifactMultipartUploadURLPaymentRequired) Decode

Decode decodes GenerateCacheArtifactMultipartUploadURLPaymentRequired from json.

func (*GenerateCacheArtifactMultipartUploadURLPaymentRequired) Encode

Encode encodes GenerateCacheArtifactMultipartUploadURLPaymentRequired as json.

func (*GenerateCacheArtifactMultipartUploadURLPaymentRequired) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateCacheArtifactMultipartUploadURLPaymentRequired) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GenerateCacheArtifactMultipartUploadURLRes

type GenerateCacheArtifactMultipartUploadURLRes interface {
	// contains filtered or unexported methods
}

type GenerateCacheArtifactMultipartUploadURLUnauthorized

type GenerateCacheArtifactMultipartUploadURLUnauthorized Error

func (*GenerateCacheArtifactMultipartUploadURLUnauthorized) Decode

Decode decodes GenerateCacheArtifactMultipartUploadURLUnauthorized from json.

func (*GenerateCacheArtifactMultipartUploadURLUnauthorized) Encode

Encode encodes GenerateCacheArtifactMultipartUploadURLUnauthorized as json.

func (*GenerateCacheArtifactMultipartUploadURLUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GenerateCacheArtifactMultipartUploadURLUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GeneratePreviewsMultipartUploadURLForbidden

type GeneratePreviewsMultipartUploadURLForbidden Error

func (*GeneratePreviewsMultipartUploadURLForbidden) Decode

Decode decodes GeneratePreviewsMultipartUploadURLForbidden from json.

func (*GeneratePreviewsMultipartUploadURLForbidden) Encode

Encode encodes GeneratePreviewsMultipartUploadURLForbidden as json.

func (*GeneratePreviewsMultipartUploadURLForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GeneratePreviewsMultipartUploadURLForbidden) UnmarshalJSON

func (s *GeneratePreviewsMultipartUploadURLForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GeneratePreviewsMultipartUploadURLNotFound

type GeneratePreviewsMultipartUploadURLNotFound Error

func (*GeneratePreviewsMultipartUploadURLNotFound) Decode

Decode decodes GeneratePreviewsMultipartUploadURLNotFound from json.

func (*GeneratePreviewsMultipartUploadURLNotFound) Encode

Encode encodes GeneratePreviewsMultipartUploadURLNotFound as json.

func (*GeneratePreviewsMultipartUploadURLNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GeneratePreviewsMultipartUploadURLNotFound) UnmarshalJSON

func (s *GeneratePreviewsMultipartUploadURLNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GeneratePreviewsMultipartUploadURLParams

type GeneratePreviewsMultipartUploadURLParams struct {
	// The handle of the account.
	AccountHandle string
	// The handle of the project.
	ProjectHandle string
}

GeneratePreviewsMultipartUploadURLParams is parameters of generatePreviewsMultipartUploadURL operation.

type GeneratePreviewsMultipartUploadURLReq

type GeneratePreviewsMultipartUploadURLReq struct {
	MultipartUploadPart ArtifactMultipartUploadPart `json:"multipart_upload_part"`
	// The id of the preview.
	PreviewID string `json:"preview_id"`
}

func (*GeneratePreviewsMultipartUploadURLReq) Decode

Decode decodes GeneratePreviewsMultipartUploadURLReq from json.

func (*GeneratePreviewsMultipartUploadURLReq) Encode

Encode implements json.Marshaler.

func (*GeneratePreviewsMultipartUploadURLReq) GetMultipartUploadPart

GetMultipartUploadPart returns the value of MultipartUploadPart.

func (*GeneratePreviewsMultipartUploadURLReq) GetPreviewID

GetPreviewID returns the value of PreviewID.

func (*GeneratePreviewsMultipartUploadURLReq) MarshalJSON

func (s *GeneratePreviewsMultipartUploadURLReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GeneratePreviewsMultipartUploadURLReq) SetMultipartUploadPart

SetMultipartUploadPart sets the value of MultipartUploadPart.

func (*GeneratePreviewsMultipartUploadURLReq) SetPreviewID

func (s *GeneratePreviewsMultipartUploadURLReq) SetPreviewID(val string)

SetPreviewID sets the value of PreviewID.

func (*GeneratePreviewsMultipartUploadURLReq) UnmarshalJSON

func (s *GeneratePreviewsMultipartUploadURLReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GeneratePreviewsMultipartUploadURLRes

type GeneratePreviewsMultipartUploadURLRes interface {
	// contains filtered or unexported methods
}

type GeneratePreviewsMultipartUploadURLUnauthorized

type GeneratePreviewsMultipartUploadURLUnauthorized Error

func (*GeneratePreviewsMultipartUploadURLUnauthorized) Decode

Decode decodes GeneratePreviewsMultipartUploadURLUnauthorized from json.

func (*GeneratePreviewsMultipartUploadURLUnauthorized) Encode

Encode encodes GeneratePreviewsMultipartUploadURLUnauthorized as json.

func (*GeneratePreviewsMultipartUploadURLUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GeneratePreviewsMultipartUploadURLUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCacheActionItemForbidden

type GetCacheActionItemForbidden Error

func (*GetCacheActionItemForbidden) Decode

Decode decodes GetCacheActionItemForbidden from json.

func (*GetCacheActionItemForbidden) Encode

func (s *GetCacheActionItemForbidden) Encode(e *jx.Encoder)

Encode encodes GetCacheActionItemForbidden as json.

func (*GetCacheActionItemForbidden) MarshalJSON

func (s *GetCacheActionItemForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCacheActionItemForbidden) UnmarshalJSON

func (s *GetCacheActionItemForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCacheActionItemNotFound

type GetCacheActionItemNotFound Error

func (*GetCacheActionItemNotFound) Decode

Decode decodes GetCacheActionItemNotFound from json.

func (*GetCacheActionItemNotFound) Encode

func (s *GetCacheActionItemNotFound) Encode(e *jx.Encoder)

Encode encodes GetCacheActionItemNotFound as json.

func (*GetCacheActionItemNotFound) MarshalJSON

func (s *GetCacheActionItemNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCacheActionItemNotFound) UnmarshalJSON

func (s *GetCacheActionItemNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCacheActionItemParams

type GetCacheActionItemParams struct {
	// The name of the account that the project belongs to.
	AccountHandle string
	// The name of the project the cache action item belongs to.
	ProjectHandle string
	// The hash that uniquely identifies an item in the action cache.
	Hash string
}

GetCacheActionItemParams is parameters of getCacheActionItem operation.

type GetCacheActionItemPaymentRequired

type GetCacheActionItemPaymentRequired Error

func (*GetCacheActionItemPaymentRequired) Decode

Decode decodes GetCacheActionItemPaymentRequired from json.

func (*GetCacheActionItemPaymentRequired) Encode

Encode encodes GetCacheActionItemPaymentRequired as json.

func (*GetCacheActionItemPaymentRequired) MarshalJSON

func (s *GetCacheActionItemPaymentRequired) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCacheActionItemPaymentRequired) UnmarshalJSON

func (s *GetCacheActionItemPaymentRequired) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCacheActionItemRes

type GetCacheActionItemRes interface {
	// contains filtered or unexported methods
}

type GetCacheActionItemUnauthorized

type GetCacheActionItemUnauthorized Error

func (*GetCacheActionItemUnauthorized) Decode

Decode decodes GetCacheActionItemUnauthorized from json.

func (*GetCacheActionItemUnauthorized) Encode

Encode encodes GetCacheActionItemUnauthorized as json.

func (*GetCacheActionItemUnauthorized) MarshalJSON

func (s *GetCacheActionItemUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCacheActionItemUnauthorized) UnmarshalJSON

func (s *GetCacheActionItemUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDeviceCodeAccepted

type GetDeviceCodeAccepted struct{}

func (*GetDeviceCodeAccepted) Decode

func (s *GetDeviceCodeAccepted) Decode(d *jx.Decoder) error

Decode decodes GetDeviceCodeAccepted from json.

func (*GetDeviceCodeAccepted) Encode

func (s *GetDeviceCodeAccepted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDeviceCodeAccepted) MarshalJSON

func (s *GetDeviceCodeAccepted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDeviceCodeAccepted) UnmarshalJSON

func (s *GetDeviceCodeAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDeviceCodeOK

type GetDeviceCodeOK struct {
	// A short-lived token to authenticate API requests as user.
	AccessToken OptString `json:"access_token"`
	// A token to generate new access tokens when they expire.
	RefreshToken OptString `json:"refresh_token"`
	// User authentication token.
	//
	// Deprecated: schema marks this property as deprecated.
	Token OptString `json:"token"`
}

Token to authenticate the user with.

func (*GetDeviceCodeOK) Decode

func (s *GetDeviceCodeOK) Decode(d *jx.Decoder) error

Decode decodes GetDeviceCodeOK from json.

func (*GetDeviceCodeOK) Encode

func (s *GetDeviceCodeOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDeviceCodeOK) GetAccessToken

func (s *GetDeviceCodeOK) GetAccessToken() OptString

GetAccessToken returns the value of AccessToken.

func (*GetDeviceCodeOK) GetRefreshToken

func (s *GetDeviceCodeOK) GetRefreshToken() OptString

GetRefreshToken returns the value of RefreshToken.

func (*GetDeviceCodeOK) GetToken

func (s *GetDeviceCodeOK) GetToken() OptString

GetToken returns the value of Token.

func (*GetDeviceCodeOK) MarshalJSON

func (s *GetDeviceCodeOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDeviceCodeOK) SetAccessToken

func (s *GetDeviceCodeOK) SetAccessToken(val OptString)

SetAccessToken sets the value of AccessToken.

func (*GetDeviceCodeOK) SetRefreshToken

func (s *GetDeviceCodeOK) SetRefreshToken(val OptString)

SetRefreshToken sets the value of RefreshToken.

func (*GetDeviceCodeOK) SetToken

func (s *GetDeviceCodeOK) SetToken(val OptString)

SetToken sets the value of Token.

func (*GetDeviceCodeOK) UnmarshalJSON

func (s *GetDeviceCodeOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDeviceCodeParams

type GetDeviceCodeParams struct {
	// The device code to query.
	DeviceCode string
}

GetDeviceCodeParams is parameters of getDeviceCode operation.

type GetDeviceCodeRes

type GetDeviceCodeRes interface {
	// contains filtered or unexported methods
}

type Handler

type Handler interface {
	// Authenticate implements authenticate operation.
	//
	// This endpoint returns API tokens for a given email and password.
	//
	// POST /api/auth
	Authenticate(ctx context.Context, req OptAuthenticateReq) (AuthenticateRes, error)
	// CacheArtifactExists implements cacheArtifactExists operation.
	//
	// This endpoint checks if an artifact exists in the cache. It returns a 404 status code if the
	// artifact does not exist.
	//
	// Deprecated: schema marks this operation as deprecated.
	//
	// GET /api/cache/exists
	CacheArtifactExists(ctx context.Context, params CacheArtifactExistsParams) (CacheArtifactExistsRes, error)
	// CleanCache implements cleanCache operation.
	//
	// Cleans cache for a given project.
	//
	// PUT /api/projects/{account_handle}/{project_handle}/cache/clean
	CleanCache(ctx context.Context, params CleanCacheParams) (CleanCacheRes, error)
	// CompleteAnalyticsArtifactMultipartUpload implements completeAnalyticsArtifactMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload.
	//
	// POST /api/runs/{run_id}/complete
	CompleteAnalyticsArtifactMultipartUpload(ctx context.Context, req OptCompleteAnalyticsArtifactMultipartUploadReq, params CompleteAnalyticsArtifactMultipartUploadParams) (CompleteAnalyticsArtifactMultipartUploadRes, error)
	// CompleteAnalyticsArtifactsUploads implements completeAnalyticsArtifactsUploads operation.
	//
	// Given a command event, it marks all artifact uploads as finished and does extra processing of a
	// given command run, such as test flakiness detection.
	//
	// PUT /api/runs/{run_id}/complete_artifacts_uploads
	CompleteAnalyticsArtifactsUploads(ctx context.Context, req OptCompleteAnalyticsArtifactsUploadsReq, params CompleteAnalyticsArtifactsUploadsParams) (CompleteAnalyticsArtifactsUploadsRes, error)
	// CompleteCacheArtifactMultipartUpload implements completeCacheArtifactMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload. The cache will then be able to serve the artifact.
	//
	// POST /api/cache/multipart/complete
	CompleteCacheArtifactMultipartUpload(ctx context.Context, req OptCompleteCacheArtifactMultipartUploadReq, params CompleteCacheArtifactMultipartUploadParams) (CompleteCacheArtifactMultipartUploadRes, error)
	// CompletePreviewsMultipartUpload implements completePreviewsMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/complete
	CompletePreviewsMultipartUpload(ctx context.Context, req OptCompletePreviewsMultipartUploadReq, params CompletePreviewsMultipartUploadParams) (CompletePreviewsMultipartUploadRes, error)
	// CreateCommandEvent implements createCommandEvent operation.
	//
	// Create a a new command analytics event.
	//
	// POST /api/analytics
	CreateCommandEvent(ctx context.Context, req OptCreateCommandEventReq, params CreateCommandEventParams) (CreateCommandEventRes, error)
	// CreateInvitation implements createInvitation operation.
	//
	// Invites a user with a given email to a given organization.
	//
	// POST /api/organizations/{organization_name}/invitations
	CreateInvitation(ctx context.Context, req OptCreateInvitationReq, params CreateInvitationParams) (CreateInvitationRes, error)
	// CreateOrganization implements createOrganization operation.
	//
	// Creates an organization with the given name.
	//
	// POST /api/organizations
	CreateOrganization(ctx context.Context, req OptCreateOrganizationReq) (CreateOrganizationRes, error)
	// CreateProject implements createProject operation.
	//
	// Create a new project.
	//
	// POST /api/projects
	CreateProject(ctx context.Context, req OptCreateProjectReq) (CreateProjectRes, error)
	// CreateProjectToken implements createProjectToken operation.
	//
	// This endpoint returns a new project token.
	//
	// POST /api/projects/{account_handle}/{project_handle}/tokens
	CreateProjectToken(ctx context.Context, params CreateProjectTokenParams) (CreateProjectTokenRes, error)
	// DeleteOrganization implements deleteOrganization operation.
	//
	// Deletes the organization with the given name.
	//
	// DELETE /api/organizations/{organization_name}
	DeleteOrganization(ctx context.Context, params DeleteOrganizationParams) (DeleteOrganizationRes, error)
	// DeleteProject implements deleteProject operation.
	//
	// Deletes a project with a given id.
	//
	// DELETE /api/projects/{id}
	DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
	// DownloadCacheArtifact implements downloadCacheArtifact operation.
	//
	// This endpoint returns a signed URL that can be used to download an artifact from the cache.
	//
	// GET /api/cache
	DownloadCacheArtifact(ctx context.Context, params DownloadCacheArtifactParams) (DownloadCacheArtifactRes, error)
	// DownloadPreview implements downloadPreview operation.
	//
	// This endpoint returns a signed URL that can be used to download a preview.
	//
	// GET /api/projects/{account_handle}/{project_handle}/previews/{preview_id}
	DownloadPreview(ctx context.Context, params DownloadPreviewParams) (DownloadPreviewRes, error)
	// GenerateAnalyticsArtifactMultipartUploadURL implements generateAnalyticsArtifactMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/runs/{run_id}/generate-url
	GenerateAnalyticsArtifactMultipartUploadURL(ctx context.Context, req OptGenerateAnalyticsArtifactMultipartUploadURLReq, params GenerateAnalyticsArtifactMultipartUploadURLParams) (GenerateAnalyticsArtifactMultipartUploadURLRes, error)
	// GenerateCacheArtifactMultipartUploadURL implements generateCacheArtifactMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/cache/multipart/generate-url
	GenerateCacheArtifactMultipartUploadURL(ctx context.Context, params GenerateCacheArtifactMultipartUploadURLParams) (GenerateCacheArtifactMultipartUploadURLRes, error)
	// GeneratePreviewsMultipartUploadURL implements generatePreviewsMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/generate-url
	GeneratePreviewsMultipartUploadURL(ctx context.Context, req OptGeneratePreviewsMultipartUploadURLReq, params GeneratePreviewsMultipartUploadURLParams) (GeneratePreviewsMultipartUploadURLRes, error)
	// GetCacheActionItem implements getCacheActionItem operation.
	//
	// This endpoint gets an item from the action cache.
	//
	// GET /api/projects/{account_handle}/{project_handle}/cache/ac/{hash}
	GetCacheActionItem(ctx context.Context, params GetCacheActionItemParams) (GetCacheActionItemRes, error)
	// GetDeviceCode implements getDeviceCode operation.
	//
	// This endpoint returns a token for a given device code if the device code is authenticated.
	//
	// GET /api/auth/device_code/{device_code}
	GetDeviceCode(ctx context.Context, params GetDeviceCodeParams) (GetDeviceCodeRes, error)
	// ListOrganizations implements listOrganizations operation.
	//
	// Returns all the organizations the authenticated subject is part of.
	//
	// GET /api/organizations
	ListOrganizations(ctx context.Context) (ListOrganizationsRes, error)
	// ListProjectTokens implements listProjectTokens operation.
	//
	// This endpoint returns all tokens for a given project.
	//
	// GET /api/projects/{account_handle}/{project_handle}/tokens
	ListProjectTokens(ctx context.Context, params ListProjectTokensParams) (ListProjectTokensRes, error)
	// ListProjects implements listProjects operation.
	//
	// List projects the authenticated user has access to.
	//
	// GET /api/projects
	ListProjects(ctx context.Context) (ListProjectsRes, error)
	// RefreshToken implements refreshToken operation.
	//
	// This endpoint returns new tokens for a given refresh token if the refresh token is valid.
	//
	// POST /api/auth/refresh_token
	RefreshToken(ctx context.Context, req OptRefreshTokenReq) (RefreshTokenRes, error)
	// RevokeProjectToken implements revokeProjectToken operation.
	//
	// Revokes a project token.
	//
	// DELETE /api/projects/{account_handle}/{project_handle}/tokens/{id}
	RevokeProjectToken(ctx context.Context, params RevokeProjectTokenParams) (RevokeProjectTokenRes, error)
	// ShowOrganization implements showOrganization operation.
	//
	// Returns the organization with the given identifier.
	//
	// GET /api/organizations/{organization_name}
	ShowOrganization(ctx context.Context, params ShowOrganizationParams) (ShowOrganizationRes, error)
	// ShowOrganizationUsage implements showOrganizationUsage operation.
	//
	// Returns the usage of the organization with the given identifier. (e.g. number of remote cache hits).
	//
	// GET /api/organizations/{organization_name}/usage
	ShowOrganizationUsage(ctx context.Context, params ShowOrganizationUsageParams) (ShowOrganizationUsageRes, error)
	// ShowProject implements showProject operation.
	//
	// Returns a project based on the handle.
	//
	// GET /api/projects/{account_handle}/{project_handle}
	ShowProject(ctx context.Context, params ShowProjectParams) (ShowProjectRes, error)
	// StartAnalyticsArtifactMultipartUpload implements startAnalyticsArtifactMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/runs/{run_id}/start
	StartAnalyticsArtifactMultipartUpload(ctx context.Context, req CommandEventArtifact, params StartAnalyticsArtifactMultipartUploadParams) (StartAnalyticsArtifactMultipartUploadRes, error)
	// StartCacheArtifactMultipartUpload implements startCacheArtifactMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/cache/multipart/start
	StartCacheArtifactMultipartUpload(ctx context.Context, params StartCacheArtifactMultipartUploadParams) (StartCacheArtifactMultipartUploadRes, error)
	// StartPreviewsMultipartUpload implements startPreviewsMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/start
	StartPreviewsMultipartUpload(ctx context.Context, req OptStartPreviewsMultipartUploadReq, params StartPreviewsMultipartUploadParams) (StartPreviewsMultipartUploadRes, error)
	// UpdateOrganization implements updateOrganization operation.
	//
	// Updates an organization with given parameters.
	//
	// PUT /api/organizations/{organization_name}
	UpdateOrganization(ctx context.Context, req OptUpdateOrganizationReq, params UpdateOrganizationParams) (UpdateOrganizationRes, error)
	// UpdateOrganization2 implements updateOrganization (2) operation.
	//
	// Updates an organization with given parameters.
	//
	// PATCH /api/organizations/{organization_name}
	UpdateOrganization2(ctx context.Context, req OptUpdateOrganization2Req, params UpdateOrganization2Params) (UpdateOrganization2Res, error)
	// UpdateOrganizationMember implements updateOrganizationMember operation.
	//
	// Updates a member in a given organization.
	//
	// PUT /api/organizations/{organization_name}/members/{user_name}
	UpdateOrganizationMember(ctx context.Context, req OptUpdateOrganizationMemberReq, params UpdateOrganizationMemberParams) (UpdateOrganizationMemberRes, error)
	// UpdateProject implements updateProject operation.
	//
	// Updates a project with given parameters.
	//
	// PUT /api/projects/{account_handle}/{project_handle}
	UpdateProject(ctx context.Context, req OptUpdateProjectReq, params UpdateProjectParams) (UpdateProjectRes, error)
	// UploadCacheActionItem implements uploadCacheActionItem operation.
	//
	// The endpoint caches a given action item without uploading a file. To upload files, use the
	// multipart upload instead.
	//
	// POST /api/projects/{account_handle}/{project_handle}/cache/ac
	UploadCacheActionItem(ctx context.Context, req OptUploadCacheActionItemReq, params UploadCacheActionItemParams) (UploadCacheActionItemRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type Invitation

type Invitation struct {
	// The invitation's unique identifier.
	ID float64 `json:"id"`
	// The email of the invitee.
	InviteeEmail string `json:"invitee_email"`
	Inviter      User   `json:"inviter"`
	// The id of the organization the invitee is invited to.
	OrganizationID float64 `json:"organization_id"`
	// The token to accept the invitation.
	Token string `json:"token"`
}

Ref: #/components/schemas/Invitation

func (*Invitation) Decode

func (s *Invitation) Decode(d *jx.Decoder) error

Decode decodes Invitation from json.

func (*Invitation) Encode

func (s *Invitation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Invitation) GetID

func (s *Invitation) GetID() float64

GetID returns the value of ID.

func (*Invitation) GetInviteeEmail

func (s *Invitation) GetInviteeEmail() string

GetInviteeEmail returns the value of InviteeEmail.

func (*Invitation) GetInviter

func (s *Invitation) GetInviter() User

GetInviter returns the value of Inviter.

func (*Invitation) GetOrganizationID

func (s *Invitation) GetOrganizationID() float64

GetOrganizationID returns the value of OrganizationID.

func (*Invitation) GetToken

func (s *Invitation) GetToken() string

GetToken returns the value of Token.

func (*Invitation) MarshalJSON

func (s *Invitation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Invitation) SetID

func (s *Invitation) SetID(val float64)

SetID sets the value of ID.

func (*Invitation) SetInviteeEmail

func (s *Invitation) SetInviteeEmail(val string)

SetInviteeEmail sets the value of InviteeEmail.

func (*Invitation) SetInviter

func (s *Invitation) SetInviter(val User)

SetInviter sets the value of Inviter.

func (*Invitation) SetOrganizationID

func (s *Invitation) SetOrganizationID(val float64)

SetOrganizationID sets the value of OrganizationID.

func (*Invitation) SetToken

func (s *Invitation) SetToken(val string)

SetToken sets the value of Token.

func (*Invitation) UnmarshalJSON

func (s *Invitation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Invitation) Validate

func (s *Invitation) Validate() error

type Invoker

type Invoker interface {
	// Authenticate invokes authenticate operation.
	//
	// This endpoint returns API tokens for a given email and password.
	//
	// POST /api/auth
	Authenticate(ctx context.Context, request OptAuthenticateReq) (AuthenticateRes, error)
	// CacheArtifactExists invokes cacheArtifactExists operation.
	//
	// This endpoint checks if an artifact exists in the cache. It returns a 404 status code if the
	// artifact does not exist.
	//
	// Deprecated: schema marks this operation as deprecated.
	//
	// GET /api/cache/exists
	CacheArtifactExists(ctx context.Context, params CacheArtifactExistsParams) (CacheArtifactExistsRes, error)
	// CleanCache invokes cleanCache operation.
	//
	// Cleans cache for a given project.
	//
	// PUT /api/projects/{account_handle}/{project_handle}/cache/clean
	CleanCache(ctx context.Context, params CleanCacheParams) (CleanCacheRes, error)
	// CompleteAnalyticsArtifactMultipartUpload invokes completeAnalyticsArtifactMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload.
	//
	// POST /api/runs/{run_id}/complete
	CompleteAnalyticsArtifactMultipartUpload(ctx context.Context, request OptCompleteAnalyticsArtifactMultipartUploadReq, params CompleteAnalyticsArtifactMultipartUploadParams) (CompleteAnalyticsArtifactMultipartUploadRes, error)
	// CompleteAnalyticsArtifactsUploads invokes completeAnalyticsArtifactsUploads operation.
	//
	// Given a command event, it marks all artifact uploads as finished and does extra processing of a
	// given command run, such as test flakiness detection.
	//
	// PUT /api/runs/{run_id}/complete_artifacts_uploads
	CompleteAnalyticsArtifactsUploads(ctx context.Context, request OptCompleteAnalyticsArtifactsUploadsReq, params CompleteAnalyticsArtifactsUploadsParams) (CompleteAnalyticsArtifactsUploadsRes, error)
	// CompleteCacheArtifactMultipartUpload invokes completeCacheArtifactMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload. The cache will then be able to serve the artifact.
	//
	// POST /api/cache/multipart/complete
	CompleteCacheArtifactMultipartUpload(ctx context.Context, request OptCompleteCacheArtifactMultipartUploadReq, params CompleteCacheArtifactMultipartUploadParams) (CompleteCacheArtifactMultipartUploadRes, error)
	// CompletePreviewsMultipartUpload invokes completePreviewsMultipartUpload operation.
	//
	// Given the upload ID and all the parts with their ETags, this endpoint completes the multipart
	// upload.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/complete
	CompletePreviewsMultipartUpload(ctx context.Context, request OptCompletePreviewsMultipartUploadReq, params CompletePreviewsMultipartUploadParams) (CompletePreviewsMultipartUploadRes, error)
	// CreateCommandEvent invokes createCommandEvent operation.
	//
	// Create a a new command analytics event.
	//
	// POST /api/analytics
	CreateCommandEvent(ctx context.Context, request OptCreateCommandEventReq, params CreateCommandEventParams) (CreateCommandEventRes, error)
	// CreateInvitation invokes createInvitation operation.
	//
	// Invites a user with a given email to a given organization.
	//
	// POST /api/organizations/{organization_name}/invitations
	CreateInvitation(ctx context.Context, request OptCreateInvitationReq, params CreateInvitationParams) (CreateInvitationRes, error)
	// CreateOrganization invokes createOrganization operation.
	//
	// Creates an organization with the given name.
	//
	// POST /api/organizations
	CreateOrganization(ctx context.Context, request OptCreateOrganizationReq) (CreateOrganizationRes, error)
	// CreateProject invokes createProject operation.
	//
	// Create a new project.
	//
	// POST /api/projects
	CreateProject(ctx context.Context, request OptCreateProjectReq) (CreateProjectRes, error)
	// CreateProjectToken invokes createProjectToken operation.
	//
	// This endpoint returns a new project token.
	//
	// POST /api/projects/{account_handle}/{project_handle}/tokens
	CreateProjectToken(ctx context.Context, params CreateProjectTokenParams) (CreateProjectTokenRes, error)
	// DeleteOrganization invokes deleteOrganization operation.
	//
	// Deletes the organization with the given name.
	//
	// DELETE /api/organizations/{organization_name}
	DeleteOrganization(ctx context.Context, params DeleteOrganizationParams) (DeleteOrganizationRes, error)
	// DeleteProject invokes deleteProject operation.
	//
	// Deletes a project with a given id.
	//
	// DELETE /api/projects/{id}
	DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
	// DownloadCacheArtifact invokes downloadCacheArtifact operation.
	//
	// This endpoint returns a signed URL that can be used to download an artifact from the cache.
	//
	// GET /api/cache
	DownloadCacheArtifact(ctx context.Context, params DownloadCacheArtifactParams) (DownloadCacheArtifactRes, error)
	// DownloadPreview invokes downloadPreview operation.
	//
	// This endpoint returns a signed URL that can be used to download a preview.
	//
	// GET /api/projects/{account_handle}/{project_handle}/previews/{preview_id}
	DownloadPreview(ctx context.Context, params DownloadPreviewParams) (DownloadPreviewRes, error)
	// GenerateAnalyticsArtifactMultipartUploadURL invokes generateAnalyticsArtifactMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/runs/{run_id}/generate-url
	GenerateAnalyticsArtifactMultipartUploadURL(ctx context.Context, request OptGenerateAnalyticsArtifactMultipartUploadURLReq, params GenerateAnalyticsArtifactMultipartUploadURLParams) (GenerateAnalyticsArtifactMultipartUploadURLRes, error)
	// GenerateCacheArtifactMultipartUploadURL invokes generateCacheArtifactMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/cache/multipart/generate-url
	GenerateCacheArtifactMultipartUploadURL(ctx context.Context, params GenerateCacheArtifactMultipartUploadURLParams) (GenerateCacheArtifactMultipartUploadURLRes, error)
	// GeneratePreviewsMultipartUploadURL invokes generatePreviewsMultipartUploadURL operation.
	//
	// Given an upload ID and a part number, this endpoint returns a signed URL that can be used to
	// upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/generate-url
	GeneratePreviewsMultipartUploadURL(ctx context.Context, request OptGeneratePreviewsMultipartUploadURLReq, params GeneratePreviewsMultipartUploadURLParams) (GeneratePreviewsMultipartUploadURLRes, error)
	// GetCacheActionItem invokes getCacheActionItem operation.
	//
	// This endpoint gets an item from the action cache.
	//
	// GET /api/projects/{account_handle}/{project_handle}/cache/ac/{hash}
	GetCacheActionItem(ctx context.Context, params GetCacheActionItemParams) (GetCacheActionItemRes, error)
	// GetDeviceCode invokes getDeviceCode operation.
	//
	// This endpoint returns a token for a given device code if the device code is authenticated.
	//
	// GET /api/auth/device_code/{device_code}
	GetDeviceCode(ctx context.Context, params GetDeviceCodeParams) (GetDeviceCodeRes, error)
	// ListOrganizations invokes listOrganizations operation.
	//
	// Returns all the organizations the authenticated subject is part of.
	//
	// GET /api/organizations
	ListOrganizations(ctx context.Context) (ListOrganizationsRes, error)
	// ListProjectTokens invokes listProjectTokens operation.
	//
	// This endpoint returns all tokens for a given project.
	//
	// GET /api/projects/{account_handle}/{project_handle}/tokens
	ListProjectTokens(ctx context.Context, params ListProjectTokensParams) (ListProjectTokensRes, error)
	// ListProjects invokes listProjects operation.
	//
	// List projects the authenticated user has access to.
	//
	// GET /api/projects
	ListProjects(ctx context.Context) (ListProjectsRes, error)
	// RefreshToken invokes refreshToken operation.
	//
	// This endpoint returns new tokens for a given refresh token if the refresh token is valid.
	//
	// POST /api/auth/refresh_token
	RefreshToken(ctx context.Context, request OptRefreshTokenReq) (RefreshTokenRes, error)
	// RevokeProjectToken invokes revokeProjectToken operation.
	//
	// Revokes a project token.
	//
	// DELETE /api/projects/{account_handle}/{project_handle}/tokens/{id}
	RevokeProjectToken(ctx context.Context, params RevokeProjectTokenParams) (RevokeProjectTokenRes, error)
	// ShowOrganization invokes showOrganization operation.
	//
	// Returns the organization with the given identifier.
	//
	// GET /api/organizations/{organization_name}
	ShowOrganization(ctx context.Context, params ShowOrganizationParams) (ShowOrganizationRes, error)
	// ShowOrganizationUsage invokes showOrganizationUsage operation.
	//
	// Returns the usage of the organization with the given identifier. (e.g. number of remote cache hits).
	//
	// GET /api/organizations/{organization_name}/usage
	ShowOrganizationUsage(ctx context.Context, params ShowOrganizationUsageParams) (ShowOrganizationUsageRes, error)
	// ShowProject invokes showProject operation.
	//
	// Returns a project based on the handle.
	//
	// GET /api/projects/{account_handle}/{project_handle}
	ShowProject(ctx context.Context, params ShowProjectParams) (ShowProjectRes, error)
	// StartAnalyticsArtifactMultipartUpload invokes startAnalyticsArtifactMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/runs/{run_id}/start
	StartAnalyticsArtifactMultipartUpload(ctx context.Context, request CommandEventArtifact, params StartAnalyticsArtifactMultipartUploadParams) (StartAnalyticsArtifactMultipartUploadRes, error)
	// StartCacheArtifactMultipartUpload invokes startCacheArtifactMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/cache/multipart/start
	StartCacheArtifactMultipartUpload(ctx context.Context, params StartCacheArtifactMultipartUploadParams) (StartCacheArtifactMultipartUploadRes, error)
	// StartPreviewsMultipartUpload invokes startPreviewsMultipartUpload operation.
	//
	// The endpoint returns an upload ID that can be used to generate URLs for the individual parts and
	// complete the upload.
	//
	// POST /api/projects/{account_handle}/{project_handle}/previews/start
	StartPreviewsMultipartUpload(ctx context.Context, request OptStartPreviewsMultipartUploadReq, params StartPreviewsMultipartUploadParams) (StartPreviewsMultipartUploadRes, error)
	// UpdateOrganization invokes updateOrganization operation.
	//
	// Updates an organization with given parameters.
	//
	// PUT /api/organizations/{organization_name}
	UpdateOrganization(ctx context.Context, request OptUpdateOrganizationReq, params UpdateOrganizationParams) (UpdateOrganizationRes, error)
	// UpdateOrganization2 invokes updateOrganization (2) operation.
	//
	// Updates an organization with given parameters.
	//
	// PATCH /api/organizations/{organization_name}
	UpdateOrganization2(ctx context.Context, request OptUpdateOrganization2Req, params UpdateOrganization2Params) (UpdateOrganization2Res, error)
	// UpdateOrganizationMember invokes updateOrganizationMember operation.
	//
	// Updates a member in a given organization.
	//
	// PUT /api/organizations/{organization_name}/members/{user_name}
	UpdateOrganizationMember(ctx context.Context, request OptUpdateOrganizationMemberReq, params UpdateOrganizationMemberParams) (UpdateOrganizationMemberRes, error)
	// UpdateProject invokes updateProject operation.
	//
	// Updates a project with given parameters.
	//
	// PUT /api/projects/{account_handle}/{project_handle}
	UpdateProject(ctx context.Context, request OptUpdateProjectReq, params UpdateProjectParams) (UpdateProjectRes, error)
	// UploadCacheActionItem invokes uploadCacheActionItem operation.
	//
	// The endpoint caches a given action item without uploading a file. To upload files, use the
	// multipart upload instead.
	//
	// POST /api/projects/{account_handle}/{project_handle}/cache/ac
	UploadCacheActionItem(ctx context.Context, request OptUploadCacheActionItemReq, params UploadCacheActionItemParams) (UploadCacheActionItemRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

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

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type ListOrganizationsForbidden

type ListOrganizationsForbidden Error

func (*ListOrganizationsForbidden) Decode

Decode decodes ListOrganizationsForbidden from json.

func (*ListOrganizationsForbidden) Encode

func (s *ListOrganizationsForbidden) Encode(e *jx.Encoder)

Encode encodes ListOrganizationsForbidden as json.

func (*ListOrganizationsForbidden) MarshalJSON

func (s *ListOrganizationsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationsForbidden) UnmarshalJSON

func (s *ListOrganizationsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationsOK

type ListOrganizationsOK struct {
	Organizations []Organization `json:"organizations"`
}

The list of organizations the authenticated subject is part of.

func (*ListOrganizationsOK) Decode

func (s *ListOrganizationsOK) Decode(d *jx.Decoder) error

Decode decodes ListOrganizationsOK from json.

func (*ListOrganizationsOK) Encode

func (s *ListOrganizationsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationsOK) GetOrganizations

func (s *ListOrganizationsOK) GetOrganizations() []Organization

GetOrganizations returns the value of Organizations.

func (*ListOrganizationsOK) MarshalJSON

func (s *ListOrganizationsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationsOK) SetOrganizations

func (s *ListOrganizationsOK) SetOrganizations(val []Organization)

SetOrganizations sets the value of Organizations.

func (*ListOrganizationsOK) UnmarshalJSON

func (s *ListOrganizationsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrganizationsOK) Validate

func (s *ListOrganizationsOK) Validate() error

type ListOrganizationsRes

type ListOrganizationsRes interface {
	// contains filtered or unexported methods
}

type ListOrganizationsUnauthorized

type ListOrganizationsUnauthorized Error

func (*ListOrganizationsUnauthorized) Decode

Decode decodes ListOrganizationsUnauthorized from json.

func (*ListOrganizationsUnauthorized) Encode

Encode encodes ListOrganizationsUnauthorized as json.

func (*ListOrganizationsUnauthorized) MarshalJSON

func (s *ListOrganizationsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationsUnauthorized) UnmarshalJSON

func (s *ListOrganizationsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListProjectTokensForbidden

type ListProjectTokensForbidden Error

func (*ListProjectTokensForbidden) Decode

Decode decodes ListProjectTokensForbidden from json.

func (*ListProjectTokensForbidden) Encode

func (s *ListProjectTokensForbidden) Encode(e *jx.Encoder)

Encode encodes ListProjectTokensForbidden as json.

func (*ListProjectTokensForbidden) MarshalJSON

func (s *ListProjectTokensForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectTokensForbidden) UnmarshalJSON

func (s *ListProjectTokensForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListProjectTokensNotFound

type ListProjectTokensNotFound Error

func (*ListProjectTokensNotFound) Decode

func (s *ListProjectTokensNotFound) Decode(d *jx.Decoder) error

Decode decodes ListProjectTokensNotFound from json.

func (*ListProjectTokensNotFound) Encode

func (s *ListProjectTokensNotFound) Encode(e *jx.Encoder)

Encode encodes ListProjectTokensNotFound as json.

func (*ListProjectTokensNotFound) MarshalJSON

func (s *ListProjectTokensNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectTokensNotFound) UnmarshalJSON

func (s *ListProjectTokensNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListProjectTokensOK

type ListProjectTokensOK struct {
	Tokens []ProjectToken `json:"tokens"`
}

A list of project tokens.

func (*ListProjectTokensOK) Decode

func (s *ListProjectTokensOK) Decode(d *jx.Decoder) error

Decode decodes ListProjectTokensOK from json.

func (*ListProjectTokensOK) Encode

func (s *ListProjectTokensOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListProjectTokensOK) GetTokens

func (s *ListProjectTokensOK) GetTokens() []ProjectToken

GetTokens returns the value of Tokens.

func (*ListProjectTokensOK) MarshalJSON

func (s *ListProjectTokensOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectTokensOK) SetTokens

func (s *ListProjectTokensOK) SetTokens(val []ProjectToken)

SetTokens sets the value of Tokens.

func (*ListProjectTokensOK) UnmarshalJSON

func (s *ListProjectTokensOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListProjectTokensOK) Validate

func (s *ListProjectTokensOK) Validate() error

type ListProjectTokensParams

type ListProjectTokensParams struct {
	// The account handle.
	AccountHandle string
	// The project handle.
	ProjectHandle string
}

ListProjectTokensParams is parameters of listProjectTokens operation.

type ListProjectTokensRes

type ListProjectTokensRes interface {
	// contains filtered or unexported methods
}

type ListProjectTokensUnauthorized

type ListProjectTokensUnauthorized Error

func (*ListProjectTokensUnauthorized) Decode

Decode decodes ListProjectTokensUnauthorized from json.

func (*ListProjectTokensUnauthorized) Encode

Encode encodes ListProjectTokensUnauthorized as json.

func (*ListProjectTokensUnauthorized) MarshalJSON

func (s *ListProjectTokensUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectTokensUnauthorized) UnmarshalJSON

func (s *ListProjectTokensUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListProjectsOK

type ListProjectsOK struct {
	Projects []Project `json:"projects"`
}

func (*ListProjectsOK) Decode

func (s *ListProjectsOK) Decode(d *jx.Decoder) error

Decode decodes ListProjectsOK from json.

func (*ListProjectsOK) Encode

func (s *ListProjectsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListProjectsOK) GetProjects

func (s *ListProjectsOK) GetProjects() []Project

GetProjects returns the value of Projects.

func (*ListProjectsOK) MarshalJSON

func (s *ListProjectsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectsOK) SetProjects

func (s *ListProjectsOK) SetProjects(val []Project)

SetProjects sets the value of Projects.

func (*ListProjectsOK) UnmarshalJSON

func (s *ListProjectsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListProjectsOK) Validate

func (s *ListProjectsOK) Validate() error

type ListProjectsRes

type ListProjectsRes interface {
	// contains filtered or unexported methods
}

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type Module

type Module struct {
	// A hash that represents the module.
	Hash string `json:"hash"`
	// A name of the module.
	Name string `json:"name"`
	// Project's relative path from the root of the repository.
	ProjectIdentifier string `json:"project_identifier"`
}

Ref: #/components/schemas/Module

func (*Module) Decode

func (s *Module) Decode(d *jx.Decoder) error

Decode decodes Module from json.

func (*Module) Encode

func (s *Module) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Module) GetHash

func (s *Module) GetHash() string

GetHash returns the value of Hash.

func (*Module) GetName

func (s *Module) GetName() string

GetName returns the value of Name.

func (*Module) GetProjectIdentifier

func (s *Module) GetProjectIdentifier() string

GetProjectIdentifier returns the value of ProjectIdentifier.

func (*Module) MarshalJSON

func (s *Module) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Module) SetHash

func (s *Module) SetHash(val string)

SetHash sets the value of Hash.

func (*Module) SetName

func (s *Module) SetName(val string)

SetName sets the value of Name.

func (*Module) SetProjectIdentifier

func (s *Module) SetProjectIdentifier(val string)

SetProjectIdentifier sets the value of ProjectIdentifier.

func (*Module) UnmarshalJSON

func (s *Module) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAuthenticateReq

type OptAuthenticateReq struct {
	Value AuthenticateReq
	Set   bool
}

OptAuthenticateReq is optional AuthenticateReq.

func NewOptAuthenticateReq

func NewOptAuthenticateReq(v AuthenticateReq) OptAuthenticateReq

NewOptAuthenticateReq returns new OptAuthenticateReq with value set to v.

func (*OptAuthenticateReq) Decode

func (o *OptAuthenticateReq) Decode(d *jx.Decoder) error

Decode decodes AuthenticateReq from json.

func (OptAuthenticateReq) Encode

func (o OptAuthenticateReq) Encode(e *jx.Encoder)

Encode encodes AuthenticateReq as json.

func (OptAuthenticateReq) Get

func (o OptAuthenticateReq) Get() (v AuthenticateReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAuthenticateReq) IsSet

func (o OptAuthenticateReq) IsSet() bool

IsSet returns true if OptAuthenticateReq was set.

func (OptAuthenticateReq) MarshalJSON

func (s OptAuthenticateReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAuthenticateReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAuthenticateReq) Reset

func (o *OptAuthenticateReq) Reset()

Reset unsets value.

func (*OptAuthenticateReq) SetTo

func (o *OptAuthenticateReq) SetTo(v AuthenticateReq)

SetTo sets value to v.

func (*OptAuthenticateReq) UnmarshalJSON

func (s *OptAuthenticateReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCacheArtifactExistsOKStatus

type OptCacheArtifactExistsOKStatus struct {
	Value CacheArtifactExistsOKStatus
	Set   bool
}

OptCacheArtifactExistsOKStatus is optional CacheArtifactExistsOKStatus.

func NewOptCacheArtifactExistsOKStatus

func NewOptCacheArtifactExistsOKStatus(v CacheArtifactExistsOKStatus) OptCacheArtifactExistsOKStatus

NewOptCacheArtifactExistsOKStatus returns new OptCacheArtifactExistsOKStatus with value set to v.

func (*OptCacheArtifactExistsOKStatus) Decode

Decode decodes CacheArtifactExistsOKStatus from json.

func (OptCacheArtifactExistsOKStatus) Encode

Encode encodes CacheArtifactExistsOKStatus as json.

func (OptCacheArtifactExistsOKStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCacheArtifactExistsOKStatus) IsSet

IsSet returns true if OptCacheArtifactExistsOKStatus was set.

func (OptCacheArtifactExistsOKStatus) MarshalJSON

func (s OptCacheArtifactExistsOKStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCacheArtifactExistsOKStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCacheArtifactExistsOKStatus) Reset

func (o *OptCacheArtifactExistsOKStatus) Reset()

Reset unsets value.

func (*OptCacheArtifactExistsOKStatus) SetTo

SetTo sets value to v.

func (*OptCacheArtifactExistsOKStatus) UnmarshalJSON

func (s *OptCacheArtifactExistsOKStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCacheCategory

type OptCacheCategory struct {
	Value CacheCategory
	Set   bool
}

OptCacheCategory is optional CacheCategory.

func NewOptCacheCategory

func NewOptCacheCategory(v CacheCategory) OptCacheCategory

NewOptCacheCategory returns new OptCacheCategory with value set to v.

func (OptCacheCategory) Get

func (o OptCacheCategory) Get() (v CacheCategory, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCacheCategory) IsSet

func (o OptCacheCategory) IsSet() bool

IsSet returns true if OptCacheCategory was set.

func (OptCacheCategory) Or

Or returns value if set, or given parameter if does not.

func (*OptCacheCategory) Reset

func (o *OptCacheCategory) Reset()

Reset unsets value.

func (*OptCacheCategory) SetTo

func (o *OptCacheCategory) SetTo(v CacheCategory)

SetTo sets value to v.

type OptCompleteAnalyticsArtifactMultipartUploadReq

type OptCompleteAnalyticsArtifactMultipartUploadReq struct {
	Value CompleteAnalyticsArtifactMultipartUploadReq
	Set   bool
}

OptCompleteAnalyticsArtifactMultipartUploadReq is optional CompleteAnalyticsArtifactMultipartUploadReq.

func NewOptCompleteAnalyticsArtifactMultipartUploadReq

func NewOptCompleteAnalyticsArtifactMultipartUploadReq(v CompleteAnalyticsArtifactMultipartUploadReq) OptCompleteAnalyticsArtifactMultipartUploadReq

NewOptCompleteAnalyticsArtifactMultipartUploadReq returns new OptCompleteAnalyticsArtifactMultipartUploadReq with value set to v.

func (*OptCompleteAnalyticsArtifactMultipartUploadReq) Decode

Decode decodes CompleteAnalyticsArtifactMultipartUploadReq from json.

func (OptCompleteAnalyticsArtifactMultipartUploadReq) Encode

Encode encodes CompleteAnalyticsArtifactMultipartUploadReq as json.

func (OptCompleteAnalyticsArtifactMultipartUploadReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteAnalyticsArtifactMultipartUploadReq) IsSet

IsSet returns true if OptCompleteAnalyticsArtifactMultipartUploadReq was set.

func (OptCompleteAnalyticsArtifactMultipartUploadReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteAnalyticsArtifactMultipartUploadReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteAnalyticsArtifactMultipartUploadReq) Reset

Reset unsets value.

func (*OptCompleteAnalyticsArtifactMultipartUploadReq) SetTo

SetTo sets value to v.

func (*OptCompleteAnalyticsArtifactMultipartUploadReq) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteAnalyticsArtifactsUploadsReq

type OptCompleteAnalyticsArtifactsUploadsReq struct {
	Value CompleteAnalyticsArtifactsUploadsReq
	Set   bool
}

OptCompleteAnalyticsArtifactsUploadsReq is optional CompleteAnalyticsArtifactsUploadsReq.

func NewOptCompleteAnalyticsArtifactsUploadsReq

func NewOptCompleteAnalyticsArtifactsUploadsReq(v CompleteAnalyticsArtifactsUploadsReq) OptCompleteAnalyticsArtifactsUploadsReq

NewOptCompleteAnalyticsArtifactsUploadsReq returns new OptCompleteAnalyticsArtifactsUploadsReq with value set to v.

func (*OptCompleteAnalyticsArtifactsUploadsReq) Decode

Decode decodes CompleteAnalyticsArtifactsUploadsReq from json.

func (OptCompleteAnalyticsArtifactsUploadsReq) Encode

Encode encodes CompleteAnalyticsArtifactsUploadsReq as json.

func (OptCompleteAnalyticsArtifactsUploadsReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteAnalyticsArtifactsUploadsReq) IsSet

IsSet returns true if OptCompleteAnalyticsArtifactsUploadsReq was set.

func (OptCompleteAnalyticsArtifactsUploadsReq) MarshalJSON

func (s OptCompleteAnalyticsArtifactsUploadsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteAnalyticsArtifactsUploadsReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteAnalyticsArtifactsUploadsReq) Reset

Reset unsets value.

func (*OptCompleteAnalyticsArtifactsUploadsReq) SetTo

SetTo sets value to v.

func (*OptCompleteAnalyticsArtifactsUploadsReq) UnmarshalJSON

func (s *OptCompleteAnalyticsArtifactsUploadsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteCacheArtifactMultipartUploadOKStatus

type OptCompleteCacheArtifactMultipartUploadOKStatus struct {
	Value CompleteCacheArtifactMultipartUploadOKStatus
	Set   bool
}

OptCompleteCacheArtifactMultipartUploadOKStatus is optional CompleteCacheArtifactMultipartUploadOKStatus.

func NewOptCompleteCacheArtifactMultipartUploadOKStatus

func NewOptCompleteCacheArtifactMultipartUploadOKStatus(v CompleteCacheArtifactMultipartUploadOKStatus) OptCompleteCacheArtifactMultipartUploadOKStatus

NewOptCompleteCacheArtifactMultipartUploadOKStatus returns new OptCompleteCacheArtifactMultipartUploadOKStatus with value set to v.

func (*OptCompleteCacheArtifactMultipartUploadOKStatus) Decode

Decode decodes CompleteCacheArtifactMultipartUploadOKStatus from json.

func (OptCompleteCacheArtifactMultipartUploadOKStatus) Encode

Encode encodes CompleteCacheArtifactMultipartUploadOKStatus as json.

func (OptCompleteCacheArtifactMultipartUploadOKStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteCacheArtifactMultipartUploadOKStatus) IsSet

IsSet returns true if OptCompleteCacheArtifactMultipartUploadOKStatus was set.

func (OptCompleteCacheArtifactMultipartUploadOKStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteCacheArtifactMultipartUploadOKStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteCacheArtifactMultipartUploadOKStatus) Reset

Reset unsets value.

func (*OptCompleteCacheArtifactMultipartUploadOKStatus) SetTo

SetTo sets value to v.

func (*OptCompleteCacheArtifactMultipartUploadOKStatus) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteCacheArtifactMultipartUploadReq

type OptCompleteCacheArtifactMultipartUploadReq struct {
	Value CompleteCacheArtifactMultipartUploadReq
	Set   bool
}

OptCompleteCacheArtifactMultipartUploadReq is optional CompleteCacheArtifactMultipartUploadReq.

func NewOptCompleteCacheArtifactMultipartUploadReq

func NewOptCompleteCacheArtifactMultipartUploadReq(v CompleteCacheArtifactMultipartUploadReq) OptCompleteCacheArtifactMultipartUploadReq

NewOptCompleteCacheArtifactMultipartUploadReq returns new OptCompleteCacheArtifactMultipartUploadReq with value set to v.

func (*OptCompleteCacheArtifactMultipartUploadReq) Decode

Decode decodes CompleteCacheArtifactMultipartUploadReq from json.

func (OptCompleteCacheArtifactMultipartUploadReq) Encode

Encode encodes CompleteCacheArtifactMultipartUploadReq as json.

func (OptCompleteCacheArtifactMultipartUploadReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteCacheArtifactMultipartUploadReq) IsSet

IsSet returns true if OptCompleteCacheArtifactMultipartUploadReq was set.

func (OptCompleteCacheArtifactMultipartUploadReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteCacheArtifactMultipartUploadReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteCacheArtifactMultipartUploadReq) Reset

Reset unsets value.

func (*OptCompleteCacheArtifactMultipartUploadReq) SetTo

SetTo sets value to v.

func (*OptCompleteCacheArtifactMultipartUploadReq) UnmarshalJSON

func (s *OptCompleteCacheArtifactMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompletePreviewsMultipartUploadReq

type OptCompletePreviewsMultipartUploadReq struct {
	Value CompletePreviewsMultipartUploadReq
	Set   bool
}

OptCompletePreviewsMultipartUploadReq is optional CompletePreviewsMultipartUploadReq.

func NewOptCompletePreviewsMultipartUploadReq

func NewOptCompletePreviewsMultipartUploadReq(v CompletePreviewsMultipartUploadReq) OptCompletePreviewsMultipartUploadReq

NewOptCompletePreviewsMultipartUploadReq returns new OptCompletePreviewsMultipartUploadReq with value set to v.

func (*OptCompletePreviewsMultipartUploadReq) Decode

Decode decodes CompletePreviewsMultipartUploadReq from json.

func (OptCompletePreviewsMultipartUploadReq) Encode

Encode encodes CompletePreviewsMultipartUploadReq as json.

func (OptCompletePreviewsMultipartUploadReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompletePreviewsMultipartUploadReq) IsSet

IsSet returns true if OptCompletePreviewsMultipartUploadReq was set.

func (OptCompletePreviewsMultipartUploadReq) MarshalJSON

func (s OptCompletePreviewsMultipartUploadReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompletePreviewsMultipartUploadReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCompletePreviewsMultipartUploadReq) Reset

Reset unsets value.

func (*OptCompletePreviewsMultipartUploadReq) SetTo

SetTo sets value to v.

func (*OptCompletePreviewsMultipartUploadReq) UnmarshalJSON

func (s *OptCompletePreviewsMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCommandEventReq

type OptCreateCommandEventReq struct {
	Value CreateCommandEventReq
	Set   bool
}

OptCreateCommandEventReq is optional CreateCommandEventReq.

func NewOptCreateCommandEventReq

func NewOptCreateCommandEventReq(v CreateCommandEventReq) OptCreateCommandEventReq

NewOptCreateCommandEventReq returns new OptCreateCommandEventReq with value set to v.

func (*OptCreateCommandEventReq) Decode

func (o *OptCreateCommandEventReq) Decode(d *jx.Decoder) error

Decode decodes CreateCommandEventReq from json.

func (OptCreateCommandEventReq) Encode

func (o OptCreateCommandEventReq) Encode(e *jx.Encoder)

Encode encodes CreateCommandEventReq as json.

func (OptCreateCommandEventReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCommandEventReq) IsSet

func (o OptCreateCommandEventReq) IsSet() bool

IsSet returns true if OptCreateCommandEventReq was set.

func (OptCreateCommandEventReq) MarshalJSON

func (s OptCreateCommandEventReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCommandEventReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCommandEventReq) Reset

func (o *OptCreateCommandEventReq) Reset()

Reset unsets value.

func (*OptCreateCommandEventReq) SetTo

SetTo sets value to v.

func (*OptCreateCommandEventReq) UnmarshalJSON

func (s *OptCreateCommandEventReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCommandEventReqParams

type OptCreateCommandEventReqParams struct {
	Value CreateCommandEventReqParams
	Set   bool
}

OptCreateCommandEventReqParams is optional CreateCommandEventReqParams.

func NewOptCreateCommandEventReqParams

func NewOptCreateCommandEventReqParams(v CreateCommandEventReqParams) OptCreateCommandEventReqParams

NewOptCreateCommandEventReqParams returns new OptCreateCommandEventReqParams with value set to v.

func (*OptCreateCommandEventReqParams) Decode

Decode decodes CreateCommandEventReqParams from json.

func (OptCreateCommandEventReqParams) Encode

Encode encodes CreateCommandEventReqParams as json.

func (OptCreateCommandEventReqParams) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCommandEventReqParams) IsSet

IsSet returns true if OptCreateCommandEventReqParams was set.

func (OptCreateCommandEventReqParams) MarshalJSON

func (s OptCreateCommandEventReqParams) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCommandEventReqParams) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCommandEventReqParams) Reset

func (o *OptCreateCommandEventReqParams) Reset()

Reset unsets value.

func (*OptCreateCommandEventReqParams) SetTo

SetTo sets value to v.

func (*OptCreateCommandEventReqParams) UnmarshalJSON

func (s *OptCreateCommandEventReqParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCommandEventReqStatus

type OptCreateCommandEventReqStatus struct {
	Value CreateCommandEventReqStatus
	Set   bool
}

OptCreateCommandEventReqStatus is optional CreateCommandEventReqStatus.

func NewOptCreateCommandEventReqStatus

func NewOptCreateCommandEventReqStatus(v CreateCommandEventReqStatus) OptCreateCommandEventReqStatus

NewOptCreateCommandEventReqStatus returns new OptCreateCommandEventReqStatus with value set to v.

func (*OptCreateCommandEventReqStatus) Decode

Decode decodes CreateCommandEventReqStatus from json.

func (OptCreateCommandEventReqStatus) Encode

Encode encodes CreateCommandEventReqStatus as json.

func (OptCreateCommandEventReqStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCommandEventReqStatus) IsSet

IsSet returns true if OptCreateCommandEventReqStatus was set.

func (OptCreateCommandEventReqStatus) MarshalJSON

func (s OptCreateCommandEventReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCommandEventReqStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCommandEventReqStatus) Reset

func (o *OptCreateCommandEventReqStatus) Reset()

Reset unsets value.

func (*OptCreateCommandEventReqStatus) SetTo

SetTo sets value to v.

func (*OptCreateCommandEventReqStatus) UnmarshalJSON

func (s *OptCreateCommandEventReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateInvitationReq

type OptCreateInvitationReq struct {
	Value CreateInvitationReq
	Set   bool
}

OptCreateInvitationReq is optional CreateInvitationReq.

func NewOptCreateInvitationReq

func NewOptCreateInvitationReq(v CreateInvitationReq) OptCreateInvitationReq

NewOptCreateInvitationReq returns new OptCreateInvitationReq with value set to v.

func (*OptCreateInvitationReq) Decode

func (o *OptCreateInvitationReq) Decode(d *jx.Decoder) error

Decode decodes CreateInvitationReq from json.

func (OptCreateInvitationReq) Encode

func (o OptCreateInvitationReq) Encode(e *jx.Encoder)

Encode encodes CreateInvitationReq as json.

func (OptCreateInvitationReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateInvitationReq) IsSet

func (o OptCreateInvitationReq) IsSet() bool

IsSet returns true if OptCreateInvitationReq was set.

func (OptCreateInvitationReq) MarshalJSON

func (s OptCreateInvitationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateInvitationReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateInvitationReq) Reset

func (o *OptCreateInvitationReq) Reset()

Reset unsets value.

func (*OptCreateInvitationReq) SetTo

SetTo sets value to v.

func (*OptCreateInvitationReq) UnmarshalJSON

func (s *OptCreateInvitationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateOrganizationReq

type OptCreateOrganizationReq struct {
	Value CreateOrganizationReq
	Set   bool
}

OptCreateOrganizationReq is optional CreateOrganizationReq.

func NewOptCreateOrganizationReq

func NewOptCreateOrganizationReq(v CreateOrganizationReq) OptCreateOrganizationReq

NewOptCreateOrganizationReq returns new OptCreateOrganizationReq with value set to v.

func (*OptCreateOrganizationReq) Decode

func (o *OptCreateOrganizationReq) Decode(d *jx.Decoder) error

Decode decodes CreateOrganizationReq from json.

func (OptCreateOrganizationReq) Encode

func (o OptCreateOrganizationReq) Encode(e *jx.Encoder)

Encode encodes CreateOrganizationReq as json.

func (OptCreateOrganizationReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateOrganizationReq) IsSet

func (o OptCreateOrganizationReq) IsSet() bool

IsSet returns true if OptCreateOrganizationReq was set.

func (OptCreateOrganizationReq) MarshalJSON

func (s OptCreateOrganizationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateOrganizationReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateOrganizationReq) Reset

func (o *OptCreateOrganizationReq) Reset()

Reset unsets value.

func (*OptCreateOrganizationReq) SetTo

SetTo sets value to v.

func (*OptCreateOrganizationReq) UnmarshalJSON

func (s *OptCreateOrganizationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateProjectReq

type OptCreateProjectReq struct {
	Value CreateProjectReq
	Set   bool
}

OptCreateProjectReq is optional CreateProjectReq.

func NewOptCreateProjectReq

func NewOptCreateProjectReq(v CreateProjectReq) OptCreateProjectReq

NewOptCreateProjectReq returns new OptCreateProjectReq with value set to v.

func (*OptCreateProjectReq) Decode

func (o *OptCreateProjectReq) Decode(d *jx.Decoder) error

Decode decodes CreateProjectReq from json.

func (OptCreateProjectReq) Encode

func (o OptCreateProjectReq) Encode(e *jx.Encoder)

Encode encodes CreateProjectReq as json.

func (OptCreateProjectReq) Get

func (o OptCreateProjectReq) Get() (v CreateProjectReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreateProjectReq) IsSet

func (o OptCreateProjectReq) IsSet() bool

IsSet returns true if OptCreateProjectReq was set.

func (OptCreateProjectReq) MarshalJSON

func (s OptCreateProjectReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateProjectReq) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateProjectReq) Reset

func (o *OptCreateProjectReq) Reset()

Reset unsets value.

func (*OptCreateProjectReq) SetTo

SetTo sets value to v.

func (*OptCreateProjectReq) UnmarshalJSON

func (s *OptCreateProjectReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGenerateAnalyticsArtifactMultipartUploadURLReq

type OptGenerateAnalyticsArtifactMultipartUploadURLReq struct {
	Value GenerateAnalyticsArtifactMultipartUploadURLReq
	Set   bool
}

OptGenerateAnalyticsArtifactMultipartUploadURLReq is optional GenerateAnalyticsArtifactMultipartUploadURLReq.

func NewOptGenerateAnalyticsArtifactMultipartUploadURLReq

func NewOptGenerateAnalyticsArtifactMultipartUploadURLReq(v GenerateAnalyticsArtifactMultipartUploadURLReq) OptGenerateAnalyticsArtifactMultipartUploadURLReq

NewOptGenerateAnalyticsArtifactMultipartUploadURLReq returns new OptGenerateAnalyticsArtifactMultipartUploadURLReq with value set to v.

func (*OptGenerateAnalyticsArtifactMultipartUploadURLReq) Decode

Decode decodes GenerateAnalyticsArtifactMultipartUploadURLReq from json.

func (OptGenerateAnalyticsArtifactMultipartUploadURLReq) Encode

Encode encodes GenerateAnalyticsArtifactMultipartUploadURLReq as json.

func (OptGenerateAnalyticsArtifactMultipartUploadURLReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptGenerateAnalyticsArtifactMultipartUploadURLReq) IsSet

IsSet returns true if OptGenerateAnalyticsArtifactMultipartUploadURLReq was set.

func (OptGenerateAnalyticsArtifactMultipartUploadURLReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptGenerateAnalyticsArtifactMultipartUploadURLReq) Or

Or returns value if set, or given parameter if does not.

func (*OptGenerateAnalyticsArtifactMultipartUploadURLReq) Reset

Reset unsets value.

func (*OptGenerateAnalyticsArtifactMultipartUploadURLReq) SetTo

SetTo sets value to v.

func (*OptGenerateAnalyticsArtifactMultipartUploadURLReq) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGeneratePreviewsMultipartUploadURLReq

type OptGeneratePreviewsMultipartUploadURLReq struct {
	Value GeneratePreviewsMultipartUploadURLReq
	Set   bool
}

OptGeneratePreviewsMultipartUploadURLReq is optional GeneratePreviewsMultipartUploadURLReq.

func NewOptGeneratePreviewsMultipartUploadURLReq

func NewOptGeneratePreviewsMultipartUploadURLReq(v GeneratePreviewsMultipartUploadURLReq) OptGeneratePreviewsMultipartUploadURLReq

NewOptGeneratePreviewsMultipartUploadURLReq returns new OptGeneratePreviewsMultipartUploadURLReq with value set to v.

func (*OptGeneratePreviewsMultipartUploadURLReq) Decode

Decode decodes GeneratePreviewsMultipartUploadURLReq from json.

func (OptGeneratePreviewsMultipartUploadURLReq) Encode

Encode encodes GeneratePreviewsMultipartUploadURLReq as json.

func (OptGeneratePreviewsMultipartUploadURLReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptGeneratePreviewsMultipartUploadURLReq) IsSet

IsSet returns true if OptGeneratePreviewsMultipartUploadURLReq was set.

func (OptGeneratePreviewsMultipartUploadURLReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptGeneratePreviewsMultipartUploadURLReq) Or

Or returns value if set, or given parameter if does not.

func (*OptGeneratePreviewsMultipartUploadURLReq) Reset

Reset unsets value.

func (*OptGeneratePreviewsMultipartUploadURLReq) SetTo

SetTo sets value to v.

func (*OptGeneratePreviewsMultipartUploadURLReq) UnmarshalJSON

func (s *OptGeneratePreviewsMultipartUploadURLReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOrganizationSSOProvider

type OptOrganizationSSOProvider struct {
	Value OrganizationSSOProvider
	Set   bool
}

OptOrganizationSSOProvider is optional OrganizationSSOProvider.

func NewOptOrganizationSSOProvider

func NewOptOrganizationSSOProvider(v OrganizationSSOProvider) OptOrganizationSSOProvider

NewOptOrganizationSSOProvider returns new OptOrganizationSSOProvider with value set to v.

func (*OptOrganizationSSOProvider) Decode

Decode decodes OrganizationSSOProvider from json.

func (OptOrganizationSSOProvider) Encode

func (o OptOrganizationSSOProvider) Encode(e *jx.Encoder)

Encode encodes OrganizationSSOProvider as json.

func (OptOrganizationSSOProvider) Get

Get returns value and boolean that denotes whether value was set.

func (OptOrganizationSSOProvider) IsSet

func (o OptOrganizationSSOProvider) IsSet() bool

IsSet returns true if OptOrganizationSSOProvider was set.

func (OptOrganizationSSOProvider) MarshalJSON

func (s OptOrganizationSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOrganizationSSOProvider) Or

Or returns value if set, or given parameter if does not.

func (*OptOrganizationSSOProvider) Reset

func (o *OptOrganizationSSOProvider) Reset()

Reset unsets value.

func (*OptOrganizationSSOProvider) SetTo

SetTo sets value to v.

func (*OptOrganizationSSOProvider) UnmarshalJSON

func (s *OptOrganizationSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRefreshTokenReq

type OptRefreshTokenReq struct {
	Value RefreshTokenReq
	Set   bool
}

OptRefreshTokenReq is optional RefreshTokenReq.

func NewOptRefreshTokenReq

func NewOptRefreshTokenReq(v RefreshTokenReq) OptRefreshTokenReq

NewOptRefreshTokenReq returns new OptRefreshTokenReq with value set to v.

func (*OptRefreshTokenReq) Decode

func (o *OptRefreshTokenReq) Decode(d *jx.Decoder) error

Decode decodes RefreshTokenReq from json.

func (OptRefreshTokenReq) Encode

func (o OptRefreshTokenReq) Encode(e *jx.Encoder)

Encode encodes RefreshTokenReq as json.

func (OptRefreshTokenReq) Get

func (o OptRefreshTokenReq) Get() (v RefreshTokenReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRefreshTokenReq) IsSet

func (o OptRefreshTokenReq) IsSet() bool

IsSet returns true if OptRefreshTokenReq was set.

func (OptRefreshTokenReq) MarshalJSON

func (s OptRefreshTokenReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRefreshTokenReq) Or

Or returns value if set, or given parameter if does not.

func (*OptRefreshTokenReq) Reset

func (o *OptRefreshTokenReq) Reset()

Reset unsets value.

func (*OptRefreshTokenReq) SetTo

func (o *OptRefreshTokenReq) SetTo(v RefreshTokenReq)

SetTo sets value to v.

func (*OptRefreshTokenReq) UnmarshalJSON

func (s *OptRefreshTokenReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStartPreviewsMultipartUploadReq

type OptStartPreviewsMultipartUploadReq struct {
	Value StartPreviewsMultipartUploadReq
	Set   bool
}

OptStartPreviewsMultipartUploadReq is optional StartPreviewsMultipartUploadReq.

func NewOptStartPreviewsMultipartUploadReq

func NewOptStartPreviewsMultipartUploadReq(v StartPreviewsMultipartUploadReq) OptStartPreviewsMultipartUploadReq

NewOptStartPreviewsMultipartUploadReq returns new OptStartPreviewsMultipartUploadReq with value set to v.

func (*OptStartPreviewsMultipartUploadReq) Decode

Decode decodes StartPreviewsMultipartUploadReq from json.

func (OptStartPreviewsMultipartUploadReq) Encode

Encode encodes StartPreviewsMultipartUploadReq as json.

func (OptStartPreviewsMultipartUploadReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptStartPreviewsMultipartUploadReq) IsSet

IsSet returns true if OptStartPreviewsMultipartUploadReq was set.

func (OptStartPreviewsMultipartUploadReq) MarshalJSON

func (s OptStartPreviewsMultipartUploadReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStartPreviewsMultipartUploadReq) Or

Or returns value if set, or given parameter if does not.

func (*OptStartPreviewsMultipartUploadReq) Reset

Reset unsets value.

func (*OptStartPreviewsMultipartUploadReq) SetTo

SetTo sets value to v.

func (*OptStartPreviewsMultipartUploadReq) UnmarshalJSON

func (s *OptStartPreviewsMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOrganization2Req

type OptUpdateOrganization2Req struct {
	Value UpdateOrganization2Req
	Set   bool
}

OptUpdateOrganization2Req is optional UpdateOrganization2Req.

func NewOptUpdateOrganization2Req

func NewOptUpdateOrganization2Req(v UpdateOrganization2Req) OptUpdateOrganization2Req

NewOptUpdateOrganization2Req returns new OptUpdateOrganization2Req with value set to v.

func (*OptUpdateOrganization2Req) Decode

func (o *OptUpdateOrganization2Req) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganization2Req from json.

func (OptUpdateOrganization2Req) Encode

func (o OptUpdateOrganization2Req) Encode(e *jx.Encoder)

Encode encodes UpdateOrganization2Req as json.

func (OptUpdateOrganization2Req) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOrganization2Req) IsSet

func (o OptUpdateOrganization2Req) IsSet() bool

IsSet returns true if OptUpdateOrganization2Req was set.

func (OptUpdateOrganization2Req) MarshalJSON

func (s OptUpdateOrganization2Req) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOrganization2Req) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOrganization2Req) Reset

func (o *OptUpdateOrganization2Req) Reset()

Reset unsets value.

func (*OptUpdateOrganization2Req) SetTo

SetTo sets value to v.

func (*OptUpdateOrganization2Req) UnmarshalJSON

func (s *OptUpdateOrganization2Req) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOrganization2ReqSSOProvider

type OptUpdateOrganization2ReqSSOProvider struct {
	Value UpdateOrganization2ReqSSOProvider
	Set   bool
}

OptUpdateOrganization2ReqSSOProvider is optional UpdateOrganization2ReqSSOProvider.

func NewOptUpdateOrganization2ReqSSOProvider

func NewOptUpdateOrganization2ReqSSOProvider(v UpdateOrganization2ReqSSOProvider) OptUpdateOrganization2ReqSSOProvider

NewOptUpdateOrganization2ReqSSOProvider returns new OptUpdateOrganization2ReqSSOProvider with value set to v.

func (*OptUpdateOrganization2ReqSSOProvider) Decode

Decode decodes UpdateOrganization2ReqSSOProvider from json.

func (OptUpdateOrganization2ReqSSOProvider) Encode

Encode encodes UpdateOrganization2ReqSSOProvider as json.

func (OptUpdateOrganization2ReqSSOProvider) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOrganization2ReqSSOProvider) IsSet

IsSet returns true if OptUpdateOrganization2ReqSSOProvider was set.

func (OptUpdateOrganization2ReqSSOProvider) MarshalJSON

func (s OptUpdateOrganization2ReqSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOrganization2ReqSSOProvider) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOrganization2ReqSSOProvider) Reset

Reset unsets value.

func (*OptUpdateOrganization2ReqSSOProvider) SetTo

SetTo sets value to v.

func (*OptUpdateOrganization2ReqSSOProvider) UnmarshalJSON

func (s *OptUpdateOrganization2ReqSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOrganizationMemberReq

type OptUpdateOrganizationMemberReq struct {
	Value UpdateOrganizationMemberReq
	Set   bool
}

OptUpdateOrganizationMemberReq is optional UpdateOrganizationMemberReq.

func NewOptUpdateOrganizationMemberReq

func NewOptUpdateOrganizationMemberReq(v UpdateOrganizationMemberReq) OptUpdateOrganizationMemberReq

NewOptUpdateOrganizationMemberReq returns new OptUpdateOrganizationMemberReq with value set to v.

func (*OptUpdateOrganizationMemberReq) Decode

Decode decodes UpdateOrganizationMemberReq from json.

func (OptUpdateOrganizationMemberReq) Encode

Encode encodes UpdateOrganizationMemberReq as json.

func (OptUpdateOrganizationMemberReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOrganizationMemberReq) IsSet

IsSet returns true if OptUpdateOrganizationMemberReq was set.

func (OptUpdateOrganizationMemberReq) MarshalJSON

func (s OptUpdateOrganizationMemberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOrganizationMemberReq) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOrganizationMemberReq) Reset

func (o *OptUpdateOrganizationMemberReq) Reset()

Reset unsets value.

func (*OptUpdateOrganizationMemberReq) SetTo

SetTo sets value to v.

func (*OptUpdateOrganizationMemberReq) UnmarshalJSON

func (s *OptUpdateOrganizationMemberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOrganizationReq

type OptUpdateOrganizationReq struct {
	Value UpdateOrganizationReq
	Set   bool
}

OptUpdateOrganizationReq is optional UpdateOrganizationReq.

func NewOptUpdateOrganizationReq

func NewOptUpdateOrganizationReq(v UpdateOrganizationReq) OptUpdateOrganizationReq

NewOptUpdateOrganizationReq returns new OptUpdateOrganizationReq with value set to v.

func (*OptUpdateOrganizationReq) Decode

func (o *OptUpdateOrganizationReq) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganizationReq from json.

func (OptUpdateOrganizationReq) Encode

func (o OptUpdateOrganizationReq) Encode(e *jx.Encoder)

Encode encodes UpdateOrganizationReq as json.

func (OptUpdateOrganizationReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOrganizationReq) IsSet

func (o OptUpdateOrganizationReq) IsSet() bool

IsSet returns true if OptUpdateOrganizationReq was set.

func (OptUpdateOrganizationReq) MarshalJSON

func (s OptUpdateOrganizationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOrganizationReq) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOrganizationReq) Reset

func (o *OptUpdateOrganizationReq) Reset()

Reset unsets value.

func (*OptUpdateOrganizationReq) SetTo

SetTo sets value to v.

func (*OptUpdateOrganizationReq) UnmarshalJSON

func (s *OptUpdateOrganizationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOrganizationReqSSOProvider

type OptUpdateOrganizationReqSSOProvider struct {
	Value UpdateOrganizationReqSSOProvider
	Set   bool
}

OptUpdateOrganizationReqSSOProvider is optional UpdateOrganizationReqSSOProvider.

func NewOptUpdateOrganizationReqSSOProvider

func NewOptUpdateOrganizationReqSSOProvider(v UpdateOrganizationReqSSOProvider) OptUpdateOrganizationReqSSOProvider

NewOptUpdateOrganizationReqSSOProvider returns new OptUpdateOrganizationReqSSOProvider with value set to v.

func (*OptUpdateOrganizationReqSSOProvider) Decode

Decode decodes UpdateOrganizationReqSSOProvider from json.

func (OptUpdateOrganizationReqSSOProvider) Encode

Encode encodes UpdateOrganizationReqSSOProvider as json.

func (OptUpdateOrganizationReqSSOProvider) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOrganizationReqSSOProvider) IsSet

IsSet returns true if OptUpdateOrganizationReqSSOProvider was set.

func (OptUpdateOrganizationReqSSOProvider) MarshalJSON

func (s OptUpdateOrganizationReqSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOrganizationReqSSOProvider) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOrganizationReqSSOProvider) Reset

Reset unsets value.

func (*OptUpdateOrganizationReqSSOProvider) SetTo

SetTo sets value to v.

func (*OptUpdateOrganizationReqSSOProvider) UnmarshalJSON

func (s *OptUpdateOrganizationReqSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateProjectReq

type OptUpdateProjectReq struct {
	Value UpdateProjectReq
	Set   bool
}

OptUpdateProjectReq is optional UpdateProjectReq.

func NewOptUpdateProjectReq

func NewOptUpdateProjectReq(v UpdateProjectReq) OptUpdateProjectReq

NewOptUpdateProjectReq returns new OptUpdateProjectReq with value set to v.

func (*OptUpdateProjectReq) Decode

func (o *OptUpdateProjectReq) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectReq from json.

func (OptUpdateProjectReq) Encode

func (o OptUpdateProjectReq) Encode(e *jx.Encoder)

Encode encodes UpdateProjectReq as json.

func (OptUpdateProjectReq) Get

func (o OptUpdateProjectReq) Get() (v UpdateProjectReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUpdateProjectReq) IsSet

func (o OptUpdateProjectReq) IsSet() bool

IsSet returns true if OptUpdateProjectReq was set.

func (OptUpdateProjectReq) MarshalJSON

func (s OptUpdateProjectReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateProjectReq) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateProjectReq) Reset

func (o *OptUpdateProjectReq) Reset()

Reset unsets value.

func (*OptUpdateProjectReq) SetTo

SetTo sets value to v.

func (*OptUpdateProjectReq) UnmarshalJSON

func (s *OptUpdateProjectReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUploadCacheActionItemReq

type OptUploadCacheActionItemReq struct {
	Value UploadCacheActionItemReq
	Set   bool
}

OptUploadCacheActionItemReq is optional UploadCacheActionItemReq.

func NewOptUploadCacheActionItemReq

func NewOptUploadCacheActionItemReq(v UploadCacheActionItemReq) OptUploadCacheActionItemReq

NewOptUploadCacheActionItemReq returns new OptUploadCacheActionItemReq with value set to v.

func (*OptUploadCacheActionItemReq) Decode

Decode decodes UploadCacheActionItemReq from json.

func (OptUploadCacheActionItemReq) Encode

func (o OptUploadCacheActionItemReq) Encode(e *jx.Encoder)

Encode encodes UploadCacheActionItemReq as json.

func (OptUploadCacheActionItemReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptUploadCacheActionItemReq) IsSet

IsSet returns true if OptUploadCacheActionItemReq was set.

func (OptUploadCacheActionItemReq) MarshalJSON

func (s OptUploadCacheActionItemReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUploadCacheActionItemReq) Or

Or returns value if set, or given parameter if does not.

func (*OptUploadCacheActionItemReq) Reset

func (o *OptUploadCacheActionItemReq) Reset()

Reset unsets value.

func (*OptUploadCacheActionItemReq) SetTo

SetTo sets value to v.

func (*OptUploadCacheActionItemReq) UnmarshalJSON

func (s *OptUploadCacheActionItemReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Organization

type Organization struct {
	// The organization's unique identifier.
	ID float64 `json:"id"`
	// A list of organization invitations.
	Invitations []Invitation `json:"invitations"`
	// A list of organization members.
	Members []OrganizationMember `json:"members"`
	// The organization's name.
	Name string `json:"name"`
	// The plan associated with the organization.
	Plan OrganizationPlan `json:"plan"`
	// The organization ID associated with the SSO provider.
	SSOOrganizationID OptString `json:"sso_organization_id"`
	// The SSO provider set up for the organization.
	SSOProvider OptOrganizationSSOProvider `json:"sso_provider"`
}

An organization. Ref: #/components/schemas/Organization

func (*Organization) Decode

func (s *Organization) Decode(d *jx.Decoder) error

Decode decodes Organization from json.

func (*Organization) Encode

func (s *Organization) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Organization) GetID

func (s *Organization) GetID() float64

GetID returns the value of ID.

func (*Organization) GetInvitations

func (s *Organization) GetInvitations() []Invitation

GetInvitations returns the value of Invitations.

func (*Organization) GetMembers

func (s *Organization) GetMembers() []OrganizationMember

GetMembers returns the value of Members.

func (*Organization) GetName

func (s *Organization) GetName() string

GetName returns the value of Name.

func (*Organization) GetPlan

func (s *Organization) GetPlan() OrganizationPlan

GetPlan returns the value of Plan.

func (*Organization) GetSSOOrganizationID

func (s *Organization) GetSSOOrganizationID() OptString

GetSSOOrganizationID returns the value of SSOOrganizationID.

func (*Organization) GetSSOProvider

func (s *Organization) GetSSOProvider() OptOrganizationSSOProvider

GetSSOProvider returns the value of SSOProvider.

func (*Organization) MarshalJSON

func (s *Organization) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Organization) SetID

func (s *Organization) SetID(val float64)

SetID sets the value of ID.

func (*Organization) SetInvitations

func (s *Organization) SetInvitations(val []Invitation)

SetInvitations sets the value of Invitations.

func (*Organization) SetMembers

func (s *Organization) SetMembers(val []OrganizationMember)

SetMembers sets the value of Members.

func (*Organization) SetName

func (s *Organization) SetName(val string)

SetName sets the value of Name.

func (*Organization) SetPlan

func (s *Organization) SetPlan(val OrganizationPlan)

SetPlan sets the value of Plan.

func (*Organization) SetSSOOrganizationID

func (s *Organization) SetSSOOrganizationID(val OptString)

SetSSOOrganizationID sets the value of SSOOrganizationID.

func (*Organization) SetSSOProvider

func (s *Organization) SetSSOProvider(val OptOrganizationSSOProvider)

SetSSOProvider sets the value of SSOProvider.

func (*Organization) UnmarshalJSON

func (s *Organization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Organization) Validate

func (s *Organization) Validate() error

type OrganizationMember

type OrganizationMember struct {
	// The organization member's email.
	Email string `json:"email"`
	// The organization member's unique identifier.
	ID float64 `json:"id"`
	// The organization member's name.
	Name string `json:"name"`
	// The organization member's role.
	Role OrganizationMemberRole `json:"role"`
}

An organization member. Ref: #/components/schemas/OrganizationMember

func (*OrganizationMember) Decode

func (s *OrganizationMember) Decode(d *jx.Decoder) error

Decode decodes OrganizationMember from json.

func (*OrganizationMember) Encode

func (s *OrganizationMember) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OrganizationMember) GetEmail

func (s *OrganizationMember) GetEmail() string

GetEmail returns the value of Email.

func (*OrganizationMember) GetID

func (s *OrganizationMember) GetID() float64

GetID returns the value of ID.

func (*OrganizationMember) GetName

func (s *OrganizationMember) GetName() string

GetName returns the value of Name.

func (*OrganizationMember) GetRole

GetRole returns the value of Role.

func (*OrganizationMember) MarshalJSON

func (s *OrganizationMember) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OrganizationMember) SetEmail

func (s *OrganizationMember) SetEmail(val string)

SetEmail sets the value of Email.

func (*OrganizationMember) SetID

func (s *OrganizationMember) SetID(val float64)

SetID sets the value of ID.

func (*OrganizationMember) SetName

func (s *OrganizationMember) SetName(val string)

SetName sets the value of Name.

func (*OrganizationMember) SetRole

SetRole sets the value of Role.

func (*OrganizationMember) UnmarshalJSON

func (s *OrganizationMember) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationMember) Validate

func (s *OrganizationMember) Validate() error

type OrganizationMemberRole

type OrganizationMemberRole string

The organization member's role.

const (
	OrganizationMemberRoleAdmin OrganizationMemberRole = "admin"
	OrganizationMemberRoleUser  OrganizationMemberRole = "user"
)

func (OrganizationMemberRole) AllValues

AllValues returns all OrganizationMemberRole values.

func (*OrganizationMemberRole) Decode

func (s *OrganizationMemberRole) Decode(d *jx.Decoder) error

Decode decodes OrganizationMemberRole from json.

func (OrganizationMemberRole) Encode

func (s OrganizationMemberRole) Encode(e *jx.Encoder)

Encode encodes OrganizationMemberRole as json.

func (OrganizationMemberRole) MarshalJSON

func (s OrganizationMemberRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OrganizationMemberRole) MarshalText

func (s OrganizationMemberRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OrganizationMemberRole) UnmarshalJSON

func (s *OrganizationMemberRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationMemberRole) UnmarshalText

func (s *OrganizationMemberRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OrganizationMemberRole) Validate

func (s OrganizationMemberRole) Validate() error

type OrganizationPlan

type OrganizationPlan string

The plan associated with the organization.

const (
	OrganizationPlanAir        OrganizationPlan = "air"
	OrganizationPlanPro        OrganizationPlan = "pro"
	OrganizationPlanEnterprise OrganizationPlan = "enterprise"
	OrganizationPlanNone       OrganizationPlan = "none"
)

func (OrganizationPlan) AllValues

func (OrganizationPlan) AllValues() []OrganizationPlan

AllValues returns all OrganizationPlan values.

func (*OrganizationPlan) Decode

func (s *OrganizationPlan) Decode(d *jx.Decoder) error

Decode decodes OrganizationPlan from json.

func (OrganizationPlan) Encode

func (s OrganizationPlan) Encode(e *jx.Encoder)

Encode encodes OrganizationPlan as json.

func (OrganizationPlan) MarshalJSON

func (s OrganizationPlan) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OrganizationPlan) MarshalText

func (s OrganizationPlan) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OrganizationPlan) UnmarshalJSON

func (s *OrganizationPlan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationPlan) UnmarshalText

func (s *OrganizationPlan) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OrganizationPlan) Validate

func (s OrganizationPlan) Validate() error

type OrganizationSSOProvider

type OrganizationSSOProvider string

The SSO provider set up for the organization.

const (
	OrganizationSSOProviderGoogle OrganizationSSOProvider = "google"
)

func (OrganizationSSOProvider) AllValues

AllValues returns all OrganizationSSOProvider values.

func (*OrganizationSSOProvider) Decode

func (s *OrganizationSSOProvider) Decode(d *jx.Decoder) error

Decode decodes OrganizationSSOProvider from json.

func (OrganizationSSOProvider) Encode

func (s OrganizationSSOProvider) Encode(e *jx.Encoder)

Encode encodes OrganizationSSOProvider as json.

func (OrganizationSSOProvider) MarshalJSON

func (s OrganizationSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OrganizationSSOProvider) MarshalText

func (s OrganizationSSOProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OrganizationSSOProvider) UnmarshalJSON

func (s *OrganizationSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationSSOProvider) UnmarshalText

func (s *OrganizationSSOProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OrganizationSSOProvider) Validate

func (s OrganizationSSOProvider) Validate() error

type OrganizationUsage

type OrganizationUsage struct {
	// The number of remote cache hits in the current month.
	CurrentMonthRemoteCacheHits float64 `json:"current_month_remote_cache_hits"`
}

The usage of an organization. Ref: #/components/schemas/OrganizationUsage

func (*OrganizationUsage) Decode

func (s *OrganizationUsage) Decode(d *jx.Decoder) error

Decode decodes OrganizationUsage from json.

func (*OrganizationUsage) Encode

func (s *OrganizationUsage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OrganizationUsage) GetCurrentMonthRemoteCacheHits

func (s *OrganizationUsage) GetCurrentMonthRemoteCacheHits() float64

GetCurrentMonthRemoteCacheHits returns the value of CurrentMonthRemoteCacheHits.

func (*OrganizationUsage) MarshalJSON

func (s *OrganizationUsage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OrganizationUsage) SetCurrentMonthRemoteCacheHits

func (s *OrganizationUsage) SetCurrentMonthRemoteCacheHits(val float64)

SetCurrentMonthRemoteCacheHits sets the value of CurrentMonthRemoteCacheHits.

func (*OrganizationUsage) UnmarshalJSON

func (s *OrganizationUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationUsage) Validate

func (s *OrganizationUsage) Validate() error

type Project

type Project struct {
	// The default branch of the project.
	DefaultBranch string `json:"default_branch"`
	// The full name of the project (e.g. tuist/tuist).
	FullName string `json:"full_name"`
	// ID of the project.
	ID float64 `json:"id"`
	// The URL of the connected git repository, such as https://github.com/tuist/tuist or https://github.
	// com/tuist/tuist.git.
	RepositoryURL OptString `json:"repository_url"`
	// The token that should be used to authenticate the project. For CI only.
	//
	// Deprecated: schema marks this property as deprecated.
	Token string `json:"token"`
}

Ref: #/components/schemas/Project

func (*Project) Decode

func (s *Project) Decode(d *jx.Decoder) error

Decode decodes Project from json.

func (*Project) Encode

func (s *Project) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Project) GetDefaultBranch

func (s *Project) GetDefaultBranch() string

GetDefaultBranch returns the value of DefaultBranch.

func (*Project) GetFullName

func (s *Project) GetFullName() string

GetFullName returns the value of FullName.

func (*Project) GetID

func (s *Project) GetID() float64

GetID returns the value of ID.

func (*Project) GetRepositoryURL

func (s *Project) GetRepositoryURL() OptString

GetRepositoryURL returns the value of RepositoryURL.

func (*Project) GetToken

func (s *Project) GetToken() string

GetToken returns the value of Token.

func (*Project) MarshalJSON

func (s *Project) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Project) SetDefaultBranch

func (s *Project) SetDefaultBranch(val string)

SetDefaultBranch sets the value of DefaultBranch.

func (*Project) SetFullName

func (s *Project) SetFullName(val string)

SetFullName sets the value of FullName.

func (*Project) SetID

func (s *Project) SetID(val float64)

SetID sets the value of ID.

func (*Project) SetRepositoryURL

func (s *Project) SetRepositoryURL(val OptString)

SetRepositoryURL sets the value of RepositoryURL.

func (*Project) SetToken

func (s *Project) SetToken(val string)

SetToken sets the value of Token.

func (*Project) UnmarshalJSON

func (s *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Project) Validate

func (s *Project) Validate() error

type ProjectToken

type ProjectToken struct {
	// The token unique identifier.
	ID string `json:"id"`
	// The timestamp of when the token was created.
	InsertedAt time.Time `json:"inserted_at"`
}

A token to authenticate API requests as a project. Ref: #/components/schemas/ProjectToken

func (*ProjectToken) Decode

func (s *ProjectToken) Decode(d *jx.Decoder) error

Decode decodes ProjectToken from json.

func (*ProjectToken) Encode

func (s *ProjectToken) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectToken) GetID

func (s *ProjectToken) GetID() string

GetID returns the value of ID.

func (*ProjectToken) GetInsertedAt

func (s *ProjectToken) GetInsertedAt() time.Time

GetInsertedAt returns the value of InsertedAt.

func (*ProjectToken) MarshalJSON

func (s *ProjectToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectToken) SetID

func (s *ProjectToken) SetID(val string)

SetID sets the value of ID.

func (*ProjectToken) SetInsertedAt

func (s *ProjectToken) SetInsertedAt(val time.Time)

SetInsertedAt sets the value of InsertedAt.

func (*ProjectToken) UnmarshalJSON

func (s *ProjectToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RefreshTokenReq

type RefreshTokenReq struct {
	// User refresh token.
	RefreshToken string `json:"refresh_token"`
}

func (*RefreshTokenReq) Decode

func (s *RefreshTokenReq) Decode(d *jx.Decoder) error

Decode decodes RefreshTokenReq from json.

func (*RefreshTokenReq) Encode

func (s *RefreshTokenReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RefreshTokenReq) GetRefreshToken

func (s *RefreshTokenReq) GetRefreshToken() string

GetRefreshToken returns the value of RefreshToken.

func (*RefreshTokenReq) MarshalJSON

func (s *RefreshTokenReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RefreshTokenReq) SetRefreshToken

func (s *RefreshTokenReq) SetRefreshToken(val string)

SetRefreshToken sets the value of RefreshToken.

func (*RefreshTokenReq) UnmarshalJSON

func (s *RefreshTokenReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RefreshTokenRes

type RefreshTokenRes interface {
	// contains filtered or unexported methods
}

type RevokeProjectTokenBadRequest

type RevokeProjectTokenBadRequest Error

func (*RevokeProjectTokenBadRequest) Decode

Decode decodes RevokeProjectTokenBadRequest from json.

func (*RevokeProjectTokenBadRequest) Encode

func (s *RevokeProjectTokenBadRequest) Encode(e *jx.Encoder)

Encode encodes RevokeProjectTokenBadRequest as json.

func (*RevokeProjectTokenBadRequest) MarshalJSON

func (s *RevokeProjectTokenBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeProjectTokenBadRequest) UnmarshalJSON

func (s *RevokeProjectTokenBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeProjectTokenForbidden

type RevokeProjectTokenForbidden Error

func (*RevokeProjectTokenForbidden) Decode

Decode decodes RevokeProjectTokenForbidden from json.

func (*RevokeProjectTokenForbidden) Encode

func (s *RevokeProjectTokenForbidden) Encode(e *jx.Encoder)

Encode encodes RevokeProjectTokenForbidden as json.

func (*RevokeProjectTokenForbidden) MarshalJSON

func (s *RevokeProjectTokenForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeProjectTokenForbidden) UnmarshalJSON

func (s *RevokeProjectTokenForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeProjectTokenNoContent

type RevokeProjectTokenNoContent struct{}

RevokeProjectTokenNoContent is response for RevokeProjectToken operation.

type RevokeProjectTokenNotFound

type RevokeProjectTokenNotFound Error

func (*RevokeProjectTokenNotFound) Decode

Decode decodes RevokeProjectTokenNotFound from json.

func (*RevokeProjectTokenNotFound) Encode

func (s *RevokeProjectTokenNotFound) Encode(e *jx.Encoder)

Encode encodes RevokeProjectTokenNotFound as json.

func (*RevokeProjectTokenNotFound) MarshalJSON

func (s *RevokeProjectTokenNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeProjectTokenNotFound) UnmarshalJSON

func (s *RevokeProjectTokenNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeProjectTokenParams

type RevokeProjectTokenParams struct {
	// The account handle.
	AccountHandle string
	// The project handle.
	ProjectHandle string
	// The ID of the project token.
	ID string
}

RevokeProjectTokenParams is parameters of revokeProjectToken operation.

type RevokeProjectTokenRes

type RevokeProjectTokenRes interface {
	// contains filtered or unexported methods
}

type RevokeProjectTokenUnauthorized

type RevokeProjectTokenUnauthorized Error

func (*RevokeProjectTokenUnauthorized) Decode

Decode decodes RevokeProjectTokenUnauthorized from json.

func (*RevokeProjectTokenUnauthorized) Encode

Encode encodes RevokeProjectTokenUnauthorized as json.

func (*RevokeProjectTokenUnauthorized) MarshalJSON

func (s *RevokeProjectTokenUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeProjectTokenUnauthorized) UnmarshalJSON

func (s *RevokeProjectTokenUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type SecurityHandler

type SecurityHandler interface {
	// HandleAuthorization handles authorization security.
	HandleAuthorization(ctx context.Context, operationName string, t Authorization) (context.Context, error)
	// HandleCookie handles cookie security.
	HandleCookie(ctx context.Context, operationName string, t Cookie) (context.Context, error)
}

SecurityHandler is handler for security parameters.

type SecuritySource

type SecuritySource interface {
	// Authorization provides authorization security value.
	Authorization(ctx context.Context, operationName string) (Authorization, error)
	// Cookie provides cookie security value.
	Cookie(ctx context.Context, operationName string) (Cookie, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type ShowOrganizationForbidden

type ShowOrganizationForbidden Error

func (*ShowOrganizationForbidden) Decode

func (s *ShowOrganizationForbidden) Decode(d *jx.Decoder) error

Decode decodes ShowOrganizationForbidden from json.

func (*ShowOrganizationForbidden) Encode

func (s *ShowOrganizationForbidden) Encode(e *jx.Encoder)

Encode encodes ShowOrganizationForbidden as json.

func (*ShowOrganizationForbidden) MarshalJSON

func (s *ShowOrganizationForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationForbidden) UnmarshalJSON

func (s *ShowOrganizationForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowOrganizationNotFound

type ShowOrganizationNotFound Error

func (*ShowOrganizationNotFound) Decode

func (s *ShowOrganizationNotFound) Decode(d *jx.Decoder) error

Decode decodes ShowOrganizationNotFound from json.

func (*ShowOrganizationNotFound) Encode

func (s *ShowOrganizationNotFound) Encode(e *jx.Encoder)

Encode encodes ShowOrganizationNotFound as json.

func (*ShowOrganizationNotFound) MarshalJSON

func (s *ShowOrganizationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationNotFound) UnmarshalJSON

func (s *ShowOrganizationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowOrganizationParams

type ShowOrganizationParams struct {
	// The name of the organization to show.
	OrganizationName string
}

ShowOrganizationParams is parameters of showOrganization operation.

type ShowOrganizationRes

type ShowOrganizationRes interface {
	// contains filtered or unexported methods
}

type ShowOrganizationUnauthorized

type ShowOrganizationUnauthorized Error

func (*ShowOrganizationUnauthorized) Decode

Decode decodes ShowOrganizationUnauthorized from json.

func (*ShowOrganizationUnauthorized) Encode

func (s *ShowOrganizationUnauthorized) Encode(e *jx.Encoder)

Encode encodes ShowOrganizationUnauthorized as json.

func (*ShowOrganizationUnauthorized) MarshalJSON

func (s *ShowOrganizationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationUnauthorized) UnmarshalJSON

func (s *ShowOrganizationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowOrganizationUsageForbidden

type ShowOrganizationUsageForbidden Error

func (*ShowOrganizationUsageForbidden) Decode

Decode decodes ShowOrganizationUsageForbidden from json.

func (*ShowOrganizationUsageForbidden) Encode

Encode encodes ShowOrganizationUsageForbidden as json.

func (*ShowOrganizationUsageForbidden) MarshalJSON

func (s *ShowOrganizationUsageForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationUsageForbidden) UnmarshalJSON

func (s *ShowOrganizationUsageForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowOrganizationUsageNotFound

type ShowOrganizationUsageNotFound Error

func (*ShowOrganizationUsageNotFound) Decode

Decode decodes ShowOrganizationUsageNotFound from json.

func (*ShowOrganizationUsageNotFound) Encode

Encode encodes ShowOrganizationUsageNotFound as json.

func (*ShowOrganizationUsageNotFound) MarshalJSON

func (s *ShowOrganizationUsageNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationUsageNotFound) UnmarshalJSON

func (s *ShowOrganizationUsageNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowOrganizationUsageParams

type ShowOrganizationUsageParams struct {
	// The name of the organization to show.
	OrganizationName string
}

ShowOrganizationUsageParams is parameters of showOrganizationUsage operation.

type ShowOrganizationUsageRes

type ShowOrganizationUsageRes interface {
	// contains filtered or unexported methods
}

type ShowOrganizationUsageUnauthorized

type ShowOrganizationUsageUnauthorized Error

func (*ShowOrganizationUsageUnauthorized) Decode

Decode decodes ShowOrganizationUsageUnauthorized from json.

func (*ShowOrganizationUsageUnauthorized) Encode

Encode encodes ShowOrganizationUsageUnauthorized as json.

func (*ShowOrganizationUsageUnauthorized) MarshalJSON

func (s *ShowOrganizationUsageUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowOrganizationUsageUnauthorized) UnmarshalJSON

func (s *ShowOrganizationUsageUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowProjectForbidden

type ShowProjectForbidden Error

func (*ShowProjectForbidden) Decode

func (s *ShowProjectForbidden) Decode(d *jx.Decoder) error

Decode decodes ShowProjectForbidden from json.

func (*ShowProjectForbidden) Encode

func (s *ShowProjectForbidden) Encode(e *jx.Encoder)

Encode encodes ShowProjectForbidden as json.

func (*ShowProjectForbidden) MarshalJSON

func (s *ShowProjectForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowProjectForbidden) UnmarshalJSON

func (s *ShowProjectForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowProjectNotFound

type ShowProjectNotFound Error

func (*ShowProjectNotFound) Decode

func (s *ShowProjectNotFound) Decode(d *jx.Decoder) error

Decode decodes ShowProjectNotFound from json.

func (*ShowProjectNotFound) Encode

func (s *ShowProjectNotFound) Encode(e *jx.Encoder)

Encode encodes ShowProjectNotFound as json.

func (*ShowProjectNotFound) MarshalJSON

func (s *ShowProjectNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowProjectNotFound) UnmarshalJSON

func (s *ShowProjectNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowProjectParams

type ShowProjectParams struct {
	// The name of the account that the project belongs to.
	AccountHandle string
	// The name of the project to show.
	ProjectHandle string
}

ShowProjectParams is parameters of showProject operation.

type ShowProjectRes

type ShowProjectRes interface {
	// contains filtered or unexported methods
}

type ShowProjectUnauthorized

type ShowProjectUnauthorized Error

func (*ShowProjectUnauthorized) Decode

func (s *ShowProjectUnauthorized) Decode(d *jx.Decoder) error

Decode decodes ShowProjectUnauthorized from json.

func (*ShowProjectUnauthorized) Encode

func (s *ShowProjectUnauthorized) Encode(e *jx.Encoder)

Encode encodes ShowProjectUnauthorized as json.

func (*ShowProjectUnauthorized) MarshalJSON

func (s *ShowProjectUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowProjectUnauthorized) UnmarshalJSON

func (s *ShowProjectUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartAnalyticsArtifactMultipartUploadForbidden

type StartAnalyticsArtifactMultipartUploadForbidden Error

func (*StartAnalyticsArtifactMultipartUploadForbidden) Decode

Decode decodes StartAnalyticsArtifactMultipartUploadForbidden from json.

func (*StartAnalyticsArtifactMultipartUploadForbidden) Encode

Encode encodes StartAnalyticsArtifactMultipartUploadForbidden as json.

func (*StartAnalyticsArtifactMultipartUploadForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartAnalyticsArtifactMultipartUploadForbidden) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type StartAnalyticsArtifactMultipartUploadNotFound

type StartAnalyticsArtifactMultipartUploadNotFound Error

func (*StartAnalyticsArtifactMultipartUploadNotFound) Decode

Decode decodes StartAnalyticsArtifactMultipartUploadNotFound from json.

func (*StartAnalyticsArtifactMultipartUploadNotFound) Encode

Encode encodes StartAnalyticsArtifactMultipartUploadNotFound as json.

func (*StartAnalyticsArtifactMultipartUploadNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartAnalyticsArtifactMultipartUploadNotFound) UnmarshalJSON

func (s *StartAnalyticsArtifactMultipartUploadNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartAnalyticsArtifactMultipartUploadParams

type StartAnalyticsArtifactMultipartUploadParams struct {
	// The id of the command event.
	RunID int
}

StartAnalyticsArtifactMultipartUploadParams is parameters of startAnalyticsArtifactMultipartUpload operation.

type StartAnalyticsArtifactMultipartUploadRes

type StartAnalyticsArtifactMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type StartAnalyticsArtifactMultipartUploadUnauthorized

type StartAnalyticsArtifactMultipartUploadUnauthorized Error

func (*StartAnalyticsArtifactMultipartUploadUnauthorized) Decode

Decode decodes StartAnalyticsArtifactMultipartUploadUnauthorized from json.

func (*StartAnalyticsArtifactMultipartUploadUnauthorized) Encode

Encode encodes StartAnalyticsArtifactMultipartUploadUnauthorized as json.

func (*StartAnalyticsArtifactMultipartUploadUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartAnalyticsArtifactMultipartUploadUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type StartCacheArtifactMultipartUploadForbidden

type StartCacheArtifactMultipartUploadForbidden Error

func (*StartCacheArtifactMultipartUploadForbidden) Decode

Decode decodes StartCacheArtifactMultipartUploadForbidden from json.

func (*StartCacheArtifactMultipartUploadForbidden) Encode

Encode encodes StartCacheArtifactMultipartUploadForbidden as json.

func (*StartCacheArtifactMultipartUploadForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartCacheArtifactMultipartUploadForbidden) UnmarshalJSON

func (s *StartCacheArtifactMultipartUploadForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartCacheArtifactMultipartUploadNotFound

type StartCacheArtifactMultipartUploadNotFound Error

func (*StartCacheArtifactMultipartUploadNotFound) Decode

Decode decodes StartCacheArtifactMultipartUploadNotFound from json.

func (*StartCacheArtifactMultipartUploadNotFound) Encode

Encode encodes StartCacheArtifactMultipartUploadNotFound as json.

func (*StartCacheArtifactMultipartUploadNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartCacheArtifactMultipartUploadNotFound) UnmarshalJSON

func (s *StartCacheArtifactMultipartUploadNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartCacheArtifactMultipartUploadParams

type StartCacheArtifactMultipartUploadParams struct {
	// The category of the cache. It's used to differentiate between different types of caches.
	CacheCategory OptCacheCategory
	// The project identifier '{account_name}/{project_name}'.
	ProjectID string
	// The hash that uniquely identifies the artifact in the cache.
	Hash string
	// The name of the artifact.
	Name string
}

StartCacheArtifactMultipartUploadParams is parameters of startCacheArtifactMultipartUpload operation.

type StartCacheArtifactMultipartUploadPaymentRequired

type StartCacheArtifactMultipartUploadPaymentRequired Error

func (*StartCacheArtifactMultipartUploadPaymentRequired) Decode

Decode decodes StartCacheArtifactMultipartUploadPaymentRequired from json.

func (*StartCacheArtifactMultipartUploadPaymentRequired) Encode

Encode encodes StartCacheArtifactMultipartUploadPaymentRequired as json.

func (*StartCacheArtifactMultipartUploadPaymentRequired) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartCacheArtifactMultipartUploadPaymentRequired) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type StartCacheArtifactMultipartUploadRes

type StartCacheArtifactMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type StartCacheArtifactMultipartUploadUnauthorized

type StartCacheArtifactMultipartUploadUnauthorized Error

func (*StartCacheArtifactMultipartUploadUnauthorized) Decode

Decode decodes StartCacheArtifactMultipartUploadUnauthorized from json.

func (*StartCacheArtifactMultipartUploadUnauthorized) Encode

Encode encodes StartCacheArtifactMultipartUploadUnauthorized as json.

func (*StartCacheArtifactMultipartUploadUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*StartCacheArtifactMultipartUploadUnauthorized) UnmarshalJSON

func (s *StartCacheArtifactMultipartUploadUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartPreviewsMultipartUploadForbidden

type StartPreviewsMultipartUploadForbidden Error

func (*StartPreviewsMultipartUploadForbidden) Decode

Decode decodes StartPreviewsMultipartUploadForbidden from json.

func (*StartPreviewsMultipartUploadForbidden) Encode

Encode encodes StartPreviewsMultipartUploadForbidden as json.

func (*StartPreviewsMultipartUploadForbidden) MarshalJSON

func (s *StartPreviewsMultipartUploadForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadForbidden) UnmarshalJSON

func (s *StartPreviewsMultipartUploadForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartPreviewsMultipartUploadNotFound

type StartPreviewsMultipartUploadNotFound Error

func (*StartPreviewsMultipartUploadNotFound) Decode

Decode decodes StartPreviewsMultipartUploadNotFound from json.

func (*StartPreviewsMultipartUploadNotFound) Encode

Encode encodes StartPreviewsMultipartUploadNotFound as json.

func (*StartPreviewsMultipartUploadNotFound) MarshalJSON

func (s *StartPreviewsMultipartUploadNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadNotFound) UnmarshalJSON

func (s *StartPreviewsMultipartUploadNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartPreviewsMultipartUploadOK

type StartPreviewsMultipartUploadOK struct {
	// Data that contains preview and upload unique identifier associated with the multipart upload to
	// use when uploading parts.
	Data   StartPreviewsMultipartUploadOKData   `json:"data"`
	Status StartPreviewsMultipartUploadOKStatus `json:"status"`
}

The upload has been initiated and preview and upload unique identifier are returned to upload the various parts using multi-part uploads.

func (*StartPreviewsMultipartUploadOK) Decode

Decode decodes StartPreviewsMultipartUploadOK from json.

func (*StartPreviewsMultipartUploadOK) Encode

Encode implements json.Marshaler.

func (*StartPreviewsMultipartUploadOK) GetData

GetData returns the value of Data.

func (*StartPreviewsMultipartUploadOK) GetStatus

GetStatus returns the value of Status.

func (*StartPreviewsMultipartUploadOK) MarshalJSON

func (s *StartPreviewsMultipartUploadOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadOK) SetData

SetData sets the value of Data.

func (*StartPreviewsMultipartUploadOK) SetStatus

SetStatus sets the value of Status.

func (*StartPreviewsMultipartUploadOK) UnmarshalJSON

func (s *StartPreviewsMultipartUploadOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartPreviewsMultipartUploadOK) Validate

func (s *StartPreviewsMultipartUploadOK) Validate() error

type StartPreviewsMultipartUploadOKData

type StartPreviewsMultipartUploadOKData struct {
	// The id of the preview.
	PreviewID string `json:"preview_id"`
	// The upload ID.
	UploadID string `json:"upload_id"`
}

Data that contains preview and upload unique identifier associated with the multipart upload to use when uploading parts.

func (*StartPreviewsMultipartUploadOKData) Decode

Decode decodes StartPreviewsMultipartUploadOKData from json.

func (*StartPreviewsMultipartUploadOKData) Encode

Encode implements json.Marshaler.

func (*StartPreviewsMultipartUploadOKData) GetPreviewID

func (s *StartPreviewsMultipartUploadOKData) GetPreviewID() string

GetPreviewID returns the value of PreviewID.

func (*StartPreviewsMultipartUploadOKData) GetUploadID

func (s *StartPreviewsMultipartUploadOKData) GetUploadID() string

GetUploadID returns the value of UploadID.

func (*StartPreviewsMultipartUploadOKData) MarshalJSON

func (s *StartPreviewsMultipartUploadOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadOKData) SetPreviewID

func (s *StartPreviewsMultipartUploadOKData) SetPreviewID(val string)

SetPreviewID sets the value of PreviewID.

func (*StartPreviewsMultipartUploadOKData) SetUploadID

func (s *StartPreviewsMultipartUploadOKData) SetUploadID(val string)

SetUploadID sets the value of UploadID.

func (*StartPreviewsMultipartUploadOKData) UnmarshalJSON

func (s *StartPreviewsMultipartUploadOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartPreviewsMultipartUploadOKStatus

type StartPreviewsMultipartUploadOKStatus string
const (
	StartPreviewsMultipartUploadOKStatusSuccess StartPreviewsMultipartUploadOKStatus = "success"
)

func (StartPreviewsMultipartUploadOKStatus) AllValues

AllValues returns all StartPreviewsMultipartUploadOKStatus values.

func (*StartPreviewsMultipartUploadOKStatus) Decode

Decode decodes StartPreviewsMultipartUploadOKStatus from json.

func (StartPreviewsMultipartUploadOKStatus) Encode

Encode encodes StartPreviewsMultipartUploadOKStatus as json.

func (StartPreviewsMultipartUploadOKStatus) MarshalJSON

func (s StartPreviewsMultipartUploadOKStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartPreviewsMultipartUploadOKStatus) MarshalText

func (s StartPreviewsMultipartUploadOKStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartPreviewsMultipartUploadOKStatus) UnmarshalJSON

func (s *StartPreviewsMultipartUploadOKStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartPreviewsMultipartUploadOKStatus) UnmarshalText

func (s *StartPreviewsMultipartUploadOKStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartPreviewsMultipartUploadOKStatus) Validate

type StartPreviewsMultipartUploadParams

type StartPreviewsMultipartUploadParams struct {
	// The handle of the account.
	AccountHandle string
	// The handle of the project.
	ProjectHandle string
}

StartPreviewsMultipartUploadParams is parameters of startPreviewsMultipartUpload operation.

type StartPreviewsMultipartUploadReq

type StartPreviewsMultipartUploadReq struct {
	// The display name of the preview.
	DisplayName OptString `json:"display_name"`
}

func (*StartPreviewsMultipartUploadReq) Decode

Decode decodes StartPreviewsMultipartUploadReq from json.

func (*StartPreviewsMultipartUploadReq) Encode

Encode implements json.Marshaler.

func (*StartPreviewsMultipartUploadReq) GetDisplayName

func (s *StartPreviewsMultipartUploadReq) GetDisplayName() OptString

GetDisplayName returns the value of DisplayName.

func (*StartPreviewsMultipartUploadReq) MarshalJSON

func (s *StartPreviewsMultipartUploadReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadReq) SetDisplayName

func (s *StartPreviewsMultipartUploadReq) SetDisplayName(val OptString)

SetDisplayName sets the value of DisplayName.

func (*StartPreviewsMultipartUploadReq) UnmarshalJSON

func (s *StartPreviewsMultipartUploadReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StartPreviewsMultipartUploadRes

type StartPreviewsMultipartUploadRes interface {
	// contains filtered or unexported methods
}

type StartPreviewsMultipartUploadUnauthorized

type StartPreviewsMultipartUploadUnauthorized Error

func (*StartPreviewsMultipartUploadUnauthorized) Decode

Decode decodes StartPreviewsMultipartUploadUnauthorized from json.

func (*StartPreviewsMultipartUploadUnauthorized) Encode

Encode encodes StartPreviewsMultipartUploadUnauthorized as json.

func (*StartPreviewsMultipartUploadUnauthorized) MarshalJSON

func (s *StartPreviewsMultipartUploadUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartPreviewsMultipartUploadUnauthorized) UnmarshalJSON

func (s *StartPreviewsMultipartUploadUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) Authenticate

Authenticate implements authenticate operation.

This endpoint returns API tokens for a given email and password.

POST /api/auth

func (UnimplementedHandler) CacheArtifactExists deprecated

CacheArtifactExists implements cacheArtifactExists operation.

This endpoint checks if an artifact exists in the cache. It returns a 404 status code if the artifact does not exist.

Deprecated: schema marks this operation as deprecated.

GET /api/cache/exists

func (UnimplementedHandler) CleanCache

CleanCache implements cleanCache operation.

Cleans cache for a given project.

PUT /api/projects/{account_handle}/{project_handle}/cache/clean

func (UnimplementedHandler) CompleteAnalyticsArtifactMultipartUpload

CompleteAnalyticsArtifactMultipartUpload implements completeAnalyticsArtifactMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload.

POST /api/runs/{run_id}/complete

func (UnimplementedHandler) CompleteAnalyticsArtifactsUploads

CompleteAnalyticsArtifactsUploads implements completeAnalyticsArtifactsUploads operation.

Given a command event, it marks all artifact uploads as finished and does extra processing of a given command run, such as test flakiness detection.

PUT /api/runs/{run_id}/complete_artifacts_uploads

func (UnimplementedHandler) CompleteCacheArtifactMultipartUpload

CompleteCacheArtifactMultipartUpload implements completeCacheArtifactMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. The cache will then be able to serve the artifact.

POST /api/cache/multipart/complete

func (UnimplementedHandler) CompletePreviewsMultipartUpload

CompletePreviewsMultipartUpload implements completePreviewsMultipartUpload operation.

Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload.

POST /api/projects/{account_handle}/{project_handle}/previews/complete

func (UnimplementedHandler) CreateCommandEvent

CreateCommandEvent implements createCommandEvent operation.

Create a a new command analytics event.

POST /api/analytics

func (UnimplementedHandler) CreateInvitation

CreateInvitation implements createInvitation operation.

Invites a user with a given email to a given organization.

POST /api/organizations/{organization_name}/invitations

func (UnimplementedHandler) CreateOrganization

CreateOrganization implements createOrganization operation.

Creates an organization with the given name.

POST /api/organizations

func (UnimplementedHandler) CreateProject

CreateProject implements createProject operation.

Create a new project.

POST /api/projects

func (UnimplementedHandler) CreateProjectToken

CreateProjectToken implements createProjectToken operation.

This endpoint returns a new project token.

POST /api/projects/{account_handle}/{project_handle}/tokens

func (UnimplementedHandler) DeleteOrganization

DeleteOrganization implements deleteOrganization operation.

Deletes the organization with the given name.

DELETE /api/organizations/{organization_name}

func (UnimplementedHandler) DeleteProject

DeleteProject implements deleteProject operation.

Deletes a project with a given id.

DELETE /api/projects/{id}

func (UnimplementedHandler) DownloadCacheArtifact

DownloadCacheArtifact implements downloadCacheArtifact operation.

This endpoint returns a signed URL that can be used to download an artifact from the cache.

GET /api/cache

func (UnimplementedHandler) DownloadPreview

DownloadPreview implements downloadPreview operation.

This endpoint returns a signed URL that can be used to download a preview.

GET /api/projects/{account_handle}/{project_handle}/previews/{preview_id}

func (UnimplementedHandler) GenerateAnalyticsArtifactMultipartUploadURL

GenerateAnalyticsArtifactMultipartUploadURL implements generateAnalyticsArtifactMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/runs/{run_id}/generate-url

func (UnimplementedHandler) GenerateCacheArtifactMultipartUploadURL

GenerateCacheArtifactMultipartUploadURL implements generateCacheArtifactMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/cache/multipart/generate-url

func (UnimplementedHandler) GeneratePreviewsMultipartUploadURL

GeneratePreviewsMultipartUploadURL implements generatePreviewsMultipartUploadURL operation.

Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds.

POST /api/projects/{account_handle}/{project_handle}/previews/generate-url

func (UnimplementedHandler) GetCacheActionItem

GetCacheActionItem implements getCacheActionItem operation.

This endpoint gets an item from the action cache.

GET /api/projects/{account_handle}/{project_handle}/cache/ac/{hash}

func (UnimplementedHandler) GetDeviceCode

GetDeviceCode implements getDeviceCode operation.

This endpoint returns a token for a given device code if the device code is authenticated.

GET /api/auth/device_code/{device_code}

func (UnimplementedHandler) ListOrganizations

func (UnimplementedHandler) ListOrganizations(ctx context.Context) (r ListOrganizationsRes, _ error)

ListOrganizations implements listOrganizations operation.

Returns all the organizations the authenticated subject is part of.

GET /api/organizations

func (UnimplementedHandler) ListProjectTokens

ListProjectTokens implements listProjectTokens operation.

This endpoint returns all tokens for a given project.

GET /api/projects/{account_handle}/{project_handle}/tokens

func (UnimplementedHandler) ListProjects

func (UnimplementedHandler) ListProjects(ctx context.Context) (r ListProjectsRes, _ error)

ListProjects implements listProjects operation.

List projects the authenticated user has access to.

GET /api/projects

func (UnimplementedHandler) RefreshToken

RefreshToken implements refreshToken operation.

This endpoint returns new tokens for a given refresh token if the refresh token is valid.

POST /api/auth/refresh_token

func (UnimplementedHandler) RevokeProjectToken

RevokeProjectToken implements revokeProjectToken operation.

Revokes a project token.

DELETE /api/projects/{account_handle}/{project_handle}/tokens/{id}

func (UnimplementedHandler) ShowOrganization

ShowOrganization implements showOrganization operation.

Returns the organization with the given identifier.

GET /api/organizations/{organization_name}

func (UnimplementedHandler) ShowOrganizationUsage

ShowOrganizationUsage implements showOrganizationUsage operation.

Returns the usage of the organization with the given identifier. (e.g. number of remote cache hits).

GET /api/organizations/{organization_name}/usage

func (UnimplementedHandler) ShowProject

ShowProject implements showProject operation.

Returns a project based on the handle.

GET /api/projects/{account_handle}/{project_handle}

func (UnimplementedHandler) StartAnalyticsArtifactMultipartUpload

StartAnalyticsArtifactMultipartUpload implements startAnalyticsArtifactMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/runs/{run_id}/start

func (UnimplementedHandler) StartCacheArtifactMultipartUpload

StartCacheArtifactMultipartUpload implements startCacheArtifactMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/cache/multipart/start

func (UnimplementedHandler) StartPreviewsMultipartUpload

StartPreviewsMultipartUpload implements startPreviewsMultipartUpload operation.

The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload.

POST /api/projects/{account_handle}/{project_handle}/previews/start

func (UnimplementedHandler) UpdateOrganization

UpdateOrganization implements updateOrganization operation.

Updates an organization with given parameters.

PUT /api/organizations/{organization_name}

func (UnimplementedHandler) UpdateOrganization2

UpdateOrganization2 implements updateOrganization (2) operation.

Updates an organization with given parameters.

PATCH /api/organizations/{organization_name}

func (UnimplementedHandler) UpdateOrganizationMember

UpdateOrganizationMember implements updateOrganizationMember operation.

Updates a member in a given organization.

PUT /api/organizations/{organization_name}/members/{user_name}

func (UnimplementedHandler) UpdateProject

UpdateProject implements updateProject operation.

Updates a project with given parameters.

PUT /api/projects/{account_handle}/{project_handle}

func (UnimplementedHandler) UploadCacheActionItem

UploadCacheActionItem implements uploadCacheActionItem operation.

The endpoint caches a given action item without uploading a file. To upload files, use the multipart upload instead.

POST /api/projects/{account_handle}/{project_handle}/cache/ac

type UpdateOrganization2BadRequest

type UpdateOrganization2BadRequest Error

func (*UpdateOrganization2BadRequest) Decode

Decode decodes UpdateOrganization2BadRequest from json.

func (*UpdateOrganization2BadRequest) Encode

Encode encodes UpdateOrganization2BadRequest as json.

func (*UpdateOrganization2BadRequest) MarshalJSON

func (s *UpdateOrganization2BadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganization2BadRequest) UnmarshalJSON

func (s *UpdateOrganization2BadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganization2Forbidden

type UpdateOrganization2Forbidden Error

func (*UpdateOrganization2Forbidden) Decode

Decode decodes UpdateOrganization2Forbidden from json.

func (*UpdateOrganization2Forbidden) Encode

func (s *UpdateOrganization2Forbidden) Encode(e *jx.Encoder)

Encode encodes UpdateOrganization2Forbidden as json.

func (*UpdateOrganization2Forbidden) MarshalJSON

func (s *UpdateOrganization2Forbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganization2Forbidden) UnmarshalJSON

func (s *UpdateOrganization2Forbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganization2NotFound

type UpdateOrganization2NotFound Error

func (*UpdateOrganization2NotFound) Decode

Decode decodes UpdateOrganization2NotFound from json.

func (*UpdateOrganization2NotFound) Encode

func (s *UpdateOrganization2NotFound) Encode(e *jx.Encoder)

Encode encodes UpdateOrganization2NotFound as json.

func (*UpdateOrganization2NotFound) MarshalJSON

func (s *UpdateOrganization2NotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganization2NotFound) UnmarshalJSON

func (s *UpdateOrganization2NotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganization2Params

type UpdateOrganization2Params struct {
	// The name of the organization to update.
	OrganizationName string
}

UpdateOrganization2Params is parameters of updateOrganization (2) operation.

type UpdateOrganization2Req

type UpdateOrganization2Req struct {
	// The SSO organization ID to be associated with the SSO provider.
	SSOOrganizationID OptNilString `json:"sso_organization_id"`
	// The SSO provider to set up for the organization.
	SSOProvider OptUpdateOrganization2ReqSSOProvider `json:"sso_provider"`
}

func (*UpdateOrganization2Req) Decode

func (s *UpdateOrganization2Req) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganization2Req from json.

func (*UpdateOrganization2Req) Encode

func (s *UpdateOrganization2Req) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOrganization2Req) GetSSOOrganizationID

func (s *UpdateOrganization2Req) GetSSOOrganizationID() OptNilString

GetSSOOrganizationID returns the value of SSOOrganizationID.

func (*UpdateOrganization2Req) GetSSOProvider

GetSSOProvider returns the value of SSOProvider.

func (*UpdateOrganization2Req) MarshalJSON

func (s *UpdateOrganization2Req) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganization2Req) SetSSOOrganizationID

func (s *UpdateOrganization2Req) SetSSOOrganizationID(val OptNilString)

SetSSOOrganizationID sets the value of SSOOrganizationID.

func (*UpdateOrganization2Req) SetSSOProvider

SetSSOProvider sets the value of SSOProvider.

func (*UpdateOrganization2Req) UnmarshalJSON

func (s *UpdateOrganization2Req) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganization2Req) Validate

func (s *UpdateOrganization2Req) Validate() error

type UpdateOrganization2ReqSSOProvider

type UpdateOrganization2ReqSSOProvider string

The SSO provider to set up for the organization.

const (
	UpdateOrganization2ReqSSOProviderGoogle UpdateOrganization2ReqSSOProvider = "google"
	UpdateOrganization2ReqSSOProviderNone   UpdateOrganization2ReqSSOProvider = "none"
)

func (UpdateOrganization2ReqSSOProvider) AllValues

AllValues returns all UpdateOrganization2ReqSSOProvider values.

func (*UpdateOrganization2ReqSSOProvider) Decode

Decode decodes UpdateOrganization2ReqSSOProvider from json.

func (UpdateOrganization2ReqSSOProvider) Encode

Encode encodes UpdateOrganization2ReqSSOProvider as json.

func (UpdateOrganization2ReqSSOProvider) MarshalJSON

func (s UpdateOrganization2ReqSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateOrganization2ReqSSOProvider) MarshalText

func (s UpdateOrganization2ReqSSOProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateOrganization2ReqSSOProvider) UnmarshalJSON

func (s *UpdateOrganization2ReqSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganization2ReqSSOProvider) UnmarshalText

func (s *UpdateOrganization2ReqSSOProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateOrganization2ReqSSOProvider) Validate

type UpdateOrganization2Res

type UpdateOrganization2Res interface {
	// contains filtered or unexported methods
}

type UpdateOrganization2Unauthorized

type UpdateOrganization2Unauthorized Error

func (*UpdateOrganization2Unauthorized) Decode

Decode decodes UpdateOrganization2Unauthorized from json.

func (*UpdateOrganization2Unauthorized) Encode

Encode encodes UpdateOrganization2Unauthorized as json.

func (*UpdateOrganization2Unauthorized) MarshalJSON

func (s *UpdateOrganization2Unauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganization2Unauthorized) UnmarshalJSON

func (s *UpdateOrganization2Unauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationBadRequest

type UpdateOrganizationBadRequest Error

func (*UpdateOrganizationBadRequest) Decode

Decode decodes UpdateOrganizationBadRequest from json.

func (*UpdateOrganizationBadRequest) Encode

func (s *UpdateOrganizationBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateOrganizationBadRequest as json.

func (*UpdateOrganizationBadRequest) MarshalJSON

func (s *UpdateOrganizationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationBadRequest) UnmarshalJSON

func (s *UpdateOrganizationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationForbidden

type UpdateOrganizationForbidden Error

func (*UpdateOrganizationForbidden) Decode

Decode decodes UpdateOrganizationForbidden from json.

func (*UpdateOrganizationForbidden) Encode

func (s *UpdateOrganizationForbidden) Encode(e *jx.Encoder)

Encode encodes UpdateOrganizationForbidden as json.

func (*UpdateOrganizationForbidden) MarshalJSON

func (s *UpdateOrganizationForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationForbidden) UnmarshalJSON

func (s *UpdateOrganizationForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationMemberBadRequest

type UpdateOrganizationMemberBadRequest Error

func (*UpdateOrganizationMemberBadRequest) Decode

Decode decodes UpdateOrganizationMemberBadRequest from json.

func (*UpdateOrganizationMemberBadRequest) Encode

Encode encodes UpdateOrganizationMemberBadRequest as json.

func (*UpdateOrganizationMemberBadRequest) MarshalJSON

func (s *UpdateOrganizationMemberBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationMemberBadRequest) UnmarshalJSON

func (s *UpdateOrganizationMemberBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationMemberForbidden

type UpdateOrganizationMemberForbidden Error

func (*UpdateOrganizationMemberForbidden) Decode

Decode decodes UpdateOrganizationMemberForbidden from json.

func (*UpdateOrganizationMemberForbidden) Encode

Encode encodes UpdateOrganizationMemberForbidden as json.

func (*UpdateOrganizationMemberForbidden) MarshalJSON

func (s *UpdateOrganizationMemberForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationMemberForbidden) UnmarshalJSON

func (s *UpdateOrganizationMemberForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationMemberNotFound

type UpdateOrganizationMemberNotFound Error

func (*UpdateOrganizationMemberNotFound) Decode

Decode decodes UpdateOrganizationMemberNotFound from json.

func (*UpdateOrganizationMemberNotFound) Encode

Encode encodes UpdateOrganizationMemberNotFound as json.

func (*UpdateOrganizationMemberNotFound) MarshalJSON

func (s *UpdateOrganizationMemberNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationMemberNotFound) UnmarshalJSON

func (s *UpdateOrganizationMemberNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationMemberParams

type UpdateOrganizationMemberParams struct {
	// The name of the organization to update the member in.
	OrganizationName string
	// The name of the user to update in the organization.
	UserName string
}

UpdateOrganizationMemberParams is parameters of updateOrganizationMember operation.

type UpdateOrganizationMemberReq

type UpdateOrganizationMemberReq struct {
	// The role to update the member to.
	Role UpdateOrganizationMemberReqRole `json:"role"`
}

func (*UpdateOrganizationMemberReq) Decode

Decode decodes UpdateOrganizationMemberReq from json.

func (*UpdateOrganizationMemberReq) Encode

func (s *UpdateOrganizationMemberReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOrganizationMemberReq) GetRole

GetRole returns the value of Role.

func (*UpdateOrganizationMemberReq) MarshalJSON

func (s *UpdateOrganizationMemberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationMemberReq) SetRole

SetRole sets the value of Role.

func (*UpdateOrganizationMemberReq) UnmarshalJSON

func (s *UpdateOrganizationMemberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganizationMemberReq) Validate

func (s *UpdateOrganizationMemberReq) Validate() error

type UpdateOrganizationMemberReqRole

type UpdateOrganizationMemberReqRole string

The role to update the member to.

const (
	UpdateOrganizationMemberReqRoleAdmin UpdateOrganizationMemberReqRole = "admin"
	UpdateOrganizationMemberReqRoleUser  UpdateOrganizationMemberReqRole = "user"
)

func (UpdateOrganizationMemberReqRole) AllValues

AllValues returns all UpdateOrganizationMemberReqRole values.

func (*UpdateOrganizationMemberReqRole) Decode

Decode decodes UpdateOrganizationMemberReqRole from json.

func (UpdateOrganizationMemberReqRole) Encode

Encode encodes UpdateOrganizationMemberReqRole as json.

func (UpdateOrganizationMemberReqRole) MarshalJSON

func (s UpdateOrganizationMemberReqRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateOrganizationMemberReqRole) MarshalText

func (s UpdateOrganizationMemberReqRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateOrganizationMemberReqRole) UnmarshalJSON

func (s *UpdateOrganizationMemberReqRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganizationMemberReqRole) UnmarshalText

func (s *UpdateOrganizationMemberReqRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateOrganizationMemberReqRole) Validate

type UpdateOrganizationMemberRes

type UpdateOrganizationMemberRes interface {
	// contains filtered or unexported methods
}

type UpdateOrganizationMemberUnauthorized

type UpdateOrganizationMemberUnauthorized Error

func (*UpdateOrganizationMemberUnauthorized) Decode

Decode decodes UpdateOrganizationMemberUnauthorized from json.

func (*UpdateOrganizationMemberUnauthorized) Encode

Encode encodes UpdateOrganizationMemberUnauthorized as json.

func (*UpdateOrganizationMemberUnauthorized) MarshalJSON

func (s *UpdateOrganizationMemberUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationMemberUnauthorized) UnmarshalJSON

func (s *UpdateOrganizationMemberUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationNotFound

type UpdateOrganizationNotFound Error

func (*UpdateOrganizationNotFound) Decode

Decode decodes UpdateOrganizationNotFound from json.

func (*UpdateOrganizationNotFound) Encode

func (s *UpdateOrganizationNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateOrganizationNotFound as json.

func (*UpdateOrganizationNotFound) MarshalJSON

func (s *UpdateOrganizationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationNotFound) UnmarshalJSON

func (s *UpdateOrganizationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOrganizationParams

type UpdateOrganizationParams struct {
	// The name of the organization to update.
	OrganizationName string
}

UpdateOrganizationParams is parameters of updateOrganization operation.

type UpdateOrganizationReq

type UpdateOrganizationReq struct {
	// The SSO organization ID to be associated with the SSO provider.
	SSOOrganizationID OptNilString `json:"sso_organization_id"`
	// The SSO provider to set up for the organization.
	SSOProvider OptUpdateOrganizationReqSSOProvider `json:"sso_provider"`
}

func (*UpdateOrganizationReq) Decode

func (s *UpdateOrganizationReq) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganizationReq from json.

func (*UpdateOrganizationReq) Encode

func (s *UpdateOrganizationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOrganizationReq) GetSSOOrganizationID

func (s *UpdateOrganizationReq) GetSSOOrganizationID() OptNilString

GetSSOOrganizationID returns the value of SSOOrganizationID.

func (*UpdateOrganizationReq) GetSSOProvider

GetSSOProvider returns the value of SSOProvider.

func (*UpdateOrganizationReq) MarshalJSON

func (s *UpdateOrganizationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationReq) SetSSOOrganizationID

func (s *UpdateOrganizationReq) SetSSOOrganizationID(val OptNilString)

SetSSOOrganizationID sets the value of SSOOrganizationID.

func (*UpdateOrganizationReq) SetSSOProvider

SetSSOProvider sets the value of SSOProvider.

func (*UpdateOrganizationReq) UnmarshalJSON

func (s *UpdateOrganizationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganizationReq) Validate

func (s *UpdateOrganizationReq) Validate() error

type UpdateOrganizationReqSSOProvider

type UpdateOrganizationReqSSOProvider string

The SSO provider to set up for the organization.

const (
	UpdateOrganizationReqSSOProviderGoogle UpdateOrganizationReqSSOProvider = "google"
	UpdateOrganizationReqSSOProviderNone   UpdateOrganizationReqSSOProvider = "none"
)

func (UpdateOrganizationReqSSOProvider) AllValues

AllValues returns all UpdateOrganizationReqSSOProvider values.

func (*UpdateOrganizationReqSSOProvider) Decode

Decode decodes UpdateOrganizationReqSSOProvider from json.

func (UpdateOrganizationReqSSOProvider) Encode

Encode encodes UpdateOrganizationReqSSOProvider as json.

func (UpdateOrganizationReqSSOProvider) MarshalJSON

func (s UpdateOrganizationReqSSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateOrganizationReqSSOProvider) MarshalText

func (s UpdateOrganizationReqSSOProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateOrganizationReqSSOProvider) UnmarshalJSON

func (s *UpdateOrganizationReqSSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganizationReqSSOProvider) UnmarshalText

func (s *UpdateOrganizationReqSSOProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateOrganizationReqSSOProvider) Validate

type UpdateOrganizationRes

type UpdateOrganizationRes interface {
	// contains filtered or unexported methods
}

type UpdateOrganizationUnauthorized

type UpdateOrganizationUnauthorized Error

func (*UpdateOrganizationUnauthorized) Decode

Decode decodes UpdateOrganizationUnauthorized from json.

func (*UpdateOrganizationUnauthorized) Encode

Encode encodes UpdateOrganizationUnauthorized as json.

func (*UpdateOrganizationUnauthorized) MarshalJSON

func (s *UpdateOrganizationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationUnauthorized) UnmarshalJSON

func (s *UpdateOrganizationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectBadRequest

type UpdateProjectBadRequest Error

func (*UpdateProjectBadRequest) Decode

func (s *UpdateProjectBadRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectBadRequest from json.

func (*UpdateProjectBadRequest) Encode

func (s *UpdateProjectBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateProjectBadRequest as json.

func (*UpdateProjectBadRequest) MarshalJSON

func (s *UpdateProjectBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectBadRequest) UnmarshalJSON

func (s *UpdateProjectBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectForbidden

type UpdateProjectForbidden Error

func (*UpdateProjectForbidden) Decode

func (s *UpdateProjectForbidden) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectForbidden from json.

func (*UpdateProjectForbidden) Encode

func (s *UpdateProjectForbidden) Encode(e *jx.Encoder)

Encode encodes UpdateProjectForbidden as json.

func (*UpdateProjectForbidden) MarshalJSON

func (s *UpdateProjectForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectForbidden) UnmarshalJSON

func (s *UpdateProjectForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectNotFound

type UpdateProjectNotFound Error

func (*UpdateProjectNotFound) Decode

func (s *UpdateProjectNotFound) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectNotFound from json.

func (*UpdateProjectNotFound) Encode

func (s *UpdateProjectNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateProjectNotFound as json.

func (*UpdateProjectNotFound) MarshalJSON

func (s *UpdateProjectNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectNotFound) UnmarshalJSON

func (s *UpdateProjectNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectParams

type UpdateProjectParams struct {
	// The handle of the project's account.
	AccountHandle string
	// The handle of the project to update.
	ProjectHandle string
}

UpdateProjectParams is parameters of updateProject operation.

type UpdateProjectReq

type UpdateProjectReq struct {
	// The default branch for the project.
	DefaultBranch OptString `json:"default_branch"`
	// The repository URL for the project.
	RepositoryURL OptString `json:"repository_url"`
}

func (*UpdateProjectReq) Decode

func (s *UpdateProjectReq) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectReq from json.

func (*UpdateProjectReq) Encode

func (s *UpdateProjectReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateProjectReq) GetDefaultBranch

func (s *UpdateProjectReq) GetDefaultBranch() OptString

GetDefaultBranch returns the value of DefaultBranch.

func (*UpdateProjectReq) GetRepositoryURL

func (s *UpdateProjectReq) GetRepositoryURL() OptString

GetRepositoryURL returns the value of RepositoryURL.

func (*UpdateProjectReq) MarshalJSON

func (s *UpdateProjectReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectReq) SetDefaultBranch

func (s *UpdateProjectReq) SetDefaultBranch(val OptString)

SetDefaultBranch sets the value of DefaultBranch.

func (*UpdateProjectReq) SetRepositoryURL

func (s *UpdateProjectReq) SetRepositoryURL(val OptString)

SetRepositoryURL sets the value of RepositoryURL.

func (*UpdateProjectReq) UnmarshalJSON

func (s *UpdateProjectReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateProjectRes

type UpdateProjectRes interface {
	// contains filtered or unexported methods
}

type UpdateProjectUnauthorized

type UpdateProjectUnauthorized Error

func (*UpdateProjectUnauthorized) Decode

func (s *UpdateProjectUnauthorized) Decode(d *jx.Decoder) error

Decode decodes UpdateProjectUnauthorized from json.

func (*UpdateProjectUnauthorized) Encode

func (s *UpdateProjectUnauthorized) Encode(e *jx.Encoder)

Encode encodes UpdateProjectUnauthorized as json.

func (*UpdateProjectUnauthorized) MarshalJSON

func (s *UpdateProjectUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateProjectUnauthorized) UnmarshalJSON

func (s *UpdateProjectUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemBadRequest

type UploadCacheActionItemBadRequest Error

func (*UploadCacheActionItemBadRequest) Decode

Decode decodes UploadCacheActionItemBadRequest from json.

func (*UploadCacheActionItemBadRequest) Encode

Encode encodes UploadCacheActionItemBadRequest as json.

func (*UploadCacheActionItemBadRequest) MarshalJSON

func (s *UploadCacheActionItemBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemBadRequest) UnmarshalJSON

func (s *UploadCacheActionItemBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemCreated

type UploadCacheActionItemCreated CacheActionItem

func (*UploadCacheActionItemCreated) Decode

Decode decodes UploadCacheActionItemCreated from json.

func (*UploadCacheActionItemCreated) Encode

func (s *UploadCacheActionItemCreated) Encode(e *jx.Encoder)

Encode encodes UploadCacheActionItemCreated as json.

func (*UploadCacheActionItemCreated) MarshalJSON

func (s *UploadCacheActionItemCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemCreated) UnmarshalJSON

func (s *UploadCacheActionItemCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemForbidden

type UploadCacheActionItemForbidden Error

func (*UploadCacheActionItemForbidden) Decode

Decode decodes UploadCacheActionItemForbidden from json.

func (*UploadCacheActionItemForbidden) Encode

Encode encodes UploadCacheActionItemForbidden as json.

func (*UploadCacheActionItemForbidden) MarshalJSON

func (s *UploadCacheActionItemForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemForbidden) UnmarshalJSON

func (s *UploadCacheActionItemForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemNotFound

type UploadCacheActionItemNotFound Error

func (*UploadCacheActionItemNotFound) Decode

Decode decodes UploadCacheActionItemNotFound from json.

func (*UploadCacheActionItemNotFound) Encode

Encode encodes UploadCacheActionItemNotFound as json.

func (*UploadCacheActionItemNotFound) MarshalJSON

func (s *UploadCacheActionItemNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemNotFound) UnmarshalJSON

func (s *UploadCacheActionItemNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemOK

type UploadCacheActionItemOK CacheActionItem

func (*UploadCacheActionItemOK) Decode

func (s *UploadCacheActionItemOK) Decode(d *jx.Decoder) error

Decode decodes UploadCacheActionItemOK from json.

func (*UploadCacheActionItemOK) Encode

func (s *UploadCacheActionItemOK) Encode(e *jx.Encoder)

Encode encodes UploadCacheActionItemOK as json.

func (*UploadCacheActionItemOK) MarshalJSON

func (s *UploadCacheActionItemOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemOK) UnmarshalJSON

func (s *UploadCacheActionItemOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemParams

type UploadCacheActionItemParams struct {
	// The name of the account that the project belongs to.
	AccountHandle string
	// The name of the project to clean cache for.
	ProjectHandle string
}

UploadCacheActionItemParams is parameters of uploadCacheActionItem operation.

type UploadCacheActionItemPaymentRequired

type UploadCacheActionItemPaymentRequired Error

func (*UploadCacheActionItemPaymentRequired) Decode

Decode decodes UploadCacheActionItemPaymentRequired from json.

func (*UploadCacheActionItemPaymentRequired) Encode

Encode encodes UploadCacheActionItemPaymentRequired as json.

func (*UploadCacheActionItemPaymentRequired) MarshalJSON

func (s *UploadCacheActionItemPaymentRequired) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemPaymentRequired) UnmarshalJSON

func (s *UploadCacheActionItemPaymentRequired) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemReq

type UploadCacheActionItemReq struct {
	// The hash of the cache action item.
	Hash OptString `json:"hash"`
}

func (*UploadCacheActionItemReq) Decode

func (s *UploadCacheActionItemReq) Decode(d *jx.Decoder) error

Decode decodes UploadCacheActionItemReq from json.

func (*UploadCacheActionItemReq) Encode

func (s *UploadCacheActionItemReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UploadCacheActionItemReq) GetHash

func (s *UploadCacheActionItemReq) GetHash() OptString

GetHash returns the value of Hash.

func (*UploadCacheActionItemReq) MarshalJSON

func (s *UploadCacheActionItemReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemReq) SetHash

func (s *UploadCacheActionItemReq) SetHash(val OptString)

SetHash sets the value of Hash.

func (*UploadCacheActionItemReq) UnmarshalJSON

func (s *UploadCacheActionItemReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadCacheActionItemRes

type UploadCacheActionItemRes interface {
	// contains filtered or unexported methods
}

type UploadCacheActionItemUnauthorized

type UploadCacheActionItemUnauthorized Error

func (*UploadCacheActionItemUnauthorized) Decode

Decode decodes UploadCacheActionItemUnauthorized from json.

func (*UploadCacheActionItemUnauthorized) Encode

Encode encodes UploadCacheActionItemUnauthorized as json.

func (*UploadCacheActionItemUnauthorized) MarshalJSON

func (s *UploadCacheActionItemUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadCacheActionItemUnauthorized) UnmarshalJSON

func (s *UploadCacheActionItemUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type User

type User struct {
	// The user's email.
	Email string `json:"email"`
	// The user's unique identifier.
	ID float64 `json:"id"`
	// The user's name.
	Name string `json:"name"`
}

A user. Ref: #/components/schemas/User

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetEmail

func (s *User) GetEmail() string

GetEmail returns the value of Email.

func (*User) GetID

func (s *User) GetID() float64

GetID returns the value of ID.

func (*User) GetName

func (s *User) GetName() string

GetName returns the value of Name.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetEmail

func (s *User) SetEmail(val string)

SetEmail sets the value of Email.

func (*User) SetID

func (s *User) SetID(val float64)

SetID sets the value of ID.

func (*User) SetName

func (s *User) SetName(val string)

SetName sets the value of Name.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*User) Validate

func (s *User) Validate() error

Jump to

Keyboard shortcuts

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