attachments

package
v0.9.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentsGetAttachmentBadRequest

type AttachmentsGetAttachmentBadRequest struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentBadRequest handles this case with default header values.

The request was malformed or otherwise incorrect. Inspect the message for a more detailed description.

func NewAttachmentsGetAttachmentBadRequest

func NewAttachmentsGetAttachmentBadRequest() *AttachmentsGetAttachmentBadRequest

NewAttachmentsGetAttachmentBadRequest creates a AttachmentsGetAttachmentBadRequest with default headers values

func (*AttachmentsGetAttachmentBadRequest) Error

type AttachmentsGetAttachmentForbidden

type AttachmentsGetAttachmentForbidden struct {
}

AttachmentsGetAttachmentForbidden handles this case with default header values.

The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource.

func NewAttachmentsGetAttachmentForbidden

func NewAttachmentsGetAttachmentForbidden() *AttachmentsGetAttachmentForbidden

NewAttachmentsGetAttachmentForbidden creates a AttachmentsGetAttachmentForbidden with default headers values

func (*AttachmentsGetAttachmentForbidden) Error

type AttachmentsGetAttachmentFound

type AttachmentsGetAttachmentFound struct {
}

AttachmentsGetAttachmentFound handles this case with default header values.

The Location header describes where the content is now.

func NewAttachmentsGetAttachmentFound

func NewAttachmentsGetAttachmentFound() *AttachmentsGetAttachmentFound

NewAttachmentsGetAttachmentFound creates a AttachmentsGetAttachmentFound with default headers values

func (*AttachmentsGetAttachmentFound) Error

type AttachmentsGetAttachmentInfoBadRequest

type AttachmentsGetAttachmentInfoBadRequest struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentInfoBadRequest handles this case with default header values.

The request was malformed or otherwise incorrect. Inspect the message for a more detailed description.

func NewAttachmentsGetAttachmentInfoBadRequest

func NewAttachmentsGetAttachmentInfoBadRequest() *AttachmentsGetAttachmentInfoBadRequest

NewAttachmentsGetAttachmentInfoBadRequest creates a AttachmentsGetAttachmentInfoBadRequest with default headers values

func (*AttachmentsGetAttachmentInfoBadRequest) Error

type AttachmentsGetAttachmentInfoForbidden

type AttachmentsGetAttachmentInfoForbidden struct {
}

AttachmentsGetAttachmentInfoForbidden handles this case with default header values.

The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource.

func NewAttachmentsGetAttachmentInfoForbidden

func NewAttachmentsGetAttachmentInfoForbidden() *AttachmentsGetAttachmentInfoForbidden

NewAttachmentsGetAttachmentInfoForbidden creates a AttachmentsGetAttachmentInfoForbidden with default headers values

func (*AttachmentsGetAttachmentInfoForbidden) Error

type AttachmentsGetAttachmentInfoInternalServerError

type AttachmentsGetAttachmentInfoInternalServerError struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentInfoInternalServerError handles this case with default header values.

An internal server has occurred. Inspect the message for a more detailed description.

func NewAttachmentsGetAttachmentInfoInternalServerError

func NewAttachmentsGetAttachmentInfoInternalServerError() *AttachmentsGetAttachmentInfoInternalServerError

NewAttachmentsGetAttachmentInfoInternalServerError creates a AttachmentsGetAttachmentInfoInternalServerError with default headers values

func (*AttachmentsGetAttachmentInfoInternalServerError) Error

type AttachmentsGetAttachmentInfoNotFound

type AttachmentsGetAttachmentInfoNotFound struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentInfoNotFound handles this case with default header values.

The resource was not found.

func NewAttachmentsGetAttachmentInfoNotFound

func NewAttachmentsGetAttachmentInfoNotFound() *AttachmentsGetAttachmentInfoNotFound

NewAttachmentsGetAttachmentInfoNotFound creates a AttachmentsGetAttachmentInfoNotFound with default headers values

func (*AttachmentsGetAttachmentInfoNotFound) Error

type AttachmentsGetAttachmentInfoOK

type AttachmentsGetAttachmentInfoOK struct {
	Payload *models.AttachmentInfo
}

AttachmentsGetAttachmentInfoOK handles this case with default header values.

An attachmentInfo object is returned which describes the: * type of the attachment * name of the attachment

and an array of views: * Size - size of the object * ViewId - View Id which can be used to fetch a variation on the content (ex: original or thumbnail)

func NewAttachmentsGetAttachmentInfoOK

func NewAttachmentsGetAttachmentInfoOK() *AttachmentsGetAttachmentInfoOK

NewAttachmentsGetAttachmentInfoOK creates a AttachmentsGetAttachmentInfoOK with default headers values

func (*AttachmentsGetAttachmentInfoOK) Error

type AttachmentsGetAttachmentInfoParams

type AttachmentsGetAttachmentInfoParams struct {

	/*AttachmentID
	  attachment id

	*/
	AttachmentID string

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

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

func NewAttachmentsGetAttachmentInfoParams

func NewAttachmentsGetAttachmentInfoParams() *AttachmentsGetAttachmentInfoParams

NewAttachmentsGetAttachmentInfoParams creates a new AttachmentsGetAttachmentInfoParams object with the default values initialized.

func NewAttachmentsGetAttachmentInfoParamsWithContext

func NewAttachmentsGetAttachmentInfoParamsWithContext(ctx context.Context) *AttachmentsGetAttachmentInfoParams

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

func NewAttachmentsGetAttachmentInfoParamsWithTimeout

func NewAttachmentsGetAttachmentInfoParamsWithTimeout(timeout time.Duration) *AttachmentsGetAttachmentInfoParams

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

func (*AttachmentsGetAttachmentInfoParams) SetAttachmentID

func (o *AttachmentsGetAttachmentInfoParams) SetAttachmentID(attachmentID string)

SetAttachmentID adds the attachmentId to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) SetContext

SetContext adds the context to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) SetTimeout

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

SetTimeout adds the timeout to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) WithAttachmentID

WithAttachmentID adds the attachmentID to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) WithContext

WithContext adds the context to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) WithTimeout

WithTimeout adds the timeout to the attachments get attachment info params

func (*AttachmentsGetAttachmentInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AttachmentsGetAttachmentInfoReader

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

AttachmentsGetAttachmentInfoReader is a Reader for the AttachmentsGetAttachmentInfo structure.

func (*AttachmentsGetAttachmentInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AttachmentsGetAttachmentInfoServiceUnavailable

type AttachmentsGetAttachmentInfoServiceUnavailable struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentInfoServiceUnavailable handles this case with default header values.

The service you are trying to communciate with is unavailable.

func NewAttachmentsGetAttachmentInfoServiceUnavailable

func NewAttachmentsGetAttachmentInfoServiceUnavailable() *AttachmentsGetAttachmentInfoServiceUnavailable

NewAttachmentsGetAttachmentInfoServiceUnavailable creates a AttachmentsGetAttachmentInfoServiceUnavailable with default headers values

func (*AttachmentsGetAttachmentInfoServiceUnavailable) Error

type AttachmentsGetAttachmentInfoUnauthorized

type AttachmentsGetAttachmentInfoUnauthorized struct {
}

AttachmentsGetAttachmentInfoUnauthorized handles this case with default header values.

The bot is not authorized to make this request. Please check your Microsoft App ID and Microsoft App password.

func NewAttachmentsGetAttachmentInfoUnauthorized

func NewAttachmentsGetAttachmentInfoUnauthorized() *AttachmentsGetAttachmentInfoUnauthorized

NewAttachmentsGetAttachmentInfoUnauthorized creates a AttachmentsGetAttachmentInfoUnauthorized with default headers values

func (*AttachmentsGetAttachmentInfoUnauthorized) Error

type AttachmentsGetAttachmentInternalServerError

type AttachmentsGetAttachmentInternalServerError struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentInternalServerError handles this case with default header values.

An internal server has occurred. Inspect the message for a more detailed description.

func NewAttachmentsGetAttachmentInternalServerError

func NewAttachmentsGetAttachmentInternalServerError() *AttachmentsGetAttachmentInternalServerError

NewAttachmentsGetAttachmentInternalServerError creates a AttachmentsGetAttachmentInternalServerError with default headers values

func (*AttachmentsGetAttachmentInternalServerError) Error

type AttachmentsGetAttachmentMovedPermanently

type AttachmentsGetAttachmentMovedPermanently struct {
}

AttachmentsGetAttachmentMovedPermanently handles this case with default header values.

The Location header describes where the content is now.

func NewAttachmentsGetAttachmentMovedPermanently

func NewAttachmentsGetAttachmentMovedPermanently() *AttachmentsGetAttachmentMovedPermanently

NewAttachmentsGetAttachmentMovedPermanently creates a AttachmentsGetAttachmentMovedPermanently with default headers values

func (*AttachmentsGetAttachmentMovedPermanently) Error

type AttachmentsGetAttachmentNotFound

type AttachmentsGetAttachmentNotFound struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentNotFound handles this case with default header values.

The resource was not found.

func NewAttachmentsGetAttachmentNotFound

func NewAttachmentsGetAttachmentNotFound() *AttachmentsGetAttachmentNotFound

NewAttachmentsGetAttachmentNotFound creates a AttachmentsGetAttachmentNotFound with default headers values

func (*AttachmentsGetAttachmentNotFound) Error

type AttachmentsGetAttachmentOK

type AttachmentsGetAttachmentOK struct {
	Payload runtime.File
}

AttachmentsGetAttachmentOK handles this case with default header values.

An array of bytes which represent the content.

func NewAttachmentsGetAttachmentOK

func NewAttachmentsGetAttachmentOK() *AttachmentsGetAttachmentOK

NewAttachmentsGetAttachmentOK creates a AttachmentsGetAttachmentOK with default headers values

func (*AttachmentsGetAttachmentOK) Error

type AttachmentsGetAttachmentParams

type AttachmentsGetAttachmentParams struct {

	/*AttachmentID
	  attachment id

	*/
	AttachmentID string
	/*ViewID
	  View id from attachmentInfo

	*/
	ViewID string

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

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

func NewAttachmentsGetAttachmentParams

func NewAttachmentsGetAttachmentParams() *AttachmentsGetAttachmentParams

NewAttachmentsGetAttachmentParams creates a new AttachmentsGetAttachmentParams object with the default values initialized.

func NewAttachmentsGetAttachmentParamsWithContext

func NewAttachmentsGetAttachmentParamsWithContext(ctx context.Context) *AttachmentsGetAttachmentParams

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

func NewAttachmentsGetAttachmentParamsWithTimeout

func NewAttachmentsGetAttachmentParamsWithTimeout(timeout time.Duration) *AttachmentsGetAttachmentParams

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

func (*AttachmentsGetAttachmentParams) SetAttachmentID

func (o *AttachmentsGetAttachmentParams) SetAttachmentID(attachmentID string)

SetAttachmentID adds the attachmentId to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) SetContext

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

SetContext adds the context to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) SetTimeout

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

SetTimeout adds the timeout to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) SetViewID

