ssh

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

func (*Client) DeleteUsersUsernameSSHKeys

DeleteUsersUsernameSSHKeys Deletes a specific SSH public key from a user's account

Example: ``` $ curl -X DELETE https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys/{b15b6026-9c02-4626-b4ad-b905f99f763a} ```

func (*Client) GetUsersUsernameSSHKeys

func (a *Client) GetUsersUsernameSSHKeys(params *GetUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersUsernameSSHKeysOK, error)
GetUsersUsernameSSHKeys Returns a paginated list of the user's SSH public keys.

Example:

``` $ curl https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys

{
    "page": 1,
    "pagelen": 10,
    "size": 1,
    "values": [
        {
            "comment": "user@myhost",
            "created_on": "2018-03-14T13:17:05.196003+00:00",
            "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqP3Cr632C2dNhhgKVcon4ldUSAeKiku2yP9O9/bDtY",
            "label": "",
            "last_used": "2018-03-20T13:18:05.196003+00:00",
            "links": {
                "self": {
                    "href": "https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys/b15b6026-9c02-4626-b4ad-b905f99f763a"
                }
            },
            "owner": {
                "display_name": "Mark Adams",
                "links": {
                    "avatar": {
                        "href": "https://bitbucket.org/account/markadams-atl/avatar/32/"
                    },
                    "html": {
                        "href": "https://bitbucket.org/markadams-atl/"
                    },
                    "self": {
                        "href": "https://api.bitbucket.org/2.0/users/markadams-atl"
                    }
                },
                "type": "user",
                "username": "markadams-atl",
                "nickname": "markadams-atl",
                "uuid": "{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}"
            },
            "type": "ssh_key",
            "uuid": "{b15b6026-9c02-4626-b4ad-b905f99f763a}"
        }
    ]
}

```

func (*Client) PostUsersUsernameSSHKeys

PostUsersUsernameSSHKeys Adds a new SSH public key to the specified user account and returns the resulting key.

Example: ``` $ curl -X POST -H "Content-Type: application/json" -d '{"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqP3Cr632C2dNhhgKVcon4ldUSAeKiku2yP9O9/bDtY user@myhost"}' https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys

{
    "comment": "user@myhost",
    "created_on": "2018-03-14T13:17:05.196003+00:00",
    "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqP3Cr632C2dNhhgKVcon4ldUSAeKiku2yP9O9/bDtY",
    "label": "",
    "last_used": "2018-03-20T13:18:05.196003+00:00",
    "links": {
        "self": {
            "href": "https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys/b15b6026-9c02-4626-b4ad-b905f99f763a"
        }
    },
    "owner": {
        "display_name": "Mark Adams",
        "links": {
            "avatar": {
                "href": "https://bitbucket.org/account/markadams-atl/avatar/32/"
            },
            "html": {
                "href": "https://bitbucket.org/markadams-atl/"
            },
            "self": {
                "href": "https://api.bitbucket.org/2.0/users/markadams-atl"
            }
        },
        "type": "user",
        "username": "markadams-atl",
        "nickname": "markadams-atl",
        "uuid": "{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}"
    },
    "type": "ssh_key",
    "uuid": "{b15b6026-9c02-4626-b4ad-b905f99f763a}"
}

```

func (*Client) PutUsersUsernameSSHKeys

func (a *Client) PutUsersUsernameSSHKeys(params *PutUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PutUsersUsernameSSHKeysOK, error)
PutUsersUsernameSSHKeys Updates a specific SSH public key on a user's account

Note: Only the 'comment' field can be updated using this API. To modify the key or comment values, you must delete and add the key again.

