Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetSnippetsWorkspaceEncodedIDFilesPathForbidden
- type GetSnippetsWorkspaceEncodedIDFilesPathFound
- type GetSnippetsWorkspaceEncodedIDFilesPathNotFound
- type GetSnippetsWorkspaceEncodedIDFilesPathParams
- func NewGetSnippetsWorkspaceEncodedIDFilesPathParams() *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext(ctx context.Context) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient(client *http.Client) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout(timeout time.Duration) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetContext(ctx context.Context)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetEncodedID(encodedID string)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetHTTPClient(client *http.Client)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetPath(path string)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetTimeout(timeout time.Duration)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetWorkspace(workspace string)
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithContext(ctx context.Context) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithEncodedID(encodedID string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithHTTPClient(client *http.Client) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithPath(path string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithTimeout(timeout time.Duration) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithWorkspace(workspace string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
- func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnippetsWorkspaceEncodedIDFilesPathReader
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 snippet API
func (*Client) GetSnippetsWorkspaceEncodedIDFilesPath ¶
func (a *Client) GetSnippetsWorkspaceEncodedIDFilesPath(params *GetSnippetsWorkspaceEncodedIDFilesPathParams, authInfo runtime.ClientAuthInfoWriter) error
GetSnippetsWorkspaceEncodedIDFilesPath Convenience resource for getting to a snippet's raw files without the
need for first having to retrieve the snippet itself and having to pull out the versioned file links.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetSnippetsWorkspaceEncodedIDFilesPath(params *GetSnippetsWorkspaceEncodedIDFilesPathParams, authInfo runtime.ClientAuthInfoWriter) error SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new snippet API client.
type GetSnippetsWorkspaceEncodedIDFilesPathForbidden ¶
GetSnippetsWorkspaceEncodedIDFilesPathForbidden handles this case with default header values.
If the authenticated user does not have access to the snippet.
func NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden() *GetSnippetsWorkspaceEncodedIDFilesPathForbidden
NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden creates a GetSnippetsWorkspaceEncodedIDFilesPathForbidden with default headers values
func (*GetSnippetsWorkspaceEncodedIDFilesPathForbidden) Error ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathForbidden) Error() string
func (*GetSnippetsWorkspaceEncodedIDFilesPathForbidden) GetPayload ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathForbidden) GetPayload() *models.Error
type GetSnippetsWorkspaceEncodedIDFilesPathFound ¶
type GetSnippetsWorkspaceEncodedIDFilesPathFound struct { /*The URL of the most recent file revision. */ Location string }
GetSnippetsWorkspaceEncodedIDFilesPathFound handles this case with default header values.
A redirect to the most recent revision of the specified file.
func NewGetSnippetsWorkspaceEncodedIDFilesPathFound ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathFound() *GetSnippetsWorkspaceEncodedIDFilesPathFound
NewGetSnippetsWorkspaceEncodedIDFilesPathFound creates a GetSnippetsWorkspaceEncodedIDFilesPathFound with default headers values
func (*GetSnippetsWorkspaceEncodedIDFilesPathFound) Error ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathFound) Error() string
type GetSnippetsWorkspaceEncodedIDFilesPathNotFound ¶
GetSnippetsWorkspaceEncodedIDFilesPathNotFound handles this case with default header values.
If the snippet does not exist.
func NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound() *GetSnippetsWorkspaceEncodedIDFilesPathNotFound
NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound creates a GetSnippetsWorkspaceEncodedIDFilesPathNotFound with default headers values
func (*GetSnippetsWorkspaceEncodedIDFilesPathNotFound) Error ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathNotFound) Error() string
func (*GetSnippetsWorkspaceEncodedIDFilesPathNotFound) GetPayload ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathNotFound) GetPayload() *models.Error
type GetSnippetsWorkspaceEncodedIDFilesPathParams ¶
type GetSnippetsWorkspaceEncodedIDFilesPathParams struct { /*EncodedID*/ EncodedID string /*Path*/ Path string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSnippetsWorkspaceEncodedIDFilesPathParams contains all the parameters to send to the API endpoint for the get snippets workspace encoded ID files path operation typically these are written to a http.Request
func NewGetSnippetsWorkspaceEncodedIDFilesPathParams ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathParams() *GetSnippetsWorkspaceEncodedIDFilesPathParams
NewGetSnippetsWorkspaceEncodedIDFilesPathParams creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized.
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext(ctx context.Context) *GetSnippetsWorkspaceEncodedIDFilesPathParams
NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a context for a request
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient(client *http.Client) *GetSnippetsWorkspaceEncodedIDFilesPathParams
NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout ¶
func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout(timeout time.Duration) *GetSnippetsWorkspaceEncodedIDFilesPathParams
NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetContext ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetContext(ctx context.Context)
SetContext adds the context to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetEncodedID ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetEncodedID(encodedID string)
SetEncodedID adds the encodedId to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetHTTPClient ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetPath ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetPath(path string)
SetPath adds the path to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetTimeout ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetWorkspace ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithContext ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithContext(ctx context.Context) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithContext adds the context to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithEncodedID ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithEncodedID(encodedID string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithEncodedID adds the encodedID to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithHTTPClient ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithHTTPClient(client *http.Client) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithHTTPClient adds the HTTPClient to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithPath ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithPath(path string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithPath adds the path to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithTimeout ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithTimeout(timeout time.Duration) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithTimeout adds the timeout to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithWorkspace ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WithWorkspace(workspace string) *GetSnippetsWorkspaceEncodedIDFilesPathParams
WithWorkspace adds the workspace to the get snippets workspace encoded ID files path params
func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WriteToRequest ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSnippetsWorkspaceEncodedIDFilesPathReader ¶
type GetSnippetsWorkspaceEncodedIDFilesPathReader struct {
// contains filtered or unexported fields
}
GetSnippetsWorkspaceEncodedIDFilesPathReader is a Reader for the GetSnippetsWorkspaceEncodedIDFilesPath structure.
func (*GetSnippetsWorkspaceEncodedIDFilesPathReader) ReadResponse ¶
func (o *GetSnippetsWorkspaceEncodedIDFilesPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.