func (o *AttachmentsGetAttachmentParams) SetViewID(viewID string)

SetViewID adds the viewId to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) WithAttachmentID

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

WithAttachmentID adds the attachmentID to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) WithContext

WithContext adds the context to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) WithTimeout

WithTimeout adds the timeout to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) WithViewID

WithViewID adds the viewID to the attachments get attachment params

func (*AttachmentsGetAttachmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AttachmentsGetAttachmentReader

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

AttachmentsGetAttachmentReader is a Reader for the AttachmentsGetAttachment structure.

func (*AttachmentsGetAttachmentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AttachmentsGetAttachmentServiceUnavailable

type AttachmentsGetAttachmentServiceUnavailable struct {
	Payload *models.ErrorResponse
}

AttachmentsGetAttachmentServiceUnavailable handles this case with default header values.

The service you are trying to communciate with is unavailable.

func NewAttachmentsGetAttachmentServiceUnavailable

func NewAttachmentsGetAttachmentServiceUnavailable() *AttachmentsGetAttachmentServiceUnavailable

NewAttachmentsGetAttachmentServiceUnavailable creates a AttachmentsGetAttachmentServiceUnavailable with default headers values

func (*AttachmentsGetAttachmentServiceUnavailable) Error

type AttachmentsGetAttachmentUnauthorized

type AttachmentsGetAttachmentUnauthorized struct {
}

AttachmentsGetAttachmentUnauthorized handles this case with default header values.

The bot is not authorized to make this request. Please check your Microsoft App ID and Microsoft App password.

func NewAttachmentsGetAttachmentUnauthorized

func NewAttachmentsGetAttachmentUnauthorized() *AttachmentsGetAttachmentUnauthorized

NewAttachmentsGetAttachmentUnauthorized creates a AttachmentsGetAttachmentUnauthorized with default headers values

func (*AttachmentsGetAttachmentUnauthorized) Error

type Client

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

Client for attachments API

func New

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

New creates a new attachments API client.

func (*Client) AttachmentsGetAttachment

func (a *Client) AttachmentsGetAttachment(params *AttachmentsGetAttachmentParams) (*AttachmentsGetAttachmentOK, error)

AttachmentsGetAttachment gets attachment

Get the named view as binary content

func (*Client) AttachmentsGetAttachmentInfo

func (a *Client) AttachmentsGetAttachmentInfo(params *AttachmentsGetAttachmentInfoParams) (*AttachmentsGetAttachmentInfoOK, error)

AttachmentsGetAttachmentInfo gets attachment info

Get AttachmentInfo structure describing the attachment views

func (*Client) SetTransport

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

SetTransport changes the transport on the client

Jump to

Keyboard shortcuts

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