Example: ``` $ curl -X PUT -H "Content-Type: application/json" -d '{"label": "Work key"}' https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys/{b15b6026-9c02-4626-b4ad-b905f99f763a}

{
    "comment": "",
    "created_on": "2018-03-14T13:17:05.196003+00:00",
    "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqP3Cr632C2dNhhgKVcon4ldUSAeKiku2yP9O9/bDtY",
    "label": "Work key",
    "last_used": "2018-03-20T13:18:05.196003+00:00",
    "links": {
        "self": {
            "href": "https://api.bitbucket.org/2.0/users/markadams-atl/ssh-keys/b15b6026-9c02-4626-b4ad-b905f99f763a"
        }
    },
    "owner": {
        "display_name": "Mark Adams",
        "links": {
            "avatar": {
                "href": "https://bitbucket.org/account/markadams-atl/avatar/32/"
            },
            "html": {
                "href": "https://bitbucket.org/markadams-atl/"
            },
            "self": {
                "href": "https://api.bitbucket.org/2.0/users/markadams-atl"
            }
        },
        "type": "user",
        "username": "markadams-atl",
        "nickname": "markadams-atl",
        "uuid": "{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}"
    },
    "type": "ssh_key",
    "uuid": "{b15b6026-9c02-4626-b4ad-b905f99f763a}"
}

```

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteUsersUsernameSSHKeys(params *DeleteUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUsersUsernameSSHKeysNoContent, error)

	GetUsersUsernameSSHKeys(params *GetUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersUsernameSSHKeysOK, error)

	PostUsersUsernameSSHKeys(params *PostUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PostUsersUsernameSSHKeysCreated, error)

	PutUsersUsernameSSHKeys(params *PutUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PutUsersUsernameSSHKeysOK, 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 ssh API client.

type DeleteUsersUsernameSSHKeysBadRequest

type DeleteUsersUsernameSSHKeysBadRequest struct {
	Payload *models.Error
}

DeleteUsersUsernameSSHKeysBadRequest handles this case with default header values.

If the submitted key or related value is invalid

func NewDeleteUsersUsernameSSHKeysBadRequest

func NewDeleteUsersUsernameSSHKeysBadRequest() *DeleteUsersUsernameSSHKeysBadRequest

NewDeleteUsersUsernameSSHKeysBadRequest creates a DeleteUsersUsernameSSHKeysBadRequest with default headers values

func (*DeleteUsersUsernameSSHKeysBadRequest) Error

func (*DeleteUsersUsernameSSHKeysBadRequest) GetPayload

type DeleteUsersUsernameSSHKeysForbidden

type DeleteUsersUsernameSSHKeysForbidden struct {
}

DeleteUsersUsernameSSHKeysForbidden handles this case with default header values.

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

func NewDeleteUsersUsernameSSHKeysForbidden

func NewDeleteUsersUsernameSSHKeysForbidden() *DeleteUsersUsernameSSHKeysForbidden

NewDeleteUsersUsernameSSHKeysForbidden creates a DeleteUsersUsernameSSHKeysForbidden with default headers values

func (*DeleteUsersUsernameSSHKeysForbidden) Error

type DeleteUsersUsernameSSHKeysNoContent

type DeleteUsersUsernameSSHKeysNoContent struct {
}

DeleteUsersUsernameSSHKeysNoContent handles this case with default header values.

The key has been deleted

func NewDeleteUsersUsernameSSHKeysNoContent

func NewDeleteUsersUsernameSSHKeysNoContent() *DeleteUsersUsernameSSHKeysNoContent

NewDeleteUsersUsernameSSHKeysNoContent creates a DeleteUsersUsernameSSHKeysNoContent with default headers values

func (*DeleteUsersUsernameSSHKeysNoContent) Error

type DeleteUsersUsernameSSHKeysNotFound

type DeleteUsersUsernameSSHKeysNotFound struct {
	Payload *models.Error
}

DeleteUsersUsernameSSHKeysNotFound handles this case with default header values.

If the specified user does not exist

func NewDeleteUsersUsernameSSHKeysNotFound

func NewDeleteUsersUsernameSSHKeysNotFound() *DeleteUsersUsernameSSHKeysNotFound

NewDeleteUsersUsernameSSHKeysNotFound creates a DeleteUsersUsernameSSHKeysNotFound with default headers values

func (*DeleteUsersUsernameSSHKeysNotFound) Error

func (*DeleteUsersUsernameSSHKeysNotFound) GetPayload

type DeleteUsersUsernameSSHKeysParams

type DeleteUsersUsernameSSHKeysParams struct {

	/*KeyID
	  The SSH key's UUID value.

	*/
	KeyID string
	/*Username
	  The account's username or UUID.

	*/
	Username string

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

DeleteUsersUsernameSSHKeysParams contains all the parameters to send to the API endpoint for the delete users username SSH keys operation typically these are written to a http.Request

func NewDeleteUsersUsernameSSHKeysParams

func NewDeleteUsersUsernameSSHKeysParams() *DeleteUsersUsernameSSHKeysParams

NewDeleteUsersUsernameSSHKeysParams creates a new DeleteUsersUsernameSSHKeysParams object with the default values initialized.

func NewDeleteUsersUsernameSSHKeysParamsWithContext

func NewDeleteUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *DeleteUsersUsernameSSHKeysParams

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

func NewDeleteUsersUsernameSSHKeysParamsWithHTTPClient

func NewDeleteUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *DeleteUsersUsernameSSHKeysParams

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

func NewDeleteUsersUsernameSSHKeysParamsWithTimeout

func NewDeleteUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *DeleteUsersUsernameSSHKeysParams

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

func (*DeleteUsersUsernameSSHKeysParams) SetContext

SetContext adds the context to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) SetHTTPClient

func (o *DeleteUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) SetKeyID

func (o *DeleteUsersUsernameSSHKeysParams) SetKeyID(keyID string)

SetKeyID adds the keyId to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) SetTimeout

