deploy

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 deploy API

func (*Client) DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyID

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyID This deletes a deploy key from a repository.

Example: ``` $ curl -XDELETE \ -H "Authorization <auth header>" \ https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys/1234 ```

func (*Client) GetRepositoriesWorkspaceRepoSlugDeployKeys

GetRepositoriesWorkspaceRepoSlugDeployKeys Returns all deploy-keys belonging to a repository.

Example: ``` $ curl -H "Authorization <auth header>" \ https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys

Output:

{
    "pagelen": 10,
    "values": [
        {
            "id": 123,
            "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5",
            "label": "mykey",
            "type": "deploy_key",
            "created_on": "2018-08-15T23:50:59.993890+00:00",
            "repository": {
                "full_name": "mleu/test",
                "name": "test",
                "type": "repository",
                "uuid": "{85d08b4e-571d-44e9-a507-fa476535aa98}"
            },
            "links":{
                "self":{
                    "href": "https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys/123"
                }
            }
            "last_used": null,
            "comment": "mleu@C02W454JHTD8"
        }
    ],
    "page": 1,
    "size": 1
}

```

func (*Client) GetRepositoriesWorkspaceRepoSlugDeployKeysKeyID

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyID Returns the deploy key belonging to a specific key.

Example: ``` $ curl -H "Authorization <auth header>" \ https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-key/1234

Output:

{
    "comment": "mleu@C02W454JHTD8",
    "last_used": null,
    "links": {
        "self": {
            "href": https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-key/1234"
        }
    },
    "repository": {
        "full_name": "mleu/test",
        "name": "test",
        "type": "repository",
        "uuid": "{85d08b4e-571d-44e9-a507-fa476535aa98}"
    },
    "label": "mykey",
    "created_on": "2018-08-15T23:50:59.993890+00:00",
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5",
    "id": 1234,
    "type": "deploy_key"
}

```

func (*Client) PostRepositoriesWorkspaceRepoSlugDeployKeys

PostRepositoriesWorkspaceRepoSlugDeployKeys Create a new deploy key in a repository.

Example: ``` $ curl -XPOST \ -H "Authorization <auth header>" \ -H "Content-type: application/json" \ https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys -d \

'{
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5 mleu@C02W454JHTD8",
    "label": "mydeploykey"
}'

Output:

{
    "id": 123,
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5",
    "label": "mydeploykey",
    "type": "deploy_key",
    "created_on": "2018-08-15T23:50:59.993890+00:00",
    "repository": {
        "full_name": "mleu/test",
        "name": "test",
        "type": "repository",
        "uuid": "{85d08b4e-571d-44e9-a507-fa476535aa98}"
    },
    "links":{
        "self":{
            "href": "https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys/123"
        }
    }
    "last_used": null,
    "comment": "mleu@C02W454JHTD8"
}

```

func (*Client) PutRepositoriesWorkspaceRepoSlugDeployKeysKeyID

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyID Create a new deploy key in a repository.

The same key needs to be passed in but the comment and label can change.

Example: ``` $ curl -XPUT \ -H "Authorization <auth header>" \ -H "Content-type: application/json" \ https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys/1234 -d \

'{
    "label": "newlabel",
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5 newcomment",
}'

Output:

{
    "comment": "newcomment",
    "last_used": null,
    "links": {
        "self": {
            "href": "https://api.bitbucket.org/2.0/repositories/mleu/test/deploy-keys/1234"
        }
    },
    "repository": {
        "full_name": "mleu/test",
        "name": "test",
        "type": "repository",
        "uuid": "{85d08b4e-571d-44e9-a507-fa476535aa98}"
    },
    "label": "newlabel",
    "created_on": "2018-08-15T23:50:59.993890+00:00",
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAK/b1cHHDr/TEV1JGQl+WjCwStKG6Bhrv0rFpEsYlyTBm1fzN0VOJJYn4ZOPCPJwqse6fGbXntEs+BbXiptR+++HycVgl65TMR0b5ul5AgwrVdZdT7qjCOCgaSV74/9xlHDK8oqgGnfA7ZoBBU+qpVyaloSjBdJfLtPY/xqj4yHnXKYzrtn/uFc4Kp9Tb7PUg9Io3qohSTGJGVHnsVblq/rToJG7L5xIo0OxK0SJSQ5vuId93ZuFZrCNMXj8JDHZeSEtjJzpRCBEXHxpOPhAcbm4MzULgkFHhAVgp4JbkrT99/wpvZ7r9AdkTg7HGqL3rlaDrEcWfL7Lu6TnhBdq5",
    "id": 1234,
    "type": "deploy_key"
}

```

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new deploy API client.

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden struct {
}

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden handles this case with default header values.

