Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) MediaCreate(params *MediaCreateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MediaCreateOK, error)
- func (a *Client) MediaGet(params *MediaGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MediaGetOK, error)
- func (a *Client) MediaUpdate(params *MediaUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MediaUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type MediaCreateBadRequest
- func (o *MediaCreateBadRequest) Code() int
- func (o *MediaCreateBadRequest) Error() string
- func (o *MediaCreateBadRequest) IsClientError() bool
- func (o *MediaCreateBadRequest) IsCode(code int) bool
- func (o *MediaCreateBadRequest) IsRedirect() bool
- func (o *MediaCreateBadRequest) IsServerError() bool
- func (o *MediaCreateBadRequest) IsSuccess() bool
- func (o *MediaCreateBadRequest) String() string
- type MediaCreateInternalServerError
- func (o *MediaCreateInternalServerError) Code() int
- func (o *MediaCreateInternalServerError) Error() string
- func (o *MediaCreateInternalServerError) IsClientError() bool
- func (o *MediaCreateInternalServerError) IsCode(code int) bool
- func (o *MediaCreateInternalServerError) IsRedirect() bool
- func (o *MediaCreateInternalServerError) IsServerError() bool
- func (o *MediaCreateInternalServerError) IsSuccess() bool
- func (o *MediaCreateInternalServerError) String() string
- type MediaCreateOK
- func (o *MediaCreateOK) Code() int
- func (o *MediaCreateOK) Error() string
- func (o *MediaCreateOK) GetPayload() *models.Attachment
- func (o *MediaCreateOK) IsClientError() bool
- func (o *MediaCreateOK) IsCode(code int) bool
- func (o *MediaCreateOK) IsRedirect() bool
- func (o *MediaCreateOK) IsServerError() bool
- func (o *MediaCreateOK) IsSuccess() bool
- func (o *MediaCreateOK) String() string
- type MediaCreateParams
- func (o *MediaCreateParams) SetAPIVersion(aPIVersion string)
- func (o *MediaCreateParams) SetContext(ctx context.Context)
- func (o *MediaCreateParams) SetDefaults()
- func (o *MediaCreateParams) SetDescription(description *string)
- func (o *MediaCreateParams) SetFile(file runtime.NamedReadCloser)
- func (o *MediaCreateParams) SetFocus(focus *string)
- func (o *MediaCreateParams) SetHTTPClient(client *http.Client)
- func (o *MediaCreateParams) SetTimeout(timeout time.Duration)
- func (o *MediaCreateParams) WithAPIVersion(aPIVersion string) *MediaCreateParams
- func (o *MediaCreateParams) WithContext(ctx context.Context) *MediaCreateParams
- func (o *MediaCreateParams) WithDefaults() *MediaCreateParams
- func (o *MediaCreateParams) WithDescription(description *string) *MediaCreateParams
- func (o *MediaCreateParams) WithFile(file runtime.NamedReadCloser) *MediaCreateParams
- func (o *MediaCreateParams) WithFocus(focus *string) *MediaCreateParams
- func (o *MediaCreateParams) WithHTTPClient(client *http.Client) *MediaCreateParams
- func (o *MediaCreateParams) WithTimeout(timeout time.Duration) *MediaCreateParams
- func (o *MediaCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MediaCreateReader
- type MediaCreateUnauthorized
- func (o *MediaCreateUnauthorized) Code() int
- func (o *MediaCreateUnauthorized) Error() string
- func (o *MediaCreateUnauthorized) IsClientError() bool
- func (o *MediaCreateUnauthorized) IsCode(code int) bool
- func (o *MediaCreateUnauthorized) IsRedirect() bool
- func (o *MediaCreateUnauthorized) IsServerError() bool
- func (o *MediaCreateUnauthorized) IsSuccess() bool
- func (o *MediaCreateUnauthorized) String() string
- type MediaCreateUnprocessableEntity
- func (o *MediaCreateUnprocessableEntity) Code() int
- func (o *MediaCreateUnprocessableEntity) Error() string
- func (o *MediaCreateUnprocessableEntity) IsClientError() bool
- func (o *MediaCreateUnprocessableEntity) IsCode(code int) bool
- func (o *MediaCreateUnprocessableEntity) IsRedirect() bool
- func (o *MediaCreateUnprocessableEntity) IsServerError() bool
- func (o *MediaCreateUnprocessableEntity) IsSuccess() bool
- func (o *MediaCreateUnprocessableEntity) String() string
- type MediaGetBadRequest
- func (o *MediaGetBadRequest) Code() int
- func (o *MediaGetBadRequest) Error() string
- func (o *MediaGetBadRequest) IsClientError() bool
- func (o *MediaGetBadRequest) IsCode(code int) bool
- func (o *MediaGetBadRequest) IsRedirect() bool
- func (o *MediaGetBadRequest) IsServerError() bool
- func (o *MediaGetBadRequest) IsSuccess() bool
- func (o *MediaGetBadRequest) String() string
- type MediaGetInternalServerError
- func (o *MediaGetInternalServerError) Code() int
- func (o *MediaGetInternalServerError) Error() string
- func (o *MediaGetInternalServerError) IsClientError() bool
- func (o *MediaGetInternalServerError) IsCode(code int) bool
- func (o *MediaGetInternalServerError) IsRedirect() bool
- func (o *MediaGetInternalServerError) IsServerError() bool
- func (o *MediaGetInternalServerError) IsSuccess() bool
- func (o *MediaGetInternalServerError) String() string
- type MediaGetNotAcceptable
- func (o *MediaGetNotAcceptable) Code() int
- func (o *MediaGetNotAcceptable) Error() string
- func (o *MediaGetNotAcceptable) IsClientError() bool
- func (o *MediaGetNotAcceptable) IsCode(code int) bool
- func (o *MediaGetNotAcceptable) IsRedirect() bool
- func (o *MediaGetNotAcceptable) IsServerError() bool
- func (o *MediaGetNotAcceptable) IsSuccess() bool
- func (o *MediaGetNotAcceptable) String() string
- type MediaGetNotFound
- func (o *MediaGetNotFound) Code() int
- func (o *MediaGetNotFound) Error() string
- func (o *MediaGetNotFound) IsClientError() bool
- func (o *MediaGetNotFound) IsCode(code int) bool
- func (o *MediaGetNotFound) IsRedirect() bool
- func (o *MediaGetNotFound) IsServerError() bool
- func (o *MediaGetNotFound) IsSuccess() bool
- func (o *MediaGetNotFound) String() string
- type MediaGetOK
- func (o *MediaGetOK) Code() int
- func (o *MediaGetOK) Error() string
- func (o *MediaGetOK) GetPayload() *models.Attachment
- func (o *MediaGetOK) IsClientError() bool
- func (o *MediaGetOK) IsCode(code int) bool
- func (o *MediaGetOK) IsRedirect() bool
- func (o *MediaGetOK) IsServerError() bool
- func (o *MediaGetOK) IsSuccess() bool
- func (o *MediaGetOK) String() string
- type MediaGetParams
- func (o *MediaGetParams) SetContext(ctx context.Context)
- func (o *MediaGetParams) SetDefaults()
- func (o *MediaGetParams) SetHTTPClient(client *http.Client)
- func (o *MediaGetParams) SetID(id string)
- func (o *MediaGetParams) SetTimeout(timeout time.Duration)
- func (o *MediaGetParams) WithContext(ctx context.Context) *MediaGetParams
- func (o *MediaGetParams) WithDefaults() *MediaGetParams
- func (o *MediaGetParams) WithHTTPClient(client *http.Client) *MediaGetParams
- func (o *MediaGetParams) WithID(id string) *MediaGetParams
- func (o *MediaGetParams) WithTimeout(timeout time.Duration) *MediaGetParams
- func (o *MediaGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MediaGetReader
- type MediaGetUnauthorized
- func (o *MediaGetUnauthorized) Code() int
- func (o *MediaGetUnauthorized) Error() string
- func (o *MediaGetUnauthorized) IsClientError() bool
- func (o *MediaGetUnauthorized) IsCode(code int) bool
- func (o *MediaGetUnauthorized) IsRedirect() bool
- func (o *MediaGetUnauthorized) IsServerError() bool
- func (o *MediaGetUnauthorized) IsSuccess() bool
- func (o *MediaGetUnauthorized) String() string
- type MediaUpdateBadRequest
- func (o *MediaUpdateBadRequest) Code() int
- func (o *MediaUpdateBadRequest) Error() string
- func (o *MediaUpdateBadRequest) IsClientError() bool
- func (o *MediaUpdateBadRequest) IsCode(code int) bool
- func (o *MediaUpdateBadRequest) IsRedirect() bool
- func (o *MediaUpdateBadRequest) IsServerError() bool
- func (o *MediaUpdateBadRequest) IsSuccess() bool
- func (o *MediaUpdateBadRequest) String() string
- type MediaUpdateInternalServerError
- func (o *MediaUpdateInternalServerError) Code() int
- func (o *MediaUpdateInternalServerError) Error() string
- func (o *MediaUpdateInternalServerError) IsClientError() bool
- func (o *MediaUpdateInternalServerError) IsCode(code int) bool
- func (o *MediaUpdateInternalServerError) IsRedirect() bool
- func (o *MediaUpdateInternalServerError) IsServerError() bool
- func (o *MediaUpdateInternalServerError) IsSuccess() bool
- func (o *MediaUpdateInternalServerError) String() string
- type MediaUpdateNotAcceptable
- func (o *MediaUpdateNotAcceptable) Code() int
- func (o *MediaUpdateNotAcceptable) Error() string
- func (o *MediaUpdateNotAcceptable) IsClientError() bool
- func (o *MediaUpdateNotAcceptable) IsCode(code int) bool
- func (o *MediaUpdateNotAcceptable) IsRedirect() bool
- func (o *MediaUpdateNotAcceptable) IsServerError() bool
- func (o *MediaUpdateNotAcceptable) IsSuccess() bool
- func (o *MediaUpdateNotAcceptable) String() string
- type MediaUpdateNotFound
- func (o *MediaUpdateNotFound) Code() int
- func (o *MediaUpdateNotFound) Error() string
- func (o *MediaUpdateNotFound) IsClientError() bool
- func (o *MediaUpdateNotFound) IsCode(code int) bool
- func (o *MediaUpdateNotFound) IsRedirect() bool
- func (o *MediaUpdateNotFound) IsServerError() bool
- func (o *MediaUpdateNotFound) IsSuccess() bool
- func (o *MediaUpdateNotFound) String() string
- type MediaUpdateOK
- func (o *MediaUpdateOK) Code() int
- func (o *MediaUpdateOK) Error() string
- func (o *MediaUpdateOK) GetPayload() *models.Attachment
- func (o *MediaUpdateOK) IsClientError() bool
- func (o *MediaUpdateOK) IsCode(code int) bool
- func (o *MediaUpdateOK) IsRedirect() bool
- func (o *MediaUpdateOK) IsServerError() bool
- func (o *MediaUpdateOK) IsSuccess() bool
- func (o *MediaUpdateOK) String() string
- type MediaUpdateParams
- func (o *MediaUpdateParams) SetContext(ctx context.Context)
- func (o *MediaUpdateParams) SetDefaults()
- func (o *MediaUpdateParams) SetDescription(description string)
- func (o *MediaUpdateParams) SetFocus(focus string)
- func (o *MediaUpdateParams) SetHTTPClient(client *http.Client)
- func (o *MediaUpdateParams) SetID(id string)
- func (o *MediaUpdateParams) SetTimeout(timeout time.Duration)
- func (o *MediaUpdateParams) WithContext(ctx context.Context) *MediaUpdateParams
- func (o *MediaUpdateParams) WithDefaults() *MediaUpdateParams
- func (o *MediaUpdateParams) WithDescription(description string) *MediaUpdateParams
- func (o *MediaUpdateParams) WithFocus(focus string) *MediaUpdateParams
- func (o *MediaUpdateParams) WithHTTPClient(client *http.Client) *MediaUpdateParams
- func (o *MediaUpdateParams) WithID(id string) *MediaUpdateParams
- func (o *MediaUpdateParams) WithTimeout(timeout time.Duration) *MediaUpdateParams
- func (o *MediaUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MediaUpdateReader
- type MediaUpdateUnauthorized
- func (o *MediaUpdateUnauthorized) Code() int
- func (o *MediaUpdateUnauthorized) Error() string
- func (o *MediaUpdateUnauthorized) IsClientError() bool
- func (o *MediaUpdateUnauthorized) IsCode(code int) bool
- func (o *MediaUpdateUnauthorized) IsRedirect() bool
- func (o *MediaUpdateUnauthorized) IsServerError() bool
- func (o *MediaUpdateUnauthorized) IsSuccess() bool
- func (o *MediaUpdateUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
func WithContentTypeMultipartFormData ¶
func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for media API
func (*Client) MediaCreate ¶
func (a *Client) MediaCreate(params *MediaCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaCreateOK, error)
MediaCreate uploads a new media attachment
func (*Client) MediaGet ¶
func (a *Client) MediaGet(params *MediaGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaGetOK, error)
MediaGet gets a media attachment that you own
func (*Client) MediaUpdate ¶
func (a *Client) MediaUpdate(params *MediaUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaUpdateOK, error)
MediaUpdate updates a media attachment You must own the media attachment, and the attachment must not yet be attached to a status.
The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'. The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.
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 may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { MediaCreate(params *MediaCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaCreateOK, error) MediaGet(params *MediaGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaGetOK, error) MediaUpdate(params *MediaUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediaUpdateOK, 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 media API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new media API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new media API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type MediaCreateBadRequest ¶
type MediaCreateBadRequest struct { }
MediaCreateBadRequest describes a response with status code 400, with default header values.
bad request
func NewMediaCreateBadRequest ¶
func NewMediaCreateBadRequest() *MediaCreateBadRequest
NewMediaCreateBadRequest creates a MediaCreateBadRequest with default headers values
func (*MediaCreateBadRequest) Code ¶
func (o *MediaCreateBadRequest) Code() int
Code gets the status code for the media create bad request response
func (*MediaCreateBadRequest) Error ¶
func (o *MediaCreateBadRequest) Error() string
func (*MediaCreateBadRequest) IsClientError ¶
func (o *MediaCreateBadRequest) IsClientError() bool
IsClientError returns true when this media create bad request response has a 4xx status code
func (*MediaCreateBadRequest) IsCode ¶
func (o *MediaCreateBadRequest) IsCode(code int) bool
IsCode returns true when this media create bad request response a status code equal to that given
func (*MediaCreateBadRequest) IsRedirect ¶
func (o *MediaCreateBadRequest) IsRedirect() bool
IsRedirect returns true when this media create bad request response has a 3xx status code
func (*MediaCreateBadRequest) IsServerError ¶
func (o *MediaCreateBadRequest) IsServerError() bool
IsServerError returns true when this media create bad request response has a 5xx status code
func (*MediaCreateBadRequest) IsSuccess ¶
func (o *MediaCreateBadRequest) IsSuccess() bool
IsSuccess returns true when this media create bad request response has a 2xx status code
func (*MediaCreateBadRequest) String ¶
func (o *MediaCreateBadRequest) String() string
type MediaCreateInternalServerError ¶
type MediaCreateInternalServerError struct { }
MediaCreateInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewMediaCreateInternalServerError ¶
func NewMediaCreateInternalServerError() *MediaCreateInternalServerError
NewMediaCreateInternalServerError creates a MediaCreateInternalServerError with default headers values
func (*MediaCreateInternalServerError) Code ¶
func (o *MediaCreateInternalServerError) Code() int
Code gets the status code for the media create internal server error response
func (*MediaCreateInternalServerError) Error ¶
func (o *MediaCreateInternalServerError) Error() string
func (*MediaCreateInternalServerError) IsClientError ¶
func (o *MediaCreateInternalServerError) IsClientError() bool
IsClientError returns true when this media create internal server error response has a 4xx status code
func (*MediaCreateInternalServerError) IsCode ¶
func (o *MediaCreateInternalServerError) IsCode(code int) bool
IsCode returns true when this media create internal server error response a status code equal to that given
func (*MediaCreateInternalServerError) IsRedirect ¶
func (o *MediaCreateInternalServerError) IsRedirect() bool
IsRedirect returns true when this media create internal server error response has a 3xx status code
func (*MediaCreateInternalServerError) IsServerError ¶
func (o *MediaCreateInternalServerError) IsServerError() bool
IsServerError returns true when this media create internal server error response has a 5xx status code
func (*MediaCreateInternalServerError) IsSuccess ¶
func (o *MediaCreateInternalServerError) IsSuccess() bool
IsSuccess returns true when this media create internal server error response has a 2xx status code
func (*MediaCreateInternalServerError) String ¶
func (o *MediaCreateInternalServerError) String() string
type MediaCreateOK ¶
type MediaCreateOK struct {
Payload *models.Attachment
}
MediaCreateOK describes a response with status code 200, with default header values.
The newly-created media attachment.
func NewMediaCreateOK ¶
func NewMediaCreateOK() *MediaCreateOK
NewMediaCreateOK creates a MediaCreateOK with default headers values
func (*MediaCreateOK) Code ¶
func (o *MediaCreateOK) Code() int
Code gets the status code for the media create o k response
func (*MediaCreateOK) Error ¶
func (o *MediaCreateOK) Error() string
func (*MediaCreateOK) GetPayload ¶
func (o *MediaCreateOK) GetPayload() *models.Attachment
func (*MediaCreateOK) IsClientError ¶
func (o *MediaCreateOK) IsClientError() bool
IsClientError returns true when this media create o k response has a 4xx status code
func (*MediaCreateOK) IsCode ¶
func (o *MediaCreateOK) IsCode(code int) bool
IsCode returns true when this media create o k response a status code equal to that given
func (*MediaCreateOK) IsRedirect ¶
func (o *MediaCreateOK) IsRedirect() bool
IsRedirect returns true when this media create o k response has a 3xx status code
func (*MediaCreateOK) IsServerError ¶
func (o *MediaCreateOK) IsServerError() bool
IsServerError returns true when this media create o k response has a 5xx status code
func (*MediaCreateOK) IsSuccess ¶
func (o *MediaCreateOK) IsSuccess() bool
IsSuccess returns true when this media create o k response has a 2xx status code
func (*MediaCreateOK) String ¶
func (o *MediaCreateOK) String() string
type MediaCreateParams ¶
type MediaCreateParams struct { /* APIVersion. Version of the API to use. Must be either `v1` or `v2`. */ APIVersion string /* Description. Image or media description to use as alt-text on the attachment. This is very useful for users of screenreaders! May or may not be required, depending on your instance settings. */ Description *string /* File. The media attachment to upload. */ File runtime.NamedReadCloser /* Focus. Focus of the media file. If present, it should be in the form of two comma-separated floats between -1 and 1. For example: `-0.5,0.25`. Default: "0,0" */ Focus *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MediaCreateParams contains all the parameters to send to the API endpoint
for the media create operation. Typically these are written to a http.Request.
func NewMediaCreateParams ¶
func NewMediaCreateParams() *MediaCreateParams
NewMediaCreateParams creates a new MediaCreateParams 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 NewMediaCreateParamsWithContext ¶
func NewMediaCreateParamsWithContext(ctx context.Context) *MediaCreateParams
NewMediaCreateParamsWithContext creates a new MediaCreateParams object with the ability to set a context for a request.
func NewMediaCreateParamsWithHTTPClient ¶
func NewMediaCreateParamsWithHTTPClient(client *http.Client) *MediaCreateParams
NewMediaCreateParamsWithHTTPClient creates a new MediaCreateParams object with the ability to set a custom HTTPClient for a request.
func NewMediaCreateParamsWithTimeout ¶
func NewMediaCreateParamsWithTimeout(timeout time.Duration) *MediaCreateParams
NewMediaCreateParamsWithTimeout creates a new MediaCreateParams object with the ability to set a timeout on a request.
func (*MediaCreateParams) SetAPIVersion ¶
func (o *MediaCreateParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the media create params
func (*MediaCreateParams) SetContext ¶
func (o *MediaCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the media create params
func (*MediaCreateParams) SetDefaults ¶
func (o *MediaCreateParams) SetDefaults()
SetDefaults hydrates default values in the media create params (not the query body).
All values with no default are reset to their zero value.
func (*MediaCreateParams) SetDescription ¶
func (o *MediaCreateParams) SetDescription(description *string)
SetDescription adds the description to the media create params
func (*MediaCreateParams) SetFile ¶
func (o *MediaCreateParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the media create params
func (*MediaCreateParams) SetFocus ¶
func (o *MediaCreateParams) SetFocus(focus *string)
SetFocus adds the focus to the media create params
func (*MediaCreateParams) SetHTTPClient ¶
func (o *MediaCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the media create params
func (*MediaCreateParams) SetTimeout ¶
func (o *MediaCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the media create params
func (*MediaCreateParams) WithAPIVersion ¶
func (o *MediaCreateParams) WithAPIVersion(aPIVersion string) *MediaCreateParams
WithAPIVersion adds the aPIVersion to the media create params
func (*MediaCreateParams) WithContext ¶
func (o *MediaCreateParams) WithContext(ctx context.Context) *MediaCreateParams
WithContext adds the context to the media create params
func (*MediaCreateParams) WithDefaults ¶
func (o *MediaCreateParams) WithDefaults() *MediaCreateParams
WithDefaults hydrates default values in the media create params (not the query body).
All values with no default are reset to their zero value.
func (*MediaCreateParams) WithDescription ¶
func (o *MediaCreateParams) WithDescription(description *string) *MediaCreateParams
WithDescription adds the description to the media create params
func (*MediaCreateParams) WithFile ¶
func (o *MediaCreateParams) WithFile(file runtime.NamedReadCloser) *MediaCreateParams
WithFile adds the file to the media create params
func (*MediaCreateParams) WithFocus ¶
func (o *MediaCreateParams) WithFocus(focus *string) *MediaCreateParams
WithFocus adds the focus to the media create params
func (*MediaCreateParams) WithHTTPClient ¶
func (o *MediaCreateParams) WithHTTPClient(client *http.Client) *MediaCreateParams
WithHTTPClient adds the HTTPClient to the media create params
func (*MediaCreateParams) WithTimeout ¶
func (o *MediaCreateParams) WithTimeout(timeout time.Duration) *MediaCreateParams
WithTimeout adds the timeout to the media create params
func (*MediaCreateParams) WriteToRequest ¶
func (o *MediaCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MediaCreateReader ¶
type MediaCreateReader struct {
// contains filtered or unexported fields
}
MediaCreateReader is a Reader for the MediaCreate structure.
func (*MediaCreateReader) ReadResponse ¶
func (o *MediaCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MediaCreateUnauthorized ¶
type MediaCreateUnauthorized struct { }
MediaCreateUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewMediaCreateUnauthorized ¶
func NewMediaCreateUnauthorized() *MediaCreateUnauthorized
NewMediaCreateUnauthorized creates a MediaCreateUnauthorized with default headers values
func (*MediaCreateUnauthorized) Code ¶
func (o *MediaCreateUnauthorized) Code() int
Code gets the status code for the media create unauthorized response
func (*MediaCreateUnauthorized) Error ¶
func (o *MediaCreateUnauthorized) Error() string
func (*MediaCreateUnauthorized) IsClientError ¶
func (o *MediaCreateUnauthorized) IsClientError() bool
IsClientError returns true when this media create unauthorized response has a 4xx status code
func (*MediaCreateUnauthorized) IsCode ¶
func (o *MediaCreateUnauthorized) IsCode(code int) bool
IsCode returns true when this media create unauthorized response a status code equal to that given
func (*MediaCreateUnauthorized) IsRedirect ¶
func (o *MediaCreateUnauthorized) IsRedirect() bool
IsRedirect returns true when this media create unauthorized response has a 3xx status code
func (*MediaCreateUnauthorized) IsServerError ¶
func (o *MediaCreateUnauthorized) IsServerError() bool
IsServerError returns true when this media create unauthorized response has a 5xx status code
func (*MediaCreateUnauthorized) IsSuccess ¶
func (o *MediaCreateUnauthorized) IsSuccess() bool
IsSuccess returns true when this media create unauthorized response has a 2xx status code
func (*MediaCreateUnauthorized) String ¶
func (o *MediaCreateUnauthorized) String() string
type MediaCreateUnprocessableEntity ¶
type MediaCreateUnprocessableEntity struct { }
MediaCreateUnprocessableEntity describes a response with status code 422, with default header values.
unprocessable
func NewMediaCreateUnprocessableEntity ¶
func NewMediaCreateUnprocessableEntity() *MediaCreateUnprocessableEntity
NewMediaCreateUnprocessableEntity creates a MediaCreateUnprocessableEntity with default headers values
func (*MediaCreateUnprocessableEntity) Code ¶
func (o *MediaCreateUnprocessableEntity) Code() int
Code gets the status code for the media create unprocessable entity response
func (*MediaCreateUnprocessableEntity) Error ¶
func (o *MediaCreateUnprocessableEntity) Error() string
func (*MediaCreateUnprocessableEntity) IsClientError ¶
func (o *MediaCreateUnprocessableEntity) IsClientError() bool
IsClientError returns true when this media create unprocessable entity response has a 4xx status code
func (*MediaCreateUnprocessableEntity) IsCode ¶
func (o *MediaCreateUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this media create unprocessable entity response a status code equal to that given
func (*MediaCreateUnprocessableEntity) IsRedirect ¶
func (o *MediaCreateUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this media create unprocessable entity response has a 3xx status code
func (*MediaCreateUnprocessableEntity) IsServerError ¶
func (o *MediaCreateUnprocessableEntity) IsServerError() bool
IsServerError returns true when this media create unprocessable entity response has a 5xx status code
func (*MediaCreateUnprocessableEntity) IsSuccess ¶
func (o *MediaCreateUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this media create unprocessable entity response has a 2xx status code
func (*MediaCreateUnprocessableEntity) String ¶
func (o *MediaCreateUnprocessableEntity) String() string
type MediaGetBadRequest ¶
type MediaGetBadRequest struct { }
MediaGetBadRequest describes a response with status code 400, with default header values.
bad request
func NewMediaGetBadRequest ¶
func NewMediaGetBadRequest() *MediaGetBadRequest
NewMediaGetBadRequest creates a MediaGetBadRequest with default headers values
func (*MediaGetBadRequest) Code ¶
func (o *MediaGetBadRequest) Code() int
Code gets the status code for the media get bad request response
func (*MediaGetBadRequest) Error ¶
func (o *MediaGetBadRequest) Error() string
func (*MediaGetBadRequest) IsClientError ¶
func (o *MediaGetBadRequest) IsClientError() bool
IsClientError returns true when this media get bad request response has a 4xx status code
func (*MediaGetBadRequest) IsCode ¶
func (o *MediaGetBadRequest) IsCode(code int) bool
IsCode returns true when this media get bad request response a status code equal to that given
func (*MediaGetBadRequest) IsRedirect ¶
func (o *MediaGetBadRequest) IsRedirect() bool
IsRedirect returns true when this media get bad request response has a 3xx status code
func (*MediaGetBadRequest) IsServerError ¶
func (o *MediaGetBadRequest) IsServerError() bool
IsServerError returns true when this media get bad request response has a 5xx status code
func (*MediaGetBadRequest) IsSuccess ¶
func (o *MediaGetBadRequest) IsSuccess() bool
IsSuccess returns true when this media get bad request response has a 2xx status code
func (*MediaGetBadRequest) String ¶
func (o *MediaGetBadRequest) String() string
type MediaGetInternalServerError ¶
type MediaGetInternalServerError struct { }
MediaGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewMediaGetInternalServerError ¶
func NewMediaGetInternalServerError() *MediaGetInternalServerError
NewMediaGetInternalServerError creates a MediaGetInternalServerError with default headers values
func (*MediaGetInternalServerError) Code ¶
func (o *MediaGetInternalServerError) Code() int
Code gets the status code for the media get internal server error response
func (*MediaGetInternalServerError) Error ¶
func (o *MediaGetInternalServerError) Error() string
func (*MediaGetInternalServerError) IsClientError ¶
func (o *MediaGetInternalServerError) IsClientError() bool
IsClientError returns true when this media get internal server error response has a 4xx status code
func (*MediaGetInternalServerError) IsCode ¶
func (o *MediaGetInternalServerError) IsCode(code int) bool
IsCode returns true when this media get internal server error response a status code equal to that given
func (*MediaGetInternalServerError) IsRedirect ¶
func (o *MediaGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this media get internal server error response has a 3xx status code
func (*MediaGetInternalServerError) IsServerError ¶
func (o *MediaGetInternalServerError) IsServerError() bool
IsServerError returns true when this media get internal server error response has a 5xx status code
func (*MediaGetInternalServerError) IsSuccess ¶
func (o *MediaGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this media get internal server error response has a 2xx status code
func (*MediaGetInternalServerError) String ¶
func (o *MediaGetInternalServerError) String() string
type MediaGetNotAcceptable ¶
type MediaGetNotAcceptable struct { }
MediaGetNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewMediaGetNotAcceptable ¶
func NewMediaGetNotAcceptable() *MediaGetNotAcceptable
NewMediaGetNotAcceptable creates a MediaGetNotAcceptable with default headers values
func (*MediaGetNotAcceptable) Code ¶
func (o *MediaGetNotAcceptable) Code() int
Code gets the status code for the media get not acceptable response
func (*MediaGetNotAcceptable) Error ¶
func (o *MediaGetNotAcceptable) Error() string
func (*MediaGetNotAcceptable) IsClientError ¶
func (o *MediaGetNotAcceptable) IsClientError() bool
IsClientError returns true when this media get not acceptable response has a 4xx status code
func (*MediaGetNotAcceptable) IsCode ¶
func (o *MediaGetNotAcceptable) IsCode(code int) bool
IsCode returns true when this media get not acceptable response a status code equal to that given
func (*MediaGetNotAcceptable) IsRedirect ¶
func (o *MediaGetNotAcceptable) IsRedirect() bool
IsRedirect returns true when this media get not acceptable response has a 3xx status code
func (*MediaGetNotAcceptable) IsServerError ¶
func (o *MediaGetNotAcceptable) IsServerError() bool
IsServerError returns true when this media get not acceptable response has a 5xx status code
func (*MediaGetNotAcceptable) IsSuccess ¶
func (o *MediaGetNotAcceptable) IsSuccess() bool
IsSuccess returns true when this media get not acceptable response has a 2xx status code
func (*MediaGetNotAcceptable) String ¶
func (o *MediaGetNotAcceptable) String() string
type MediaGetNotFound ¶
type MediaGetNotFound struct { }
MediaGetNotFound describes a response with status code 404, with default header values.
not found
func NewMediaGetNotFound ¶
func NewMediaGetNotFound() *MediaGetNotFound
NewMediaGetNotFound creates a MediaGetNotFound with default headers values
func (*MediaGetNotFound) Code ¶
func (o *MediaGetNotFound) Code() int
Code gets the status code for the media get not found response
func (*MediaGetNotFound) Error ¶
func (o *MediaGetNotFound) Error() string
func (*MediaGetNotFound) IsClientError ¶
func (o *MediaGetNotFound) IsClientError() bool
IsClientError returns true when this media get not found response has a 4xx status code
func (*MediaGetNotFound) IsCode ¶
func (o *MediaGetNotFound) IsCode(code int) bool
IsCode returns true when this media get not found response a status code equal to that given
func (*MediaGetNotFound) IsRedirect ¶
func (o *MediaGetNotFound) IsRedirect() bool
IsRedirect returns true when this media get not found response has a 3xx status code
func (*MediaGetNotFound) IsServerError ¶
func (o *MediaGetNotFound) IsServerError() bool
IsServerError returns true when this media get not found response has a 5xx status code
func (*MediaGetNotFound) IsSuccess ¶
func (o *MediaGetNotFound) IsSuccess() bool
IsSuccess returns true when this media get not found response has a 2xx status code
func (*MediaGetNotFound) String ¶
func (o *MediaGetNotFound) String() string
type MediaGetOK ¶
type MediaGetOK struct {
Payload *models.Attachment
}
MediaGetOK describes a response with status code 200, with default header values.
The requested media attachment.
func NewMediaGetOK ¶
func NewMediaGetOK() *MediaGetOK
NewMediaGetOK creates a MediaGetOK with default headers values
func (*MediaGetOK) Code ¶
func (o *MediaGetOK) Code() int
Code gets the status code for the media get o k response
func (*MediaGetOK) Error ¶
func (o *MediaGetOK) Error() string
func (*MediaGetOK) GetPayload ¶
func (o *MediaGetOK) GetPayload() *models.Attachment
func (*MediaGetOK) IsClientError ¶
func (o *MediaGetOK) IsClientError() bool
IsClientError returns true when this media get o k response has a 4xx status code
func (*MediaGetOK) IsCode ¶
func (o *MediaGetOK) IsCode(code int) bool
IsCode returns true when this media get o k response a status code equal to that given
func (*MediaGetOK) IsRedirect ¶
func (o *MediaGetOK) IsRedirect() bool
IsRedirect returns true when this media get o k response has a 3xx status code
func (*MediaGetOK) IsServerError ¶
func (o *MediaGetOK) IsServerError() bool
IsServerError returns true when this media get o k response has a 5xx status code
func (*MediaGetOK) IsSuccess ¶
func (o *MediaGetOK) IsSuccess() bool
IsSuccess returns true when this media get o k response has a 2xx status code
func (*MediaGetOK) String ¶
func (o *MediaGetOK) String() string
type MediaGetParams ¶
type MediaGetParams struct { /* ID. id of the attachment */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MediaGetParams contains all the parameters to send to the API endpoint
for the media get operation. Typically these are written to a http.Request.
func NewMediaGetParams ¶
func NewMediaGetParams() *MediaGetParams
NewMediaGetParams creates a new MediaGetParams 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 NewMediaGetParamsWithContext ¶
func NewMediaGetParamsWithContext(ctx context.Context) *MediaGetParams
NewMediaGetParamsWithContext creates a new MediaGetParams object with the ability to set a context for a request.
func NewMediaGetParamsWithHTTPClient ¶
func NewMediaGetParamsWithHTTPClient(client *http.Client) *MediaGetParams
NewMediaGetParamsWithHTTPClient creates a new MediaGetParams object with the ability to set a custom HTTPClient for a request.
func NewMediaGetParamsWithTimeout ¶
func NewMediaGetParamsWithTimeout(timeout time.Duration) *MediaGetParams
NewMediaGetParamsWithTimeout creates a new MediaGetParams object with the ability to set a timeout on a request.
func (*MediaGetParams) SetContext ¶
func (o *MediaGetParams) SetContext(ctx context.Context)
SetContext adds the context to the media get params
func (*MediaGetParams) SetDefaults ¶
func (o *MediaGetParams) SetDefaults()
SetDefaults hydrates default values in the media get params (not the query body).
All values with no default are reset to their zero value.
func (*MediaGetParams) SetHTTPClient ¶
func (o *MediaGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the media get params
func (*MediaGetParams) SetID ¶
func (o *MediaGetParams) SetID(id string)
SetID adds the id to the media get params
func (*MediaGetParams) SetTimeout ¶
func (o *MediaGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the media get params
func (*MediaGetParams) WithContext ¶
func (o *MediaGetParams) WithContext(ctx context.Context) *MediaGetParams
WithContext adds the context to the media get params
func (*MediaGetParams) WithDefaults ¶
func (o *MediaGetParams) WithDefaults() *MediaGetParams
WithDefaults hydrates default values in the media get params (not the query body).
All values with no default are reset to their zero value.
func (*MediaGetParams) WithHTTPClient ¶
func (o *MediaGetParams) WithHTTPClient(client *http.Client) *MediaGetParams
WithHTTPClient adds the HTTPClient to the media get params
func (*MediaGetParams) WithID ¶
func (o *MediaGetParams) WithID(id string) *MediaGetParams
WithID adds the id to the media get params
func (*MediaGetParams) WithTimeout ¶
func (o *MediaGetParams) WithTimeout(timeout time.Duration) *MediaGetParams
WithTimeout adds the timeout to the media get params
func (*MediaGetParams) WriteToRequest ¶
func (o *MediaGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MediaGetReader ¶
type MediaGetReader struct {
// contains filtered or unexported fields
}
MediaGetReader is a Reader for the MediaGet structure.
func (*MediaGetReader) ReadResponse ¶
func (o *MediaGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MediaGetUnauthorized ¶
type MediaGetUnauthorized struct { }
MediaGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewMediaGetUnauthorized ¶
func NewMediaGetUnauthorized() *MediaGetUnauthorized
NewMediaGetUnauthorized creates a MediaGetUnauthorized with default headers values
func (*MediaGetUnauthorized) Code ¶
func (o *MediaGetUnauthorized) Code() int
Code gets the status code for the media get unauthorized response
func (*MediaGetUnauthorized) Error ¶
func (o *MediaGetUnauthorized) Error() string
func (*MediaGetUnauthorized) IsClientError ¶
func (o *MediaGetUnauthorized) IsClientError() bool
IsClientError returns true when this media get unauthorized response has a 4xx status code
func (*MediaGetUnauthorized) IsCode ¶
func (o *MediaGetUnauthorized) IsCode(code int) bool
IsCode returns true when this media get unauthorized response a status code equal to that given
func (*MediaGetUnauthorized) IsRedirect ¶
func (o *MediaGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this media get unauthorized response has a 3xx status code
func (*MediaGetUnauthorized) IsServerError ¶
func (o *MediaGetUnauthorized) IsServerError() bool
IsServerError returns true when this media get unauthorized response has a 5xx status code
func (*MediaGetUnauthorized) IsSuccess ¶
func (o *MediaGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this media get unauthorized response has a 2xx status code
func (*MediaGetUnauthorized) String ¶
func (o *MediaGetUnauthorized) String() string
type MediaUpdateBadRequest ¶
type MediaUpdateBadRequest struct { }
MediaUpdateBadRequest describes a response with status code 400, with default header values.
bad request
func NewMediaUpdateBadRequest ¶
func NewMediaUpdateBadRequest() *MediaUpdateBadRequest
NewMediaUpdateBadRequest creates a MediaUpdateBadRequest with default headers values
func (*MediaUpdateBadRequest) Code ¶
func (o *MediaUpdateBadRequest) Code() int
Code gets the status code for the media update bad request response
func (*MediaUpdateBadRequest) Error ¶
func (o *MediaUpdateBadRequest) Error() string
func (*MediaUpdateBadRequest) IsClientError ¶
func (o *MediaUpdateBadRequest) IsClientError() bool
IsClientError returns true when this media update bad request response has a 4xx status code
func (*MediaUpdateBadRequest) IsCode ¶
func (o *MediaUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this media update bad request response a status code equal to that given
func (*MediaUpdateBadRequest) IsRedirect ¶
func (o *MediaUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this media update bad request response has a 3xx status code
func (*MediaUpdateBadRequest) IsServerError ¶
func (o *MediaUpdateBadRequest) IsServerError() bool
IsServerError returns true when this media update bad request response has a 5xx status code
func (*MediaUpdateBadRequest) IsSuccess ¶
func (o *MediaUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this media update bad request response has a 2xx status code
func (*MediaUpdateBadRequest) String ¶
func (o *MediaUpdateBadRequest) String() string
type MediaUpdateInternalServerError ¶
type MediaUpdateInternalServerError struct { }
MediaUpdateInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewMediaUpdateInternalServerError ¶
func NewMediaUpdateInternalServerError() *MediaUpdateInternalServerError
NewMediaUpdateInternalServerError creates a MediaUpdateInternalServerError with default headers values
func (*MediaUpdateInternalServerError) Code ¶
func (o *MediaUpdateInternalServerError) Code() int
Code gets the status code for the media update internal server error response
func (*MediaUpdateInternalServerError) Error ¶
func (o *MediaUpdateInternalServerError) Error() string
func (*MediaUpdateInternalServerError) IsClientError ¶
func (o *MediaUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this media update internal server error response has a 4xx status code
func (*MediaUpdateInternalServerError) IsCode ¶
func (o *MediaUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this media update internal server error response a status code equal to that given
func (*MediaUpdateInternalServerError) IsRedirect ¶
func (o *MediaUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this media update internal server error response has a 3xx status code
func (*MediaUpdateInternalServerError) IsServerError ¶
func (o *MediaUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this media update internal server error response has a 5xx status code
func (*MediaUpdateInternalServerError) IsSuccess ¶
func (o *MediaUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this media update internal server error response has a 2xx status code
func (*MediaUpdateInternalServerError) String ¶
func (o *MediaUpdateInternalServerError) String() string
type MediaUpdateNotAcceptable ¶
type MediaUpdateNotAcceptable struct { }
MediaUpdateNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewMediaUpdateNotAcceptable ¶
func NewMediaUpdateNotAcceptable() *MediaUpdateNotAcceptable
NewMediaUpdateNotAcceptable creates a MediaUpdateNotAcceptable with default headers values
func (*MediaUpdateNotAcceptable) Code ¶
func (o *MediaUpdateNotAcceptable) Code() int
Code gets the status code for the media update not acceptable response
func (*MediaUpdateNotAcceptable) Error ¶
func (o *MediaUpdateNotAcceptable) Error() string
func (*MediaUpdateNotAcceptable) IsClientError ¶
func (o *MediaUpdateNotAcceptable) IsClientError() bool
IsClientError returns true when this media update not acceptable response has a 4xx status code
func (*MediaUpdateNotAcceptable) IsCode ¶
func (o *MediaUpdateNotAcceptable) IsCode(code int) bool
IsCode returns true when this media update not acceptable response a status code equal to that given
func (*MediaUpdateNotAcceptable) IsRedirect ¶
func (o *MediaUpdateNotAcceptable) IsRedirect() bool
IsRedirect returns true when this media update not acceptable response has a 3xx status code
func (*MediaUpdateNotAcceptable) IsServerError ¶
func (o *MediaUpdateNotAcceptable) IsServerError() bool
IsServerError returns true when this media update not acceptable response has a 5xx status code
func (*MediaUpdateNotAcceptable) IsSuccess ¶
func (o *MediaUpdateNotAcceptable) IsSuccess() bool
IsSuccess returns true when this media update not acceptable response has a 2xx status code
func (*MediaUpdateNotAcceptable) String ¶
func (o *MediaUpdateNotAcceptable) String() string
type MediaUpdateNotFound ¶
type MediaUpdateNotFound struct { }
MediaUpdateNotFound describes a response with status code 404, with default header values.
not found
func NewMediaUpdateNotFound ¶
func NewMediaUpdateNotFound() *MediaUpdateNotFound
NewMediaUpdateNotFound creates a MediaUpdateNotFound with default headers values
func (*MediaUpdateNotFound) Code ¶
func (o *MediaUpdateNotFound) Code() int
Code gets the status code for the media update not found response
func (*MediaUpdateNotFound) Error ¶
func (o *MediaUpdateNotFound) Error() string
func (*MediaUpdateNotFound) IsClientError ¶
func (o *MediaUpdateNotFound) IsClientError() bool
IsClientError returns true when this media update not found response has a 4xx status code
func (*MediaUpdateNotFound) IsCode ¶
func (o *MediaUpdateNotFound) IsCode(code int) bool
IsCode returns true when this media update not found response a status code equal to that given
func (*MediaUpdateNotFound) IsRedirect ¶
func (o *MediaUpdateNotFound) IsRedirect() bool
IsRedirect returns true when this media update not found response has a 3xx status code
func (*MediaUpdateNotFound) IsServerError ¶
func (o *MediaUpdateNotFound) IsServerError() bool
IsServerError returns true when this media update not found response has a 5xx status code
func (*MediaUpdateNotFound) IsSuccess ¶
func (o *MediaUpdateNotFound) IsSuccess() bool
IsSuccess returns true when this media update not found response has a 2xx status code
func (*MediaUpdateNotFound) String ¶
func (o *MediaUpdateNotFound) String() string
type MediaUpdateOK ¶
type MediaUpdateOK struct {
Payload *models.Attachment
}
MediaUpdateOK describes a response with status code 200, with default header values.
The newly-updated media attachment.
func NewMediaUpdateOK ¶
func NewMediaUpdateOK() *MediaUpdateOK
NewMediaUpdateOK creates a MediaUpdateOK with default headers values
func (*MediaUpdateOK) Code ¶
func (o *MediaUpdateOK) Code() int
Code gets the status code for the media update o k response
func (*MediaUpdateOK) Error ¶
func (o *MediaUpdateOK) Error() string
func (*MediaUpdateOK) GetPayload ¶
func (o *MediaUpdateOK) GetPayload() *models.Attachment
func (*MediaUpdateOK) IsClientError ¶
func (o *MediaUpdateOK) IsClientError() bool
IsClientError returns true when this media update o k response has a 4xx status code
func (*MediaUpdateOK) IsCode ¶
func (o *MediaUpdateOK) IsCode(code int) bool
IsCode returns true when this media update o k response a status code equal to that given
func (*MediaUpdateOK) IsRedirect ¶
func (o *MediaUpdateOK) IsRedirect() bool
IsRedirect returns true when this media update o k response has a 3xx status code
func (*MediaUpdateOK) IsServerError ¶
func (o *MediaUpdateOK) IsServerError() bool
IsServerError returns true when this media update o k response has a 5xx status code
func (*MediaUpdateOK) IsSuccess ¶
func (o *MediaUpdateOK) IsSuccess() bool
IsSuccess returns true when this media update o k response has a 2xx status code
func (*MediaUpdateOK) String ¶
func (o *MediaUpdateOK) String() string
type MediaUpdateParams ¶
type MediaUpdateParams struct { /* Description. Image or media description to use as alt-text on the attachment. This is very useful for users of screenreaders! May or may not be required, depending on your instance settings. */ Description string /* Focus. Focus of the media file. If present, it should be in the form of two comma-separated floats between -1 and 1. For example: `-0.5,0.25`. Default: "0,0" */ Focus string /* ID. id of the attachment to update */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MediaUpdateParams contains all the parameters to send to the API endpoint
for the media update operation. Typically these are written to a http.Request.
func NewMediaUpdateParams ¶
func NewMediaUpdateParams() *MediaUpdateParams
NewMediaUpdateParams creates a new MediaUpdateParams 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 NewMediaUpdateParamsWithContext ¶
func NewMediaUpdateParamsWithContext(ctx context.Context) *MediaUpdateParams
NewMediaUpdateParamsWithContext creates a new MediaUpdateParams object with the ability to set a context for a request.
func NewMediaUpdateParamsWithHTTPClient ¶
func NewMediaUpdateParamsWithHTTPClient(client *http.Client) *MediaUpdateParams
NewMediaUpdateParamsWithHTTPClient creates a new MediaUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewMediaUpdateParamsWithTimeout ¶
func NewMediaUpdateParamsWithTimeout(timeout time.Duration) *MediaUpdateParams
NewMediaUpdateParamsWithTimeout creates a new MediaUpdateParams object with the ability to set a timeout on a request.
func (*MediaUpdateParams) SetContext ¶
func (o *MediaUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the media update params
func (*MediaUpdateParams) SetDefaults ¶
func (o *MediaUpdateParams) SetDefaults()
SetDefaults hydrates default values in the media update params (not the query body).
All values with no default are reset to their zero value.
func (*MediaUpdateParams) SetDescription ¶
func (o *MediaUpdateParams) SetDescription(description string)
SetDescription adds the description to the media update params
func (*MediaUpdateParams) SetFocus ¶
func (o *MediaUpdateParams) SetFocus(focus string)
SetFocus adds the focus to the media update params
func (*MediaUpdateParams) SetHTTPClient ¶
func (o *MediaUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the media update params
func (*MediaUpdateParams) SetID ¶
func (o *MediaUpdateParams) SetID(id string)
SetID adds the id to the media update params
func (*MediaUpdateParams) SetTimeout ¶
func (o *MediaUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the media update params
func (*MediaUpdateParams) WithContext ¶
func (o *MediaUpdateParams) WithContext(ctx context.Context) *MediaUpdateParams
WithContext adds the context to the media update params
func (*MediaUpdateParams) WithDefaults ¶
func (o *MediaUpdateParams) WithDefaults() *MediaUpdateParams
WithDefaults hydrates default values in the media update params (not the query body).
All values with no default are reset to their zero value.
func (*MediaUpdateParams) WithDescription ¶
func (o *MediaUpdateParams) WithDescription(description string) *MediaUpdateParams
WithDescription adds the description to the media update params
func (*MediaUpdateParams) WithFocus ¶
func (o *MediaUpdateParams) WithFocus(focus string) *MediaUpdateParams
WithFocus adds the focus to the media update params
func (*MediaUpdateParams) WithHTTPClient ¶
func (o *MediaUpdateParams) WithHTTPClient(client *http.Client) *MediaUpdateParams
WithHTTPClient adds the HTTPClient to the media update params
func (*MediaUpdateParams) WithID ¶
func (o *MediaUpdateParams) WithID(id string) *MediaUpdateParams
WithID adds the id to the media update params
func (*MediaUpdateParams) WithTimeout ¶
func (o *MediaUpdateParams) WithTimeout(timeout time.Duration) *MediaUpdateParams
WithTimeout adds the timeout to the media update params
func (*MediaUpdateParams) WriteToRequest ¶
func (o *MediaUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MediaUpdateReader ¶
type MediaUpdateReader struct {
// contains filtered or unexported fields
}
MediaUpdateReader is a Reader for the MediaUpdate structure.
func (*MediaUpdateReader) ReadResponse ¶
func (o *MediaUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MediaUpdateUnauthorized ¶
type MediaUpdateUnauthorized struct { }
MediaUpdateUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewMediaUpdateUnauthorized ¶
func NewMediaUpdateUnauthorized() *MediaUpdateUnauthorized
NewMediaUpdateUnauthorized creates a MediaUpdateUnauthorized with default headers values
func (*MediaUpdateUnauthorized) Code ¶
func (o *MediaUpdateUnauthorized) Code() int
Code gets the status code for the media update unauthorized response
func (*MediaUpdateUnauthorized) Error ¶
func (o *MediaUpdateUnauthorized) Error() string
func (*MediaUpdateUnauthorized) IsClientError ¶
func (o *MediaUpdateUnauthorized) IsClientError() bool
IsClientError returns true when this media update unauthorized response has a 4xx status code
func (*MediaUpdateUnauthorized) IsCode ¶
func (o *MediaUpdateUnauthorized) IsCode(code int) bool
IsCode returns true when this media update unauthorized response a status code equal to that given
func (*MediaUpdateUnauthorized) IsRedirect ¶
func (o *MediaUpdateUnauthorized) IsRedirect() bool
IsRedirect returns true when this media update unauthorized response has a 3xx status code
func (*MediaUpdateUnauthorized) IsServerError ¶
func (o *MediaUpdateUnauthorized) IsServerError() bool
IsServerError returns true when this media update unauthorized response has a 5xx status code
func (*MediaUpdateUnauthorized) IsSuccess ¶
func (o *MediaUpdateUnauthorized) IsSuccess() bool
IsSuccess returns true when this media update unauthorized response has a 2xx status code
func (*MediaUpdateUnauthorized) String ¶
func (o *MediaUpdateUnauthorized) String() string