func (o *DeleteUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) SetUsername

func (o *DeleteUsersUsernameSSHKeysParams) SetUsername(username string)

SetUsername adds the username to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WithContext

WithContext adds the context to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WithKeyID

WithKeyID adds the keyID to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WithTimeout

WithTimeout adds the timeout to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WithUsername

WithUsername adds the username to the delete users username SSH keys params

func (*DeleteUsersUsernameSSHKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteUsersUsernameSSHKeysReader

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

DeleteUsersUsernameSSHKeysReader is a Reader for the DeleteUsersUsernameSSHKeys structure.

func (*DeleteUsersUsernameSSHKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsersUsernameSSHKeysForbidden

type GetUsersUsernameSSHKeysForbidden struct {
}

GetUsersUsernameSSHKeysForbidden handles this case with default header values.

If the specified user's keys are not accessible to the current user

func NewGetUsersUsernameSSHKeysForbidden

func NewGetUsersUsernameSSHKeysForbidden() *GetUsersUsernameSSHKeysForbidden

NewGetUsersUsernameSSHKeysForbidden creates a GetUsersUsernameSSHKeysForbidden with default headers values

func (*GetUsersUsernameSSHKeysForbidden) Error

type GetUsersUsernameSSHKeysNotFound

type GetUsersUsernameSSHKeysNotFound struct {
	Payload *models.Error
}

GetUsersUsernameSSHKeysNotFound handles this case with default header values.

If the specified user does not exist

func NewGetUsersUsernameSSHKeysNotFound

func NewGetUsersUsernameSSHKeysNotFound() *GetUsersUsernameSSHKeysNotFound

NewGetUsersUsernameSSHKeysNotFound creates a GetUsersUsernameSSHKeysNotFound with default headers values

func (*GetUsersUsernameSSHKeysNotFound) Error

func (*GetUsersUsernameSSHKeysNotFound) GetPayload

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

type GetUsersUsernameSSHKeysOK

type GetUsersUsernameSSHKeysOK struct {
	Payload *models.PaginatedSSHUserKeys
}

GetUsersUsernameSSHKeysOK handles this case with default header values.

A list of the SSH keys associated with the account.

func NewGetUsersUsernameSSHKeysOK

func NewGetUsersUsernameSSHKeysOK() *GetUsersUsernameSSHKeysOK

NewGetUsersUsernameSSHKeysOK creates a GetUsersUsernameSSHKeysOK with default headers values

func (*GetUsersUsernameSSHKeysOK) Error

func (o *GetUsersUsernameSSHKeysOK) Error() string

func (*GetUsersUsernameSSHKeysOK) GetPayload

type GetUsersUsernameSSHKeysParams

type GetUsersUsernameSSHKeysParams struct {

	/*Username
	  The account's UUID, account_id, or username. Note that username has been deprecated due to [privacy changes](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#removal-of-usernames-from-user-referencing-apis).

	*/
	Username string

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

GetUsersUsernameSSHKeysParams contains all the parameters to send to the API endpoint for the get users username SSH keys operation typically these are written to a http.Request

func NewGetUsersUsernameSSHKeysParams

func NewGetUsersUsernameSSHKeysParams() *GetUsersUsernameSSHKeysParams

NewGetUsersUsernameSSHKeysParams creates a new GetUsersUsernameSSHKeysParams object with the default values initialized.

func NewGetUsersUsernameSSHKeysParamsWithContext

func NewGetUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *GetUsersUsernameSSHKeysParams

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

func NewGetUsersUsernameSSHKeysParamsWithHTTPClient

func NewGetUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *GetUsersUsernameSSHKeysParams

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

func NewGetUsersUsernameSSHKeysParamsWithTimeout

func NewGetUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *GetUsersUsernameSSHKeysParams

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

func (*GetUsersUsernameSSHKeysParams) SetContext

func (o *GetUsersUsernameSSHKeysParams) SetContext(ctx context.Context)

SetContext adds the context to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) SetHTTPClient

func (o *GetUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) SetTimeout

func (o *GetUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) SetUsername

func (o *GetUsersUsernameSSHKeysParams) SetUsername(username string)

SetUsername adds the username to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) WithContext

WithContext adds the context to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) WithTimeout

