Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) DeleteProjectSSHKey(params *DeleteProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProjectSSHKeyOK, error)
- func (a *Client) GetProjectSSHKey(params *GetProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectSSHKeyOK, error)
- func (a *Client) GetProjectSSHKeys(params *GetProjectSSHKeysParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectSSHKeysOK, error)
- func (a *Client) PostProjectSSHKey(params *PostProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostProjectSSHKeyCreated, error)
- func (a *Client) PutProjectSSHKey(params *PutProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutProjectSSHKeyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteProjectSSHKeyOK
- func (o *DeleteProjectSSHKeyOK) Code() int
- func (o *DeleteProjectSSHKeyOK) Error() string
- func (o *DeleteProjectSSHKeyOK) IsClientError() bool
- func (o *DeleteProjectSSHKeyOK) IsCode(code int) bool
- func (o *DeleteProjectSSHKeyOK) IsRedirect() bool
- func (o *DeleteProjectSSHKeyOK) IsServerError() bool
- func (o *DeleteProjectSSHKeyOK) IsSuccess() bool
- func (o *DeleteProjectSSHKeyOK) Render()
- func (o *DeleteProjectSSHKeyOK) String() string
- type DeleteProjectSSHKeyParams
- func NewDeleteProjectSSHKeyParams() *DeleteProjectSSHKeyParams
- func NewDeleteProjectSSHKeyParamsWithContext(ctx context.Context) *DeleteProjectSSHKeyParams
- func NewDeleteProjectSSHKeyParamsWithHTTPClient(client *http.Client) *DeleteProjectSSHKeyParams
- func NewDeleteProjectSSHKeyParamsWithTimeout(timeout time.Duration) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) SetContext(ctx context.Context)
- func (o *DeleteProjectSSHKeyParams) SetDefaults()
- func (o *DeleteProjectSSHKeyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
- func (o *DeleteProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
- func (o *DeleteProjectSSHKeyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectSSHKeyParams) WithContext(ctx context.Context) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WithDefaults() *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WithHTTPClient(client *http.Client) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WithTimeout(timeout time.Duration) *DeleteProjectSSHKeyParams
- func (o *DeleteProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectSSHKeyReader
- type GetProjectSSHKeyOK
- func (o *GetProjectSSHKeyOK) Code() int
- func (o *GetProjectSSHKeyOK) Error() string
- func (o *GetProjectSSHKeyOK) GetData() []renderer.ResponseData
- func (o *GetProjectSSHKeyOK) GetPayload() *GetProjectSSHKeyOKBody
- func (o *GetProjectSSHKeyOK) IsClientError() bool
- func (o *GetProjectSSHKeyOK) IsCode(code int) bool
- func (o *GetProjectSSHKeyOK) IsRedirect() bool
- func (o *GetProjectSSHKeyOK) IsServerError() bool
- func (o *GetProjectSSHKeyOK) IsSuccess() bool
- func (o *GetProjectSSHKeyOK) String() string
- type GetProjectSSHKeyOKBody
- func (o *GetProjectSSHKeyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetProjectSSHKeyOKBody) MarshalBinary() ([]byte, error)
- func (o *GetProjectSSHKeyOKBody) UnmarshalBinary(b []byte) error
- func (o *GetProjectSSHKeyOKBody) Validate(formats strfmt.Registry) error
- type GetProjectSSHKeyParams
- func NewGetProjectSSHKeyParams() *GetProjectSSHKeyParams
- func NewGetProjectSSHKeyParamsWithContext(ctx context.Context) *GetProjectSSHKeyParams
- func NewGetProjectSSHKeyParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeyParams
- func NewGetProjectSSHKeyParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) SetContext(ctx context.Context)
- func (o *GetProjectSSHKeyParams) SetDefaults()
- func (o *GetProjectSSHKeyParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
- func (o *GetProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
- func (o *GetProjectSSHKeyParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectSSHKeyParams) WithContext(ctx context.Context) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WithDefaults() *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WithHTTPClient(client *http.Client) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WithTimeout(timeout time.Duration) *GetProjectSSHKeyParams
- func (o *GetProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectSSHKeyReader
- type GetProjectSSHKeysOK
- func (o *GetProjectSSHKeysOK) Code() int
- func (o *GetProjectSSHKeysOK) Error() string
- func (o *GetProjectSSHKeysOK) GetData() []renderer.ResponseData
- func (o *GetProjectSSHKeysOK) GetPayload() *models.SSHKey
- func (o *GetProjectSSHKeysOK) IsClientError() bool
- func (o *GetProjectSSHKeysOK) IsCode(code int) bool
- func (o *GetProjectSSHKeysOK) IsRedirect() bool
- func (o *GetProjectSSHKeysOK) IsServerError() bool
- func (o *GetProjectSSHKeysOK) IsSuccess() bool
- func (o *GetProjectSSHKeysOK) String() string
- type GetProjectSSHKeysParams
- func NewGetProjectSSHKeysParams() *GetProjectSSHKeysParams
- func NewGetProjectSSHKeysParamsWithContext(ctx context.Context) *GetProjectSSHKeysParams
- func NewGetProjectSSHKeysParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeysParams
- func NewGetProjectSSHKeysParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) SetContext(ctx context.Context)
- func (o *GetProjectSSHKeysParams) SetDefaults()
- func (o *GetProjectSSHKeysParams) SetFilterTags(filterTags *string)
- func (o *GetProjectSSHKeysParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectSSHKeysParams) SetProjectIDOrSlug(projectIDOrSlug string)
- func (o *GetProjectSSHKeysParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectSSHKeysParams) WithContext(ctx context.Context) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WithDefaults() *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WithFilterTags(filterTags *string) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WithHTTPClient(client *http.Client) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WithTimeout(timeout time.Duration) *GetProjectSSHKeysParams
- func (o *GetProjectSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectSSHKeysReader
- type PostProjectSSHKeyBody
- type PostProjectSSHKeyCreated
- func (o *PostProjectSSHKeyCreated) Code() int
- func (o *PostProjectSSHKeyCreated) Error() string
- func (o *PostProjectSSHKeyCreated) GetData() []renderer.ResponseData
- func (o *PostProjectSSHKeyCreated) GetPayload() *PostProjectSSHKeyCreatedBody
- func (o *PostProjectSSHKeyCreated) IsClientError() bool
- func (o *PostProjectSSHKeyCreated) IsCode(code int) bool
- func (o *PostProjectSSHKeyCreated) IsRedirect() bool
- func (o *PostProjectSSHKeyCreated) IsServerError() bool
- func (o *PostProjectSSHKeyCreated) IsSuccess() bool
- func (o *PostProjectSSHKeyCreated) String() string
- type PostProjectSSHKeyCreatedBody
- func (o *PostProjectSSHKeyCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostProjectSSHKeyCreatedBody) MarshalBinary() ([]byte, error)
- func (o *PostProjectSSHKeyCreatedBody) UnmarshalBinary(b []byte) error
- func (o *PostProjectSSHKeyCreatedBody) Validate(formats strfmt.Registry) error
- type PostProjectSSHKeyParams
- func NewPostProjectSSHKeyParams() *PostProjectSSHKeyParams
- func NewPostProjectSSHKeyParamsWithContext(ctx context.Context) *PostProjectSSHKeyParams
- func NewPostProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PostProjectSSHKeyParams
- func NewPostProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) SetBody(body PostProjectSSHKeyBody)
- func (o *PostProjectSSHKeyParams) SetContext(ctx context.Context)
- func (o *PostProjectSSHKeyParams) SetDefaults()
- func (o *PostProjectSSHKeyParams) SetHTTPClient(client *http.Client)
- func (o *PostProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
- func (o *PostProjectSSHKeyParams) SetTimeout(timeout time.Duration)
- func (o *PostProjectSSHKeyParams) WithBody(body PostProjectSSHKeyBody) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WithContext(ctx context.Context) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WithDefaults() *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WithHTTPClient(client *http.Client) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WithTimeout(timeout time.Duration) *PostProjectSSHKeyParams
- func (o *PostProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostProjectSSHKeyParamsBodyData
- func (o *PostProjectSSHKeyParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostProjectSSHKeyParamsBodyData) MarshalBinary() ([]byte, error)
- func (o *PostProjectSSHKeyParamsBodyData) UnmarshalBinary(b []byte) error
- func (o *PostProjectSSHKeyParamsBodyData) Validate(formats strfmt.Registry) error
- type PostProjectSSHKeyParamsBodyDataAttributes
- func (o *PostProjectSSHKeyParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostProjectSSHKeyParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
- func (o *PostProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
- func (o *PostProjectSSHKeyParamsBodyDataAttributes) Validate(formats strfmt.Registry) error
- type PostProjectSSHKeyReader
- type PutProjectSSHKeyBody
- type PutProjectSSHKeyOK
- func (o *PutProjectSSHKeyOK) Code() int
- func (o *PutProjectSSHKeyOK) Error() string
- func (o *PutProjectSSHKeyOK) GetData() []renderer.ResponseData
- func (o *PutProjectSSHKeyOK) GetPayload() *PutProjectSSHKeyOKBody
- func (o *PutProjectSSHKeyOK) IsClientError() bool
- func (o *PutProjectSSHKeyOK) IsCode(code int) bool
- func (o *PutProjectSSHKeyOK) IsRedirect() bool
- func (o *PutProjectSSHKeyOK) IsServerError() bool
- func (o *PutProjectSSHKeyOK) IsSuccess() bool
- func (o *PutProjectSSHKeyOK) String() string
- type PutProjectSSHKeyOKBody
- func (o *PutProjectSSHKeyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PutProjectSSHKeyOKBody) MarshalBinary() ([]byte, error)
- func (o *PutProjectSSHKeyOKBody) UnmarshalBinary(b []byte) error
- func (o *PutProjectSSHKeyOKBody) Validate(formats strfmt.Registry) error
- type PutProjectSSHKeyParams
- func NewPutProjectSSHKeyParams() *PutProjectSSHKeyParams
- func NewPutProjectSSHKeyParamsWithContext(ctx context.Context) *PutProjectSSHKeyParams
- func NewPutProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PutProjectSSHKeyParams
- func NewPutProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) SetBody(body PutProjectSSHKeyBody)
- func (o *PutProjectSSHKeyParams) SetContext(ctx context.Context)
- func (o *PutProjectSSHKeyParams) SetDefaults()
- func (o *PutProjectSSHKeyParams) SetHTTPClient(client *http.Client)
- func (o *PutProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
- func (o *PutProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
- func (o *PutProjectSSHKeyParams) SetTimeout(timeout time.Duration)
- func (o *PutProjectSSHKeyParams) WithBody(body PutProjectSSHKeyBody) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithContext(ctx context.Context) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithDefaults() *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithHTTPClient(client *http.Client) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WithTimeout(timeout time.Duration) *PutProjectSSHKeyParams
- func (o *PutProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutProjectSSHKeyParamsBodyData
- func (o *PutProjectSSHKeyParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PutProjectSSHKeyParamsBodyData) MarshalBinary() ([]byte, error)
- func (o *PutProjectSSHKeyParamsBodyData) UnmarshalBinary(b []byte) error
- func (o *PutProjectSSHKeyParamsBodyData) Validate(formats strfmt.Registry) error
- type PutProjectSSHKeyParamsBodyDataAttributes
- func (o *PutProjectSSHKeyParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PutProjectSSHKeyParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
- func (o *PutProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
- func (o *PutProjectSSHKeyParamsBodyDataAttributes) Validate(formats strfmt.Registry) error
- type PutProjectSSHKeyReader
Constants ¶
const ( // PostProjectSSHKeyParamsBodyDataTypeSSHKeys captures enum value "ssh_keys" PostProjectSSHKeyParamsBodyDataTypeSSHKeys string = "ssh_keys" )
const ( // PutProjectSSHKeyParamsBodyDataTypeSSHKeys captures enum value "ssh_keys" PutProjectSSHKeyParamsBodyDataTypeSSHKeys string = "ssh_keys" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for ssh keys API
func (*Client) DeleteProjectSSHKey ¶
func (a *Client) DeleteProjectSSHKey(params *DeleteProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectSSHKeyOK, error)
DeleteProjectSSHKey deletes a project SSH key
Allow you remove SSH Keys in a project. Remove a SSH Key from the project won't revoke the SSH Keys access for previously deploy and reinstall actions.
func (*Client) GetProjectSSHKey ¶
func (a *Client) GetProjectSSHKey(params *GetProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeyOK, error)
GetProjectSSHKey retrieves a project SSH key
List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.
func (*Client) GetProjectSSHKeys ¶
func (a *Client) GetProjectSSHKeys(params *GetProjectSSHKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeysOK, error)
GetProjectSSHKeys lists all project SSH keys
List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.
func (*Client) PostProjectSSHKey ¶
func (a *Client) PostProjectSSHKey(params *PostProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostProjectSSHKeyCreated, error)
PostProjectSSHKey creates a project SSH key
Allow you create SSH Keys in a project. These keys can be used to access servers after deploy and reinstall actions.
func (*Client) PutProjectSSHKey ¶
func (a *Client) PutProjectSSHKey(params *PutProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutProjectSSHKeyOK, error)
PutProjectSSHKey updates a project SSH key
Allow you update SSH Key in a project. These keys can be used to access servers after deploy and reinstall actions.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
DeleteProjectSSHKey(params *DeleteProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectSSHKeyOK, error)
GetProjectSSHKey(params *GetProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeyOK, error)
GetProjectSSHKeys(params *GetProjectSSHKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeysOK, error)
PostProjectSSHKey(params *PostProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostProjectSSHKeyCreated, error)
PutProjectSSHKey(params *PutProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutProjectSSHKeyOK, 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 keys API client.
type DeleteProjectSSHKeyOK ¶
type DeleteProjectSSHKeyOK struct {
}
DeleteProjectSSHKeyOK describes a response with status code 200, with default header values.
Success
func NewDeleteProjectSSHKeyOK ¶
func NewDeleteProjectSSHKeyOK() *DeleteProjectSSHKeyOK
NewDeleteProjectSSHKeyOK creates a DeleteProjectSSHKeyOK with default headers values
func (*DeleteProjectSSHKeyOK) Code ¶
func (o *DeleteProjectSSHKeyOK) Code() int
Code gets the status code for the delete project Ssh key o k response
func (*DeleteProjectSSHKeyOK) Error ¶
func (o *DeleteProjectSSHKeyOK) Error() string
func (*DeleteProjectSSHKeyOK) IsClientError ¶
func (o *DeleteProjectSSHKeyOK) IsClientError() bool
IsClientError returns true when this delete project Ssh key o k response has a 4xx status code
func (*DeleteProjectSSHKeyOK) IsCode ¶
func (o *DeleteProjectSSHKeyOK) IsCode(code int) bool
IsCode returns true when this delete project Ssh key o k response a status code equal to that given
func (*DeleteProjectSSHKeyOK) IsRedirect ¶
func (o *DeleteProjectSSHKeyOK) IsRedirect() bool
IsRedirect returns true when this delete project Ssh key o k response has a 3xx status code
func (*DeleteProjectSSHKeyOK) IsServerError ¶
func (o *DeleteProjectSSHKeyOK) IsServerError() bool
IsServerError returns true when this delete project Ssh key o k response has a 5xx status code
func (*DeleteProjectSSHKeyOK) IsSuccess ¶
func (o *DeleteProjectSSHKeyOK) IsSuccess() bool
IsSuccess returns true when this delete project Ssh key o k response has a 2xx status code
func (*DeleteProjectSSHKeyOK) Render ¶
func (o *DeleteProjectSSHKeyOK) Render()
func (*DeleteProjectSSHKeyOK) String ¶
func (o *DeleteProjectSSHKeyOK) String() string
type DeleteProjectSSHKeyParams ¶
type DeleteProjectSSHKeyParams struct {
ProjectIDOrSlug string `json:"project"`
SSHKeyID string `json:"id"`
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteProjectSSHKeyParams contains all the parameters to send to the API endpoint
for the delete project ssh key operation. Typically these are written to a http.Request.
func NewDeleteProjectSSHKeyParams ¶
func NewDeleteProjectSSHKeyParams() *DeleteProjectSSHKeyParams
NewDeleteProjectSSHKeyParams creates a new DeleteProjectSSHKeyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteProjectSSHKeyParamsWithContext ¶
func NewDeleteProjectSSHKeyParamsWithContext(ctx context.Context) *DeleteProjectSSHKeyParams
NewDeleteProjectSSHKeyParamsWithContext creates a new DeleteProjectSSHKeyParams object with the ability to set a context for a request.
func NewDeleteProjectSSHKeyParamsWithHTTPClient ¶
func NewDeleteProjectSSHKeyParamsWithHTTPClient(client *http.Client) *DeleteProjectSSHKeyParams
NewDeleteProjectSSHKeyParamsWithHTTPClient creates a new DeleteProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteProjectSSHKeyParamsWithTimeout ¶
func NewDeleteProjectSSHKeyParamsWithTimeout(timeout time.Duration) *DeleteProjectSSHKeyParams
NewDeleteProjectSSHKeyParamsWithTimeout creates a new DeleteProjectSSHKeyParams object with the ability to set a timeout on a request.
func (*DeleteProjectSSHKeyParams) SetContext ¶
func (o *DeleteProjectSSHKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) SetDefaults ¶
func (o *DeleteProjectSSHKeyParams) SetDefaults()
SetDefaults hydrates default values in the delete project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProjectSSHKeyParams) SetHTTPClient ¶
func (o *DeleteProjectSSHKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) SetProjectIDOrSlug ¶
func (o *DeleteProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
SetProjectIDOrSlug adds the projectIdOrSlug to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) SetSSHKeyID ¶
func (o *DeleteProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
SetSSHKeyID adds the sshKeyId to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) SetTimeout ¶
func (o *DeleteProjectSSHKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WithContext ¶
func (o *DeleteProjectSSHKeyParams) WithContext(ctx context.Context) *DeleteProjectSSHKeyParams
WithContext adds the context to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WithDefaults ¶
func (o *DeleteProjectSSHKeyParams) WithDefaults() *DeleteProjectSSHKeyParams
WithDefaults hydrates default values in the delete project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProjectSSHKeyParams) WithHTTPClient ¶
func (o *DeleteProjectSSHKeyParams) WithHTTPClient(client *http.Client) *DeleteProjectSSHKeyParams
WithHTTPClient adds the HTTPClient to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WithProjectIDOrSlug ¶
func (o *DeleteProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *DeleteProjectSSHKeyParams
WithProjectIDOrSlug adds the projectIDOrSlug to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WithSSHKeyID ¶
func (o *DeleteProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *DeleteProjectSSHKeyParams
WithSSHKeyID adds the sSHKeyID to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WithTimeout ¶
func (o *DeleteProjectSSHKeyParams) WithTimeout(timeout time.Duration) *DeleteProjectSSHKeyParams
WithTimeout adds the timeout to the delete project ssh key params
func (*DeleteProjectSSHKeyParams) WriteToRequest ¶
func (o *DeleteProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProjectSSHKeyReader ¶
type DeleteProjectSSHKeyReader struct {
// contains filtered or unexported fields
}
DeleteProjectSSHKeyReader is a Reader for the DeleteProjectSSHKey structure.
func (*DeleteProjectSSHKeyReader) ReadResponse ¶
func (o *DeleteProjectSSHKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectSSHKeyOK ¶
type GetProjectSSHKeyOK struct {
Payload *GetProjectSSHKeyOKBody
}
GetProjectSSHKeyOK describes a response with status code 200, with default header values.
Success
func NewGetProjectSSHKeyOK ¶
func NewGetProjectSSHKeyOK() *GetProjectSSHKeyOK
NewGetProjectSSHKeyOK creates a GetProjectSSHKeyOK with default headers values
func (*GetProjectSSHKeyOK) Code ¶
func (o *GetProjectSSHKeyOK) Code() int
Code gets the status code for the get project Ssh key o k response
func (*GetProjectSSHKeyOK) Error ¶
func (o *GetProjectSSHKeyOK) Error() string
func (*GetProjectSSHKeyOK) GetData ¶
func (o *GetProjectSSHKeyOK) GetData() []renderer.ResponseData
func (*GetProjectSSHKeyOK) GetPayload ¶
func (o *GetProjectSSHKeyOK) GetPayload() *GetProjectSSHKeyOKBody
func (*GetProjectSSHKeyOK) IsClientError ¶
func (o *GetProjectSSHKeyOK) IsClientError() bool
IsClientError returns true when this get project Ssh key o k response has a 4xx status code
func (*GetProjectSSHKeyOK) IsCode ¶
func (o *GetProjectSSHKeyOK) IsCode(code int) bool
IsCode returns true when this get project Ssh key o k response a status code equal to that given
func (*GetProjectSSHKeyOK) IsRedirect ¶
func (o *GetProjectSSHKeyOK) IsRedirect() bool
IsRedirect returns true when this get project Ssh key o k response has a 3xx status code
func (*GetProjectSSHKeyOK) IsServerError ¶
func (o *GetProjectSSHKeyOK) IsServerError() bool
IsServerError returns true when this get project Ssh key o k response has a 5xx status code
func (*GetProjectSSHKeyOK) IsSuccess ¶
func (o *GetProjectSSHKeyOK) IsSuccess() bool
IsSuccess returns true when this get project Ssh key o k response has a 2xx status code
func (*GetProjectSSHKeyOK) String ¶
func (o *GetProjectSSHKeyOK) String() string
type GetProjectSSHKeyOKBody ¶
type GetProjectSSHKeyOKBody struct {
// data
Data *models.SSHKeyData `json:"data,omitempty"`
}
GetProjectSSHKeyOKBody get project SSH key o k body swagger:model GetProjectSSHKeyOKBody
func (*GetProjectSSHKeyOKBody) ContextValidate ¶
func (o *GetProjectSSHKeyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get project SSH key o k body based on the context it is used
func (*GetProjectSSHKeyOKBody) MarshalBinary ¶
func (o *GetProjectSSHKeyOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetProjectSSHKeyOKBody) UnmarshalBinary ¶
func (o *GetProjectSSHKeyOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetProjectSSHKeyParams ¶
type GetProjectSSHKeyParams struct {
// ProjectIDOrSlug.
ProjectIDOrSlug string
// SSHKeyID.
SSHKeyID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetProjectSSHKeyParams contains all the parameters to send to the API endpoint
for the get project ssh key operation. Typically these are written to a http.Request.
func NewGetProjectSSHKeyParams ¶
func NewGetProjectSSHKeyParams() *GetProjectSSHKeyParams
NewGetProjectSSHKeyParams creates a new GetProjectSSHKeyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetProjectSSHKeyParamsWithContext ¶
func NewGetProjectSSHKeyParamsWithContext(ctx context.Context) *GetProjectSSHKeyParams
NewGetProjectSSHKeyParamsWithContext creates a new GetProjectSSHKeyParams object with the ability to set a context for a request.
func NewGetProjectSSHKeyParamsWithHTTPClient ¶
func NewGetProjectSSHKeyParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeyParams
NewGetProjectSSHKeyParamsWithHTTPClient creates a new GetProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectSSHKeyParamsWithTimeout ¶
func NewGetProjectSSHKeyParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeyParams
NewGetProjectSSHKeyParamsWithTimeout creates a new GetProjectSSHKeyParams object with the ability to set a timeout on a request.
func (*GetProjectSSHKeyParams) SetContext ¶
func (o *GetProjectSSHKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the get project ssh key params
func (*GetProjectSSHKeyParams) SetDefaults ¶
func (o *GetProjectSSHKeyParams) SetDefaults()
SetDefaults hydrates default values in the get project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectSSHKeyParams) SetHTTPClient ¶
func (o *GetProjectSSHKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project ssh key params
func (*GetProjectSSHKeyParams) SetProjectIDOrSlug ¶
func (o *GetProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
SetProjectIDOrSlug adds the projectIdOrSlug to the get project ssh key params
func (*GetProjectSSHKeyParams) SetSSHKeyID ¶
func (o *GetProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
SetSSHKeyID adds the sshKeyId to the get project ssh key params
func (*GetProjectSSHKeyParams) SetTimeout ¶
func (o *GetProjectSSHKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project ssh key params
func (*GetProjectSSHKeyParams) WithContext ¶
func (o *GetProjectSSHKeyParams) WithContext(ctx context.Context) *GetProjectSSHKeyParams
WithContext adds the context to the get project ssh key params
func (*GetProjectSSHKeyParams) WithDefaults ¶
func (o *GetProjectSSHKeyParams) WithDefaults() *GetProjectSSHKeyParams
WithDefaults hydrates default values in the get project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectSSHKeyParams) WithHTTPClient ¶
func (o *GetProjectSSHKeyParams) WithHTTPClient(client *http.Client) *GetProjectSSHKeyParams
WithHTTPClient adds the HTTPClient to the get project ssh key params
func (*GetProjectSSHKeyParams) WithProjectIDOrSlug ¶
func (o *GetProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeyParams
WithProjectIDOrSlug adds the projectIDOrSlug to the get project ssh key params
func (*GetProjectSSHKeyParams) WithSSHKeyID ¶
func (o *GetProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *GetProjectSSHKeyParams
WithSSHKeyID adds the sSHKeyID to the get project ssh key params
func (*GetProjectSSHKeyParams) WithTimeout ¶
func (o *GetProjectSSHKeyParams) WithTimeout(timeout time.Duration) *GetProjectSSHKeyParams
WithTimeout adds the timeout to the get project ssh key params
func (*GetProjectSSHKeyParams) WriteToRequest ¶
func (o *GetProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectSSHKeyReader ¶
type GetProjectSSHKeyReader struct {
// contains filtered or unexported fields
}
GetProjectSSHKeyReader is a Reader for the GetProjectSSHKey structure.
func (*GetProjectSSHKeyReader) ReadResponse ¶
func (o *GetProjectSSHKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectSSHKeysOK ¶
GetProjectSSHKeysOK describes a response with status code 200, with default header values.
Success
func NewGetProjectSSHKeysOK ¶
func NewGetProjectSSHKeysOK() *GetProjectSSHKeysOK
NewGetProjectSSHKeysOK creates a GetProjectSSHKeysOK with default headers values
func (*GetProjectSSHKeysOK) Code ¶
func (o *GetProjectSSHKeysOK) Code() int
Code gets the status code for the get project Ssh keys o k response
func (*GetProjectSSHKeysOK) Error ¶
func (o *GetProjectSSHKeysOK) Error() string
func (*GetProjectSSHKeysOK) GetData ¶
func (o *GetProjectSSHKeysOK) GetData() []renderer.ResponseData
func (*GetProjectSSHKeysOK) GetPayload ¶
func (o *GetProjectSSHKeysOK) GetPayload() *models.SSHKey
func (*GetProjectSSHKeysOK) IsClientError ¶
func (o *GetProjectSSHKeysOK) IsClientError() bool
IsClientError returns true when this get project Ssh keys o k response has a 4xx status code
func (*GetProjectSSHKeysOK) IsCode ¶
func (o *GetProjectSSHKeysOK) IsCode(code int) bool
IsCode returns true when this get project Ssh keys o k response a status code equal to that given
func (*GetProjectSSHKeysOK) IsRedirect ¶
func (o *GetProjectSSHKeysOK) IsRedirect() bool
IsRedirect returns true when this get project Ssh keys o k response has a 3xx status code
func (*GetProjectSSHKeysOK) IsServerError ¶
func (o *GetProjectSSHKeysOK) IsServerError() bool
IsServerError returns true when this get project Ssh keys o k response has a 5xx status code
func (*GetProjectSSHKeysOK) IsSuccess ¶
func (o *GetProjectSSHKeysOK) IsSuccess() bool
IsSuccess returns true when this get project Ssh keys o k response has a 2xx status code
func (*GetProjectSSHKeysOK) String ¶
func (o *GetProjectSSHKeysOK) String() string
type GetProjectSSHKeysParams ¶
type GetProjectSSHKeysParams struct {
// ProjectIDOrSlug.
ProjectIDOrSlug string
FilterTags *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetProjectSSHKeysParams contains all the parameters to send to the API endpoint
for the get project ssh keys operation. Typically these are written to a http.Request.
func NewGetProjectSSHKeysParams ¶
func NewGetProjectSSHKeysParams() *GetProjectSSHKeysParams
NewGetProjectSSHKeysParams creates a new GetProjectSSHKeysParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetProjectSSHKeysParamsWithContext ¶
func NewGetProjectSSHKeysParamsWithContext(ctx context.Context) *GetProjectSSHKeysParams
NewGetProjectSSHKeysParamsWithContext creates a new GetProjectSSHKeysParams object with the ability to set a context for a request.
func NewGetProjectSSHKeysParamsWithHTTPClient ¶
func NewGetProjectSSHKeysParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeysParams
NewGetProjectSSHKeysParamsWithHTTPClient creates a new GetProjectSSHKeysParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectSSHKeysParamsWithTimeout ¶
func NewGetProjectSSHKeysParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeysParams
NewGetProjectSSHKeysParamsWithTimeout creates a new GetProjectSSHKeysParams object with the ability to set a timeout on a request.
func (*GetProjectSSHKeysParams) SetContext ¶
func (o *GetProjectSSHKeysParams) SetContext(ctx context.Context)
SetContext adds the context to the get project ssh keys params
func (*GetProjectSSHKeysParams) SetDefaults ¶
func (o *GetProjectSSHKeysParams) SetDefaults()
SetDefaults hydrates default values in the get project ssh keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectSSHKeysParams) SetFilterTags ¶
func (o *GetProjectSSHKeysParams) SetFilterTags(filterTags *string)
func (*GetProjectSSHKeysParams) SetHTTPClient ¶
func (o *GetProjectSSHKeysParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project ssh keys params
func (*GetProjectSSHKeysParams) SetProjectIDOrSlug ¶
func (o *GetProjectSSHKeysParams) SetProjectIDOrSlug(projectIDOrSlug string)
SetProjectIDOrSlug adds the projectIdOrSlug to the get project ssh keys params
func (*GetProjectSSHKeysParams) SetTimeout ¶
func (o *GetProjectSSHKeysParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project ssh keys params
func (*GetProjectSSHKeysParams) WithContext ¶
func (o *GetProjectSSHKeysParams) WithContext(ctx context.Context) *GetProjectSSHKeysParams
WithContext adds the context to the get project ssh keys params
func (*GetProjectSSHKeysParams) WithDefaults ¶
func (o *GetProjectSSHKeysParams) WithDefaults() *GetProjectSSHKeysParams
WithDefaults hydrates default values in the get project ssh keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectSSHKeysParams) WithFilterTags ¶
func (o *GetProjectSSHKeysParams) WithFilterTags(filterTags *string) *GetProjectSSHKeysParams
func (*GetProjectSSHKeysParams) WithHTTPClient ¶
func (o *GetProjectSSHKeysParams) WithHTTPClient(client *http.Client) *GetProjectSSHKeysParams
WithHTTPClient adds the HTTPClient to the get project ssh keys params
func (*GetProjectSSHKeysParams) WithProjectIDOrSlug ¶
func (o *GetProjectSSHKeysParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeysParams
WithProjectIDOrSlug adds the projectIDOrSlug to the get project ssh keys params
func (*GetProjectSSHKeysParams) WithTimeout ¶
func (o *GetProjectSSHKeysParams) WithTimeout(timeout time.Duration) *GetProjectSSHKeysParams
WithTimeout adds the timeout to the get project ssh keys params
func (*GetProjectSSHKeysParams) WriteToRequest ¶
func (o *GetProjectSSHKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectSSHKeysReader ¶
type GetProjectSSHKeysReader struct {
// contains filtered or unexported fields
}
GetProjectSSHKeysReader is a Reader for the GetProjectSSHKeys structure.
func (*GetProjectSSHKeysReader) ReadResponse ¶
func (o *GetProjectSSHKeysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostProjectSSHKeyBody ¶
type PostProjectSSHKeyBody struct {
// data
// Required: true
Data *PostProjectSSHKeyParamsBodyData `json:"data"`
}
PostProjectSSHKeyBody post project SSH key body swagger:model PostProjectSSHKeyBody
func (*PostProjectSSHKeyBody) ContextValidate ¶
ContextValidate validate this post project SSH key body based on the context it is used
func (*PostProjectSSHKeyBody) MarshalBinary ¶
func (o *PostProjectSSHKeyBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostProjectSSHKeyBody) UnmarshalBinary ¶
func (o *PostProjectSSHKeyBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostProjectSSHKeyCreated ¶
type PostProjectSSHKeyCreated struct {
Payload *PostProjectSSHKeyCreatedBody
}
PostProjectSSHKeyCreated describes a response with status code 201, with default header values.
Created
func NewPostProjectSSHKeyCreated ¶
func NewPostProjectSSHKeyCreated() *PostProjectSSHKeyCreated
NewPostProjectSSHKeyCreated creates a PostProjectSSHKeyCreated with default headers values
func (*PostProjectSSHKeyCreated) Code ¶
func (o *PostProjectSSHKeyCreated) Code() int
Code gets the status code for the post project Ssh key created response
func (*PostProjectSSHKeyCreated) Error ¶
func (o *PostProjectSSHKeyCreated) Error() string
func (*PostProjectSSHKeyCreated) GetData ¶
func (o *PostProjectSSHKeyCreated) GetData() []renderer.ResponseData
func (*PostProjectSSHKeyCreated) GetPayload ¶
func (o *PostProjectSSHKeyCreated) GetPayload() *PostProjectSSHKeyCreatedBody
func (*PostProjectSSHKeyCreated) IsClientError ¶
func (o *PostProjectSSHKeyCreated) IsClientError() bool
IsClientError returns true when this post project Ssh key created response has a 4xx status code
func (*PostProjectSSHKeyCreated) IsCode ¶
func (o *PostProjectSSHKeyCreated) IsCode(code int) bool
IsCode returns true when this post project Ssh key created response a status code equal to that given
func (*PostProjectSSHKeyCreated) IsRedirect ¶
func (o *PostProjectSSHKeyCreated) IsRedirect() bool
IsRedirect returns true when this post project Ssh key created response has a 3xx status code
func (*PostProjectSSHKeyCreated) IsServerError ¶
func (o *PostProjectSSHKeyCreated) IsServerError() bool
IsServerError returns true when this post project Ssh key created response has a 5xx status code
func (*PostProjectSSHKeyCreated) IsSuccess ¶
func (o *PostProjectSSHKeyCreated) IsSuccess() bool
IsSuccess returns true when this post project Ssh key created response has a 2xx status code
func (*PostProjectSSHKeyCreated) String ¶
func (o *PostProjectSSHKeyCreated) String() string
type PostProjectSSHKeyCreatedBody ¶
type PostProjectSSHKeyCreatedBody struct {
// data
Data *models.SSHKeyData `json:"data,omitempty"`
}
PostProjectSSHKeyCreatedBody post project SSH key created body swagger:model PostProjectSSHKeyCreatedBody
func (*PostProjectSSHKeyCreatedBody) ContextValidate ¶
func (o *PostProjectSSHKeyCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post project SSH key created body based on the context it is used
func (*PostProjectSSHKeyCreatedBody) MarshalBinary ¶
func (o *PostProjectSSHKeyCreatedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostProjectSSHKeyCreatedBody) UnmarshalBinary ¶
func (o *PostProjectSSHKeyCreatedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostProjectSSHKeyParams ¶
type PostProjectSSHKeyParams struct {
// Body.
Body PostProjectSSHKeyBody
// ProjectIDOrSlug.
ProjectIDOrSlug string `json:"project"`
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostProjectSSHKeyParams contains all the parameters to send to the API endpoint
for the post project ssh key operation. Typically these are written to a http.Request.
func NewPostProjectSSHKeyParams ¶
func NewPostProjectSSHKeyParams() *PostProjectSSHKeyParams
NewPostProjectSSHKeyParams creates a new PostProjectSSHKeyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostProjectSSHKeyParamsWithContext ¶
func NewPostProjectSSHKeyParamsWithContext(ctx context.Context) *PostProjectSSHKeyParams
NewPostProjectSSHKeyParamsWithContext creates a new PostProjectSSHKeyParams object with the ability to set a context for a request.
func NewPostProjectSSHKeyParamsWithHTTPClient ¶
func NewPostProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PostProjectSSHKeyParams
NewPostProjectSSHKeyParamsWithHTTPClient creates a new PostProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.
func NewPostProjectSSHKeyParamsWithTimeout ¶
func NewPostProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PostProjectSSHKeyParams
NewPostProjectSSHKeyParamsWithTimeout creates a new PostProjectSSHKeyParams object with the ability to set a timeout on a request.
func (*PostProjectSSHKeyParams) SetBody ¶
func (o *PostProjectSSHKeyParams) SetBody(body PostProjectSSHKeyBody)
SetBody adds the body to the post project ssh key params
func (*PostProjectSSHKeyParams) SetContext ¶
func (o *PostProjectSSHKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the post project ssh key params
func (*PostProjectSSHKeyParams) SetDefaults ¶
func (o *PostProjectSSHKeyParams) SetDefaults()
SetDefaults hydrates default values in the post project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*PostProjectSSHKeyParams) SetHTTPClient ¶
func (o *PostProjectSSHKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post project ssh key params
func (*PostProjectSSHKeyParams) SetProjectIDOrSlug ¶
func (o *PostProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
SetProjectIDOrSlug adds the projectIdOrSlug to the post project ssh key params
func (*PostProjectSSHKeyParams) SetTimeout ¶
func (o *PostProjectSSHKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post project ssh key params
func (*PostProjectSSHKeyParams) WithBody ¶
func (o *PostProjectSSHKeyParams) WithBody(body PostProjectSSHKeyBody) *PostProjectSSHKeyParams
WithBody adds the body to the post project ssh key params
func (*PostProjectSSHKeyParams) WithContext ¶
func (o *PostProjectSSHKeyParams) WithContext(ctx context.Context) *PostProjectSSHKeyParams
WithContext adds the context to the post project ssh key params
func (*PostProjectSSHKeyParams) WithDefaults ¶
func (o *PostProjectSSHKeyParams) WithDefaults() *PostProjectSSHKeyParams
WithDefaults hydrates default values in the post project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*PostProjectSSHKeyParams) WithHTTPClient ¶
func (o *PostProjectSSHKeyParams) WithHTTPClient(client *http.Client) *PostProjectSSHKeyParams
WithHTTPClient adds the HTTPClient to the post project ssh key params
func (*PostProjectSSHKeyParams) WithProjectIDOrSlug ¶
func (o *PostProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PostProjectSSHKeyParams
WithProjectIDOrSlug adds the projectIDOrSlug to the post project ssh key params
func (*PostProjectSSHKeyParams) WithTimeout ¶
func (o *PostProjectSSHKeyParams) WithTimeout(timeout time.Duration) *PostProjectSSHKeyParams
WithTimeout adds the timeout to the post project ssh key params
func (*PostProjectSSHKeyParams) WriteToRequest ¶
func (o *PostProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostProjectSSHKeyParamsBodyData ¶
type PostProjectSSHKeyParamsBodyData struct {
// attributes
Attributes *PostProjectSSHKeyParamsBodyDataAttributes `json:"attributes,omitempty"`
// type
// Required: true
// Enum: [ssh_keys]
Type *string `json:"type"`
}
PostProjectSSHKeyParamsBodyData post project SSH key params body data swagger:model PostProjectSSHKeyParamsBodyData
func (*PostProjectSSHKeyParamsBodyData) ContextValidate ¶
func (o *PostProjectSSHKeyParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post project SSH key params body data based on the context it is used
func (*PostProjectSSHKeyParamsBodyData) MarshalBinary ¶
func (o *PostProjectSSHKeyParamsBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostProjectSSHKeyParamsBodyData) UnmarshalBinary ¶
func (o *PostProjectSSHKeyParamsBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostProjectSSHKeyParamsBodyDataAttributes ¶
type PostProjectSSHKeyParamsBodyDataAttributes struct {
// Name of the SSH Key
Name string `json:"name,omitempty"`
// SSH Public Key
PublicKey string `json:"public_key,omitempty"`
}
PostProjectSSHKeyParamsBodyDataAttributes post project SSH key params body data attributes swagger:model PostProjectSSHKeyParamsBodyDataAttributes
func (*PostProjectSSHKeyParamsBodyDataAttributes) ContextValidate ¶
func (o *PostProjectSSHKeyParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post project SSH key params body data attributes based on context it is used
func (*PostProjectSSHKeyParamsBodyDataAttributes) MarshalBinary ¶
func (o *PostProjectSSHKeyParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary ¶
func (o *PostProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostProjectSSHKeyReader ¶
type PostProjectSSHKeyReader struct {
// contains filtered or unexported fields
}
PostProjectSSHKeyReader is a Reader for the PostProjectSSHKey structure.
func (*PostProjectSSHKeyReader) ReadResponse ¶
func (o *PostProjectSSHKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutProjectSSHKeyBody ¶
type PutProjectSSHKeyBody struct {
// data
// Required: true
Data *PutProjectSSHKeyParamsBodyData `json:"data"`
}
PutProjectSSHKeyBody put project SSH key body swagger:model PutProjectSSHKeyBody
func (*PutProjectSSHKeyBody) ContextValidate ¶
ContextValidate validate this put project SSH key body based on the context it is used
func (*PutProjectSSHKeyBody) MarshalBinary ¶
func (o *PutProjectSSHKeyBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutProjectSSHKeyBody) UnmarshalBinary ¶
func (o *PutProjectSSHKeyBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutProjectSSHKeyOK ¶
type PutProjectSSHKeyOK struct {
Payload *PutProjectSSHKeyOKBody
}
PutProjectSSHKeyOK describes a response with status code 200, with default header values.
Success
func NewPutProjectSSHKeyOK ¶
func NewPutProjectSSHKeyOK() *PutProjectSSHKeyOK
NewPutProjectSSHKeyOK creates a PutProjectSSHKeyOK with default headers values
func (*PutProjectSSHKeyOK) Code ¶
func (o *PutProjectSSHKeyOK) Code() int
Code gets the status code for the put project Ssh key o k response
func (*PutProjectSSHKeyOK) Error ¶
func (o *PutProjectSSHKeyOK) Error() string
func (*PutProjectSSHKeyOK) GetData ¶
func (o *PutProjectSSHKeyOK) GetData() []renderer.ResponseData
func (*PutProjectSSHKeyOK) GetPayload ¶
func (o *PutProjectSSHKeyOK) GetPayload() *PutProjectSSHKeyOKBody
func (*PutProjectSSHKeyOK) IsClientError ¶
func (o *PutProjectSSHKeyOK) IsClientError() bool
IsClientError returns true when this put project Ssh key o k response has a 4xx status code
func (*PutProjectSSHKeyOK) IsCode ¶
func (o *PutProjectSSHKeyOK) IsCode(code int) bool
IsCode returns true when this put project Ssh key o k response a status code equal to that given
func (*PutProjectSSHKeyOK) IsRedirect ¶
func (o *PutProjectSSHKeyOK) IsRedirect() bool
IsRedirect returns true when this put project Ssh key o k response has a 3xx status code
func (*PutProjectSSHKeyOK) IsServerError ¶
func (o *PutProjectSSHKeyOK) IsServerError() bool
IsServerError returns true when this put project Ssh key o k response has a 5xx status code
func (*PutProjectSSHKeyOK) IsSuccess ¶
func (o *PutProjectSSHKeyOK) IsSuccess() bool
IsSuccess returns true when this put project Ssh key o k response has a 2xx status code
func (*PutProjectSSHKeyOK) String ¶
func (o *PutProjectSSHKeyOK) String() string
type PutProjectSSHKeyOKBody ¶
type PutProjectSSHKeyOKBody struct {
// data
Data *models.SSHKeyData `json:"data,omitempty"`
}
PutProjectSSHKeyOKBody put project SSH key o k body swagger:model PutProjectSSHKeyOKBody
func (*PutProjectSSHKeyOKBody) ContextValidate ¶
func (o *PutProjectSSHKeyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put project SSH key o k body based on the context it is used
func (*PutProjectSSHKeyOKBody) MarshalBinary ¶
func (o *PutProjectSSHKeyOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutProjectSSHKeyOKBody) UnmarshalBinary ¶
func (o *PutProjectSSHKeyOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutProjectSSHKeyParams ¶
type PutProjectSSHKeyParams struct {
// Body.
Body PutProjectSSHKeyBody
// ProjectIDOrSlug.
ProjectIDOrSlug string `json:"project"`
// SSHKeyID.
SSHKeyID string `json:"id"`
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PutProjectSSHKeyParams contains all the parameters to send to the API endpoint
for the put project ssh key operation. Typically these are written to a http.Request.
func NewPutProjectSSHKeyParams ¶
func NewPutProjectSSHKeyParams() *PutProjectSSHKeyParams
NewPutProjectSSHKeyParams creates a new PutProjectSSHKeyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPutProjectSSHKeyParamsWithContext ¶
func NewPutProjectSSHKeyParamsWithContext(ctx context.Context) *PutProjectSSHKeyParams
NewPutProjectSSHKeyParamsWithContext creates a new PutProjectSSHKeyParams object with the ability to set a context for a request.
func NewPutProjectSSHKeyParamsWithHTTPClient ¶
func NewPutProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PutProjectSSHKeyParams
NewPutProjectSSHKeyParamsWithHTTPClient creates a new PutProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.
func NewPutProjectSSHKeyParamsWithTimeout ¶
func NewPutProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PutProjectSSHKeyParams
NewPutProjectSSHKeyParamsWithTimeout creates a new PutProjectSSHKeyParams object with the ability to set a timeout on a request.
func (*PutProjectSSHKeyParams) SetBody ¶
func (o *PutProjectSSHKeyParams) SetBody(body PutProjectSSHKeyBody)
SetBody adds the body to the put project ssh key params
func (*PutProjectSSHKeyParams) SetContext ¶
func (o *PutProjectSSHKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the put project ssh key params
func (*PutProjectSSHKeyParams) SetDefaults ¶
func (o *PutProjectSSHKeyParams) SetDefaults()
SetDefaults hydrates default values in the put project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*PutProjectSSHKeyParams) SetHTTPClient ¶
func (o *PutProjectSSHKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put project ssh key params
func (*PutProjectSSHKeyParams) SetProjectIDOrSlug ¶
func (o *PutProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)
SetProjectIDOrSlug adds the projectIdOrSlug to the put project ssh key params
func (*PutProjectSSHKeyParams) SetSSHKeyID ¶
func (o *PutProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)
SetSSHKeyID adds the sshKeyId to the put project ssh key params
func (*PutProjectSSHKeyParams) SetTimeout ¶
func (o *PutProjectSSHKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put project ssh key params
func (*PutProjectSSHKeyParams) WithBody ¶
func (o *PutProjectSSHKeyParams) WithBody(body PutProjectSSHKeyBody) *PutProjectSSHKeyParams
WithBody adds the body to the put project ssh key params
func (*PutProjectSSHKeyParams) WithContext ¶
func (o *PutProjectSSHKeyParams) WithContext(ctx context.Context) *PutProjectSSHKeyParams
WithContext adds the context to the put project ssh key params
func (*PutProjectSSHKeyParams) WithDefaults ¶
func (o *PutProjectSSHKeyParams) WithDefaults() *PutProjectSSHKeyParams
WithDefaults hydrates default values in the put project ssh key params (not the query body).
All values with no default are reset to their zero value.
func (*PutProjectSSHKeyParams) WithHTTPClient ¶
func (o *PutProjectSSHKeyParams) WithHTTPClient(client *http.Client) *PutProjectSSHKeyParams
WithHTTPClient adds the HTTPClient to the put project ssh key params
func (*PutProjectSSHKeyParams) WithProjectIDOrSlug ¶
func (o *PutProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PutProjectSSHKeyParams
WithProjectIDOrSlug adds the projectIDOrSlug to the put project ssh key params
func (*PutProjectSSHKeyParams) WithSSHKeyID ¶
func (o *PutProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *PutProjectSSHKeyParams
WithSSHKeyID adds the sSHKeyID to the put project ssh key params
func (*PutProjectSSHKeyParams) WithTimeout ¶
func (o *PutProjectSSHKeyParams) WithTimeout(timeout time.Duration) *PutProjectSSHKeyParams
WithTimeout adds the timeout to the put project ssh key params
func (*PutProjectSSHKeyParams) WriteToRequest ¶
func (o *PutProjectSSHKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutProjectSSHKeyParamsBodyData ¶
type PutProjectSSHKeyParamsBodyData struct {
// attributes
Attributes *PutProjectSSHKeyParamsBodyDataAttributes `json:"attributes,omitempty"`
// id
// Required: true
ID string `json:"id"`
// type
// Required: true
// Enum: [ssh_keys]
Type *string `json:"type"`
}
PutProjectSSHKeyParamsBodyData put project SSH key params body data swagger:model PutProjectSSHKeyParamsBodyData
func (*PutProjectSSHKeyParamsBodyData) ContextValidate ¶
func (o *PutProjectSSHKeyParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put project SSH key params body data based on the context it is used
func (*PutProjectSSHKeyParamsBodyData) MarshalBinary ¶
func (o *PutProjectSSHKeyParamsBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutProjectSSHKeyParamsBodyData) UnmarshalBinary ¶
func (o *PutProjectSSHKeyParamsBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutProjectSSHKeyParamsBodyDataAttributes ¶
type PutProjectSSHKeyParamsBodyDataAttributes struct {
// Name of the SSH Key
Name string `json:"name,omitempty"`
Tags []string `json:"tags,omitempty"`
}
PutProjectSSHKeyParamsBodyDataAttributes put project SSH key params body data attributes swagger:model PutProjectSSHKeyParamsBodyDataAttributes
func (*PutProjectSSHKeyParamsBodyDataAttributes) ContextValidate ¶
func (o *PutProjectSSHKeyParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this put project SSH key params body data attributes based on context it is used
func (*PutProjectSSHKeyParamsBodyDataAttributes) MarshalBinary ¶
func (o *PutProjectSSHKeyParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary ¶
func (o *PutProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutProjectSSHKeyReader ¶
type PutProjectSSHKeyReader struct {
// contains filtered or unexported fields
}
PutProjectSSHKeyReader is a Reader for the PutProjectSSHKey structure.
func (*PutProjectSSHKeyReader) ReadResponse ¶
func (o *PutProjectSSHKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- delete_project_ssh_key_parameters.go
- delete_project_ssh_key_responses.go
- get_project_ssh_key_parameters.go
- get_project_ssh_key_responses.go
- get_project_ssh_keys_parameters.go
- get_project_ssh_keys_responses.go
- post_project_ssh_key_parameters.go
- post_project_ssh_key_responses.go
- put_project_ssh_key_parameters.go
- put_project_ssh_key_responses.go
- ssh_keys_client.go