Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteUsersUsernameSSHKeys(params *DeleteUsersUsernameSSHKeysParams, ...) (*DeleteUsersUsernameSSHKeysNoContent, error)
- func (a *Client) GetUsersUsernameSSHKeys(params *GetUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersUsernameSSHKeysOK, error)
- func (a *Client) PostUsersUsernameSSHKeys(params *PostUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PostUsersUsernameSSHKeysCreated, error)
- func (a *Client) PutUsersUsernameSSHKeys(params *PutUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PutUsersUsernameSSHKeysOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteUsersUsernameSSHKeysBadRequest
- type DeleteUsersUsernameSSHKeysForbidden
- type DeleteUsersUsernameSSHKeysNoContent
- type DeleteUsersUsernameSSHKeysNotFound
- type DeleteUsersUsernameSSHKeysParams
- func NewDeleteUsersUsernameSSHKeysParams() *DeleteUsersUsernameSSHKeysParams
- func NewDeleteUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *DeleteUsersUsernameSSHKeysParams
- func NewDeleteUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *DeleteUsersUsernameSSHKeysParams
- func NewDeleteUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) SetContext(ctx context.Context)
- func (o *DeleteUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUsersUsernameSSHKeysParams) SetKeyID(keyID string)
- func (o *DeleteUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUsersUsernameSSHKeysParams) SetUsername(username string)
- func (o *DeleteUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) WithKeyID(keyID string) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) WithUsername(username string) *DeleteUsersUsernameSSHKeysParams
- func (o *DeleteUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUsersUsernameSSHKeysReader
- type GetUsersUsernameSSHKeysForbidden
- type GetUsersUsernameSSHKeysNotFound
- type GetUsersUsernameSSHKeysOK
- type GetUsersUsernameSSHKeysParams
- func NewGetUsersUsernameSSHKeysParams() *GetUsersUsernameSSHKeysParams
- func NewGetUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *GetUsersUsernameSSHKeysParams
- func NewGetUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *GetUsersUsernameSSHKeysParams
- func NewGetUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *GetUsersUsernameSSHKeysParams
- func (o *GetUsersUsernameSSHKeysParams) SetContext(ctx context.Context)
- func (o *GetUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersUsernameSSHKeysParams) SetUsername(username string)
- func (o *GetUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *GetUsersUsernameSSHKeysParams
- func (o *GetUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *GetUsersUsernameSSHKeysParams
- func (o *GetUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *GetUsersUsernameSSHKeysParams
- func (o *GetUsersUsernameSSHKeysParams) WithUsername(username string) *GetUsersUsernameSSHKeysParams
- func (o *GetUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersUsernameSSHKeysReader
- type PostUsersUsernameSSHKeysBadRequest
- type PostUsersUsernameSSHKeysCreated
- type PostUsersUsernameSSHKeysForbidden
- type PostUsersUsernameSSHKeysNotFound
- type PostUsersUsernameSSHKeysParams
- func NewPostUsersUsernameSSHKeysParams() *PostUsersUsernameSSHKeysParams
- func NewPostUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *PostUsersUsernameSSHKeysParams
- func NewPostUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *PostUsersUsernameSSHKeysParams
- func NewPostUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) SetBody(body *models.SSHAccountKey)
- func (o *PostUsersUsernameSSHKeysParams) SetContext(ctx context.Context)
- func (o *PostUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)
- func (o *PostUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)
- func (o *PostUsersUsernameSSHKeysParams) SetUsername(username string)
- func (o *PostUsersUsernameSSHKeysParams) WithBody(body *models.SSHAccountKey) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) WithUsername(username string) *PostUsersUsernameSSHKeysParams
- func (o *PostUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostUsersUsernameSSHKeysReader
- type PutUsersUsernameSSHKeysBadRequest
- type PutUsersUsernameSSHKeysForbidden
- type PutUsersUsernameSSHKeysNotFound
- type PutUsersUsernameSSHKeysOK
- type PutUsersUsernameSSHKeysParams
- func NewPutUsersUsernameSSHKeysParams() *PutUsersUsernameSSHKeysParams
- func NewPutUsersUsernameSSHKeysParamsWithContext(ctx context.Context) *PutUsersUsernameSSHKeysParams
- func NewPutUsersUsernameSSHKeysParamsWithHTTPClient(client *http.Client) *PutUsersUsernameSSHKeysParams
- func NewPutUsersUsernameSSHKeysParamsWithTimeout(timeout time.Duration) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) SetBody(body *models.SSHAccountKey)
- func (o *PutUsersUsernameSSHKeysParams) SetContext(ctx context.Context)
- func (o *PutUsersUsernameSSHKeysParams) SetHTTPClient(client *http.Client)
- func (o *PutUsersUsernameSSHKeysParams) SetKeyID(keyID string)
- func (o *PutUsersUsernameSSHKeysParams) SetTimeout(timeout time.Duration)
- func (o *PutUsersUsernameSSHKeysParams) SetUsername(username string)
- func (o *PutUsersUsernameSSHKeysParams) WithBody(body *models.SSHAccountKey) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WithKeyID(keyID string) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WithUsername(username string) *PutUsersUsernameSSHKeysParams
- func (o *PutUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutUsersUsernameSSHKeysReader
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 ¶
func (a *Client) DeleteUsersUsernameSSHKeys(params *DeleteUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUsersUsernameSSHKeysNoContent, error)
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 ¶
func (a *Client) PostUsersUsernameSSHKeys(params *PostUsersUsernameSSHKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PostUsersUsernameSSHKeysCreated, error)
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 ¶
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 (o *DeleteUsersUsernameSSHKeysBadRequest) Error() string
func (*DeleteUsersUsernameSSHKeysBadRequest) GetPayload ¶
func (o *DeleteUsersUsernameSSHKeysBadRequest) GetPayload() *models.Error
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 ¶
func (o *DeleteUsersUsernameSSHKeysForbidden) Error() string
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 ¶
func (o *DeleteUsersUsernameSSHKeysNoContent) Error() string
type DeleteUsersUsernameSSHKeysNotFound ¶
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 (o *DeleteUsersUsernameSSHKeysNotFound) Error() string
func (*DeleteUsersUsernameSSHKeysNotFound) GetPayload ¶
func (o *DeleteUsersUsernameSSHKeysNotFound) GetPayload() *models.Error
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 ¶
func (o *DeleteUsersUsernameSSHKeysParams) SetContext(ctx context.Context)
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 ¶
func (o *DeleteUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *DeleteUsersUsernameSSHKeysParams
WithContext adds the context to the delete users username SSH keys params
func (*DeleteUsersUsernameSSHKeysParams) WithHTTPClient ¶
func (o *DeleteUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *DeleteUsersUsernameSSHKeysParams
WithHTTPClient adds the HTTPClient to the delete users username SSH keys params
func (*DeleteUsersUsernameSSHKeysParams) WithKeyID ¶
func (o *DeleteUsersUsernameSSHKeysParams) WithKeyID(keyID string) *DeleteUsersUsernameSSHKeysParams
WithKeyID adds the keyID to the delete users username SSH keys params
func (*DeleteUsersUsernameSSHKeysParams) WithTimeout ¶
func (o *DeleteUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *DeleteUsersUsernameSSHKeysParams
WithTimeout adds the timeout to the delete users username SSH keys params
func (*DeleteUsersUsernameSSHKeysParams) WithUsername ¶
func (o *DeleteUsersUsernameSSHKeysParams) WithUsername(username string) *DeleteUsersUsernameSSHKeysParams
WithUsername adds the username to the delete users username SSH keys params
func (*DeleteUsersUsernameSSHKeysParams) WriteToRequest ¶
func (o *DeleteUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetUsersUsernameSSHKeysForbidden) Error() string
type GetUsersUsernameSSHKeysNotFound ¶
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 (o *GetUsersUsernameSSHKeysNotFound) Error() string
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 ¶
func (o *GetUsersUsernameSSHKeysOK) GetPayload() *models.PaginatedSSHUserKeys
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 ¶
func (o *GetUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *GetUsersUsernameSSHKeysParams
WithContext adds the context to the get users username SSH keys params
func (*GetUsersUsernameSSHKeysParams) WithHTTPClient ¶
func (o *GetUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *GetUsersUsernameSSHKeysParams
WithHTTPClient adds the HTTPClient to the get users username SSH keys params
func (*GetUsersUsernameSSHKeysParams) WithTimeout ¶
func (o *GetUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *GetUsersUsernameSSHKeysParams
WithTimeout adds the timeout to the get users username SSH keys params
func (*GetUsersUsernameSSHKeysParams) WithUsername ¶
func (o *GetUsersUsernameSSHKeysParams) WithUsername(username string) *GetUsersUsernameSSHKeysParams
WithUsername adds the username to the get users username SSH keys params
func (*GetUsersUsernameSSHKeysParams) WriteToRequest ¶
func (o *GetUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *PostUsersUsernameSSHKeysBadRequest) Error() string
func (*PostUsersUsernameSSHKeysBadRequest) GetPayload ¶
func (o *PostUsersUsernameSSHKeysBadRequest) GetPayload() *models.Error
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 (o *PostUsersUsernameSSHKeysCreated) Error() string
func (*PostUsersUsernameSSHKeysCreated) GetPayload ¶
func (o *PostUsersUsernameSSHKeysCreated) GetPayload() *models.SSHAccountKey
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 ¶
func (o *PostUsersUsernameSSHKeysForbidden) Error() string
type PostUsersUsernameSSHKeysNotFound ¶
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 (o *PostUsersUsernameSSHKeysNotFound) Error() string
func (*PostUsersUsernameSSHKeysNotFound) GetPayload ¶
func (o *PostUsersUsernameSSHKeysNotFound) GetPayload() *models.Error
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 ¶
func (o *PostUsersUsernameSSHKeysParams) SetBody(body *models.SSHAccountKey)
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 ¶
func (o *PostUsersUsernameSSHKeysParams) WithBody(body *models.SSHAccountKey) *PostUsersUsernameSSHKeysParams
WithBody adds the body to the post users username SSH keys params
func (*PostUsersUsernameSSHKeysParams) WithContext ¶
func (o *PostUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *PostUsersUsernameSSHKeysParams
WithContext adds the context to the post users username SSH keys params
func (*PostUsersUsernameSSHKeysParams) WithHTTPClient ¶
func (o *PostUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *PostUsersUsernameSSHKeysParams
WithHTTPClient adds the HTTPClient to the post users username SSH keys params
func (*PostUsersUsernameSSHKeysParams) WithTimeout ¶
func (o *PostUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *PostUsersUsernameSSHKeysParams
WithTimeout adds the timeout to the post users username SSH keys params
func (*PostUsersUsernameSSHKeysParams) WithUsername ¶
func (o *PostUsersUsernameSSHKeysParams) WithUsername(username string) *PostUsersUsernameSSHKeysParams
WithUsername adds the username to the post users username SSH keys params
func (*PostUsersUsernameSSHKeysParams) WriteToRequest ¶
func (o *PostUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *PutUsersUsernameSSHKeysBadRequest) Error() string
func (*PutUsersUsernameSSHKeysBadRequest) GetPayload ¶
func (o *PutUsersUsernameSSHKeysBadRequest) GetPayload() *models.Error
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 ¶
func (o *PutUsersUsernameSSHKeysForbidden) Error() string
type PutUsersUsernameSSHKeysNotFound ¶
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 (o *PutUsersUsernameSSHKeysNotFound) Error() string
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 ¶
func (o *PutUsersUsernameSSHKeysOK) GetPayload() *models.SSHAccountKey
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 ¶
func (o *PutUsersUsernameSSHKeysParams) SetBody(body *models.SSHAccountKey)
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 ¶
func (o *PutUsersUsernameSSHKeysParams) WithBody(body *models.SSHAccountKey) *PutUsersUsernameSSHKeysParams
WithBody adds the body to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WithContext ¶
func (o *PutUsersUsernameSSHKeysParams) WithContext(ctx context.Context) *PutUsersUsernameSSHKeysParams
WithContext adds the context to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WithHTTPClient ¶
func (o *PutUsersUsernameSSHKeysParams) WithHTTPClient(client *http.Client) *PutUsersUsernameSSHKeysParams
WithHTTPClient adds the HTTPClient to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WithKeyID ¶
func (o *PutUsersUsernameSSHKeysParams) WithKeyID(keyID string) *PutUsersUsernameSSHKeysParams
WithKeyID adds the keyID to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WithTimeout ¶
func (o *PutUsersUsernameSSHKeysParams) WithTimeout(timeout time.Duration) *PutUsersUsernameSSHKeysParams
WithTimeout adds the timeout to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WithUsername ¶
func (o *PutUsersUsernameSSHKeysParams) WithUsername(username string) *PutUsersUsernameSSHKeysParams
WithUsername adds the username to the put users username SSH keys params
func (*PutUsersUsernameSSHKeysParams) WriteToRequest ¶
func (o *PutUsersUsernameSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- delete_users_username_ssh_keys_parameters.go
- delete_users_username_ssh_keys_responses.go
- get_users_username_ssh_keys_parameters.go
- get_users_username_ssh_keys_responses.go
- post_users_username_ssh_keys_parameters.go
- post_users_username_ssh_keys_responses.go
- put_users_username_ssh_keys_parameters.go
- put_users_username_ssh_keys_responses.go
- ssh_client.go