WithTimeout adds the timeout to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) WithUsername

WithUsername adds the username to the get users username SSH keys params

func (*GetUsersUsernameSSHKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUsersUsernameSSHKeysReader

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

GetUsersUsernameSSHKeysReader is a Reader for the GetUsersUsernameSSHKeys structure.

func (*GetUsersUsernameSSHKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUsersUsernameSSHKeysBadRequest

type PostUsersUsernameSSHKeysBadRequest struct {
	Payload *models.Error
}

PostUsersUsernameSSHKeysBadRequest handles this case with default header values.

If the submitted key or related value is invalid

func NewPostUsersUsernameSSHKeysBadRequest

func NewPostUsersUsernameSSHKeysBadRequest() *PostUsersUsernameSSHKeysBadRequest

NewPostUsersUsernameSSHKeysBadRequest creates a PostUsersUsernameSSHKeysBadRequest with default headers values

func (*PostUsersUsernameSSHKeysBadRequest) Error

func (*PostUsersUsernameSSHKeysBadRequest) GetPayload

type PostUsersUsernameSSHKeysCreated

type PostUsersUsernameSSHKeysCreated struct {
	Payload *models.SSHAccountKey
}

PostUsersUsernameSSHKeysCreated handles this case with default header values.

The newly created SSH key.

func NewPostUsersUsernameSSHKeysCreated

func NewPostUsersUsernameSSHKeysCreated() *PostUsersUsernameSSHKeysCreated

NewPostUsersUsernameSSHKeysCreated creates a PostUsersUsernameSSHKeysCreated with default headers values

func (*PostUsersUsernameSSHKeysCreated) Error

func (*PostUsersUsernameSSHKeysCreated) GetPayload

type PostUsersUsernameSSHKeysForbidden

type PostUsersUsernameSSHKeysForbidden struct {
}

PostUsersUsernameSSHKeysForbidden handles this case with default header values.

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

func NewPostUsersUsernameSSHKeysForbidden

func NewPostUsersUsernameSSHKeysForbidden() *PostUsersUsernameSSHKeysForbidden

NewPostUsersUsernameSSHKeysForbidden creates a PostUsersUsernameSSHKeysForbidden with default headers values

func (*PostUsersUsernameSSHKeysForbidden) Error

type PostUsersUsernameSSHKeysNotFound

type PostUsersUsernameSSHKeysNotFound struct {
	Payload *models.Error
}

PostUsersUsernameSSHKeysNotFound handles this case with default header values.

If the specified user does not exist

func NewPostUsersUsernameSSHKeysNotFound

func NewPostUsersUsernameSSHKeysNotFound() *PostUsersUsernameSSHKeysNotFound

NewPostUsersUsernameSSHKeysNotFound creates a PostUsersUsernameSSHKeysNotFound with default headers values

func (*PostUsersUsernameSSHKeysNotFound) Error

func (*PostUsersUsernameSSHKeysNotFound) GetPayload

type PostUsersUsernameSSHKeysParams

type PostUsersUsernameSSHKeysParams struct {

	/*Body
	  The new SSH key object. Note that the username property has been deprecated due to [privacy changes](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#removal-of-usernames-from-user-referencing-apis).

	*/
	Body *models.SSHAccountKey
	/*Username
	  The account's UUID, account_id, or username. Note that username has been deprecated due to [privacy changes](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#removal-of-usernames-from-user-referencing-apis).

	*/
	Username string

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

PostUsersUsernameSSHKeysParams contains all the parameters to send to the API endpoint for the post users username SSH keys operation typically these are written to a http.Request

func NewPostUsersUsernameSSHKeysParams

func NewPostUsersUsernameSSHKeysParams() *PostUsersUsernameSSHKeysParams

NewPostUsersUsernameSSHKeysParams creates a new PostUsersUsernameSSHKeysParams object with the default values initialized.

func NewPostUsersUsernameSSHKeysParamsWithContext

func NewPostUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *PostUsersUsernameSSHKeysParams

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

func NewPostUsersUsernameSSHKeysParamsWithHTTPClient

func NewPostUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *PostUsersUsernameSSHKeysParams

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

func NewPostUsersUsernameSSHKeysParamsWithTimeout

func NewPostUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *PostUsersUsernameSSHKeysParams

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

func (*PostUsersUsernameSSHKeysParams) SetBody

SetBody adds the body to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) SetContext

func (o *PostUsersUsernameSSHKeysParams) SetContext(ctx context.Context)

SetContext adds the context to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) SetHTTPClient

func (o *PostUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) SetTimeout

func (o *PostUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) SetUsername

func (o *PostUsersUsernameSSHKeysParams) SetUsername(username string)

SetUsername adds the username to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WithBody

WithBody adds the body to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WithContext

WithContext adds the context to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WithTimeout

WithTimeout adds the timeout to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WithUsername

WithUsername adds the username to the post users username SSH keys params

func (*PostUsersUsernameSSHKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostUsersUsernameSSHKeysReader

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

PostUsersUsernameSSHKeysReader is a Reader for the PostUsersUsernameSSHKeys structure.

func (*PostUsersUsernameSSHKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutUsersUsernameSSHKeysBadRequest

type PutUsersUsernameSSHKeysBadRequest struct {
	Payload *models.Error
}

PutUsersUsernameSSHKeysBadRequest handles this case with default header values.

If the submitted key or related value is invalid

func NewPutUsersUsernameSSHKeysBadRequest

func NewPutUsersUsernameSSHKeysBadRequest() *PutUsersUsernameSSHKeysBadRequest

NewPutUsersUsernameSSHKeysBadRequest creates a PutUsersUsernameSSHKeysBadRequest with default headers values

func (*PutUsersUsernameSSHKeysBadRequest) Error

func (*PutUsersUsernameSSHKeysBadRequest) GetPayload

type PutUsersUsernameSSHKeysForbidden

type PutUsersUsernameSSHKeysForbidden struct {
}

PutUsersUsernameSSHKeysForbidden handles this case with default header values.

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

func NewPutUsersUsernameSSHKeysForbidden

func NewPutUsersUsernameSSHKeysForbidden() *PutUsersUsernameSSHKeysForbidden

NewPutUsersUsernameSSHKeysForbidden creates a PutUsersUsernameSSHKeysForbidden with default headers values

func (*PutUsersUsernameSSHKeysForbidden) Error

type PutUsersUsernameSSHKeysNotFound

type PutUsersUsernameSSHKeysNotFound struct {
	Payload *models.Error
}

PutUsersUsernameSSHKeysNotFound handles this case with default header values.

If the specified user does not exist

func NewPutUsersUsernameSSHKeysNotFound

func NewPutUsersUsernameSSHKeysNotFound() *PutUsersUsernameSSHKeysNotFound

NewPutUsersUsernameSSHKeysNotFound creates a PutUsersUsernameSSHKeysNotFound with default headers values

func (*PutUsersUsernameSSHKeysNotFound) Error

func (*PutUsersUsernameSSHKeysNotFound) GetPayload

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

type PutUsersUsernameSSHKeysOK

type PutUsersUsernameSSHKeysOK struct {
	Payload *models.SSHAccountKey
}

PutUsersUsernameSSHKeysOK handles this case with default header values.

The newly updated SSH key.

func NewPutUsersUsernameSSHKeysOK

func NewPutUsersUsernameSSHKeysOK() *PutUsersUsernameSSHKeysOK

NewPutUsersUsernameSSHKeysOK creates a PutUsersUsernameSSHKeysOK with default headers values

func (*PutUsersUsernameSSHKeysOK) Error

func (o *PutUsersUsernameSSHKeysOK) Error() string

func (*PutUsersUsernameSSHKeysOK) GetPayload

type PutUsersUsernameSSHKeysParams

type PutUsersUsernameSSHKeysParams struct {

	/*Body
	  The updated SSH key object

	*/
	Body *models.SSHAccountKey
	/*KeyID
	  The SSH key's UUID value.

	*/
	KeyID string
	/*Username
	  The account's username or UUID.

	*/
	Username string

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

PutUsersUsernameSSHKeysParams contains all the parameters to send to the API endpoint for the put users username SSH keys operation typically these are written to a http.Request

func NewPutUsersUsernameSSHKeysParams

func NewPutUsersUsernameSSHKeysParams() *PutUsersUsernameSSHKeysParams

NewPutUsersUsernameSSHKeysParams creates a new PutUsersUsernameSSHKeysParams object with the default values initialized.

func NewPutUsersUsernameSSHKeysParamsWithContext

func NewPutUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *PutUsersUsernameSSHKeysParams

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

func NewPutUsersUsernameSSHKeysParamsWithHTTPClient

func NewPutUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *PutUsersUsernameSSHKeysParams

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

func NewPutUsersUsernameSSHKeysParamsWithTimeout

func NewPutUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *PutUsersUsernameSSHKeysParams

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

func (*PutUsersUsernameSSHKeysParams) SetBody

SetBody adds the body to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) SetContext

func (o *PutUsersUsernameSSHKeysParams) SetContext(ctx context.Context)

SetContext adds the context to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) SetHTTPClient

func (o *PutUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) SetKeyID

func (o *PutUsersUsernameSSHKeysParams) SetKeyID(keyID string)

SetKeyID adds the keyId to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) SetTimeout

func (o *PutUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) SetUsername

func (o *PutUsersUsernameSSHKeysParams) SetUsername(username string)

SetUsername adds the username to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithBody

WithBody adds the body to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithContext

WithContext adds the context to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithKeyID

WithKeyID adds the keyID to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithTimeout

WithTimeout adds the timeout to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WithUsername

WithUsername adds the username to the put users username SSH keys params

func (*PutUsersUsernameSSHKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutUsersUsernameSSHKeysReader

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

PutUsersUsernameSSHKeysReader is a Reader for the PutUsersUsernameSSHKeys structure.

func (*PutUsersUsernameSSHKeysReader) ReadResponse

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