mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
69 lines
1.5 KiB
Go
69 lines
1.5 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type PostMediaArtsRequest struct {
|
|
// the id of the library item to return the posters of.
|
|
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
|
|
// The URL of the image, if uploading a remote image
|
|
URL *string `queryParam:"style=form,explode=true,name=url"`
|
|
// The contents of the image, if uploading a local file
|
|
// This field accepts []byte data or io.Reader implementations, such as *os.File.
|
|
RequestBody *any `request:"mediaType=image/*"`
|
|
}
|
|
|
|
func (p *PostMediaArtsRequest) GetRatingKey() int64 {
|
|
if p == nil {
|
|
return 0
|
|
}
|
|
return p.RatingKey
|
|
}
|
|
|
|
func (p *PostMediaArtsRequest) GetURL() *string {
|
|
if p == nil {
|
|
return nil
|
|
}
|
|
return p.URL
|
|
}
|
|
|
|
func (p *PostMediaArtsRequest) GetRequestBody() *any {
|
|
if p == nil {
|
|
return nil
|
|
}
|
|
return p.RequestBody
|
|
}
|
|
|
|
type PostMediaArtsResponse struct {
|
|
// HTTP response content type for this operation
|
|
ContentType string
|
|
// HTTP response status code for this operation
|
|
StatusCode int
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response
|
|
}
|
|
|
|
func (p *PostMediaArtsResponse) GetContentType() string {
|
|
if p == nil {
|
|
return ""
|
|
}
|
|
return p.ContentType
|
|
}
|
|
|
|
func (p *PostMediaArtsResponse) GetStatusCode() int {
|
|
if p == nil {
|
|
return 0
|
|
}
|
|
return p.StatusCode
|
|
}
|
|
|
|
func (p *PostMediaArtsResponse) GetRawResponse() *http.Response {
|
|
if p == nil {
|
|
return nil
|
|
}
|
|
return p.RawResponse
|
|
}
|