downloads

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for downloads API

func (*Client) DeleteRepositoriesWorkspaceRepoSlugDownloadsFilename

func (a *Client) DeleteRepositoriesWorkspaceRepoSlugDownloadsFilename(params *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams, authInfo runtime.ClientAuthInfoWriter) error

DeleteRepositoriesWorkspaceRepoSlugDownloadsFilename Deletes the specified download artifact from the repository.

func (*Client) GetRepositoriesWorkspaceRepoSlugDownloads

func (a *Client) GetRepositoriesWorkspaceRepoSlugDownloads(params *GetRepositoriesWorkspaceRepoSlugDownloadsParams, authInfo runtime.ClientAuthInfoWriter) error

GetRepositoriesWorkspaceRepoSlugDownloads Returns a list of download links associated with the repository.

func (*Client) GetRepositoriesWorkspaceRepoSlugDownloadsFilename

func (a *Client) GetRepositoriesWorkspaceRepoSlugDownloadsFilename(params *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams, authInfo runtime.ClientAuthInfoWriter) error
GetRepositoriesWorkspaceRepoSlugDownloadsFilename Return a redirect to the contents of a download artifact.

This endpoint returns the actual file contents and not the artifact's metadata.

$ curl -s -L https://api.bitbucket.org/2.0/repositories/evzijst/git-tests/downloads/hello.txt
Hello World

func (*Client) PostRepositoriesWorkspaceRepoSlugDownloads

func (a *Client) PostRepositoriesWorkspaceRepoSlugDownloads(params *PostRepositoriesWorkspaceRepoSlugDownloadsParams, authInfo runtime.ClientAuthInfoWriter) error
PostRepositoriesWorkspaceRepoSlugDownloads Upload new download artifacts.

To upload files, perform a `multipart/form-data` POST containing one or more `files` fields:

$ echo Hello World > hello.txt
$ curl -s -u evzijst -X POST https://api.bitbucket.org/2.0/repositories/evzijst/git-tests/downloads -F files=@hello.txt

When a file is uploaded with the same name as an existing artifact, then the existing file will be replaced.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteRepositoriesWorkspaceRepoSlugDownloadsFilename(params *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams, authInfo runtime.ClientAuthInfoWriter) error

	GetRepositoriesWorkspaceRepoSlugDownloads(params *GetRepositoriesWorkspaceRepoSlugDownloadsParams, authInfo runtime.ClientAuthInfoWriter) error

	GetRepositoriesWorkspaceRepoSlugDownloadsFilename(params *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams, authInfo runtime.ClientAuthInfoWriter) error

	PostRepositoriesWorkspaceRepoSlugDownloads(params *PostRepositoriesWorkspaceRepoSlugDownloadsParams, authInfo runtime.ClientAuthInfoWriter) error

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new downloads API client.

type DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

type DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault handles this case with default header values.

Unexpected error.

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault(code int) *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault creates a DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault with default headers values

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) Code

Code gets the status code for the delete repositories workspace repo slug downloads filename default response

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) Error

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) GetPayload

type DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

type DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams struct {

	/*Filename*/
	Filename string
	/*RepoSlug
	  This can either be the repository slug or the UUID of the repository,
	surrounded by curly-braces, for example: `{repository UUID}`.


	*/
	RepoSlug string
	/*Workspace
	  This can either be the workspace ID (slug) or the workspace UUID
	surrounded by curly-braces, for example: `{workspace UUID}`.


	*/
	Workspace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams contains all the parameters to send to the API endpoint for the delete repositories workspace repo slug downloads filename operation typically these are written to a http.Request

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams() *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams creates a new DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized.

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext creates a new DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient creates a new DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout

func NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewDeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout creates a new DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetContext

SetContext adds the context to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetFilename

SetFilename adds the filename to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetTimeout

SetTimeout adds the timeout to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetWorkspace

SetWorkspace adds the workspace to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithContext

WithContext adds the context to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithFilename

WithFilename adds the filename to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithTimeout

WithTimeout adds the timeout to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithWorkspace

WithWorkspace adds the workspace to the delete repositories workspace repo slug downloads filename params

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameReader

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

DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameReader is a Reader for the DeleteRepositoriesWorkspaceRepoSlugDownloadsFilename structure.

func (*DeleteRepositoriesWorkspaceRepoSlugDownloadsFilenameReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugDownloadsDefault

type GetRepositoriesWorkspaceRepoSlugDownloadsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugDownloadsDefault handles this case with default header values.

Unexpected error.

func NewGetRepositoriesWorkspaceRepoSlugDownloadsDefault

func NewGetRepositoriesWorkspaceRepoSlugDownloadsDefault(code int) *GetRepositoriesWorkspaceRepoSlugDownloadsDefault

NewGetRepositoriesWorkspaceRepoSlugDownloadsDefault creates a GetRepositoriesWorkspaceRepoSlugDownloadsDefault with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDownloadsDefault) Code

Code gets the status code for the get repositories workspace repo slug downloads default response

func (*GetRepositoriesWorkspaceRepoSlugDownloadsDefault) Error

func (*GetRepositoriesWorkspaceRepoSlugDownloadsDefault) GetPayload

type GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

type GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault handles this case with default header values.

Unexpected error.

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault(code int) *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault

NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault creates a GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) Code

Code gets the status code for the get repositories workspace repo slug downloads filename default response

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) Error

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameDefault) GetPayload

type GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

type GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams struct {

	/*Filename*/
	Filename string
	/*RepoSlug
	  This can either be the repository slug or the UUID of the repository,
	surrounded by curly-braces, for example: `{repository UUID}`.


	*/
	RepoSlug string
	/*Workspace
	  This can either be the workspace ID (slug) or the workspace UUID
	surrounded by curly-braces, for example: `{workspace UUID}`.


	*/
	Workspace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug downloads filename operation typically these are written to a http.Request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams() *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams creates a new GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a context for a request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsFilenameParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetContext

SetContext adds the context to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetFilename

SetFilename adds the filename to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithContext

WithContext adds the context to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithFilename

WithFilename adds the filename to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug downloads filename params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugDownloadsFilenameReader

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

GetRepositoriesWorkspaceRepoSlugDownloadsFilenameReader is a Reader for the GetRepositoriesWorkspaceRepoSlugDownloadsFilename structure.

func (*GetRepositoriesWorkspaceRepoSlugDownloadsFilenameReader) ReadResponse

func (o *GetRepositoriesWorkspaceRepoSlugDownloadsFilenameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugDownloadsParams

type GetRepositoriesWorkspaceRepoSlugDownloadsParams struct {

	/*RepoSlug
	  This can either be the repository slug or the UUID of the repository,
	surrounded by curly-braces, for example: `{repository UUID}`.


	*/
	RepoSlug string
	/*Workspace
	  This can either be the workspace ID (slug) or the workspace UUID
	surrounded by curly-braces, for example: `{workspace UUID}`.


	*/
	Workspace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugDownloadsParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug downloads operation typically these are written to a http.Request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParams

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParams() *GetRepositoriesWorkspaceRepoSlugDownloadsParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsParams creates a new GetRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugDownloadsParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a context for a request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugDownloadsParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugDownloadsParams

NewGetRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetContext

SetContext adds the context to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetWorkspace

func (o *GetRepositoriesWorkspaceRepoSlugDownloadsParams) SetWorkspace(workspace string)

SetWorkspace adds the workspace to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WithContext

WithContext adds the context to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug downloads params

func (*GetRepositoriesWorkspaceRepoSlugDownloadsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugDownloadsReader

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

GetRepositoriesWorkspaceRepoSlugDownloadsReader is a Reader for the GetRepositoriesWorkspaceRepoSlugDownloads structure.

func (*GetRepositoriesWorkspaceRepoSlugDownloadsReader) ReadResponse

func (o *GetRepositoriesWorkspaceRepoSlugDownloadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostRepositoriesWorkspaceRepoSlugDownloadsDefault

type PostRepositoriesWorkspaceRepoSlugDownloadsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PostRepositoriesWorkspaceRepoSlugDownloadsDefault handles this case with default header values.

Unexpected error.

func NewPostRepositoriesWorkspaceRepoSlugDownloadsDefault

func NewPostRepositoriesWorkspaceRepoSlugDownloadsDefault(code int) *PostRepositoriesWorkspaceRepoSlugDownloadsDefault

NewPostRepositoriesWorkspaceRepoSlugDownloadsDefault creates a PostRepositoriesWorkspaceRepoSlugDownloadsDefault with default headers values

func (*PostRepositoriesWorkspaceRepoSlugDownloadsDefault) Code

Code gets the status code for the post repositories workspace repo slug downloads default response

func (*PostRepositoriesWorkspaceRepoSlugDownloadsDefault) Error

func (*PostRepositoriesWorkspaceRepoSlugDownloadsDefault) GetPayload

type PostRepositoriesWorkspaceRepoSlugDownloadsParams

type PostRepositoriesWorkspaceRepoSlugDownloadsParams struct {

	/*RepoSlug
	  This can either be the repository slug or the UUID of the repository,
	surrounded by curly-braces, for example: `{repository UUID}`.


	*/
	RepoSlug string
	/*Workspace
	  This can either be the workspace ID (slug) or the workspace UUID
	surrounded by curly-braces, for example: `{workspace UUID}`.


	*/
	Workspace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostRepositoriesWorkspaceRepoSlugDownloadsParams contains all the parameters to send to the API endpoint for the post repositories workspace repo slug downloads operation typically these are written to a http.Request

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParams

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParams() *PostRepositoriesWorkspaceRepoSlugDownloadsParams

NewPostRepositoriesWorkspaceRepoSlugDownloadsParams creates a new PostRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized.

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugDownloadsParams

NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithContext creates a new PostRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a context for a request

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugDownloadsParams

NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithHTTPClient creates a new PostRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout

func NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugDownloadsParams

NewPostRepositoriesWorkspaceRepoSlugDownloadsParamsWithTimeout creates a new PostRepositoriesWorkspaceRepoSlugDownloadsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetContext

SetContext adds the context to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetTimeout

SetTimeout adds the timeout to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetWorkspace

func (o *PostRepositoriesWorkspaceRepoSlugDownloadsParams) SetWorkspace(workspace string)

SetWorkspace adds the workspace to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WithContext

WithContext adds the context to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WithTimeout

WithTimeout adds the timeout to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WithWorkspace

WithWorkspace adds the workspace to the post repositories workspace repo slug downloads params

func (*PostRepositoriesWorkspaceRepoSlugDownloadsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostRepositoriesWorkspaceRepoSlugDownloadsReader

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

PostRepositoriesWorkspaceRepoSlugDownloadsReader is a Reader for the PostRepositoriesWorkspaceRepoSlugDownloads structure.

func (*PostRepositoriesWorkspaceRepoSlugDownloadsReader) ReadResponse

func (o *PostRepositoriesWorkspaceRepoSlugDownloadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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