If the current user does not have permission to delete a key for the specified user

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden() *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden creates a DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden with default headers values

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden) Error

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent struct {
}

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent handles this case with default header values.

The key has been deleted

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent() *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent

NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent creates a DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent with default headers values

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNoContent) Error

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound struct {
	Payload *models.Error
}

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound handles this case with default header values.

If the specified user, repository, or deploy key does not exist

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound() *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound creates a DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound with default headers values

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) Error

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) GetPayload

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams struct {

	/*KeyID
	  The key ID matching the deploy key.

	*/
	KeyID 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
}

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams contains all the parameters to send to the API endpoint for the delete repositories workspace repo slug deploy keys key ID operation typically these are written to a http.Request

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams() *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams creates a new DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams object with the default values initialized.

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout

func NewDeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetContext

SetContext adds the context to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetKeyID

SetKeyID adds the keyId to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetTimeout

SetTimeout adds the timeout to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetWorkspace

SetWorkspace adds the workspace to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithContext

WithContext adds the context to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithKeyID

WithKeyID adds the keyID to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithTimeout

WithTimeout adds the timeout to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithWorkspace

WithWorkspace adds the workspace to the delete repositories workspace repo slug deploy keys key ID params

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader

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

DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader is a Reader for the DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyID structure.

func (*DeleteRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden

type GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden struct {
}

GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden handles this case with default header values.

If the specified user or repository is not accessible to the current user

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysForbidden

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysForbidden() *GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden

NewGetRepositoriesWorkspaceRepoSlugDeployKeysForbidden creates a GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysForbidden) Error

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden struct {
}

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden handles this case with default header values.

If the specified user or repository is not accessible to the current user

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden() *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden creates a GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden) Error

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound handles this case with default header values.

If the specified user or repository does not exist

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound() *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound creates a GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) Error

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) GetPayload

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK struct {
	Payload *models.DeployKey
}

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK handles this case with default header values.

Deploy key matching the key ID

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK() *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK creates a GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK) Error

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK) GetPayload

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams struct {

	/*KeyID
	  The key ID matching the deploy key.

	*/
	KeyID 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
}

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug deploy keys key ID operation typically these are written to a http.Request

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams() *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams creates a new GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetContext

SetContext adds the context to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetKeyID

SetKeyID adds the keyId to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithContext

WithContext adds the context to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithKeyID

WithKeyID adds the keyID to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug deploy keys key ID params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader

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

GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader is a Reader for the GetRepositoriesWorkspaceRepoSlugDeployKeysKeyID structure.

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound

type GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound handles this case with default header values.

If the specified user or repository does not exist

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysNotFound

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysNotFound() *GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound

NewGetRepositoriesWorkspaceRepoSlugDeployKeysNotFound creates a GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound) Error

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysNotFound) GetPayload

type GetRepositoriesWorkspaceRepoSlugDeployKeysOK

type GetRepositoriesWorkspaceRepoSlugDeployKeysOK struct {
	Payload *models.PaginatedDeployKeys
}

GetRepositoriesWorkspaceRepoSlugDeployKeysOK handles this case with default header values.

Deploy keys matching the repository

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysOK

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysOK() *GetRepositoriesWorkspaceRepoSlugDeployKeysOK

NewGetRepositoriesWorkspaceRepoSlugDeployKeysOK creates a GetRepositoriesWorkspaceRepoSlugDeployKeysOK with default headers values

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysOK) Error

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysOK) GetPayload

type GetRepositoriesWorkspaceRepoSlugDeployKeysParams

type GetRepositoriesWorkspaceRepoSlugDeployKeysParams 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
}

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

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParams

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParams() *GetRepositoriesWorkspaceRepoSlugDeployKeysParams

NewGetRepositoriesWorkspaceRepoSlugDeployKeysParams creates a new GetRepositoriesWorkspaceRepoSlugDeployKeysParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugDeployKeysParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetContext

SetContext adds the context to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetWorkspace

func (o *GetRepositoriesWorkspaceRepoSlugDeployKeysParams) SetWorkspace(workspace string)

SetWorkspace adds the workspace to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WithContext

WithContext adds the context to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug deploy keys params

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugDeployKeysReader

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

GetRepositoriesWorkspaceRepoSlugDeployKeysReader is a Reader for the GetRepositoriesWorkspaceRepoSlugDeployKeys structure.

func (*GetRepositoriesWorkspaceRepoSlugDeployKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest

type PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest struct {
}

PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest handles this case with default header values.

Invalid deploy key inputs

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest() *PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest

NewPostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest creates a PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest with default headers values

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysBadRequest) Error

type PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden

type PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden struct {
}

PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden handles this case with default header values.

If the specified user or repository is not accessible to the current user

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysForbidden

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysForbidden() *PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden

NewPostRepositoriesWorkspaceRepoSlugDeployKeysForbidden creates a PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden with default headers values

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysForbidden) Error

type PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound

type PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound struct {
	Payload *models.Error
}

PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound handles this case with default header values.

If the specified user or repository does not exist

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysNotFound

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysNotFound() *PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound

NewPostRepositoriesWorkspaceRepoSlugDeployKeysNotFound creates a PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound with default headers values

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound) Error

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysNotFound) GetPayload

type PostRepositoriesWorkspaceRepoSlugDeployKeysOK

type PostRepositoriesWorkspaceRepoSlugDeployKeysOK struct {
	Payload *models.DeployKey
}

PostRepositoriesWorkspaceRepoSlugDeployKeysOK handles this case with default header values.

The deploy key that was created

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysOK

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysOK() *PostRepositoriesWorkspaceRepoSlugDeployKeysOK

NewPostRepositoriesWorkspaceRepoSlugDeployKeysOK creates a PostRepositoriesWorkspaceRepoSlugDeployKeysOK with default headers values

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysOK) Error

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysOK) GetPayload

type PostRepositoriesWorkspaceRepoSlugDeployKeysParams

type PostRepositoriesWorkspaceRepoSlugDeployKeysParams 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
}

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

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParams

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParams() *PostRepositoriesWorkspaceRepoSlugDeployKeysParams

NewPostRepositoriesWorkspaceRepoSlugDeployKeysParams creates a new PostRepositoriesWorkspaceRepoSlugDeployKeysParams object with the default values initialized.

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithContext

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithHTTPClient

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithTimeout

func NewPostRepositoriesWorkspaceRepoSlugDeployKeysParamsWithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugDeployKeysParams

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

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetContext

SetContext adds the context to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetTimeout

SetTimeout adds the timeout to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetWorkspace

func (o *PostRepositoriesWorkspaceRepoSlugDeployKeysParams) SetWorkspace(workspace string)

SetWorkspace adds the workspace to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WithContext

WithContext adds the context to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WithTimeout

WithTimeout adds the timeout to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WithWorkspace

WithWorkspace adds the workspace to the post repositories workspace repo slug deploy keys params

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostRepositoriesWorkspaceRepoSlugDeployKeysReader

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

PostRepositoriesWorkspaceRepoSlugDeployKeysReader is a Reader for the PostRepositoriesWorkspaceRepoSlugDeployKeys structure.

func (*PostRepositoriesWorkspaceRepoSlugDeployKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest handles this case with default header values.

If the submitted key or related value is invalid

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest() *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest

NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest creates a PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest with default headers values

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest) Error

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDBadRequest) GetPayload

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden struct {
}

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden handles this case with default header values.

If the current user does not have permission to add a key for the specified user

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden() *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden

NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden creates a PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden with default headers values

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDForbidden) Error

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound handles this case with default header values.

If the specified user, repository, or deploy key does not exist

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound() *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound

NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound creates a PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound with default headers values

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) Error

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDNotFound) GetPayload

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK struct {
	Payload *models.DeployKey
}

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK handles this case with default header values.

The newly updated deploy key.

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK() *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK

NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK creates a PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK with default headers values

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK) Error

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDOK) GetPayload

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams struct {

	/*KeyID
	  The key ID matching the deploy key.

	*/
	KeyID 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
}

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams contains all the parameters to send to the API endpoint for the put repositories workspace repo slug deploy keys key ID operation typically these are written to a http.Request

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams() *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams creates a new PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams object with the default values initialized.

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout

func NewPutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParamsWithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams

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

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetContext

SetContext adds the context to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetKeyID

SetKeyID adds the keyId to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetTimeout

SetTimeout adds the timeout to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) SetWorkspace

SetWorkspace adds the workspace to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithContext

WithContext adds the context to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithKeyID

WithKeyID adds the keyID to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithTimeout

WithTimeout adds the timeout to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WithWorkspace

WithWorkspace adds the workspace to the put repositories workspace repo slug deploy keys key ID params

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader

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

PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader is a Reader for the PutRepositoriesWorkspaceRepoSlugDeployKeysKeyID structure.

func (*PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader) ReadResponse

func (o *PutRepositoriesWorkspaceRepoSlugDeployKeysKeyIDReader) 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