attachment_service

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for attachment service API

func New

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

New creates a new attachment service API client.

func (*Client) GetAttachment

func (a *Client) GetAttachment(params *GetAttachmentParams, authInfo runtime.ClientAuthInfoWriter) (*GetAttachmentOK, error)

GetAttachment gets attachment use attachment id to get attachment

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetAttachmentOK

type GetAttachmentOK struct {
	Payload *models.OpenpitrixGetAttachmentResponse
}

GetAttachmentOK handles this case with default header values.

A successful response.

func NewGetAttachmentOK

func NewGetAttachmentOK() *GetAttachmentOK

NewGetAttachmentOK creates a GetAttachmentOK with default headers values

func (*GetAttachmentOK) Error

func (o *GetAttachmentOK) Error() string

type GetAttachmentParams

type GetAttachmentParams struct {

	/*AttachmentID
	  required, use attachment id to get attachment.

	*/
	AttachmentID *string
	/*Filename
	  filename, attachment contain one more file.

	*/
	Filename *string

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

GetAttachmentParams contains all the parameters to send to the API endpoint for the get attachment operation typically these are written to a http.Request

func NewGetAttachmentParams

func NewGetAttachmentParams() *GetAttachmentParams

NewGetAttachmentParams creates a new GetAttachmentParams object with the default values initialized.

func NewGetAttachmentParamsWithContext

func NewGetAttachmentParamsWithContext(ctx context.Context) *GetAttachmentParams

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

func NewGetAttachmentParamsWithHTTPClient

func NewGetAttachmentParamsWithHTTPClient(client *http.Client) *GetAttachmentParams

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

func NewGetAttachmentParamsWithTimeout

func NewGetAttachmentParamsWithTimeout(timeout time.Duration) *GetAttachmentParams

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

func (*GetAttachmentParams) SetAttachmentID

func (o *GetAttachmentParams) SetAttachmentID(attachmentID *string)

SetAttachmentID adds the attachmentId to the get attachment params

func (*GetAttachmentParams) SetContext

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

SetContext adds the context to the get attachment params

func (*GetAttachmentParams) SetFilename

func (o *GetAttachmentParams) SetFilename(filename *string)

SetFilename adds the filename to the get attachment params

func (*GetAttachmentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get attachment params

func (*GetAttachmentParams) SetTimeout

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

SetTimeout adds the timeout to the get attachment params

func (*GetAttachmentParams) WithAttachmentID

func (o *GetAttachmentParams) WithAttachmentID(attachmentID *string) *GetAttachmentParams

WithAttachmentID adds the attachmentID to the get attachment params

func (*GetAttachmentParams) WithContext

WithContext adds the context to the get attachment params

func (*GetAttachmentParams) WithFilename

func (o *GetAttachmentParams) WithFilename(filename *string) *GetAttachmentParams

WithFilename adds the filename to the get attachment params

func (*GetAttachmentParams) WithHTTPClient

func (o *GetAttachmentParams) WithHTTPClient(client *http.Client) *GetAttachmentParams

WithHTTPClient adds the HTTPClient to the get attachment params

func (*GetAttachmentParams) WithTimeout

func (o *GetAttachmentParams) WithTimeout(timeout time.Duration) *GetAttachmentParams

WithTimeout adds the timeout to the get attachment params

func (*GetAttachmentParams) WriteToRequest

func (o *GetAttachmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAttachmentReader

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

GetAttachmentReader is a Reader for the GetAttachment structure.

func (*GetAttachmentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL